/* Неагентство — общие стили */
:root {
  --bg: #0c0f14;
  --surface: #141922;
  --border: rgba(148, 163, 184, .12);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, .15);
  --success: #34d399;
  --max: 720px;
  --max-wide: 960px;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 15, 20, .9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand a { color: inherit; text-decoration: none; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.hero {
  padding: 72px 0 80px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.hero--left { text-align: left; }
.hero--left h1,
.hero--left .sub { margin-left: 0; margin-right: 0; }
.hero .sub {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero--left .cta-row { justify-content: flex-start; }
.hero.hero--compact { padding: 48px 0 56px; }
.hero.hero--compact h1 { font-size: clamp(24px, 4vw, 32px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.secondary {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn.secondary:hover { color: var(--text); border-color: var(--muted); }

.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head .hint { margin: 0; font-size: 15px; color: var(--muted); max-width: 52ch; }

.page-content h2 { font-size: 20px; font-weight: 600; margin: 2em 0 0.75em; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 17px; font-weight: 600; margin: 1.5em 0 0.5em; }
.page-content p { margin: 0 0 1em; color: var(--muted); line-height: 1.6; }
.page-content ul { margin: 0 0 1em; padding-left: 1.25em; color: var(--muted); }
.page-content li { margin: 0.25em 0; }
.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

.steps { display: grid; gap: 24px; counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

.seo-links { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-links a {
  display: inline-block;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.seo-links a:hover { color: var(--text); border-color: var(--accent); }

.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.faq-item p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

.final-cta { padding: 64px 0; text-align: center; border-top: 1px solid var(--border); }
.final-cta p { margin: 0 0 24px; font-size: 17px; color: var(--muted); }
.final-cta .cta-row { justify-content: center; }

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--muted); }

.diff-grid { display: grid; gap: 16px; }
.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 640px) { .diff-row { grid-template-columns: 1fr; } }
.diff-row .label { font-weight: 600; font-size: 14px; color: var(--muted); }
.diff-row .us { font-size: 15px; }

.growth-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .growth-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .growth-cards { grid-template-columns: 1fr; } }
.growth-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.growth-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.growth-card p { margin: 0; font-size: 14px; color: var(--muted); }

.pos-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pos-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.pos-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* SEO-страницы: единая структура, воздух, иерархия */
.seo-page .hero { padding: 4rem 0 4.5rem; }
.seo-page .hero .sub { margin-bottom: 0; }
.seo-page .section { padding: 3.5rem 0; }
.seo-page .section h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 1.25rem; letter-spacing: -0.02em; }
.seo-page .page-content { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.seo-page .page-content p { margin: 0 0 1rem; }
.seo-page .page-content p:last-child { margin-bottom: 0; }
.seo-page .page-content ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.seo-page .page-content li { margin: 0.35rem 0; }
.seo-page .steps { gap: 1rem; }
.seo-page .step { padding: 1.25rem 1.5rem; }
.seo-page .step h3 { font-size: 0.9375rem; }
.seo-page .step p { font-size: 0.875rem; }
.seo-page .faq-item { padding: 1.25rem 0; }
.seo-page .faq-item h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.5rem; }
.seo-page .faq-item p { font-size: 0.875rem; margin: 0; }
.seo-page .seo-links { margin-top: 0.5rem; }
