/* Hey Sonic — design system */
/* Source of truth: design_reference/BRAND.md */

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Tokens ─── */
:root {
  /* Surfaces */
  --bg:           #F5EEE4;   /* page background */
  --cream:        #FBF7F0;   /* card surfaces */
  --cream-warm:   #F5EFE3;   /* feature card surface */
  --field-light:  #FFFBF4;   /* input on light surface */
  --field-dark:   #2C2520;   /* input on cream surface (start screen) */

  /* Text */
  --text:         #3D2817;
  --text-dark:    #2E1D0E;   /* deepest, for footer/contrast moments */
  --text-mid:     #5D4E37;
  --text-muted:   #8B6F4E;
  --text-pale:    #B08256;
  --text-on-dark: #EDE0D0;   /* input text on dark field */

  /* Accent */
  --orange:       #E8833B;
  --orange-dark:  #C86A1F;
  --orange-soft:  rgba(232,131,59,0.12);
  --orange-tint:  rgba(232,131,59,0.10);
  --orange-border:rgba(232,131,59,0.30);
  --focus-ring:   rgba(232,131,59,0.18);

  /* Колонка Gaps в сводке по рынку. Тот же hex что у proof-industry_research —
     по решению пользователя «как написано» (см. discussion 2026-05-25). */
  --blue-deep:    #2E6FD9;
  --green-stakes: #4A8B3A;
  --red-noise:    #C04B5B;

  /* Borders */
  --border:        rgba(61,40,23,0.10);
  --border-input:  rgba(61,40,23,0.14);
  --border-dark:   rgba(255,255,255,0.08);   /* on dark field */
  --border-soft:   rgba(61,40,23,0.07);      /* divider inside cards */

  /* Placeholder on dark field */
  --placeholder:   rgba(220,195,165,0.75);

  /* Radii */
  --r-card:    16px;
  --r-btn:     12px;
  --r-input:   10px;
  --r-pill:    100px;
  --r-icon:    10px;

  /* Layout */
  --max-w:        1080px;
  --max-w-narrow: 820px;
  --header-h:     56px;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

::placeholder { color: var(--placeholder); }

input, textarea, select, button {
  font-family: 'Inter', system-ui, sans-serif;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

a { color: inherit; text-decoration: none; }

svg { display: block; }

/* ─── Typography ─── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow-muted {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-pale);
}

.h-hero {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
}
.h-hero strong { font-weight: 600; }
.h-hero em { font-style: italic; color: var(--orange); }

.h-section {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text);
}

.h-card {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.body-large { font-size: 16px; color: var(--text-mid); line-height: 1.6; }
.body       { font-size: 14px; color: var(--text-mid); line-height: 1.55; }
.body-small { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.caption    { font-size: 12px; color: var(--text-muted); }

/* ─── Layout ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,238,228,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.site-logo img {
  width: 48px; height: 48px;
  object-fit: contain;
  margin-bottom: -10px;
}
.site-logo-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  padding-bottom: 10px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-nav a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-btn);
  padding: 13px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--orange-dark); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-input);
}
.btn-secondary:hover:not(:disabled) {
  color: var(--text);
  background: rgba(61,40,23,0.04);
}

.btn-header {
  padding: 9px 18px;
  border-radius: var(--r-input);
  font-size: 13px;
}

/* ─── Inputs ─── */
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--field-light);
  border: 1px solid var(--border-input);
  border-radius: var(--r-input);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.textarea { line-height: 1.55; resize: vertical; min-height: 96px; }

/* Dark variant — used on cream card surfaces (start screen) */
.input-dark, .textarea-dark {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-on-dark);
  background: var(--field-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-input);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.input-dark:focus, .textarea-dark:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.textarea-dark { line-height: 1.55; resize: vertical; min-height: 96px; }

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.input-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}
.input-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
}

/* ─── Cards ─── */
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
}
.card-warm {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* ─── Tags / pills ─── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: rgba(61,40,23,0.07);
  color: var(--text-muted);
}
.tag-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

/* ─── Icon containers ─── */
.icon-box {
  width: 44px; height: 44px;
  border-radius: var(--r-icon);
  background: rgba(232,131,59,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.icon-box-sm {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--text-dark);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer-logo img {
  width: 32px; height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}
.site-footer-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}
.site-footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ─── Halftone texture (hero only) ─── */
.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(200,106,31,0.24) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}
.halftone-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg) 22%, rgba(245,238,228,0.2) 60%, transparent 80%);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Utility ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }

/* ─── Synthesis section cards ─── */
.section-card {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 30px;
}
.section-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 24px;
}

/* ─── Markdown-rendered content (report sections) ─── */
.section-content h2,
.section-content h3,
.section-content h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 24px 0 10px;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.section-content h2:first-child,
.section-content h3:first-child,
.section-content h4:first-child { margin-top: 0; }

/* Декоративный разделитель из markdown "---" */
.section-content hr {
  display: block;
  border: none;
  background: none;
  height: auto;
  text-align: left;
  color: var(--orange);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: normal;
  margin: -5px 0 -12px;
  padding: 0;
}
.section-content hr::before { content: "·    ·    ·    ·    ·    ·    ·    ·    ·    ·    ·    ·    ·    ·    ·    ·"; }
.section-content > hr:first-of-type { display: none; }
.section-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 10px;
}
.section-content ul,
.section-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.section-content li {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 4px;
}
.section-content strong {
  color: var(--text);
  font-weight: 600;
}
.section-content em { font-style: italic; }
.section-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 6px 14px;
  margin: 14px 0;
  color: var(--text-mid);
  font-style: italic;
}
.section-content code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  background: var(--orange-tint);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--orange);
}
.section-content a {
  color: var(--orange);
  text-decoration: underline;
}
.section-content table {
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  width: 100%;
}
.section-content th,
.section-content td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
}
.section-content th {
  background: var(--cream);
  font-weight: 600;
  color: var(--text);
}
.section-content > *:first-child { margin-top: 0; }
.section-content > *:last-child { margin-bottom: 0; }

/* ─── Competitor card (секция competitor_utps) ─── */
.comp-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comp-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
}
.comp-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--orange);
}
.comp-card-domain {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.25;
  word-break: break-word;
  min-width: 0;
}
.comp-card-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--orange-tint);
  color: var(--text-mid);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.comp-card-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.comp-card-eyebrow--muted { color: var(--text-muted); }
.comp-card-diff {
  background: var(--orange-tint);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.comp-card-diff-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.comp-card-chips-block { margin-bottom: 18px; }
.comp-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comp-card-chip {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
  max-width: 100%;
  word-break: break-word;
}
.comp-card-note {
  border: 1px solid var(--orange-border);
  border-radius: 12px;
  padding: 14px 18px;
}
.comp-card-note-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.comp-card > *:last-child { margin-bottom: 0; }

.comp-summary { margin-top: 22px; }

/* ─── Market summary (три колонки stakes / gaps / noise) ─── */
.market-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 22px;
}
.market-summary-col {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top-width: 3px;
  border-radius: 14px;
  padding: 22px 20px;
}
.market-summary-col--stakes { border-top-color: var(--green-stakes); }
.market-summary-col--gaps   { border-top-color: var(--blue-deep); }
.market-summary-col--noise  { border-top-color: var(--red-noise); }

.market-summary-col-head { margin-bottom: 16px; }
.market-summary-col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.market-summary-col-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.market-summary-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.market-summary-item {
  padding: 0;
}
.market-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.market-summary-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}
.market-summary-col--noise .market-summary-text {
  font-weight: 400;
  font-style: italic;
}

.market-summary-freq {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}
.market-summary-col--stakes .market-summary-freq { background: var(--green-stakes); }
.market-summary-col--gaps   .market-summary-freq { background: var(--blue-deep); }
.market-summary-col--noise  .market-summary-freq { background: var(--red-noise); }
.market-summary-freq--empty {
  background: transparent !important;
  color: var(--text-pale);
  border: 1px solid var(--border);
  font-weight: 400;
}

.market-summary-why {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.market-summary-empty {
  font-size: 13px;
  color: var(--text-pale);
  font-style: italic;
}

@media (max-width: 880px) {
  .market-summary { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .comp-card { padding: 22px; }
  .comp-card-head { align-items: flex-start; }
}

/* ─── Audience segment card (секция audience_and_pains) ─── */
.aud-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aud-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
}
.aud-card-summary {
  list-style: none;
  cursor: pointer;
  display: block;
  position: relative;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  padding: 0;
}
.aud-card-summary::-webkit-details-marker { display: none; }
.aud-card-summary::marker { content: ""; }
.aud-card-summary::before { content: none; }
.aud-card[open] .aud-card-summary::before { content: none; transform: none; }
.aud-card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--orange);
  word-break: break-word;
}
.aud-card-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aud-card-who {
  -webkit-line-clamp: 1;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}
.aud-card-pain {
  -webkit-line-clamp: 2;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 14px;
}
.aud-card[open] .aud-card-clamp {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.aud-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--orange-border);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--orange);
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.aud-card-summary:hover .aud-card-toggle {
  background: var(--orange-tint);
}
.aud-card[open] .aud-card-toggle-open,
.aud-card:not([open]) .aud-card-toggle-close { display: none; }

.aud-card-deep {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aud-card-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.aud-card-source .proof { margin: 0; }

.aud-card-quotes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aud-card-quote {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.55;
}
.aud-card-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--orange);
  font-size: 22px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
}

.aud-card-pains {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
}
.aud-card-pains li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 6px;
}
.aud-card-pains li::marker { color: var(--text-pale); }
.aud-card-pains li:last-child { margin-bottom: 0; }

.aud-tail { margin-top: 22px; }

@media (max-width: 640px) {
  .aud-card { padding: 22px; }
}

/* ─── Market voice theme cards (секция market_voice) ─── */
.mv-intro {
  margin-bottom: 22px;
}
.mv-themes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mv-theme {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
}
.mv-theme-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--orange);
}
.mv-theme-title {
  flex: 1;
  min-width: 200px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
  word-break: break-word;
}
.mv-theme-group {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  background: rgba(61,40,23,0.07);
  color: var(--text-muted);
}
.mv-theme-group--accent {
  background: var(--orange-tint);
  color: var(--orange);
}
.mv-theme-count {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.mv-theme-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.mv-theme-eyebrow--muted { color: var(--text-muted); }

.mv-theme-context {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}

.mv-theme-quotes {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mv-theme-quote {
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.mv-theme-quote-text {
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.mv-theme-quote-source {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}
.mv-theme-quote-source p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.mv-theme-takeaway {
  background: var(--orange-tint);
  border-radius: 12px;
  padding: 14px 18px;
}
.mv-theme-takeaway-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.mv-tail { margin-top: 22px; }

@media (max-width: 640px) {
  .mv-theme { padding: 22px; }
}

/* ─── Ad hook mockup cards (секция ad_examples) ─── */
.ad-hooks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-hooks-intro {
  margin-bottom: 22px;
}
.ad-hook-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.ad-hook-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--cream-warm);
}
.ad-hook-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ad-hook-type {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
}

.ad-hook-creative {
  background: var(--field-light);
  padding: 22px 28px 24px;
  border-bottom: 1px solid var(--border);
}
.ad-hook-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ad-hook-headline {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  word-break: break-word;
}
.ad-hook-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-hook-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.ad-hook-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.ad-hook-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}

.ad-hook-details {
  padding: 14px 22px 22px;
}
.ad-hook-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--orange-border);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--orange-dark);
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s;
}
.ad-hook-toggle::-webkit-details-marker { display: none; }
.ad-hook-toggle::marker { content: ""; }
.ad-hook-toggle::before { content: none; }
.ad-hook-toggle::after { content: "Раскрыть разбор ›"; }
.ad-hook-details[open] .ad-hook-toggle::after { content: "Свернуть разбор ⌄"; }
.ad-hook-toggle:hover { background: var(--orange-tint); }

.ad-hook-analysis {
  margin-top: 14px;
}
.ad-hook-why {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}
.ad-hook-sources {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.ad-hook-sources-label {
  margin-right: 4px;
}
.ad-hook-sources p {
  display: inline;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
/* Inline override of .proof inside sources line: компактные цветные
   надписи вместо больших block-callout'ов. */
.ad-hook-sources .proof {
  display: inline;
  background: transparent;
  border: none;
  border-left: none;
  padding: 0;
  margin: 0 2px;
  border-radius: 0;
  color: inherit;
  font-size: 12px;
  line-height: inherit;
}
.ad-hook-sources .proof-label {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 4px;
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  vertical-align: baseline;
}

.ad-hooks-tail { margin-top: 22px; }

@media (max-width: 640px) {
  .ad-hook-creative { padding: 18px 20px 20px; }
  .ad-hook-head { padding: 12px 18px; }
  .ad-hook-details { padding: 12px 18px 18px; }
}

/* ─── Client questions — нумерованный список ─── */
/* Используется в `report/templates/_client_questions.html` (секция
   client_questions). Один внешний контейнер `.cq-list` внутри
   `.section-card`, пункты `.cq-item` разделены тонкой линией
   (1px `--border-soft` = rgba(61,40,23,0.07)). Никаких <details>:
   всё видно сразу, чтобы таргетолог читал вопрос целиком одним
   взглядом. Токены: cream-карточка от `.section-card`, акценты —
   `--orange` и `--text-muted`. */
.cq-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
}
.cq-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
}
.cq-item:first-child {
  padding-top: 4px;
  border-top: none;
}
.cq-item:last-child { padding-bottom: 4px; }

.cq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cq-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

.cq-example {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cq-give-block { margin-top: 4px; }
.cq-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 6px;
}
.cq-give {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.cq-give p { margin: 0 0 6px; }
.cq-give p:last-child { margin-bottom: 0; }

.cq-source {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 4px 0 0;
}
.cq-source-label { margin-right: 4px; }
.cq-source p {
  display: inline;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
/* Inline override of .proof inside the «Откуда» footnote — компактные
   цветные надписи вместо block-callout'ов (паттерн как
   `.ad-hook-sources .proof`). */
.cq-source .proof {
  display: inline;
  background: transparent;
  border: none;
  border-left: none;
  padding: 0;
  margin: 0 2px;
  border-radius: 0;
  color: inherit;
  font-size: 12px;
  line-height: inherit;
}
.cq-source .proof-label {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 4px;
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  vertical-align: baseline;
}

@media (max-width: 640px) {
  .cq-item { gap: 12px; padding: 18px 0; }
  .cq-num { width: 26px; height: 26px; font-size: 12px; }
}

/* ─── Recommendations — кульминационный блок отчёта ─── */
/* Используется в `report/templates/_recommendations.html`.
   Структура: lead-абзац → тёмный блок угла → карточки векторов →
   блок приоритизации. ВСЁ видно сразу, без раскрытий. Компонент
   изолированный (без зависимостей от других партиалов) — заказчик
   планирует переделывать блок позже. */
.rec-lead {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 18px 0 22px;
}

/* Тёмный блок угла — ЕДИНСТВЕННЫЙ near-black блок в отчёте,
   намеренно: кульминация. */
.rec-angle {
  background: #2E1D0E;
  color: var(--text-on-dark);
  border-radius: var(--r-card);
  padding: 24px 26px;
  margin: 0 0 26px;
}
.rec-angle-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
.rec-angle-text {
  font-size: 18px;
  font-weight: 500;
  color: #FBF7F0;
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
  word-break: break-word;
}

/* Векторы — карточки с label-плашкой A/Б/В и заголовком-капсом. */
.rec-vectors {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 26px;
}
.rec-vector {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.rec-vector-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rec-vector-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
}
.rec-vector-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
}
.rec-vector-rationale {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.rec-vector-rationale p { margin: 0 0 8px; }
.rec-vector-rationale p:last-child { margin-bottom: 0; }

.rec-vector-segment {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.rec-vector-segment-label {
  font-weight: 500;
  color: var(--text-mid);
  margin-right: 4px;
}

/* Приоритизация — финальный блок, мягкая оранжевая заливка. */
.rec-prio {
  background: var(--orange-tint);
  border-radius: 14px;
  padding: 20px 22px;
}
.rec-prio-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin: 0 0 10px;
}
.rec-prio-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.rec-prio-body p { margin: 0 0 10px; }
.rec-prio-body p:last-child { margin-bottom: 0; }
.rec-prio-body ol, .rec-prio-body ul {
  margin: 0 0 10px;
  padding-left: 22px;
}
.rec-prio-body li { margin-bottom: 6px; }
.rec-prio-body li:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .rec-angle { padding: 20px 18px; }
  .rec-angle-text { font-size: 17px; }
  .rec-vector { padding: 16px 18px; }
  .rec-prio { padding: 16px 18px; }
}

/* ─── Cross-reference proof markers ─── */
.proof {
  display: block;
  margin: 14px 0;
  padding: 12px 16px;
  background: var(--cream);
  border-left: 3px solid var(--border);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
}
.proof-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--border);
  color: #fff;
  vertical-align: baseline;
}
.proof-competitor_utps   { border-left-color: #4A8B3A; }
.proof-competitor_utps .proof-label { background: #4A8B3A; }
.proof-market_voice      { border-left-color: #C04B5B; }
.proof-market_voice .proof-label { background: #C04B5B; }
.proof-industry_research { border-left-color: #2E6FD9; }
.proof-industry_research .proof-label { background: #2E6FD9; }
.proof-audience          { border-left-color: #7C5BC9; }
.proof-audience .proof-label { background: #7C5BC9; }
.proof-brief             { border-left-color: #D88F2A; }
.proof-brief .proof-label { background: #D88F2A; }

/* Стопка плашек подряд — почти впритык */
.proof + .proof { margin-top: 4px; }

/* Если ДВЕ соседние плашки одного источника — у второй скрыть лейбл
   (читается как "один источник, несколько фактов") */
.proof-competitor_utps   + .proof-competitor_utps   .proof-label,
.proof-market_voice      + .proof-market_voice      .proof-label,
.proof-industry_research + .proof-industry_research .proof-label,
.proof-audience          + .proof-audience          .proof-label,
.proof-brief             + .proof-brief             .proof-label {
  display: none;
}

/* ─── Report navigation: sidebar + back-to-top ─── */
/* Sidebar — position:fixed в свободном поле слева от центральной
   колонки контента (820px). НЕ часть потока, НЕ grid-колонка — контент
   .report-inner остаётся строго по центру. left положение через calc:
     left = (viewport center) - (half content width) - (gap) - (nav width)
   Скрыт ниже 1280px (где сбоку физически нет места под 200px сайдбар).
   z-index: 50 — ниже sticky-header (100) чтобы при прокрутке заголовок
   мог визуально накрыть верх сайдбара.  */
.report-sidebar-nav {
  position: fixed;
  top: calc(var(--header-h) + 24px);
  left: calc(50vw - 410px - 28px - 200px);
  width: 200px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  z-index: 50;
  padding: 4px 0;
  /* отдельный shadow/border не нужен — sidebar плоский на бежевом фоне */
}
.report-sidebar-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding-left: 14px;
}
.report-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-sidebar-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.report-sidebar-link:hover {
  color: var(--text-dark);
  background: rgba(232,131,59,0.06);
}
.report-sidebar-link.is-active {
  color: var(--orange-dark);
  border-left-color: var(--orange);
  font-weight: 500;
}

/* Скрываем сайдбар когда сбоку нет места под него: контент 820px +
   2*28px gap + 2*200px nav = 1276 → breakpoint 1280px. */
@media (max-width: 1279px) {
  .report-sidebar-nav { display: none; }
}

/* Back-to-top: скруглённый квадрат 48px, фиксированный справа снизу.
   Заливка #E8833B (явно, не token, чтобы исключить случайный override),
   белая стрелка. По hover — near-black + лёгкий подъём. Появляется
   через класс `.is-visible` (управляет JS по порогу 400px скролла).
   z-index: 90 — выше контента, ниже sticky-header (100). На мобиле
   остаётся (там она важнее меню). */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  padding: 0;
  background: #E8833B;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(46,29,14,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: background 0.15s, transform 0.15s, opacity 0.2s, visibility 0.2s;
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: #2E1D0E;
  transform: translateY(-2px);
  outline: none;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 640px) {
  .back-to-top { right: 18px; bottom: 18px; }
}

/* ─── Print / PDF (WeasyPrint) ─── */
@page {
  size: A4;
  margin: 1.4cm 1.2cm;
}
@media print {
  body { background: #fff; }

  /* Хедер и nav-меню — не нужны в PDF */
  .site-header { display: none !important; }
  .report-sidebar-nav,
  .back-to-top { display: none !important; }

  /* WeasyPrint плохо пагинирует flex-контейнеры — переводим
     контейнер report на block. Margin-bottom вместо gap. */
  .report-page { padding: 0 !important; }
  .report-inner {
    display: block !important;
    max-width: 100% !important;
  }
  .report-inner > * { margin-bottom: 18px; }
  .report-inner > *:last-child { margin-bottom: 0; }

  /* Карточки — заголовок не отрывается от первой строки контента */
  .card, .card-warm {
    page-break-inside: auto;
    break-inside: auto;
    box-shadow: none;
  }
  .report-header,
  .coverage-progress,
  .competitors-grid,
  .timing-table {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .eyebrow, .h-card, h1, h2, h3 {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Грид конкурентов — в PDF одна колонка читабельнее */
  .competitors-grid { grid-template-columns: 1fr !important; }

  /* Details — в PDF разворачиваем источники по умолчанию */
  details > summary { display: none; }
  details > *:not(summary) { display: block !important; }

  /* Уменьшаем h1 в PDF */
  .report-h1 { font-size: 24px !important; }
}
