/*
 * Стили контентных страниц лендинга (SEO-посадочные).
 *
 * index.html держит свой стиль инлайном и намеренно не тронут: он рабочий, его правка
 * ради рефакторинга ничего не даёт, а сломать живую страницу может. Здесь — те же токены
 * плюс типографика статьи, которой на главной нет.
 */

:root {
  --bg: #0B0B0F;
  --surface: #15151C;
  --surface2: #1D1D27;
  --border: #2A2A36;
  --text: #F4F4F6;
  --muted: #9A9AA8;
  --accent: #FF7A3D;
  --accent-dim: rgba(255, 122, 61, 0.14);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }

.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.22), transparent 62%);
  filter: blur(14px);
}

header.nav { position: relative; z-index: 2; }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Inter Tight'; font-weight: 800; font-size: 20px; text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #0B0B0F; font-weight: 800; font-family: 'Inter Tight'; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a, .brand-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover, .brand-link:hover { color: var(--text); }

/* хлебные крошки — и для человека, и для поисковой выдачи */
.crumbs { position: relative; z-index: 1; color: var(--muted); font-size: 13px; padding: 4px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

section.hero { position: relative; z-index: 1; padding: 20px 0 8px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(255, 122, 61, 0.25); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; }
h1 { font-size: clamp(30px, 5.4vw, 44px); font-weight: 800; }
.accent { color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); margin: 18px 0 0; }

.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #0B0B0F; font-weight: 700; font-size: 17px; text-decoration: none; padding: 15px 26px; border-radius: 14px; margin-top: 26px; transition: transform .08s ease, filter .15s ease; }
.cta:hover { filter: brightness(1.07); }
.cta:active { transform: scale(0.97); }
.cta svg { width: 19px; height: 19px; }
.cta-note { display: block; color: var(--muted); font-size: 13px; margin-top: 12px; }

.section-title { font-size: clamp(24px, 4vw, 31px); font-weight: 700; margin: 52px 0 20px; }

/* текст статьи */
.prose p { color: var(--muted); font-size: 16px; margin: 14px 0; }
.prose p strong { color: var(--text); }
.prose ul { color: var(--muted); font-size: 16px; padding-left: 20px; margin: 14px 0; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--accent); }
.prose h3 { font-size: 19px; margin: 26px 0 6px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 17px; margin-bottom: 5px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature .ico { font-size: 22px; }
.feature h3 { font-size: 16px; margin: 10px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* «до / после» — главный аргумент этих страниц */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.compare-col.after { border-color: rgba(255, 122, 61, 0.35); background: linear-gradient(180deg, var(--surface2), var(--surface)); }
.compare-col h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.compare-col.after h3 { color: var(--accent); }
.compare-col ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.compare-col li { margin: 7px 0; }
.compare-col.after li::marker { color: var(--accent); }

/* FAQ — размечен как FAQPage, поисковик умеет показывать его прямо в выдаче */
.faq-item { border-top: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 17px; margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* перелинковка между посадочными */
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; transition: border-color .15s ease; }
.related a:hover { border-color: var(--accent); }
.related strong { display: block; font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.related span { color: var(--muted); font-size: 14px; }

.closing { text-align: center; background: linear-gradient(180deg, var(--surface2), var(--surface)); border: 1px solid var(--border); border-radius: 24px; padding: 44px 24px; margin: 56px 0 0; }
.closing h2 { font-size: clamp(23px, 4vw, 30px); font-weight: 700; }
.closing p { color: var(--muted); max-width: 460px; margin: 14px auto 0; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 50px; }
footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 560px) {
  .features, .compare, .related { grid-template-columns: 1fr; }
  .nav-row { flex-wrap: wrap; gap: 12px 0; padding-bottom: 16px; }
  .nav-links { order: 3; width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 10px 12px; }
  .nav-links a { font-size: 13px; }
}
