/* MIVA SEO Pages — shared styles */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --accent: #06b6d4;
  --success: #10b981;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-weight: 900; font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.03em;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-weight: 500; color: var(--text-light); transition: all 0.2s;
  font-size: 0.95rem; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(79,70,229,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,70,229,0.45);
}
.btn-outline {
  background: transparent; color: var(--text); border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(79,70,229,0.04); transform: translateY(-1px);
}
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
  position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,70,229,0.08); color: var(--primary-dark);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }
.hero h1 { font-size: 3rem; line-height: 1.15; font-weight: 800; margin-bottom: 24px; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--primary); }
.hero-stat span { font-size: 0.9rem; color: var(--text-light); }
.hero-image {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px;
}
.hero-image img { border-radius: var(--radius); }

/* Sections */
.section { padding: 80px 0; }
.section-title {
  font-size: 2.4rem; font-weight: 800; text-align: center; margin-bottom: 16px;
}
.section-subtitle {
  text-align: center; color: var(--text-light); font-size: 1.15rem;
  max-width: 700px; margin: 0 auto 48px;
}

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card-icon svg {
  width: 28px; height: 28px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* Benefits */
.benefit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.benefit-row:last-child { margin-bottom: 0; }
.benefit-row.reverse { direction: rtl; }
.benefit-row.reverse > * { direction: ltr; }
.benefit-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.benefit-content p { color: var(--text-light); margin-bottom: 20px; font-size: 1.05rem; }
.benefit-list { list-style: none; }
.benefit-list li {
  padding-left: 32px; position: relative; margin-bottom: 14px;
  color: var(--text); font-weight: 500;
}
.benefit-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 800;
}
.benefit-image {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px;
}

/* Article */
.article-page { padding-top: 120px; }
.article-header { text-align: center; margin-bottom: 48px; }
.article-header h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; }
.article-meta { color: var(--text-light); font-size: 0.95rem; }
.article-content {
  max-width: 800px; margin: 0 auto;
  background: var(--surface); padding: 48px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.article-content h2 { font-size: 1.8rem; font-weight: 700; margin: 40px 0 16px; }
.article-content h3 { font-size: 1.4rem; font-weight: 700; margin: 28px 0 12px; }
.article-content p { margin-bottom: 16px; color: var(--text-light); font-size: 1.05rem; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; color: var(--text-light); }
.article-content li { margin-bottom: 10px; }
.article-content strong { color: var(--text); }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--primary); padding-left: 20px; margin: 24px 0;
  color: var(--text); font-style: italic; background: #f1f5f9; padding: 16px 20px;
  border-radius: 0 12px 12px 0;
}

/* Blog listing */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-image { height: 180px; background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { padding: 24px; }
.blog-card-content .tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--primary); background: rgba(79,70,229,0.08);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.blog-card-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card-content p { color: var(--text-light); font-size: 0.95rem; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 80px 0; text-align: center;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn { background: #fff; color: var(--primary); }
.cta-section .btn:hover { background: #f1f5f9; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  margin-bottom: 16px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.faq-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.faq-item p { color: var(--text-light); }

/* Breadcrumbs */
.breadcrumbs {
  padding: 100px 0 20px; font-size: 0.9rem; color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; }

/* Footer */
.footer { background: var(--text); color: #cbd5e1; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { -webkit-text-fill-color: #fff; margin-bottom: 16px; }
.footer-brand p { margin-bottom: 16px; color: #94a3b8; }
.footer-requisites { font-size: 0.85rem; color: #64748b; line-height: 1.6; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; text-align: center; font-size: 0.9rem; color: #64748b; }

/* Responsive */
@media (max-width: 992px) {
  .hero-inner, .benefit-row, .benefit-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .hero h1 { font-size: 2.2rem; }
  .cards-grid, .blog-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .nav.open .nav-inner { flex-wrap: wrap; }
  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 20px 0;
    gap: 12px;
    animation: fade-down 0.2s ease;
  }
  .nav.open .nav-cta { order: 4; padding-top: 0; }
  .nav.open .nav-links a { padding: 8px 0; font-size: 1.1rem; }
  .nav.open .btn { width: 100%; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-content { padding: 28px; }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
