/* SEO-site — легкий (no WebGL), быстрый, читаемый.
   Наследует lusion-эстетику от портфолио-сайта: dark + lime + display-typo. */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --fg: #ededed;
  --fg-dim: rgba(237,237,237,0.62);
  --fg-faint: rgba(237,237,237,0.35);
  --accent: #c9f31d;
  --accent-dim: rgba(201,243,29,0.15);
  --border: rgba(237,237,237,0.1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --max-w-read: 720px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #000; }

/* ===== TOP BAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; color: var(--fg);
}
.brand-mark {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 12px var(--accent);
}
.brand sup { font-size: 9px; opacity: 0.5; }
.nav-main {
  display: flex; gap: 24px;
  font-size: 14px;
}
.nav-main a {
  color: var(--fg-dim);
  transition: color 0.2s;
}
.nav-main a:hover, .nav-main a.active { color: var(--fg); opacity: 1; }
.topbar-cta {
  padding: 8px 16px;
  background: var(--accent); color: #000;
  border-radius: 100px; font-weight: 500; font-size: 13px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.topbar-cta:hover {
  box-shadow: 0 8px 24px rgba(201,243,29,0.35);
  transform: translateY(-1px); opacity: 1;
}

/* ===== BASE CONTAINER ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-read { max-width: var(--max-w-read); margin: 0 auto; padding: 0 24px; }

/* ===== BREADCRUMBS ===== */
.crumbs {
  padding: 20px 0 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-faint); letter-spacing: 0.03em;
}
.crumbs a { color: var(--fg-faint); }
.crumbs a:hover { color: var(--accent); opacity: 1; }
.crumbs span { color: var(--fg-dim); margin: 0 6px; }

/* ===== HERO (SEO homepage) ===== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 20%; left: 60%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,243,29,0.22) 0%, transparent 60%);
  filter: blur(60px);
  animation: heroGlow 12s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-52%, -48%) scale(1.15); opacity: 0.75; }
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 880px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.05em;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent) 0%, #6b8a0a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--fg-dim); line-height: 1.55;
  max-width: 640px; margin-bottom: 36px;
}
.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px;
  font-weight: 500; font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(201,243,29,0.35);
  transform: translateY(-2px); opacity: 1;
}
.btn-ghost {
  border-color: var(--border); color: var(--fg-dim);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--fg); opacity: 1;
}
.hero-trust {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.trust-item strong {
  font-family: var(--font-display); font-weight: 500;
  display: block; font-size: 22px;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.trust-item strong.accent { color: var(--accent); }
.trust-item span {
  font-size: 12px; color: var(--fg-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section-head {
  margin-bottom: 40px;
  max-width: 780px;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-faint); letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: ""; width: 20px; height: 1px;
  background: var(--accent);
}
.section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-lede {
  color: var(--fg-dim); font-size: 17px; line-height: 1.55;
  max-width: 640px;
}

/* ===== SERVICES GRID (homepage) ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-block {
  display: block;
  padding: 28px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  transition: border-color 0.3s, transform 0.3s;
}
.service-block:hover {
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-3px);
  opacity: 1;
}
.service-block h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-block h3 em {
  font-style: normal; color: var(--accent);
  font-size: 12px; font-family: var(--font-mono);
  letter-spacing: 0.05em; margin-left: 8px;
  vertical-align: middle;
}
.service-block p {
  color: var(--fg-dim); font-size: 14px;
  line-height: 1.5; margin-bottom: 16px;
}
.service-block .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.03em;
}

/* ===== CASES ROW ===== */
.cases-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-card {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.3s;
}
.case-card:hover { border-color: rgba(255,255,255,0.25); opacity: 1; }
.case-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-faint); letter-spacing: 0.05em;
}
.case-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
}
.case-card p {
  color: var(--fg-dim); font-size: 14px;
  line-height: 1.5;
}
.case-metric {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ===== ARTICLE PAGE (service / blog / case) ===== */
.article {
  padding: 40px 0 80px;
}
.article-head {
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.article-head h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 900px;
}
.article-lede {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--fg-dim);
  line-height: 1.55;
  max-width: 780px;
  margin-bottom: 32px;
}
.article-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-faint); letter-spacing: 0.04em;
}
.article-meta strong { color: var(--fg-dim); font-weight: 400; }

/* Article prose (long-form text within container-read) */
.prose {
  font-size: 17px; line-height: 1.65;
  color: var(--fg);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2; letter-spacing: -0.02em;
  margin-top: 2.2em; margin-bottom: 0.6em;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 22px;
  line-height: 1.25; letter-spacing: -0.01em;
  margin-top: 1.8em; margin-bottom: 0.5em;
  scroll-margin-top: 100px;
}
.prose h4 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 18px;
  margin-top: 1.5em; margin-bottom: 0.4em;
}
.prose p { color: var(--fg); }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol {
  padding-left: 24px;
  color: var(--fg);
}
.prose ul li, .prose ol li { margin-bottom: 0.4em; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent); font-family: var(--font-mono); }
.prose strong { color: #fff; font-weight: 600; }
.prose em { font-style: italic; color: var(--fg); }
.prose code {
  font-family: var(--font-mono);
  background: rgba(201,243,29,0.12);
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.9em; color: var(--accent);
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 20px 0;
  color: var(--fg-dim);
  font-style: italic;
  background: rgba(201,243,29,0.04);
  border-radius: 0 8px 8px 0;
}
.prose table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.prose th, .prose td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose th {
  font-family: var(--font-display); font-weight: 500;
  color: var(--fg); background: var(--bg-2);
}
.prose td { color: var(--fg-dim); }
.prose td strong { color: var(--fg); }
.prose hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 32px 0;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Callout boxes inside prose */
.callout {
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  margin: 24px 0;
}
.callout-title {
  font-family: var(--font-display); font-weight: 500;
  color: var(--accent); font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.callout p { font-size: 15px; color: var(--fg-dim); }

/* Article side TOC (desktop) */
.article-with-toc {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 60px;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px;
}
.article-with-toc > .prose { max-width: 720px; }
.toc {
  position: sticky; top: 90px;
  align-self: start;
  font-size: 13px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.toc-title {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-faint); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 12px;
}
.toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: 6px; }
.toc a {
  color: var(--fg-dim); font-size: 13px;
  line-height: 1.4; display: block; padding: 4px 0;
  text-decoration: none;
}
.toc a:hover { color: var(--accent); opacity: 1; }

/* ===== INLINE CTA (in-article) ===== */
.inline-cta {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, rgba(201,243,29,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px; align-items: center;
}
.inline-cta-text h4 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  margin-bottom: 6px;
}
.inline-cta-text p {
  font-size: 14px; color: var(--fg-dim);
}

/* ===== FAQ ===== */
.faq-list {
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(201,243,29,0.35); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500; font-size: 17px;
  color: var(--fg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px; font-weight: 300;
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 24px 20px;
  color: var(--fg-dim);
  font-size: 15px; line-height: 1.55;
}
.faq-body p + p { margin-top: 10px; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,243,29,0.15), transparent 60%);
  filter: blur(60px);
  z-index: 0;
}
.cta-section-inner { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--fg-dim); font-size: 17px;
  max-width: 520px; margin: 0 auto 32px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--fg-dim); font-size: 14px;
  line-height: 1.5; margin-top: 12px;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 12px;
}
.footer-col a {
  display: block; margin-bottom: 8px;
  color: var(--fg-dim); font-size: 14px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.05em;
  color: var(--fg-faint); flex-wrap: wrap; gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services, .cases-row { grid-template-columns: repeat(2, 1fr); }
  .article-with-toc { grid-template-columns: 1fr; gap: 20px; }
  .toc { display: none; }
  .inline-cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 12px 18px; gap: 12px; }
  .nav-main { display: none; }
  .brand { font-size: 14px; }
  .topbar-cta { padding: 7px 12px; font-size: 12px; }

  .container, .container-read { padding: 0 18px; }
  .hero { padding: 60px 0 40px; }
  .hero-cta-row .btn { padding: 12px 18px; font-size: 14px; }
  .hero-trust { gap: 24px; }
  .trust-item strong { font-size: 18px; }

  .section { padding: 60px 0; }
  .services, .cases-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
