/* =========================================
   SEOboost — CSS Framework
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #fafbfc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Variables --- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 0.5em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.01em; }
p { color: var(--gray-600); margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; line-height: 1;
  border: none; cursor: pointer; transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-primary); color: white; box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,0.45); color: white; }
.btn-secondary {
  background: white; color: var(--dark); border: 2px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* --- Section --- */
.section { padding: 100px 0; }
.section-dark { background: var(--gradient-dark); color: white; }
.section-dark h2, .section-dark p { color: white; }
.section-gray { background: var(--gray-50); }

/* --- Section Header --- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header .label {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(99,102,241,0.1); color: var(--primary); margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.15rem; color: var(--gray-500); }
.section-dark .section-header .label { background: rgba(255,255,255,0.1); color: var(--primary-light); }
.section-dark .section-header p { color: var(--gray-300); }

/* --- Grid --- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Card --- */
.card {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--gray-200); transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.card-icon.purple { background: rgba(99,102,241,0.1); }
.card-icon.blue { background: rgba(14,165,233,0.1); }
.card-icon.green { background: rgba(16,185,129,0.1); }
.card-icon.amber { background: rgba(245,158,11,0.1); }
.card-icon.red { background: rgba(239,68,68,0.1); }
.card-icon.indigo { background: rgba(79,70,229,0.1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray-500); font-size: 0.95rem; }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-dark); color: white; padding: 140px 0 80px;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(14,165,233,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero h1 { color: white; margin-bottom: 20px; }
.hero .hero-subtitle { font-size: 1.2rem; color: var(--gray-300); margin-bottom: 36px; line-height: 1.7; }
.hero-badges { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: var(--gray-400); font-size: 0.9rem; }
.hero-badge svg { width: 20px; height: 20px; color: var(--success); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Free Audit Form --- */
.audit-form {
  background: white; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-xl); max-width: 480px;
}
.audit-form h3 { color: var(--dark); margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 1rem; transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-group input::placeholder { color: var(--gray-400); }
.audit-form .btn { width: 100%; justify-content: center; }

/* --- Hero Split --- */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* --- Features --- */
.feature-card { text-align: center; padding: 40px 28px; }
.feature-card .card-icon { margin: 0 auto 20px; }
.feature-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.feature-tag.strategy { background: rgba(99,102,241,0.1); color: #6366f1; }
.feature-tag.analysis { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.feature-tag.content { background: rgba(16,185,129,0.1); color: #10b981; }
.feature-tag.tech { background: rgba(245,158,11,0.1); color: #f59e0b; }
.feature-tag.links { background: rgba(239,68,68,0.1); color: #ef4444; }
.feature-tag.ux { background: rgba(79,70,229,0.1); color: #4f46e5; }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--gray-500); font-size: 0.95rem; margin-top: 4px; }

/* --- Benefits --- */
.benefit-item { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius-md); transition: all 0.3s; }
.benefit-item:hover { background: var(--gray-50); }
.benefit-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.benefit-icon.purple { background: rgba(99,102,241,0.1); }
.benefit-icon.blue { background: rgba(14,165,233,0.1); }
.benefit-icon.green { background: rgba(16,185,129,0.1); }
.benefit-icon.amber { background: rgba(245,158,11,0.1); }

/* --- Pricing --- */
.pricing-card {
  background: white; border-radius: var(--radius-xl); padding: 40px 32px;
  border: 2px solid var(--gray-200); position: relative; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg); }
.pricing-card.featured::before {
  content: 'Рекомендуем'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary); color: white; padding: 6px 20px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--gray-500); margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.pricing-price span { font-size: 1.2rem; font-weight: 400; color: var(--gray-400); }
.pricing-desc { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: bold; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* --- Testimonials --- */
.testimonial-card {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--gray-200);
}
.testimonial-text { font-style: italic; color: var(--gray-600); margin-bottom: 20px; font-size: 1.05rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.1rem; }
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-role { font-size: 0.85rem; color: var(--gray-400); }

/* --- CTA --- */
.cta-section {
  background: var(--gradient-primary); text-align: center; padding: 80px 0;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 32px; }
.cta-section .btn { background: white; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--dark);
  user-select: none;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; color: var(--gray-600); padding-top: 0; }
.faq-item.open .faq-answer { max-height: 300px; padding-top: 16px; }

/* --- Footer --- */
.footer {
  background: var(--dark); color: var(--gray-400); padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--gray-400); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--primary-light); }
.footer-brand p { color: var(--gray-500); font-size: 0.9rem; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 24px; text-align: center; font-size: 0.85rem; color: var(--gray-500); }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: white; }

/* --- Header / Nav --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,23,42,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.header-logo { font-size: 1.4rem; font-weight: 800; color: white; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.header-logo span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-logo:hover { color: white; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--gray-300); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: white; }
.nav .btn { padding: 10px 24px; }

/* --- Mobile Menu --- */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 120px 0 60px; background: var(--gradient-dark); color: white; text-align: center;
}
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p { color: var(--gray-300); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Blog --- */
.blog-card { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); transition: all 0.3s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-body { padding: 24px; }
.blog-card-category { font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; }
.blog-card-meta { font-size: 0.85rem; color: var(--gray-400); display: flex; gap: 16px; }

/* --- Blog Article --- */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: 2.2rem; margin-bottom: 16px; }
.article-meta { display: flex; gap: 20px; color: var(--gray-400); font-size: 0.9rem; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 16px; }
.article-body h3 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 16px 20px; background: var(--gray-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-style: italic; color: var(--gray-600); }
.article-body img { max-width: 100%; border-radius: var(--radius-md); margin: 24px 0; }
.article-cta { background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px; text-align: center; margin: 40px 0; border: 1px solid var(--gray-200); }

/* --- Contacts --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-detail-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-detail h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-detail p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

/* --- About --- */
.about-story { max-width: 700px; margin: 0 auto; text-align: center; font-size: 1.1rem; line-height: 1.8; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.team-card { text-align: center; padding: 32px 20px; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--gradient-primary); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; font-weight: 700; }
.team-name { font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.9rem; color: var(--gray-400); }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .audit-form { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header { background: rgba(15,23,42,0.95); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--gray-800); }
  .nav.open { display: flex; }
  .mobile-toggle { display: flex; }
  .hero { padding: 100px 0 60px; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .section { padding: 60px 0; }
  .stats { gap: 24px; }
  .stat-number { font-size: 2rem; }
  .pricing-card.featured { transform: scale(1.02); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .article h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .audit-form { padding: 24px; }
}
