/* ══════════════════════════════════════════════════════════════════════
   Landing page — clean redesign

   Design principles:
   - Generous whitespace between sections (100-120px vertical)
   - Max-width constraints for readability
   - Uses project CSS variables from base.css exclusively
   - No --surface (undefined) — use --bg-card, --bg-surface, --bg-input
   - Apple-style: subtle borders, soft hovers, restrained color
   ══════════════════════════════════════════════════════════════════════ */

/* ── Section rhythm ─────────────────────────────────────────────────── */
/* Every major section gets consistent vertical padding and a centered
   container.  .landing-section is a utility applied to each <section>. */

.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Section vertical spacing — generous breathing room */
.landing-section + .landing-section {
  margin-top: 100px;
}

/* ── Section headings (unified h2 + subtitle) ───────────────────────── */
.section-heading {
  font-family: var(--font-heading);
  font-size: calc(var(--fs-base) + 14px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  text-wrap: balance;
}

.section-subtitle {
  font-size: var(--fs-xl);
  color: var(--text-dim);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* Длинный описательный абзац под section-heading (или после subtitle) */
.section-intro {
  font-size: var(--fs-md);
  color: var(--text-dim);
  text-align: center;
  max-width: 740px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.section-intro a,
.how-step p a,
.compare-card p a,
.persona-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--dur-fast) var(--ease);
}
.section-intro a:hover,
.how-step p a:hover,
.compare-card p a:hover,
.persona-list a:hover {
  opacity: 0.8;
}
.section-intro a:focus-visible,
.how-step p a:focus-visible,
.compare-card p a:focus-visible,
.persona-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ══════════════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}
.light .hero::before {
  opacity: 0.5;
}

/* Main headline — large, tight, punchy */
.hero h1 {
  font-size: calc(var(--fs-base) + 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--text) 40%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent color on the key phrase */
.hero h1 span {
  -webkit-text-fill-color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

/* Subtitle — softer, readable, constrained width */
.hero p {
  font-size: calc(var(--fs-base) + 3px);
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* "7 дней Pro бесплатно" caption under demo */
.hero-sub {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-full-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.hero-full-link:hover {
  opacity: 0.85;
  gap: 10px;
}

/* ── Mid-page CTA (как в тулзах) ── */
.tool-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
  background: rgba(13, 27, 20, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.light .tool-cta {
  background: rgba(250,250,245,0.90);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.tool-cta h2 {
  font-size: calc(var(--fs-base) + 6px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.tool-cta p {
  font-size: var(--fs-lg);
  color: var(--text-dim);
  margin: 0 0 20px;
}
.tool-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: var(--fs-xl);
  font-weight: 600;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent), #fff 10%) 0%, var(--accent) 50%, color-mix(in srgb, var(--accent), #000 20%) 100%);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: filter var(--dur-fast), transform var(--dur-fast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 4px 12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.tool-cta-btn:hover {
  filter: brightness(1.15);
  text-decoration: none;
}
.tool-cta-btn:active {
  transform: scale(0.97);
}
.tool-cta-alt {
  margin-top: 16px;
  font-size: var(--fs-base);
  color: var(--text-dim);
}
.tool-cta-alt a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.tool-cta-alt a:hover {
  text-decoration-thickness: 2px;
}
.tool-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tool-cta-btn-alt {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.tool-cta-btn-alt:hover {
  filter: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: none;
}

/* Final CTA — две равные кнопки (аудит + консультация) */
.final-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.final-cta .final-cta-btn-alt {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.final-cta .final-cta-btn-alt:hover {
  filter: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ── Что вы получите — сетка карточек ── */
.result-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.result-card {
  flex: 0 1 calc((100% - 40px) / 3);
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.result-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  margin-bottom: 14px;
}
.result-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.result-card p {
  font-size: var(--fs-md);
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .result-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
  .result-card { flex-basis: 100%; }
}

/* Trust badges — subtle horizontal strip */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 32px;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Metric chips — examples of what the audit checks */
.hero-metrics-wrap {
  position: relative;
  max-width: 760px;
  margin: 20px auto 0;
  padding: 0 16px;
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.hero-metric {
  font-size: calc(var(--fs-base) - 3px);
  line-height: 1.3;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
button.hero-metric {
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
button.hero-metric:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
}
button.hero-metric:active {
  transform: scale(0.97);
}
button.hero-metric.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-card));
}
.hero-metric-more {
  color: var(--text-dim);
  border-color: var(--border);
  background: transparent;
}

/* Detail panel — absolute, floats below chips without pushing content */
.hero-metrics-detail {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: min(480px, calc(100% - 24px));
  padding: 8px 28px 8px 12px;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 12;
  animation: heroDetailIn 0.18s ease;
  transform: translateX(-50%);
}
@keyframes heroDetailIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-metrics-detail .hero-metrics-detail-title {
  margin: 0 0 3px;
  font-size: calc(var(--fs-base) - 1px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.hero-metrics-detail .hero-metrics-detail-text {
  margin: 0;
  max-width: none;
  color: var(--text-dim);
  line-height: 1.4;
  font-size: calc(var(--fs-base) - 3px);
  font-weight: 400;
}
.hero-metrics-detail .hero-metrics-detail-link {
  display: block;
  margin-top: 5px;
  text-align: right;
  color: var(--accent);
  font-size: calc(var(--fs-base) - 3px);
  font-weight: 500;
  text-decoration: none;
}
.hero-metrics-detail-link:hover {
  text-decoration: underline;
}
.hero-metrics-detail-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.hero-metrics-detail-close:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .hero-metrics-detail { animation: none; }
}


/* ── Demo widget (input + output) ───────────────────────────────────── */
/* The demo input row and output are already well-styled.
   Only minor refinements for consistency with the new spacing. */

.demo-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.demo-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-input {
  flex: 1;
  padding: 13px 16px;
  background: rgba(13, 27, 20, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-lg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.light .demo-input {
  background: rgba(250,250,245,0.88);
  border-color: transparent;
  box-shadow: var(--shadow-xs);
}
.demo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.demo-input::placeholder { color: var(--text-muted); }

.demo-btn {
  padding: 13px 28px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: var(--fs-lg);
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.demo-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.demo-btn:active { transform: scale(0.97); }
.demo-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Demo output container — Crystal Glow */
.demo-output {
  display: none;
  background: rgba(13, 27, 20, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.demo-output.visible { display: block; }
.light .demo-output {
  background: rgba(250,250,245,0.90);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* Log area */
.demo-log {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  min-height: 72px;
  max-height: 140px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.demo-log::-webkit-scrollbar { width: 6px; }
.demo-log::-webkit-scrollbar-track { background: transparent; }
.demo-log::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.demo-log::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.demo-log-line { padding: 1px 0; animation: fadeIn 0.15s ease; }
.demo-log-line.ok { color: var(--green); }
.demo-log-line.err { color: var(--red); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Results area */
.demo-results { display: none; padding: 14px; }
.demo-results.visible { display: block; }

/* ── Health Score block ── */
.demo-score-block {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.demo-score-ring {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}
.demo-score-ring svg { display: block; }
.demo-score-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}
.demo-score-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(.2,.8,.2,1), stroke 0.3s;
}
.demo-score-ring-fill.ok   { stroke: var(--green); }
.demo-score-ring-fill.warn { stroke: var(--yellow); }
.demo-score-ring-fill.err  { stroke: var(--red); }
.demo-score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.demo-score-ring-num {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.demo-score-ring-num.ok   { color: var(--green); }
.demo-score-ring-num.warn { color: var(--yellow); }
.demo-score-ring-num.err  { color: var(--red); }
.demo-score-ring-label {
  font-size: calc(var(--fs-base) - 4px);
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.demo-score-summary {
  flex: 1;
  min-width: 0;
}
.demo-score-title {
  font-size: calc(var(--fs-base) + 2px);
  font-weight: 600;
  color: var(--text);
}
.demo-score-sub {
  font-size: calc(var(--fs-base) - 2px);
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 8px;
}
.demo-score-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: calc(var(--fs-base) - 3px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  line-height: 1.4;
}
.demo-chip-mark {
  font-weight: 700;
  font-size: calc(var(--fs-base) - 2px);
  line-height: 1;
}
.demo-chip.ok   { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); color: var(--green); }
.demo-chip.warn { border-color: color-mix(in srgb, var(--yellow) 40%, var(--border)); color: var(--yellow); }
.demo-chip.err  { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); color: var(--red); }

@media (max-width: 560px) {
  .demo-score-block { flex-direction: column; align-items: stretch; text-align: center; }
  .demo-score-ring { align-self: center; }
  .demo-score-chips { justify-content: center; }
}

.demo-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.demo-result-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.demo-result-num {
  font-size: calc(var(--fs-base) + 6px);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
  line-height: 1.2;
}
.demo-result-label {
  font-size: calc(var(--fs-base) - 3px);
  color: var(--text-muted);
  margin-top: 3px;
}
.demo-result-stat.ok   .demo-result-num { color: var(--green); }
.demo-result-stat.warn .demo-result-num { color: var(--yellow); }
.demo-result-stat.err  .demo-result-num { color: var(--red); }

/* ── Hero v2: mini-блок «Безопасность и скорость» ─────────────────────── */
.demo-security-block {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.demo-security-title {
  font-family: var(--font-body);
  font-size: calc(var(--fs-base) - 3px);
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}
.demo-security-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.demo-result-hint {
  font-size: calc(var(--fs-base) - 3px);
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.demo-result-hint a { color: var(--accent); }

/* SEO fields breakdown */
.demo-seo-fields {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: var(--fs-sm);
}
.demo-seo-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.demo-seo-row:last-child { border-bottom: none; }
.demo-seo-key {
  flex-shrink: 0;
  width: 100px;
  color: var(--text-muted);
  font-size: calc(var(--fs-base) - 3px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.demo-seo-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font);
  font-size: var(--fs-sm);
}
.demo-seo-val.missing { color: var(--red); font-style: italic; }
.demo-seo-val.warn    { color: var(--yellow); }
.demo-seo-len {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--mono);
}
.demo-seo-len.ok   { color: var(--green); }
.demo-seo-len.warn { color: var(--yellow); }
.demo-seo-len.err  { color: var(--red); }

/* CTA inside demo results */
.demo-cta-block { text-align: center; }
.demo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-lg);
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
  margin-bottom: 6px;
}
.demo-cta:hover { filter: brightness(1.1); text-decoration: none; }
.demo-cta:active { transform: scale(0.97); }
.demo-cta-sub { font-size: calc(var(--fs-base) - 3px); color: var(--text-muted); }

/* Persistent secondary CTA under the demo — auto-width, outline, lighter than primary */
.demo-cta-secondary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 9px 24px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.demo-cta-secondary:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  text-decoration: none;
}
.demo-cta-secondary:active { transform: scale(0.97); }
.demo-cta-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ══════════════════════════════════════════════════════════════════════
   2. FEATURES — 6-card grid
   ══════════════════════════════════════════════════════════════════════ */

/* Container uses .landing-section for max-width + padding */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Crystal Glow */
.feature-card {
  background: rgba(13, 27, 20, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease),
              transform var(--dur-mid) var(--ease);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Light mode: shadow-driven depth */
.light .feature-card {
  background: rgba(250, 250, 245, 0.88);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.light .feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* Icon: SVG in accent-tinted container */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 16px;
}

/* Title */
.feature-title {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Description */
.feature-desc {
  font-size: var(--fs-md);
  color: var(--text-dim);
  line-height: 1.55;
}


/* ══════════════════════════════════════════════════════════════════════
   2.5  PROBLEMS — pain-point cards (Problem-Agitate section)
   ══════════════════════════════════════════════════════════════════════ */

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, background 0.15s;
}

.problem-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-dim);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.problem-card h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.problem-card p {
  font-size: var(--fs-md);
  color: var(--text-dim);
  line-height: 1.55;
}


/* ══════════════════════════════════════════════════════════════════════
   2.7  FEATURES DEEP DIVE — alternating text/visual blocks
   ══════════════════════════════════════════════════════════════════════ */

.features-deep .feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.features-deep .feature-block + .feature-block {
  margin-top: 64px;
}

/* Alternate: even blocks reverse order (visual left, text right) */
.features-deep .feature-block:nth-child(even) {
  direction: rtl;
}
.features-deep .feature-block:nth-child(even) > * {
  direction: ltr;
}

/* ── Text column ── */
.feature-block-text h3 {
  font-size: calc(var(--fs-base) + 6px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.feature-block-text p {
  font-size: var(--fs-lg);
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-block-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-block-bullets li {
  font-size: var(--fs-md);
  color: var(--text-dim);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.feature-block-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-block-link {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.feature-block-link:hover {
  opacity: 0.8;
}

/* ── Visual — mockup window ── */
.feature-block-visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.feature-block-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ── Inline SVG illustrations in feature blocks ── */
.feature-block-illust {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px;
  box-sizing: border-box;
}

.feature-block-illust .illust {
  width: 100%;
  height: 100%;
  display: block;
}


/* ══════════════════════════════════════════════════════════════════════
   3. HOW IT WORKS — 3 horizontal steps
   ══════════════════════════════════════════════════════════════════════ */

.how-section {
  /* Uses .landing-section wrapper for max-width */
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  scroll-margin-top: 80px;
}

/* Connector arrow between steps (desktop only, wide viewports) */
@media (min-width: 1100px) {
  .how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    transform: rotate(-45deg);
  }
}

/* Step number — circle with accent border */
.how-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: calc(var(--fs-base) + 4px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.how-step h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: 8px;
}

.how-step p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 260px;
}


/* ══════════════════════════════════════════════════════════════════════
   4. PRICING — 3 cards (Free / Pro / Max)
   ══════════════════════════════════════════════════════════════════════ */

.pricing-section {
  padding: 0;
  text-align: center;
}

/* Override section-heading/subtitle if using them inline */
.pricing-section h2 {
  font-size: calc(var(--fs-base) + 14px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.pricing-subtitle {
  font-size: var(--fs-xl);
  color: var(--text-dim);
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

/* 3-column layout for landing */
.pricing-section .pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
}

/* Price discount row */
.pricing-section .price-discount {
  height: 22px;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.pricing-section .price-discount.visible {
  opacity: 1;
}
.pricing-section .price-old {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pricing-section .price-save {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
}

/* Tablet: tighter 3-col pricing */
@media (min-width: 769px) and (max-width: 1024px) {
  .pricing-section .pricing-grid-3 {
    gap: 12px;
  }
  .pricing-section .pricing-grid-3 .pricing-card {
    padding: 28px 20px;
  }
}

/* Crystal Glow */
.pricing-card {
  background: rgba(13, 27, 20, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.pricing-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.light .pricing-card {
  background: rgba(250, 250, 245, 0.90);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.light .pricing-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.light .pricing-card.featured {
  background: rgba(26, 150, 72, 0.05);
  border-color: rgba(26, 150, 72, 0.25);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}
.light .pricing-card.featured:hover {
  box-shadow: var(--shadow-lg);
}

/* Neon Edge — featured pricing */
.pricing-card.featured {
  background: rgba(13, 27, 20, 0.94);
  border-color: rgba(52, 211, 153, 0.5);
  border-width: 2px;
  box-shadow: 0 -4px 20px rgba(52,211,153,0.2), 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 -4px 28px rgba(52,211,153,0.25), 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: scale(1.03) translateY(-2px);
}

.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: calc(var(--fs-base) - 3px);
  font-weight: 600;
  padding: 4px 18px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.pricing-name {
  font-size: var(--fs-md);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: calc(var(--fs-base) + 24px);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -1px;
}
.pricing-card.featured .pricing-price {
  color: var(--accent);
}

.pricing-price span {
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-price .price-val {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.pricing-desc {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  padding: 6px 0;
  font-size: var(--fs-md);
  color: var(--text);
}

.pricing-features li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
  margin-right: 10px;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled::before {
  content: "\2014";
  color: var(--text-muted);
}

.pricing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  font-family: var(--font);
  font-size: var(--fs-lg);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--dur-fast), transform var(--dur-fast);
}
.pricing-btn:active { transform: scale(0.97); }

.pricing-btn-outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
}
.pricing-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pricing-btn-primary {
  background: var(--accent);
  border: none;
  color: var(--on-accent);
  box-shadow: 0 2px 12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.pricing-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Карточки тарифов (partials/pricing_cards.html): плашка включённого объёма, группы фич, условия */
.pricing-wallet {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-xl);
  background: var(--accent-glow); border-radius: var(--radius-sm);
  font-size: var(--fs-sm); color: var(--text); line-height: 1.45; text-align: left;
}
.pricing-wallet b { font-weight: 700; }
.pricing-wallet svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.pricing-wallet-sub { display: block; color: var(--text-dim); font-size: var(--fs-xs); margin-top: 2px; }
.pricing-body { flex: 1; margin-bottom: var(--space-xl); }
.pricing-body .pricing-features { margin-bottom: var(--space-lg); flex: none; }
.pricing-body .pricing-features:last-child { margin-bottom: 0; }
.pricing-group {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: var(--space-2xs);
}
.price-year { font-size: var(--fs-xs); color: var(--text-dim); margin-left: var(--space-xs); }
.pricing-terms {
  max-width: 760px; margin: var(--space-xl) auto 0;
  display: flex; flex-direction: column; gap: var(--space-sm); text-align: left;
}
.pricing-terms p {
  display: flex; align-items: flex-start; gap: var(--space-sm); margin: 0;
  font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.5;
}
.pricing-terms svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.pricing-note {
  text-align: center;
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-top: 20px;
}
.pricing-all-link {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--fs-md);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.pricing-all-link:hover {
  text-decoration: underline;
}


/* ══════════════════════════════════════════════════════════════════════
   3.5  HOW CTA — button below steps
   ══════════════════════════════════════════════════════════════════════ */

.how-cta {
  text-align: center;
  margin-top: 40px;
}

.how-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-xl);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s;
}
.how-cta-btn:hover { filter: brightness(1.1); }
.how-cta-btn:active { transform: scale(0.97); }


/* ══════════════════════════════════════════════════════════════════════
   4.5  COMPARE — comparison table (3 approaches × criteria)
   ══════════════════════════════════════════════════════════════════════ */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-md);
  line-height: 1.5;
  table-layout: fixed;
}

/* Column proportions: first narrow (criteria), rest equal */
.compare-table col,
.compare-table th,
.compare-table td { word-wrap: break-word; }

.compare-table thead .compare-th-label { width: 18%; }
.compare-table thead th:not(.compare-th-label) { width: 27.33%; }

/* Head row */
.compare-head-row th {
  text-align: left;
  vertical-align: top;
  padding: 20px 18px;
  background: rgba(13, 27, 20, 0.55);
  border-bottom: 1px solid rgba(30, 58, 46, 0.6);
  font-weight: 600;
}
.light .compare-head-row th {
  background: rgba(250, 250, 245, 0.85);
  border-bottom-color: var(--border);
}
.compare-head-row th:first-child { background: transparent; border-bottom: none; }

.compare-head-row th:not(:first-child) {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.compare-col-title {
  font-size: calc(var(--fs-base) + 2px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.compare-col-sub {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.5;
}
.compare-col-sub a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(52,211,153,0.35);
  transition: opacity var(--dur-fast) var(--ease);
}
.compare-col-sub a:hover { opacity: 0.8; }

/* Accent column highlight (head + body cells share background) */
.compare-col-accent,
.compare-cell-accent {
  background: rgba(52, 211, 153, 0.08) !important;
}
.light .compare-col-accent,
.light .compare-cell-accent {
  background: rgba(22, 163, 74, 0.06) !important;
}
.compare-col-accent {
  box-shadow: inset 0 0 0 1px rgba(52,211,153,0.3);
}

/* Body rows */
.compare-table tbody th {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  font-weight: 500;
  color: var(--text-dim);
  border-top: 1px solid rgba(30,58,46,0.35);
  width: 18%;
}
.compare-table tbody td {
  padding: 14px 18px;
  vertical-align: top;
  color: var(--text);
  border-top: 1px solid rgba(30,58,46,0.35);
}
.light .compare-table tbody th,
.light .compare-table tbody td {
  border-top-color: var(--border);
}

.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th {
  background: rgba(255,255,255,0.02);
}
.light .compare-table tbody tr:hover td,
.light .compare-table tbody tr:hover th {
  background: rgba(0,0,0,0.02);
}
.compare-table tbody tr:hover .compare-cell-accent {
  background: rgba(52, 211, 153, 0.12) !important;
}

/* Marks */
.compare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.compare-mark svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.compare-mark.ok {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green, #34d399);
}
.compare-mark.no {
  background: rgba(248, 113, 113, 0.14);
  color: var(--red, #f87171);
}
.light .compare-mark.ok { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.light .compare-mark.no { background: rgba(220, 38, 38, 0.10); color: #dc2626; }

/* Hanging indent: wrapped text aligns with the first-line text, not under the icon.
   -32px = icon 20 + margin 8 + inline whitespace ~4 between </span> and text. */
.compare-table tbody td:has(.compare-mark) {
  padding-left: 50px;
  text-indent: -32px;
}

/* Accent column — rounded bottom corners on last row */
.compare-table tbody tr:last-child .compare-cell-accent {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* ── Mobile: transform table into stacked cards ─────────────────────── */
@media (max-width: 768px) {
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: 100%; }

  .compare-table thead { display: none; }

  .compare-table tbody tr {
    background: rgba(13, 27, 20, 0.55);
    border: 1px solid rgba(30, 58, 46, 0.5);
    border-radius: var(--radius);
    margin-bottom: 14px;
    padding: 14px 16px;
  }
  .light .compare-table tbody tr {
    background: rgba(250, 250, 245, 0.9);
    border-color: var(--border);
  }

  .compare-table tbody th {
    width: 100%;
    padding: 0 0 8px;
    border: none;
    color: var(--text);
    font-weight: 700;
    font-size: calc(var(--fs-base) + 1px);
  }

  .compare-table tbody td {
    padding: 6px 0 6px 120px;
    border: none;
    position: relative;
    font-size: var(--fs-md);
  }
  .compare-table tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 6px;
    width: 110px;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    text-indent: 0;
  }
  .compare-table tbody td.compare-cell-accent {
    background: rgba(52,211,153,0.08) !important;
    border-radius: 6px;
    padding: 8px 8px 8px 120px;
  }
  .compare-table tbody td.compare-cell-accent::before {
    left: 8px;
    top: 8px;
  }
  .light .compare-table tbody td.compare-cell-accent {
    background: rgba(22,163,74,0.06) !important;
  }

  /* Hanging indent on mobile: 120px label + 32px icon-footprint (incl. whitespace) */
  .compare-table tbody td:has(.compare-mark) {
    padding-left: 152px;
    text-indent: -32px;
  }
  .compare-table tbody td.compare-cell-accent:has(.compare-mark) {
    padding-left: 152px;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   4.7  PERSONAS — 3 audience cards
   ══════════════════════════════════════════════════════════════════════ */

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.persona-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.persona-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--accent-alpha, color-mix(in srgb, var(--accent) 12%, transparent));
  color: var(--accent);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.persona-card h3 {
  font-size: calc(var(--fs-base) + 2px);
  font-weight: 700;
  margin-bottom: 8px;
  text-wrap: balance;
}

.persona-card p {
  font-size: var(--fs-md);
  color: var(--text-dim);
  line-height: 1.55;
}

.persona-list {
  list-style: none;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.persona-list li {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}

/* Расширяем touch-target для inline-ссылок в списке (WCAG 2.2 AA 24×24px) */
.persona-list a {
  display: inline-block;
  padding: 2px 0;
}

.persona-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
}


/* ══════════════════════════════════════════════════════════════════════
   4.9  FINAL CTA — description line
   ══════════════════════════════════════════════════════════════════════ */

.final-cta-desc {
  font-size: var(--fs-xl);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 28px;
}


/* ══════════════════════════════════════════════════════════════════════
   4.10  FOOTER — 3 columns
   ══════════════════════════════════════════════════════════════════════ */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: var(--fs-md);
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════════════
   5. FAQ — accordion (kept, cleaned up)
   ══════════════════════════════════════════════════════════════════════ */

.faq-section {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.faq-section h2 {
  font-size: calc(var(--fs-base) + 14px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.3px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.faq-item.open {
  border-color: var(--border-hover);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: var(--fs-lg);
  font-weight: 500;
  user-select: none;
  gap: 12px;
  transition: background var(--dur-fast);
}

.faq-q:hover { background: var(--bg-card); }

.faq-chevron {
  display: inline-flex;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: var(--fs-md);
  color: var(--text-dim);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.faq-item.open .faq-a {
  display: block;
  padding-top: 14px;
}

.faq-a a {
  color: var(--accent);
  text-decoration: none;
}
.faq-a a:hover { text-decoration: underline; }

.faq-more {
  text-align: center;
  margin-top: 24px;
  font-size: var(--fs-md);
  color: var(--text-muted);
}

.faq-more a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.faq-more a:hover { text-decoration-thickness: 2px; }


/* ══════════════════════════════════════════════════════════════════════
   6. FINAL CTA — subtle background block
   ══════════════════════════════════════════════════════════════════════ */

/* Gradient Wash — final CTA */
.final-cta {
  text-align: center;
  padding: 64px 32px;
  margin: 100px auto 0;
  max-width: 1100px;
  background: linear-gradient(135deg, rgba(52,211,153,0.12) 0%, rgba(13,27,20,0.8) 60%);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.light .final-cta {
  background: linear-gradient(135deg, rgba(26,150,72,0.07) 0%, rgba(250,250,245,0.92) 60%);
  box-shadow: var(--shadow-sm);
}

.final-cta h2 {
  font-size: calc(var(--fs-base) + 12px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.final-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-xl);
  border-radius: var(--radius);
  text-decoration: none;
  transition: filter var(--dur-fast), transform var(--dur-fast);
}
.final-cta-btn:hover { filter: brightness(1.1); text-decoration: none; }
.final-cta-btn:active { transform: scale(0.97); }

.final-cta-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-top: 12px;
}


/* ══════════════════════════════════════════════════════════════════════
   7. FOOTER (kept, minor cleanup)
   ══════════════════════════════════════════════════════════════════════ */

.footer {
  text-align: center;
  padding: 48px 24px;
  margin-top: 100px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-md);
  color: var(--text-muted);
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-md);
  transition: color var(--dur-fast);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  gap: 16px;
  margin-bottom: 12px;
}
.footer-legal a {
  font-size: calc(var(--fs-base) - 3px);
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-muted);
}


/* ══════════════════════════════════════════════════════════════════════
   REMOVED SECTIONS (styles kept as stubs to avoid JS errors)
   - .features-explorer / .features-section — replaced by .features-grid
   - .preview-section — removed from page
   ══════════════════════════════════════════════════════════════════════ */

/* Legacy: features-explorer (tabbed preview) — hidden */
.features-section { display: none; }
.features-explorer { display: none; }

/* Legacy: preview-section (table) — hidden */
.preview-section { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   1.5  STATS STRIP — social proof numbers between Hero and Features
   ══════════════════════════════════════════════════════════════════════ */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px;
  margin: 60px auto 80px;
  padding: 0 32px;
}

.stats-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.stats-strip-item + .stats-strip-item {
  border-left: 1px solid var(--border);
}

.stats-strip-num {
  font-size: calc(var(--fs-base) + 16px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.stats-strip-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════════════════
   LEGACY STUBS — keep these so old markup doesn't break mid-transition
   ══════════════════════════════════════════════════════════════════════ */

/* Nav (landing uses unified header.html now, but keep as fallback) */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: calc(var(--fs-base) + 4px); font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.3; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 12px; align-items: center; }

/* Theme toggle button */
.btn-theme {
  background: none;
  border: none;
  cursor: pointer;
  font-size: calc(var(--fs-base) + 2px);
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.btn-theme:hover { opacity: 1; }

/* Legacy hero-cta link (if still referenced somewhere) */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font);
  font-size: var(--fs-xl);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: filter var(--dur-fast);
}
.hero-cta:hover { filter: brightness(1.1); }

/* Legacy badge classes used by preview-section (now hidden) */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: calc(var(--fs-base) - 3px);
  font-weight: 600;
}
.badge-ok { background: rgba(63,185,80,0.15); color: var(--green); }
.badge-warn { background: rgba(210,153,34,0.15); color: var(--yellow); }
.badge-err { background: rgba(248,81,73,0.15); color: var(--red); }


/* ══════════════════════════════════════════════════════════════════════
   Free tools teaser — anchor cards linking to /tools/*
   Used on landing between stats-strip and "Эти ошибки" section.
   ══════════════════════════════════════════════════════════════════════ */

.tools-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.tools-teaser-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 96px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}

.tools-teaser-card:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
  text-decoration: none;
}

.tools-teaser-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.light .tools-teaser-card {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.light .tools-teaser-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 4px 16px var(--accent-glow);
}

.tools-teaser-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
}
.tools-teaser-icon svg { display: block; }

.tools-teaser-body { flex: 1; min-width: 0; }

.tools-teaser-card h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--text);
}

.tools-teaser-card p {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

.tools-teaser-more {
  display: flex;
  justify-content: center;
}

.tools-teaser-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 4px;
  transition: color var(--dur-fast);
}

.tools-teaser-more a:hover { text-decoration: underline; }

.tools-teaser-more a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* SEO-глоссарий на главной — компактные карточки-ссылки на /glossary/<slug>/ */
.glossary-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: 0 0 var(--space-2xl);
  padding: 0;
  list-style: none;
}
.glossary-teaser-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  height: 100%;
  min-height: 44px;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.glossary-teaser-card:hover { border-color: var(--accent); background: var(--bg-surface); text-decoration: none; }
.glossary-teaser-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.light .glossary-teaser-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.light .glossary-teaser-card:hover { border-color: var(--accent); }
.glossary-teaser-title { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; color: var(--text); }
.glossary-teaser-hint { font-size: var(--fs-sm); line-height: 1.4; color: var(--text-dim); }

/* Модули сервиса на главной — карточки-ссылки на /positions, /geo, /tools-pro/* (аудит — без ссылки, это главная) */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.modules-grid > li { display: flex; }
.module-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
  min-height: 44px;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
a.module-card:hover { border-color: var(--accent); background: var(--bg-surface); transform: translateY(-2px); text-decoration: none; }
a.module-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.light .module-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.light a.module-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.module-card--current { border-style: dashed; }
.light .module-card--current { border-color: var(--border); box-shadow: none; }
.module-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-2xs);
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
}
.module-card-icon svg { display: block; }
.module-card-name { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; color: var(--text); }
.module-card-desc { flex: 1; font-size: var(--fs-md); line-height: 1.5; color: var(--text-dim); }
.module-card-price { font-size: var(--fs-sm); font-weight: 500; color: var(--accent); }
.module-card--current .module-card-price { color: var(--text-dim); }
/* 7 карточек (все модули включены): 4 колонки, аудит на две — ровные ряды 4+4; на двух колонках — 2+2+2+2 */
@media (min-width: 1100px) { .modules-grid--n7 { grid-template-columns: repeat(4, 1fr); } }
.modules-grid--n7 > li:first-child { grid-column: span 2; }
@media (max-width: 1099px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules-grid--n7 > li:first-child { grid-column: auto; } }
@media (max-width: 560px) { .modules-grid { grid-template-columns: 1fr; } .module-card { padding: var(--space-md) var(--space-lg); } }


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Wide tablet / small desktop (769px — 1099px)
   Для 4-колоночных сеток, которые не влезают узкими — падаем на 2x2
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1099px) and (min-width: 769px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); max-width: 720px; gap: 32px 40px; }
  .personas-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (481px — 768px)
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  html, body { overflow-x: clip; }

  /* Reduce section spacing */
  .landing-section + .landing-section { margin-top: 72px; }
  .landing-section { padding: 0 20px; }

  /* Section headings */
  .section-heading { font-size: calc(var(--fs-base) + 10px); }
  .section-subtitle { font-size: var(--fs-lg); margin-bottom: 36px; }

  /* Hero */
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: var(--fs-metric); }
  .hero p { font-size: var(--fs-xl); margin-bottom: 32px; }
  .hero-badges { gap: 0 12px; margin-top: 28px; }
  .hero-metrics { gap: 6px; margin-top: 16px; max-width: 640px; }
  .hero-metric { font-size: calc(var(--fs-base) - 3px); padding: 4px 10px; }

  .stats-strip { max-width: 700px; padding: 0 20px; margin: 48px auto 60px; }
  .stats-strip-num { font-size: calc(var(--fs-base) + 10px); }
  .stats-strip-label { font-size: calc(var(--fs-base) - 3px); }

  /* Features: 2 columns */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feature-card { padding: 22px 20px; }

  /* Problems: 2 columns */
  .problems-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .problem-card { padding: 22px 20px; }

  /* Free tools teaser: 2 columns */
  .tools-teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .glossary-teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-teaser-card { padding: 18px 20px; min-height: 0; gap: 14px; }
  .tools-teaser-icon { width: 36px; height: 36px; }
  .tools-teaser-card h3 { font-size: var(--fs-lg); }
  .tools-teaser-card p { font-size: var(--fs-sm); }

  /* How it works: 2×2 grid */
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; max-width: 560px; }
  .how-step:not(:last-child)::after { display: none; }
  .how-num { width: 42px; height: 42px; font-size: calc(var(--fs-base) + 2px); }
  .how-step h3 { font-size: var(--fs-lg); }
  .how-step p { font-size: var(--fs-sm); }

  /* Section intro чуть мельче */
  .section-intro { font-size: var(--fs-sm); margin-bottom: 32px; }

  /* Pricing: stack to 1 column */
  .pricing-grid,
  .pricing-section .pricing-grid-3 {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card { padding: 24px 20px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-2px); }

  /* FAQ */
  .faq-section { padding: 0 20px; }
  .faq-section h2 { font-size: calc(var(--fs-base) + 10px); }

  /* Final CTA */
  .final-cta {
    margin-top: 72px;
    padding: 48px 20px;
    margin-left: 20px;
    margin-right: 20px;
    max-width: calc(100% - 40px);
  }
  .final-cta h2 { font-size: calc(var(--fs-base) + 8px); }

  /* Footer */
  .footer { padding: 36px 20px; margin-top: 72px; }

  /* Nav */
  .nav { padding: 16px 20px; }
  .nav-logo { font-size: calc(var(--fs-base) + 2px); }

  /* Features Deep Dive */
  .features-deep .feature-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .features-deep .feature-block:nth-child(even) {
    direction: ltr;
  }
  .features-deep .feature-block + .feature-block {
    margin-top: 48px;
  }
  .feature-block-text h3 { font-size: calc(var(--fs-base) + 4px); }

  /* Compare */
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-card { grid-row: auto; display: flex; flex-direction: column; }
  .compare-card-accent { order: -1; }

  /* Personas: 1 column, ширина ограничена для читаемости */
  .personas-grid { grid-template-columns: 1fr; gap: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }

  /* Pricing (override) */
  .pricing-section .pricing-grid-3 { grid-template-columns: 1fr; max-width: 380px; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr; gap: 24px; text-align: center; }

  /* Demo */
  .demo-input-row { flex-direction: column; }
  .demo-btn { width: 100%; }
  .demo-result-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤480px)
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .landing-section + .landing-section { margin-top: 56px; }
  .landing-section { padding: 0 16px; }

  .section-heading { font-size: calc(var(--fs-base) + 8px); }
  .section-subtitle { font-size: var(--fs-md); margin-bottom: 28px; }

  /* Hero */
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: calc(var(--fs-base) + 14px); letter-spacing: -0.3px; }
  .hero p { font-size: var(--fs-lg); margin-bottom: 28px; }
  .hero-badges { gap: 0 8px; margin-top: 24px; }
  .hero-metrics { gap: 5px; margin-top: 14px; padding: 0 12px; }
  .hero-metric { font-size: calc(var(--fs-base) - 4px); padding: 3px 9px; letter-spacing: 0; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 24px 0; max-width: 360px; padding: 0 16px; margin: 40px auto 48px; }
  .stats-strip-item { padding: 0 12px; }
  .stats-strip-item + .stats-strip-item { border-left: none; }
  .stats-strip-num { font-size: calc(var(--fs-base) + 10px); }

  /* Features: 1 column */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feature-card { padding: 20px 18px; }
  .feature-icon { width: 38px; height: 38px; border-radius: 8px; margin-bottom: 12px; }
  .feature-title { font-size: var(--fs-lg); }
  .feature-desc { font-size: var(--fs-sm); }

  /* Features Deep Dive */
  .features-deep .feature-block + .feature-block { margin-top: 40px; }
  .feature-block-text h3 { font-size: calc(var(--fs-base) + 3px); }
  .feature-block-text p { font-size: var(--fs-md); }
  .feature-block-bullets li { font-size: var(--fs-sm); }

  /* Mockups: compact for mobile */
  .mockup-body { padding: 12px; }
  .mockup-ring { width: 56px; height: 56px; }
  .mockup-audit-body { gap: 12px; }
  .mockup-row { padding: 3px 6px; font-size: calc(var(--fs-xs) - 1px); }
  .mockup-chart { height: 44px; }
  .mockup-file { width: 52px; height: 62px; }
  .mockup-file-ext { font-size: calc(var(--fs-xs) - 1px); }

  /* Problems: 1 column */
  .problems-grid { grid-template-columns: 1fr; gap: 10px; }
  .problem-card { padding: 20px 18px; }
  .problem-card h3 { font-size: var(--fs-lg); }
  .problem-card p { font-size: var(--fs-sm); }

  /* Free tools teaser: 1 column */
  .tools-teaser-grid { grid-template-columns: 1fr; gap: 10px; }
  .glossary-teaser-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .glossary-teaser-card { justify-content: center; padding: var(--space-sm) var(--space-md); }
  .glossary-teaser-hint { display: none; }
  .tools-teaser-card { padding: 16px 18px; }

  /* How it works: vertical stack */
  .how-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 320px;
  }
  .how-step:not(:last-child)::after { display: none; }
  .how-num { width: 40px; height: 40px; font-size: var(--fs-xl); margin-bottom: 12px; }
  .how-cta-btn { font-size: var(--fs-lg); padding: 12px 24px; }
  .section-intro { font-size: var(--fs-sm); margin-bottom: 28px; line-height: 1.6; }

  /* Compare */
  .compare-card { padding: 22px 20px; }
  .compare-card h3 { font-size: var(--fs-xl); }

  /* Personas */
  .persona-card { padding: 22px 20px; }
  .persona-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .persona-card h3 { font-size: var(--fs-xl); }

  /* Длинный H2 у personas — уменьшаем, чтобы не было 4-5 строк на 320px */
  .personas-section .section-heading { font-size: calc(var(--fs-base) + 6px); }

  /* Final CTA desc */
  .final-cta-desc { font-size: var(--fs-lg); }

  /* Pricing */
  .pricing-section h2 { font-size: calc(var(--fs-base) + 8px); }
  .pricing-subtitle { font-size: var(--fs-md); margin-bottom: 32px; }
  .pricing-grid { max-width: 100%; }

  /* FAQ */
  .faq-section { padding: 0 16px; }
  .faq-section h2 { font-size: calc(var(--fs-base) + 8px); margin-bottom: 28px; }
  .faq-q { padding: 14px 16px; font-size: var(--fs-md); }

  /* Final CTA */
  .final-cta {
    margin-top: 56px;
    padding: 40px 16px;
    margin-left: 16px;
    margin-right: 16px;
    max-width: calc(100% - 32px);
  }
  .final-cta h2 { font-size: calc(var(--fs-base) + 6px); }
  .final-cta-btn { padding: 12px 28px; font-size: var(--fs-lg); }

  /* Footer */
  .footer { padding: 32px 16px; margin-top: 56px; }
  .footer-links { gap: 16px; flex-wrap: wrap; }

  /* Demo */
  .demo-result-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════
   Accent CTA buttons: gradient + glow (per design-system §3.1)
   ══════════════════════════════════════════════════════════════════════ */
.demo-btn,
.demo-cta,
.how-cta-btn,
.pricing-btn-primary,
.final-cta-btn,
.hero-cta {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent), #fff 10%) 0%, var(--accent) 50%, color-mix(in srgb, var(--accent), #000 20%) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 4px 12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.demo-btn:hover,
.demo-cta:hover,
.how-cta-btn:hover,
.pricing-btn-primary:hover,
.final-cta-btn:hover,
.hero-cta:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 6px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Light theme */
.light .demo-btn,
.light .demo-cta,
.light .how-cta-btn,
.light .pricing-btn-primary,
.light .pricing-popular,
.light .final-cta-btn,
.light .hero-cta {
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 12px rgba(22,163,74,0.2);
}
.light .demo-btn:hover,
.light .demo-cta:hover,
.light .how-cta-btn:hover,
.light .pricing-btn-primary:hover,
.light .final-cta-btn:hover,
.light .hero-cta:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 6px 20px rgba(22,163,74,0.25);
}
/* «Консультация» в финальном CTA — вторая, контурная кнопка. Селектор сильнее градиента и белого текста
   .final-cta-btn / .light .final-cta-btn выше: без этого она была белым текстом без заливки (на светлой — невидима) */
.final-cta .final-cta-btn.final-cta-btn-alt {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.final-cta .final-cta-btn.final-cta-btn-alt:hover {
  filter: none;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════════
   PARALLAX & MICRO-MOTION
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Hero glow drifts slower than scroll — adds depth without "fixed bg" baggage.
   Overrides the static translateX(-50%) from .hero::before above. */
.hero::before {
  transform: translate3d(-50%, var(--parallax-y, 0px), 0);
  will-change: transform;
  transition: transform 0.05s linear;
}

/* 2. Mouse parallax on feature illustrations — subtle 3D tilt + offset.
   Driven by --rx/--ry/--tx/--ty CSS vars set in landing.js. */
.feature-block-visual {
  perspective: 1400px;
}
.feature-block-illust {
  transform-style: preserve-3d;
  transform:
    translate3d(var(--tx, 0px), var(--ty, 0px), 0)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: transform;
}
.feature-block-illust .illust {
  transform: translateZ(20px);
}

/* 3. Hero metric chips — staggered fade-in on load */
@keyframes heroChipIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-metric {
  animation: heroChipIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms + 200ms);
}

/* ══════════════════════════════════════════════════════════════════════
   SCROLL-DRIVEN REVEALS — subtle Linear/Vercel-tier entry on cards.
   Native CSS animation-timeline (2024+); fades on older browsers.

   Gated behind html.js-reveal (added by landing.js). Without JS the class
   is absent, so cards/headings keep their visible default state — bots,
   no-JS clients and non-scrolling renders (screenshots, social previews)
   see full content at scrollY=0 instead of an empty page.
   ══════════════════════════════════════════════════════════════════════ */
@supports (animation-timeline: view()) {

  /* Tiny perspective for barely-there depth on rotateX */
  html.js-reveal .problems-grid,
  html.js-reveal .personas-grid,
  html.js-reveal .compare-grid,
  html.js-reveal .tools-teaser-grid,
  html.js-reveal .pricing-grid {
    perspective: 2400px;
  }

  /* Cards: short, snappy fade-up. Settles by the time they're 12% past viewport edge. */
  html.js-reveal .problem-card,
  html.js-reveal .persona-card,
  html.js-reveal .compare-card,
  html.js-reveal .tools-teaser-card,
  html.js-reveal .pricing-card,
  html.js-reveal .feature-block {
    animation: cardSubtleEntry linear both;
    animation-timeline: view();
    /* Fixed-length range so tall blocks don't stay faded across multiple screens */
    animation-range: entry 0% cover 220px;
    will-change: transform, opacity;
  }

  /* Headings — gentle slide-up, no blur */
  html.js-reveal .section-heading {
    animation: textGentleEntry linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 180px;
  }
}

@keyframes cardSubtleEntry {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textGentleEntry {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion — turn it all off */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    transform: translateX(-50%);
    transition: none;
  }
  .feature-block-illust,
  .feature-block-illust .illust {
    transform: none !important;
    transition: none;
  }
  .hero-metric { animation: none; }
  .hero-orb,
  .hero-wire,
  .hero-wire-spin,
  .hero-wire-spin-rev { animation: none; }
  @supports (animation-timeline: view()) {
    html.js-reveal .problem-card, html.js-reveal .persona-card,
    html.js-reveal .compare-card, html.js-reveal .tools-teaser-card,
    html.js-reveal .pricing-card, html.js-reveal .feature-block,
    html.js-reveal .section-heading {
      animation: none;
    }
  }
}


/* ══════════════════════════════════════════════════════════════════════
   G10/G11: гостевой обход в hero (spec-audit-simple §12.3, макет D1+G10).
   Мини-отчёт рисует static/audit-simple.js (.as-*, стили — audit-simple.css,
   подгружается лениво); здесь — hero-обвязка .g10-*, блок результата .gr-*, скелетоны .sk-*.
   ══════════════════════════════════════════════════════════════════════ */
.g10-hero { max-width: 820px; padding-top: var(--space-4xl); padding-bottom: var(--space-3xl); }
.g10-hero > h1, .g10-hero > p { max-width: 700px; margin-left: auto; margin-right: auto; }
.g10-wrap { max-width: 760px; }
.g10-wrap .demo-input-row { margin-bottom: var(--space-sm); }
.g10-wrap .demo-input, .g10-wrap .demo-btn { min-height: 48px; min-width: 0; }
.g10-wrap .demo-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); }
.g10-wrap .demo-btn:disabled { opacity: 0.7; }
.g10-wrap .demo-btn:focus-visible, .g10-wrap .demo-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g10-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.g10-hero .g10-note { margin: 0; max-width: none; font-size: var(--fs-sm); color: var(--text-dim); text-align: center; line-height: 1.5; }
.g10-hero .g10-note[hidden] { display: none; }
.g10-hero .g10-err { color: var(--red); }
.g10-hero .g10-consent { margin: var(--space-2xs) 0 0; max-width: none; font-size: var(--fs-xs); color: var(--text-dim); text-align: center; line-height: 1.5; }
.g10-consent a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 32px; }
.g10-consent a:hover { color: var(--text); }
.g10-captcha:empty { display: none; }
.g10-spin { display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 9999px; border: 2px solid currentColor; border-right-color: transparent; animation: g10spin 0.8s linear infinite; }
@keyframes g10spin { to { transform: rotate(360deg); } }
.g10-off { text-align: center; }
.g10-off .demo-cta { width: auto; padding: var(--space-md) var(--space-xl); min-height: 48px; }

.gr { margin-top: var(--space-lg); text-align: left; }
.gr[hidden] { display: none; }
.gr--live { min-height: 790px; }           /* резерв высоты на клик: S1–S3 раскрываются внутри, без сдвига SEO-текста */
/* .gr--notice — S7/S8: блок по содержимому, без резерва (иначе под коротким уведомлением пустота) */
.gr-box { padding: var(--space-xl); }
.gr-status { display: flex; align-items: center; gap: var(--space-xl); }
.gr-status-body { flex: 1; min-width: 0; }
.gr-domain { font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: 700; color: var(--text); word-break: break-word; }
.gr-count { margin: var(--space-2xs) 0 var(--space-sm); font-size: var(--fs-md); color: var(--text-dim); }
.gr-count b { font-family: var(--font-heading); font-size: calc(var(--fs-base) + 5px); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; text-align: right; }
.gr-stage { margin-top: var(--space-sm); min-height: 20px; font-size: var(--fs-sm); color: var(--text-dim); display: flex; align-items: center; gap: var(--space-sm); }
.gr-stage .g10-spin, .gr-badge .g10-spin { width: 12px; height: 12px; color: var(--accent); }
.gr-prelim { margin-top: var(--space-lg); }
.gr-badge {
  display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md); border-radius: 9999px;
  background: var(--bg-surface); border: 1px dashed var(--border-hover); font-size: var(--fs-sm); color: var(--text); margin-bottom: var(--space-sm); line-height: 1.4;
  font-family: var(--font-body); font-weight: 400;   /* h2 состояния (уровень под h1 hero), вид — бейдж */
}
.gr .as-issue { padding: var(--space-md) var(--space-lg); }
.gr .as-issue-title { font-size: var(--fs-lg); }
.gr .as-sev { font-size: var(--fs-lg); }
.gr .as-issue-cons { font-size: var(--fs-sm); }
.gr-offer {
  margin-top: var(--space-lg); padding: var(--space-lg) var(--space-xl); border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent-glow);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl);
}
.gr-offer-text { flex: 1 1 320px; font-size: var(--fs-md); line-height: 1.55; color: var(--text); }
.gr-offer-text b { font-family: var(--font-heading); font-weight: 700; display: block; font-size: var(--fs-lg); margin-bottom: var(--space-2xs); }
.gr-offer-note { display: block; margin-top: var(--space-xs); font-size: var(--fs-xs); color: var(--text-dim); }
.gr-notice { padding: var(--space-lg) var(--space-xl); border-radius: var(--radius); border: 1px solid var(--border); border-left: 3px solid var(--yellow); background: var(--bg-card); display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-sm) var(--space-md); }
.light .gr-notice { border-color: transparent; border-left-color: var(--yellow); box-shadow: var(--shadow-sm); }
.gr-notice--bad, .light .gr-notice--bad { border-left-color: var(--red); }
.gr-box .gr-notice { margin-top: var(--space-lg); background: var(--bg); }
.gr-notice-ic { display: inline-flex; color: var(--yellow); margin-top: 2px; }
.gr-notice--bad .gr-notice-ic { color: var(--red); }
.gr-notice-title { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 700; color: var(--text); line-height: 1.35; }
.gr-notice-text { grid-column: 2; font-size: var(--fs-md); line-height: 1.55; color: var(--text); }
.gr-notice-text .as-steps { margin-top: var(--space-sm); }
.gr-notice-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.gr-stack { display: flex; flex-direction: column; gap: var(--space-lg); }
.gr-cache { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-md); margin-bottom: var(--space-sm); padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-sm); background: var(--bg-surface); font-size: var(--fs-sm); color: var(--text); line-height: 1.5; }
.gr-cache svg { color: var(--text-dim); flex: 0 0 auto; }
.gr-cache a { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; }
.gr-result .as-hero { margin-bottom: 0; }
.gr-result .as-banner { margin-bottom: var(--space-sm); }
.gr-result .as-block { margin-top: var(--space-xl); }
.gr-result .as-group { margin-top: var(--space-xl); }
.gr-ctas { margin-top: var(--space-xl); padding: var(--space-xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); }
.gr-cta { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.gr-cta-title { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.gr-cta + .gr-cta { padding-left: var(--space-xl); border-left: 1px solid var(--border); }
.gr-cta .ya-id-btn { margin-top: var(--space-2xs); }
.gr-cta-note a { color: var(--accent); }

/* landing.css задаёт .hero p (крупный кегль, auto-поля) — внутри отчёта гостя сбрасываем */
.g10-hero .gr p { margin: 0; max-width: none; font-size: var(--fs-md); line-height: 1.55; color: var(--text); }
.g10-hero .gr .as-summary { margin-top: var(--space-lg); max-width: 680px; font-size: var(--fs-lg); }
.g10-hero .gr .as-issue-cons { margin-top: var(--space-xs); font-size: var(--fs-sm); color: var(--text-dim); }
.g10-hero .gr .as-group-sub { margin: var(--space-2xs) 0 var(--space-md); font-size: var(--fs-sm); color: var(--text-dim); }
.g10-hero .gr .as-block-sub { margin-top: var(--space-2xs); font-size: var(--fs-sm); color: var(--text-dim); }
.g10-hero .gr .as-issue-body .as-h4 + p { margin-bottom: var(--space-lg); }
.g10-hero .gr .as-na { margin-top: var(--space-md); font-size: var(--fs-sm); color: var(--text-dim); }
.g10-hero .gr .gr-hint { margin-top: var(--space-xs); font-size: var(--fs-xs); color: var(--text-dim); }
.g10-hero .gr .gr-prelim-sub { margin: 0 0 var(--space-md); font-size: var(--fs-sm); color: var(--text-dim); }
.g10-hero .gr .gr-noanswer { margin-top: var(--space-lg); font-size: var(--fs-sm); color: var(--text-dim); }
.g10-hero .gr .gr-notice-text p + p, .g10-hero .gr .gr-notice-hint { margin-top: var(--space-sm); }
.g10-hero .gr .gr-cta-text { font-size: var(--fs-sm); color: var(--text-dim); }
.g10-hero .gr .gr-cta-note { font-size: var(--fs-xs); color: var(--text-dim); }
/* Согласие на ПДн под кнопкой Яндекс ID (partials/pd_consent.html): .g10-hero .gr p выше перебивает кегль и цвет */
.g10-hero .gr .gr-ya-legal { max-width: 360px; }
.g10-hero .gr .gr-ya-legal .pd-consent-note { font-size: var(--fs-xs); line-height: 1.45; color: var(--text-dim); }
.g10-hero .gr .gr-ya-legal .pd-consent-hint { font-size: var(--fs-sm); line-height: 1.45; color: var(--red); }

/* Скелетон: те же габариты, что у карточки, — без сдвигов при подмене */
.sk { position: relative; overflow: hidden; background: var(--bg-surface); border-radius: var(--radius-xs); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--bg-card-hover), transparent); animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { to { transform: translateX(100%); } }
.sk-card { padding: var(--space-md) var(--space-lg); border-left: 3px solid var(--border); display: flex; flex-direction: column; gap: var(--space-sm); min-height: 74px; }
.sk-line { height: 14px; }
.sk-line--title { height: 18px; width: 62%; }
.sk-line--w80 { width: 80%; }
.gr .as-bar--indet > span { animation-name: g10indet; }
@keyframes g10indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

@media (max-width: 768px) {
  .gr-ctas { grid-template-columns: minmax(0, 1fr); }
  .gr-cta + .gr-cta { padding-left: 0; border-left: none; padding-top: var(--space-xl); border-top: 1px solid var(--border); }
  .g10-hero { padding-top: var(--space-3xl); }
}
@media (max-width: 480px) {
  .gr-box { padding: var(--space-lg) var(--space-md); }
  .gr-status { gap: var(--space-md); }
  .gr-ctas { padding: var(--space-lg) var(--space-md); }
  .gr-offer { padding: var(--space-lg) var(--space-md); }
  .gr-offer .btn, .gr-notice-actions .btn, .gr-cta .btn, .gr-cta .as-btn, .gr-cta .ya-id-btn { width: 100%; }
  .gr-notice { padding: var(--space-lg) var(--space-md); grid-template-columns: minmax(0, 1fr); }
  .gr-notice-ic { display: none; }
  .gr-notice-text, .gr-notice-actions { grid-column: 1; }
  .gr--live { min-height: 1040px; }
  .gr .as-ring .as-ring-val--pending { font-size: var(--fs-xs); }
  .g10-wrap .demo-input-row { flex-direction: column; }
  .gr-cache { padding: var(--space-xs) var(--space-md); }
}
@media (max-width: 360px) { .gr--live { min-height: 1140px; } }
@media (prefers-reduced-motion: reduce) {
  .sk::after, .g10-spin, .gr .as-bar--indet > span { animation: none; }
}

/* Светлая тема: масштаб featured-карточки на мобильных налезает на соседние (карточки в одну колонку) */
@media (max-width: 768px) {
  .light .pricing-card.featured,
  .light .pricing-card.featured:hover { transform: none; }
}
.pricing-terms a { color: var(--accent); text-decoration: none; }
.pricing-terms a:hover { text-decoration: underline; }
.pricing-terms a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
