/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-ink: #0d1324;
  --color-ink-soft: #293348;
  --color-muted: #667085;
  --color-paper: #ffffff;
  --color-panel: #ffffff;
  --color-panel-tint: #f4f7ff;
  --color-line: rgba(92, 105, 130, 0.18);
  --color-line-strong: rgba(92, 105, 130, 0.28);
  --color-accent: #5a3ff2;
  --color-accent-strong: #4326d4;
  --color-accent-soft: #f0edff;
  --color-blue: #1677e8;
  --color-blue-soft: #edf5ff;
  --color-warn: #b15b16;
  --color-warn-soft: #fff4e7;
  --color-danger: #c33f55;
  --color-hero-scrim: rgba(255, 255, 255, 0.92);
  --color-glass: rgba(255, 255, 255, 0.68);
  --color-glass-strong: rgba(255, 255, 255, 0.82);
  --color-glass-edge: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 24px 90px rgba(25, 35, 60, 0.12);
  --shadow-glass: 0 18px 70px rgba(40, 49, 79, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --radius: 8px;
  --space-page: clamp(18px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
}

body {
  background: #ffffff;
  color: var(--color-ink);
  font: 16px/1.55 var(--font-sans);
}

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

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 34px rgba(35, 42, 65, 0.06);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  left: 0;
  padding: 14px var(--space-page);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.hero-actions,
.footer {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  border-radius: 7px;
  box-shadow: 0 10px 26px rgba(90, 63, 242, 0.24);
  color: var(--color-panel);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-links {
  color: var(--color-muted);
  gap: clamp(14px, 3vw, 30px);
  justify-content: center;
  min-width: 0;
}

.nav-links a,
.footer a {
  white-space: nowrap;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--color-accent);
}

.header-action,
.button {
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  line-height: 1.15;
  min-height: 44px;
  padding: 13px 18px;
  text-align: center;
  white-space: nowrap;
}

.header-action,
.button.primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  box-shadow: 0 14px 36px rgba(74, 75, 220, 0.24);
  color: var(--color-panel);
}

.header-action:hover,
.button.primary:hover {
  background: var(--color-accent-strong);
}

.button.secondary {
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-glass);
  color: var(--color-ink);
}

.button.secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero {
  background-image:
    radial-gradient(circle at 10% 18%, rgba(90, 63, 242, 0.1), transparent 28%),
    linear-gradient(90deg, var(--color-hero-scrim) 0%, var(--color-hero-scrim) 38%, rgba(255, 255, 255, 0.76) 58%, rgba(255, 255, 255, 0.2) 100%),
    url("/assets/trafstat-hero.png");
  background-position: center, center, 70% center;
  background-size: cover, cover, cover;
  border-bottom: 1px solid rgba(92, 105, 130, 0.14);
  min-height: min(760px, calc(100vh - 74px));
  padding: clamp(72px, 12vh, 132px) var(--space-page) clamp(86px, 14vh, 148px);
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 22px;
  max-width: 850px;
}

h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  margin-bottom: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead {
  color: var(--color-ink-soft);
  font-size: clamp(18px, 2.2vw, 24px);
  margin-bottom: 28px;
  max-width: 610px;
}

.lead-highlight {
  color: #f06b18;
  font-weight: 900;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.microcopy {
  color: var(--color-muted);
  max-width: 560px;
}

.hero-flow {
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  align-items: stretch;
  backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  margin-top: clamp(42px, 8vh, 76px);
  max-width: min(1120px, calc(100vw - (var(--space-page) * 2)));
  padding: 14px;
  width: min(1120px, calc(100vw - (var(--space-page) * 2)));
}

.hero-flow-step {
  min-width: 0;
  padding: 12px 10px;
}

.hero-flow-step span {
  color: var(--color-accent);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 7px;
}

.hero-flow-step strong {
  color: var(--color-ink);
  display: block;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.12;
  margin-bottom: 8px;
}

.hero-flow-step p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.hero-flow-arrow {
  align-self: center;
  background: var(--color-line-strong);
  height: 2px;
  justify-self: stretch;
  position: relative;
}

.hero-flow-arrow::after {
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--color-line-strong);
  border-top: 5px solid transparent;
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
}

.legal-note {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 14px 0 0;
  max-width: 780px;
}

.article-page {
  background: #ffffff;
}

.article-hero {
  background:
    linear-gradient(135deg, rgba(240, 237, 255, 0.82), rgba(237, 245, 255, 0.84)),
    url("/assets/trafstat-hero.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(92, 105, 130, 0.14);
  padding: clamp(70px, 10vw, 124px) var(--space-page) clamp(42px, 7vw, 80px);
}

.article-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  max-width: min(100%, 1560px);
}

.article-hero .lead {
  max-width: min(100%, 1320px);
}

.article-summary,
.article-note,
.formula-box,
.article-cta {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.article-summary {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-glass);
  max-width: min(100%, 1040px);
  padding: 20px;
}

.article-summary strong,
.article-note strong {
  color: var(--color-accent);
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
}

.article-summary p,
.article-note p {
  margin: 0;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(180px, 260px) minmax(0, 840px);
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(44px, 7vw, 86px) var(--space-page);
}

.article-toc {
  border-left: 3px solid var(--color-accent);
  display: grid;
  gap: 12px;
  padding-left: 16px;
  position: sticky;
  top: 92px;
}

.article-toc a {
  color: var(--color-muted);
  font-weight: 750;
  line-height: 1.25;
}

.article-toc a:hover {
  color: var(--color-accent);
}

.article-content {
  min-width: 0;
}

.article-content section {
  border-bottom: 1px solid var(--color-line);
  padding: 0 0 clamp(34px, 5vw, 58px);
}

.article-content section + section {
  padding-top: clamp(34px, 5vw, 58px);
}

.article-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 18px;
}

.article-content p {
  color: var(--color-ink-soft);
  font-size: 18px;
}

.article-note {
  background: var(--color-accent-soft);
  margin-top: 22px;
  padding: 20px;
}

.article-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.article-grid article {
  background: #f7f9fc;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px;
}

.article-grid p,
.article-steps p,
.article-table span {
  color: var(--color-muted);
  font-size: 16px;
  margin: 0;
}

.formula-box {
  background: var(--color-ink);
  color: var(--color-panel);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 850;
  line-height: 1.2;
  margin: 22px 0;
  padding: 24px;
}

.article-steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.article-steps div {
  align-items: start;
  background: #f7f9fc;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 18px;
}

.article-steps span {
  align-items: center;
  background: var(--color-blue-soft);
  border-radius: var(--radius);
  color: var(--color-blue);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.article-table {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin: 24px 0;
  overflow: hidden;
}

.article-table > div {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  padding: 14px 18px;
}

.article-table > div + div {
  border-top: 1px solid var(--color-line);
}

.article-table .head {
  background: var(--color-panel-tint);
  font-weight: 850;
}

.article-table .head span {
  color: var(--color-ink);
}

.article-faq {
  display: grid;
  gap: 10px;
}

.article-faq details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px;
}

.article-faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.article-faq p {
  margin: 14px 0 0;
}

.article-cta {
  background: linear-gradient(135deg, rgba(13, 19, 36, 0.96), rgba(36, 38, 74, 0.94));
  color: var(--color-panel);
  margin-top: clamp(34px, 5vw, 58px);
  padding: clamp(26px, 5vw, 42px);
}

.article-cta h2 {
  color: var(--color-panel);
}

.article-cta p {
  color: #c8d1dc;
  max-width: 700px;
}

.article-cta-image {
  margin: clamp(24px, 4vw, 40px) 0;
  position: relative;
}

.article-cta-image a {
  display: block;
  position: relative;
}

.article-ad-label {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  left: clamp(14px, 2vw, 24px);
  line-height: 1;
  padding: 7px 10px;
  position: absolute;
  top: clamp(12px, 1.8vw, 20px);
  z-index: 1;
}

.article-cta-image img {
  border-radius: var(--radius);
  height: auto;
  width: 100%;
}

.problem-band,
.link-gap,
.mechanics-section,
.quality-section,
.seo-section,
.blog-section,
.faq-section,
.sources-section,
.workflow,
.compare-section,
.closing {
  padding: clamp(64px, 9vw, 112px) var(--space-page);
}

.section-head {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 34px;
}

.section-head.compact {
  display: block;
  max-width: 860px;
}

.section-head p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 18px;
  margin: 16px 0 0;
}

.hero .lead a,
.section-head p a,
.process-copy p a,
.quality-card p a,
.seo-grid p a {
  border-bottom: 1px solid rgba(33, 119, 255, 0.22);
  color: var(--color-accent);
  font-weight: 800;
}

.hero .lead a:hover,
.section-head p a:hover,
.process-copy p a:hover,
.quality-card p a:hover,
.seo-grid p a:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-blue);
}

.question-grid,
.quality-layout,
.seo-grid,
.compare-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.question-grid article,
.quality-card,
.seo-grid article,
.compare-grid article {
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  padding: clamp(20px, 3vw, 30px);
}

.question-grid span {
  color: var(--color-blue);
  display: block;
  font-weight: 850;
  margin-bottom: 28px;
}

.quality-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(22, 119, 232, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.84));
  border-bottom: 1px solid rgba(92, 105, 130, 0.14);
}

.quality-card span {
  color: var(--color-accent);
  display: block;
  font-weight: 850;
  margin-bottom: 28px;
}

.quality-card.highlight {
  background: linear-gradient(135deg, rgba(13, 19, 36, 0.94), rgba(36, 38, 74, 0.92));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(13, 19, 36, 0.2);
  color: var(--color-panel);
}

.quality-card.highlight span {
  color: #b8c7ff;
}

.quality-card p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.quality-card.highlight p {
  color: #c8d1dc;
}

.seo-section {
  background: #f7f9fc;
  border-bottom: 1px solid rgba(92, 105, 130, 0.14);
}

.seo-grid article {
  background: var(--color-paper);
}

.seo-grid p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.blog-section {
  background: #ffffff;
  border-bottom: 1px solid rgba(92, 105, 130, 0.14);
}

.blog-grid,
.related-groups,
.related-focus-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-grid article,
.related-group,
.related-focus a {
  background: #f7f9fc;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}

.related-focus {
  margin-bottom: 28px;
}

.related-focus h3 {
  margin-bottom: 14px;
}

.related-focus a {
  display: block;
}

.related-focus strong,
.related-focus span {
  display: block;
}

.related-focus strong {
  color: var(--color-ink);
  font-size: 17px;
  margin-bottom: 8px;
}

.related-focus span {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.45;
}

.related-focus a:hover {
  border-color: var(--color-accent);
}

.related-focus a:hover strong {
  color: var(--color-accent);
}

.blog-links,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-links a,
.related-links a {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink-soft);
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  padding: 9px 12px;
}

.blog-links a:hover,
.related-links a:hover,
.article-related p a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.article-related {
  border-top: 1px solid var(--color-line);
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: clamp(34px, 5vw, 58px);
}

.article-related > div:first-child {
  margin-bottom: 24px;
}

.article-related h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}

.article-related p {
  color: var(--color-ink-soft);
  font-size: 18px;
  margin-bottom: 0;
}

.article-related p a {
  color: var(--color-accent);
  font-weight: 800;
}

.faq-section {
  background: #ffffff;
  border-top: 1px solid rgba(92, 105, 130, 0.14);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
}

.faq-list details {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(25, 35, 60, 0.06);
  padding: 0;
}

.faq-list summary {
  color: var(--color-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
  min-height: 58px;
  padding: 18px 52px 18px 20px;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--color-accent);
  content: "+";
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  right: 20px;
  top: 18px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  color: var(--color-muted);
  margin: 0;
  padding: 0 20px 20px;
}

.question-grid p,
.link-card p,
.source-copy p,
.compare-grid p,
.steps p,
.closing p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.link-gap {
  background: #eef2f7;
  border-bottom: 1px solid var(--color-line);
}

.link-compare {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

.link-card.muted {
  background: var(--color-panel);
}

.link-card.strong {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-panel);
}

.link-label {
  background: var(--color-blue-soft);
  border-radius: 999px;
  color: var(--color-ink-soft);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 18px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.link-card.strong .link-label {
  background: var(--color-accent);
  color: var(--color-panel);
}

.mini-flow {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.mini-flow span,
.mini-flow strong,
.mini-flow em {
  border-radius: var(--radius);
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.mini-flow span {
  background: var(--color-panel-tint);
  color: var(--color-ink-soft);
}

.link-card.strong .mini-flow span {
  background: rgba(255, 255, 255, 0.08);
  color: #dbe5ef;
}

.mini-flow strong {
  background: var(--color-warn-soft);
  color: var(--color-warn);
}

.link-card.strong .mini-flow strong {
  background: var(--color-accent);
  color: var(--color-panel);
}

.mini-flow em {
  border: 1px dashed var(--color-line);
  color: var(--color-muted);
  font-style: normal;
}

.link-card.strong .mini-flow em {
  border-color: rgba(255, 255, 255, 0.22);
  color: #c8d1dc;
}

.link-card.strong p {
  color: #c8d1dc;
}

.mechanics-section {
  background: #ffffff;
  border-bottom: 1px solid rgba(92, 105, 130, 0.14);
  position: relative;
}

.anchor-point {
  display: block;
  position: relative;
  top: -84px;
}

.flow-diagram {
  display: grid;
  justify-items: center;
  margin: 38px auto 0;
  max-width: 1180px;
}

.flow-node,
.placement-card,
.flow-report {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(120, 142, 180, 0.24);
  border-radius: 18px;
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.1);
}

.flow-node {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  min-width: min(100%, 520px);
  padding: 20px 28px;
  text-align: center;
}

.flow-node strong {
  display: block;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.04;
}

.flow-node p,
.repeat-card p {
  color: var(--color-muted);
  margin: 6px 0 0;
}

.flow-links {
  background: rgba(238, 246, 242, 0.78);
}

.flow-links strong {
  font-size: clamp(19px, 2.2vw, 26px);
}

.flow-icon {
  align-items: center;
  background: var(--color-accent);
  border-radius: 999px;
  color: var(--color-panel);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.flow-icon.bars {
  background: rgba(112, 80, 210, 0.12);
  border: 1px solid rgba(112, 80, 210, 0.24);
  border-radius: 10px;
  gap: 5px;
}

.flow-icon.bars i {
  align-self: end;
  background: linear-gradient(180deg, #8d6df2, #5f3fd0);
  border-radius: 4px 4px 2px 2px;
  display: block;
  width: 9px;
}

.flow-icon.bars i:nth-child(1) {
  height: 16px;
}

.flow-icon.bars i:nth-child(2) {
  height: 28px;
}

.flow-icon.bars i:nth-child(3) {
  height: 40px;
}

.flow-icon.link,
.flow-icon.chart {
  background: linear-gradient(135deg, #5f8ee8, #2e63d7);
  font-size: 30px;
}

.flow-icon.people {
  background: rgba(20, 107, 95, 0.14);
  color: var(--color-accent);
  font-size: 34px;
}

.flow-line {
  background: var(--color-ink-soft);
  opacity: 0.95;
}

.flow-line.down {
  height: 46px;
  position: relative;
  width: 3px;
}

.flow-line.down::after {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-ink-soft);
  bottom: -1px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.flow-line.split,
.flow-line.merge {
  background: transparent;
  height: 46px;
  position: relative;
  width: min(92%, 980px);
}

.flow-line.split::before,
.flow-line.merge::before {
  background: var(--color-ink-soft);
  content: "";
  height: 3px;
  left: 6%;
  position: absolute;
  right: 6%;
  top: 0;
}

.flow-line.split::after,
.flow-line.merge::after {
  background:
    linear-gradient(var(--color-ink-soft), var(--color-ink-soft)) 8% 0 / 3px 36px no-repeat,
    linear-gradient(var(--color-ink-soft), var(--color-ink-soft)) 30% 0 / 3px 36px no-repeat,
    linear-gradient(var(--color-ink-soft), var(--color-ink-soft)) 50% 0 / 3px 36px no-repeat,
    linear-gradient(var(--color-ink-soft), var(--color-ink-soft)) 70% 0 / 3px 36px no-repeat,
    linear-gradient(var(--color-ink-soft), var(--color-ink-soft)) 92% 0 / 3px 36px no-repeat;
  content: "";
  inset: 0;
  position: absolute;
}

.flow-line.merge::before {
  bottom: 0;
  top: auto;
}

.flow-line.merge::after {
  transform: rotate(180deg);
}

.placement-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}

.placement-card {
  min-width: 0;
  padding: 18px 14px;
  text-align: center;
}

.placement-card h3 {
  font-size: 17px;
  margin: 12px 0 12px;
}

.placement-card p {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid currentColor;
  border-radius: 7px;
  display: block;
  font-size: 13px;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 9px 8px;
  text-overflow: ellipsis;
}

.placement-icon {
  align-items: center;
  border-radius: 999px;
  color: var(--color-panel);
  display: inline-flex;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.placement-card.green {
  background: rgba(232, 248, 238, 0.78);
  color: #16824f;
}

.placement-card.orange {
  background: rgba(255, 244, 226, 0.82);
  color: #cf6a00;
}

.placement-card.blue {
  background: rgba(232, 241, 255, 0.82);
  color: #1d6fd6;
}

.placement-card.pink {
  background: rgba(255, 236, 250, 0.82);
  color: #bf3d9b;
}

.placement-card.gold {
  background: rgba(255, 247, 224, 0.84);
  color: #b66d00;
}

.placement-card.green .placement-icon {
  background: linear-gradient(135deg, #4fc3f7, #1d83d4);
}

.placement-card.orange .placement-icon {
  background: linear-gradient(135deg, #2f65d8, #5e44df);
}

.placement-card.blue .placement-icon {
  background: linear-gradient(135deg, #51a2f2, #1d6fd6);
}

.placement-card.pink .placement-icon {
  background: linear-gradient(135deg, #7d4ce1, #f05a8a, #f6a03b);
}

.placement-card.gold .placement-icon {
  background: #111827;
}

.flow-leads {
  margin-top: 2px;
  max-width: 520px;
}

.flow-leads strong {
  font-size: 25px;
}

.flow-report {
  max-width: 1120px;
  padding: clamp(18px, 3vw, 28px);
  position: relative;
  width: 100%;
}

.flow-report-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 18px;
}

.flow-report-head h3 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
}

.report-insights {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.report-insights div {
  align-items: center;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-height: 52px;
  text-align: center;
  text-transform: uppercase;
}

.flow-table {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin-right: 210px;
  overflow: hidden;
}

.flow-table-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(130px, 1.2fr) 0.7fr 0.7fr 0.9fr 0.7fr;
  min-width: 0;
  padding: 13px 14px;
}

.flow-table-row + .flow-table-row {
  border-top: 1px solid var(--color-line);
}

.flow-table-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.flow-table-row.head {
  background: #f3f6fa;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-table-row.good {
  background: var(--color-accent-soft);
}

.flow-table-row.total {
  background: rgba(112, 80, 210, 0.09);
  font-weight: 850;
}

.repeat-card {
  background: rgba(232, 248, 238, 0.82);
  border: 1px solid rgba(20, 107, 95, 0.26);
  border-radius: var(--radius);
  bottom: 28px;
  padding: 18px;
  position: absolute;
  right: 28px;
  width: 178px;
}

.repeat-card strong {
  display: block;
  margin-bottom: 12px;
}

.repeat-card p + p {
  margin-top: 10px;
}

.mechanics-visual {
  margin: 38px auto 0;
  max-width: 1040px;
}

.mechanics-visual img {
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.1);
  height: auto;
  width: 100%;
}

.process-steps {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 44px;
}

.process-step {
  align-items: center;
  background: #ffffff;
  display: grid;
  gap: clamp(24px, 5vw, 58px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  min-height: min(780px, calc(100vh - 72px));
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  position: relative;
}

.process-step:nth-child(-n + 2) {
  min-height: min(920px, calc(100vh - 72px));
}

.process-step::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 16%, #ffffff 100%);
  content: "";
  inset: 0 0 0 44%;
  position: absolute;
  z-index: 0;
}

.process-copy {
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.step-number {
  align-items: center;
  background: var(--color-accent);
  border-radius: 999px;
  color: var(--color-panel);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  margin-bottom: 22px;
  width: 44px;
}

.process-copy h3 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  margin-bottom: 18px;
}

.process-copy > p {
  color: var(--color-muted);
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 22px;
}

.example-box {
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  padding: 18px;
}

.example-box strong {
  color: var(--color-accent);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.example-box p {
  color: var(--color-ink-soft);
  margin-bottom: 0;
}

.process-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  inset: 0 0 0 auto;
  margin: 0;
  min-width: 0;
  opacity: 1;
  padding: clamp(28px, 5vw, 58px) clamp(32px, 5vw, 70px) clamp(28px, 5vw, 58px) 0;
  pointer-events: none;
  position: absolute;
  width: min(58vw, 760px);
  z-index: 1;
}

.process-visual::after {
  content: none;
}

.process-visual img {
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  position: relative;
  transform: none;
  width: 100%;
  z-index: 1;
}

.attribution-board {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 251, 0.72)),
    radial-gradient(circle at 86% 10%, rgba(20, 107, 95, 0.16), transparent 28%);
  border: 1px solid rgba(120, 142, 180, 0.26);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
  display: grid;
  gap: 24px;
  margin: 38px auto 0;
  max-width: 1120px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
}

.board-top {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
}

.campaign-chip,
.tracking-link,
.source-stack,
.result-panel,
.scale-card {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 142, 180, 0.22);
  border-radius: 16px;
}

.campaign-chip {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.chip-mark {
  align-items: center;
  background: var(--color-accent);
  border-radius: 12px;
  color: var(--color-panel);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.campaign-chip strong {
  display: block;
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.05;
}

.campaign-chip p,
.tracking-link small,
.source-row small,
.result-summary p,
.scale-card p {
  color: var(--color-muted);
  margin: 4px 0 0;
}

.tracking-link {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 18px;
}

.tracking-link span {
  background: var(--color-ink);
  border-radius: 999px;
  color: var(--color-panel);
  display: block;
  font: 800 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  max-width: 100%;
  overflow: hidden;
  padding: 12px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.source-stack {
  display: grid;
  gap: 10px;
  padding: 18px;
  position: relative;
}

.source-stack::after {
  background: linear-gradient(180deg, rgba(20, 107, 95, 0.14), rgba(20, 107, 95, 0));
  bottom: 16px;
  content: "";
  position: absolute;
  right: -10px;
  top: 54px;
  width: 1px;
}

.stack-label,
.scale-card span,
.result-summary span {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.source-row {
  align-items: center;
  background: rgba(246, 249, 252, 0.78);
  border: 1px solid rgba(120, 142, 180, 0.18);
  border-radius: 12px;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 12px;
}

.source-row strong,
.source-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-badge {
  align-items: center;
  border-radius: 12px;
  color: var(--color-panel);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  grid-row: span 2;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.source-badge.tg {
  background: linear-gradient(135deg, #55c5f6, #2585d9);
}

.source-badge.vk {
  background: linear-gradient(135deg, #62a8f5, #1d6fd6);
}

.source-badge.mx {
  background: linear-gradient(135deg, #316bdc, #6451df);
}

.source-badge.ig {
  background: linear-gradient(135deg, #7d4ce1, #f05a8a, #f6a03b);
}

.source-badge.vc {
  background: #111827;
}

.result-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.result-summary {
  align-items: start;
  background: var(--color-ink);
  border-radius: 14px;
  color: var(--color-panel);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1fr);
  padding: 20px;
}

.result-summary span {
  color: #91e1ca;
}

.result-summary strong {
  display: block;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.95;
  margin-top: 8px;
}

.result-summary p {
  color: #d7e2eb;
}

.ranking-table {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  overflow: hidden;
}

.ranking-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 88px 96px;
  padding: 14px 16px;
}

.ranking-row + .ranking-row {
  border-top: 1px solid var(--color-line);
}

.ranking-row.head {
  background: #f3f6fa;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-row span:nth-child(2),
.ranking-row span:nth-child(3) {
  text-align: right;
}

.ranking-row.winner {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-weight: 900;
}

.ranking-row.weak {
  color: var(--color-warn);
}

.scale-card {
  background: rgba(232, 248, 238, 0.82);
  border-color: rgba(20, 107, 95, 0.24);
  padding: 18px;
}

.scale-card strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
  margin-top: 6px;
}

.sources-section {
  background: var(--color-panel);
  border-top: 1px solid var(--color-line);
}

.sources-layout {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.source-map {
  background: var(--color-ink);
  border-radius: var(--radius);
  color: var(--color-panel);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 360px;
  padding: clamp(18px, 3vw, 30px);
}

.source-map span,
.source-map strong,
.source-cloud span {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.source-map span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbe5ef;
  font-size: 14px;
  min-height: 54px;
  padding: 10px;
}

.source-map strong {
  background: var(--color-accent);
  box-shadow: 0 18px 50px rgba(20, 107, 95, 0.28);
  font-size: clamp(18px, 2.4vw, 28px);
  grid-column: 2 / 5;
  grid-row: 2 / 4;
  line-height: 1.15;
  padding: 24px;
}

.source-copy {
  background: var(--color-panel-tint);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

.source-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.source-cloud span {
  background: var(--color-blue-soft);
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 700;
  min-height: 36px;
  padding: 8px 12px;
}

.workflow {
  background: var(--color-ink);
  color: var(--color-panel);
}

.workflow .eyebrow,
.workflow h2 {
  color: var(--color-panel);
}

.workflow .section-head p:not(.eyebrow),
.workflow .steps p {
  color: #c8d1dc;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.steps li {
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 20px;
}

.steps span {
  align-items: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius);
  color: var(--color-accent-strong);
  display: inline-flex;
  font-weight: 850;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.compare-section {
  background: #eef2f7;
}

.compare-grid article {
  min-height: 230px;
}

.compare-grid .highlight {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-panel);
}

.compare-grid .highlight p {
  color: #e1f3ee;
}

.closing {
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(246, 249, 255, 0.82)),
    radial-gradient(circle at 92% 14%, rgba(90, 63, 242, 0.1), transparent 26%);
  border-top: 1px solid rgba(92, 105, 130, 0.14);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

.closing div {
  max-width: 820px;
}

.closing .button {
  margin-top: 26px;
}

.footer {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-top: 1px solid rgba(92, 105, 130, 0.14);
  color: var(--color-muted);
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.45fr);
  padding: clamp(42px, 7vw, 76px) var(--space-page) 24px;
}

.footer-logo {
  align-items: center;
  color: var(--color-ink);
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  max-width: 420px;
}

.footer-brand p {
  color: var(--color-ink-soft);
  margin: 18px 0 12px;
}

.footer .footer-partners {
  color: var(--color-danger);
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.footer .footer-partners:hover {
  color: #9f253a;
}

.footer-action {
  margin-top: 22px;
}

.footer-nav {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-nav div {
  min-width: 0;
}

.footer-nav h2 {
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 14px;
}

.footer-nav a {
  color: var(--color-muted);
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 10px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 20px;
}

.footer-bottom span {
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .process-step {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .process-step:nth-child(-n + 2) {
    min-height: 0;
  }

  .process-step::before {
    content: none;
  }

  .process-copy {
    max-width: 680px;
  }

  .process-visual {
    margin-top: 22px;
    padding: 0;
    position: relative;
    width: 100%;
  }

  .process-visual img {
    max-height: none;
    max-width: min(100%, 430px);
  }

  .flow-table {
    margin-right: 0;
  }

  .placement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .process-visual {
    width: min(52vw, 700px);
  }
}

@media (max-width: 900px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none !important;
  }

  .section-head,
  .link-compare,
  .sources-layout,
  .board-top,
  .board-body,
  .process-step,
  .closing,
  .footer {
    grid-template-columns: 1fr;
  }

  .question-grid,
  .quality-layout,
  .seo-grid,
  .blog-grid,
  .related-groups,
  .related-focus-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .placement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-line.split,
  .flow-line.merge {
    display: none;
  }

  .flow-line.down {
    height: 32px;
  }

  .flow-table {
    margin-right: 0;
  }

  .repeat-card {
    margin-top: 14px;
    position: static;
    width: auto;
  }

  .source-stack::after {
    display: none;
  }

  .process-step {
    min-height: 0;
  }

  .process-visual img {
    max-height: none;
    max-width: min(100%, 360px);
  }

  .closing .button {
    justify-self: start;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px var(--space-page);
  }

  .header-action {
    min-height: 40px;
    padding: 11px 12px;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 58%, rgba(255, 255, 255, 0.74) 100%),
      url("/assets/trafstat-hero.png");
    background-position: center, 70% center;
    min-height: auto;
    padding-top: 58px;
  }

  .hero-flow {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 34px;
    padding: 12px;
    width: 100%;
  }

  .hero-flow-step {
    padding: 10px;
  }

  .hero-flow-arrow {
    height: 24px;
    justify-self: start;
    margin-left: 18px;
    width: 2px;
  }

  .hero-flow-arrow::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--color-line-strong);
    bottom: -1px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }

  h1 {
    font-size: clamp(26px, 7.5vw, 35px);
  }

  .article-hero h1 {
    font-size: clamp(32px, 5.25vw, 59px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .lead,
  .microcopy,
  .article-content p,
  .article-grid p,
  .article-table span,
  .section-head p:not(.eyebrow),
  .question-grid p,
  .quality-card p,
  .seo-grid p,
  .blog-links a,
  .related-links a,
  .related-focus span,
  .faq-list p,
  .process-copy > p,
  .example-box p,
  .link-card p,
  .source-copy p,
  .compare-grid p,
  .steps p,
  .closing p {
    overflow-wrap: anywhere;
  }

  .flow-node {
    align-items: center;
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }

  .placement-grid,
  .report-insights {
    grid-template-columns: 1fr;
  }

  .flow-table {
    border-radius: var(--radius);
  }

  .flow-table-row,
  .flow-table-row.head {
    grid-template-columns: 1fr;
  }

  .flow-table-row.head {
    display: none;
  }

  .attribution-board {
    border-radius: 16px;
    padding: 14px;
  }

  .campaign-chip,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .campaign-chip {
    align-items: flex-start;
  }

  .tracking-link span {
    font-size: 13px;
  }

  .source-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .source-badge {
    height: 40px;
    width: 40px;
  }

  .ranking-row,
  .ranking-row.head {
    grid-template-columns: minmax(0, 1fr) 58px 70px;
    padding: 12px;
  }

  .hero-actions,
  .button {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .source-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .source-map strong {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 112px;
  }

  .process-step {
    background: #ffffff;
    padding: 44px 18px;
  }

  .process-step::before {
    content: none;
  }

  .process-visual {
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    opacity: 1;
    padding: 0;
    position: relative;
    width: 100%;
  }

  .process-visual img {
    max-width: min(100%, 320px);
    transform: none;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .article-grid,
  .article-table > div {
    grid-template-columns: 1fr;
  }

  .footer-action {
    width: auto;
  }

}

@media (max-width: 700px) {
  .header-action {
    font-size: 0;
    min-width: 58px;
  }

  .header-action::before {
    content: "Бот";
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .site-header {
    justify-content: flex-start;
  }

  .hero-copy,
  .article-hero > *,
  .article-layout,
  .section-head,
  .section-head.compact,
  .question-grid,
  .quality-layout,
  .seo-grid,
  .blog-grid,
  .related-groups,
  .related-focus-grid,
  .faq-list,
  .link-compare,
  .flow-diagram,
  .attribution-board,
  .mechanics-visual,
  .process-step,
  .process-copy,
  .process-visual,
  .placement-grid,
  .flow-report,
  .sources-layout,
  .source-cloud,
  .compare-grid,
  .closing > div,
  .footer-brand,
  .footer-nav,
  .footer-bottom {
    max-width: 280px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}
