:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --paper: #ffffff;
  --paper-soft: #fbfcfb;
  --ink: #18242b;
  --muted: #5a6770;
  --muted-2: #74808a;
  --line: rgba(24, 36, 43, 0.11);
  --line-strong: rgba(24, 36, 43, 0.18);
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --teal-soft: #e7f4f1;
  --amber: #b7791f;
  --amber-soft: #fff7e6;
  --blue: #2f5f98;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 36px rgba(24, 36, 43, 0.06);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfcfb 0%, var(--bg) 52%, #f1f3f1 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal-dark); }
.page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.025em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(24, 36, 43, 0.10);
}
.site-links,
.nav-actions,
.hero-actions,
.link-row,
.link-strip,
.mcc-tags,
.merchant-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.site-links { margin-left: auto; }
.site-links a,
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}
.site-links a:hover,
.breadcrumbs a:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--teal-dark);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.14);
}
.button-primary:hover { color: #fff; background: var(--teal-dark); }
.button-secondary {
  border-color: rgba(15, 118, 110, 0.20);
  background: #fff;
  color: var(--teal-dark);
}

.hero {
  position: relative;
  padding: 42px 0 26px;
}
.hero h1,
h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5.1vw, 62px);
  font-weight: 790;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.48;
}
.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: end;
  padding-bottom: 34px;
}
.blog-hero h1 { max-width: 720px; }
.blog-hero-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  padding: 14px;
}
.blog-hero-panel a {
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--paper-soft);
}
.blog-hero-panel a:hover {
  border-color: rgba(15,118,110,.22);
  color: var(--ink);
}
.blog-hero-panel strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.18;
}
.blog-hero-panel span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}
.hero-actions { margin-top: 22px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  padding: 18px 0 44px;
}
.article { min-width: 0; }
.card,
.toc,
.related,
.faq,
.cta-panel,
.feature,
.task-card,
.scenario-card,
.link-card,
.mcc-item,
.merchant-card,
.blog-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.article-card { padding: clamp(22px, 3.6vw, 38px); }
.article-card h2,
.section-title,
.faq h2,
.bottom-cta h2 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: clamp(24px, 2.45vw, 34px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.018em;
}
.article-card h2:first-child { margin-top: 0; }
.article-card h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.article-card p,
.article-card li,
.faq p,
.bottom-cta p {
  color: #35444c;
  font-size: 17px;
  line-height: 1.64;
}
.article-card p { margin: 0 0 15px; }
.article-card ul,
.article-card ol {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.article-card li {
  position: relative;
  padding-left: 28px;
}
.article-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}
.article-card ol { counter-reset: steps; }
.article-card ol li { counter-increment: steps; }
.article-card ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.section { padding: 18px 0 42px; }
.section-title { margin-top: 0; max-width: 760px; }
.section-lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.features,
.scenario-grid,
.task-grid,
.link-grid,
.mini-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.scenario-grid,
.task-grid,
.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 24px; }
.feature,
.task-card,
.scenario-card,
.link-card,
.blog-card,
.guide-card,
.mini-step,
.article-preview {
  min-width: 0;
  padding: 18px;
}
.mini-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.mini-step b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
}
.mini-step strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.mini-step span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}
.plan-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.plan-card-pro {
  border-color: rgba(11, 115, 95, .28);
  background: linear-gradient(180deg, rgba(235, 250, 246, .82), #fff 68%);
}
.plan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.plan-head strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.plan-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}
.access-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.access-free {
  border-color: rgba(86, 97, 115, .18);
  background: #f5f7fa;
  color: #3f4d5f;
}
.access-pro {
  border-color: rgba(11, 115, 95, .24);
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.access-same {
  border-color: rgba(186, 128, 44, .26);
  background: #fff7e8;
  color: #8b5e13;
}
.feature-access-table td {
  vertical-align: top;
}
.feature-access-table td span:not(.access-pill) {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.42;
}
.article-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 38px;
}
.article-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}
.article-preview-card {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  min-height: 220px;
  color: var(--ink);
}
.article-preview-card:hover {
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
}
.article-preview-card:hover .article-read { color: var(--teal-dark); }
.article-art {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 220px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #f3f6f5;
  padding: 18px 16px 14px;
}
.article-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  transform: translateY(44px);
}
.article-kind,
.article-category {
  position: relative;
  z-index: 1;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 820;
}
.article-category {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-color: rgba(15, 118, 110, .16);
}
.article-art-problem .article-art { background: #fff6df; }
.article-art-choice .article-art { background: #edf5fb; }
.article-art-combo .article-art { background: #eaf6f2; }
.article-art-mcc .article-art { background: #f0f5f4; }
.article-art-receipt .article-art { background: #eef2fb; }
.article-art-dispute .article-art { background: #fff5e8; }
.article-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 142px;
  align-self: end;
}
.article-svg .svg-panel {
  fill: rgba(255,255,255,.70);
  stroke: rgba(24,36,43,.12);
  stroke-width: 2;
}
.article-svg .svg-card {
  fill: rgba(15,118,110,.11);
  stroke: rgba(15,118,110,.52);
  stroke-width: 2.4;
}
.article-svg .svg-line,
.article-svg .svg-accent {
  fill: none;
  stroke: #0f766e;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-svg .svg-line {
  stroke: rgba(24,36,43,.42);
  stroke-width: 4;
}
.article-svg .svg-card-line,
.article-svg .svg-warn-line {
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-svg .svg-accent-fill { fill: #0f766e; }
.article-svg .svg-warn { fill: #0f766e; opacity: .92; }
.article-copy {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding: 18px;
}
.article-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.022em;
}
.article-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}
.article-read {
  width: fit-content;
  margin-top: auto;
  border-bottom: 1px solid rgba(15, 118, 110, .30);
  color: var(--teal-dark);
  font-weight: 820;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 820;
}
.feature-icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon .icon-fill { fill: currentColor; opacity: .12; stroke: none; }
.feature h3,
.task-card strong,
.scenario-card strong,
.link-card strong {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.018em;
}
.feature p,
.task-card span,
.scenario-card p,
.link-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.answer-box,
.note-box,
.inline-cta,
.mcc-hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}
.answer-box {
  margin: 0 0 18px;
  padding: 18px;
  border-left: 4px solid var(--teal);
}
.answer-box strong,
.note-box strong,
.inline-cta strong,
.scenario-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.answer-box p,
.note-box p,
.inline-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.54;
}
.note-box {
  margin: 20px 0;
  padding: 18px;
  background: #fff;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table { width: 100%; min-width: 620px; border-collapse: collapse; }
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(24, 36, 43, 0.08);
  text-align: left;
  vertical-align: top;
}
th {
  background: #f2f5f4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }

.mcc-hero {
  display: block;
  padding-bottom: 12px;
}
.mcc-hero-panel {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: clamp(18px, 3vw, 26px);
  background: #fff;
  box-shadow: var(--shadow);
}
.mcc-hero-panel .mcc-tools { margin: 0; }
.mcc-results-section { padding-top: 6px; }
.mcc-search-title {
  display: grid;
  gap: 5px;
  margin-bottom: 2px;
}
.mcc-search-title strong {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.14;
  letter-spacing: -0.018em;
}
.mcc-search-title span {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.45;
}
.mcc-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mcc-quick-grid a {
  display: grid;
  gap: 3px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: var(--paper-soft);
}
.mcc-quick-grid strong { color: var(--ink); font-size: 14px; }
.mcc-quick-grid span { color: var(--muted); font-size: 13px; line-height: 1.25; }
.mcc-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 22px 0 18px;
}
.mcc-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
}
.mcc-search span { color: var(--teal-dark); font-weight: 850; }
.mcc-search svg { width: 23px; height: 23px; flex: 0 0 auto; color: var(--teal-dark); stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mcc-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 17px;
}
.mcc-search input::placeholder { color: rgba(90, 103, 112, 0.72); }
.mcc-count { color: var(--muted); font-size: 14px; font-weight: 760; white-space: nowrap; }
.mcc-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mcc-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 154px;
  padding: 14px;
}
.mcc-item[hidden] { display: none; }
.mcc-code {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f7f6;
  color: var(--teal-dark);
  text-align: center;
  font-size: 28px;
  font-weight: 860;
  letter-spacing: -0.03em;
  overflow: hidden;
}
.mcc-code small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mcc-code-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
}
.mcc-code-list b {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 8px;
  font-size: 19px;
}
.mcc-info {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.mcc-info h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.mcc-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.42;
}
.mcc-tags { align-self: end; margin: 4px 0 11px; }
.mcc-tags span,
.merchant-meta span,
.confidence-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 760;
}
.mcc-info .button { width: 100%; min-height: 40px; }
.mcc-empty {
  display: none;
  margin-top: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  color: var(--muted);
}
.mcc-empty.is-visible { display: block; }

.store-examples { margin: 28px 0; }
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}
.merchant-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}
.merchant-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.018em;
}
.merchant-card p,
.merchant-source,
.source-note {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.42;
}
.merchant-source { display: grid; gap: 5px; }
.confidence-pill {
  border-color: rgba(183, 121, 31, 0.32);
  background: var(--amber-soft);
  color: #7a5205;
}

.inline-cta {
  margin: 24px 0;
  padding: 18px;
  background: #fff;
}
blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper-soft);
  color: #35444c;
  font-size: 17px;
  line-height: 1.55;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}
.toc,
.related,
.cta-panel { padding: 16px; }
.toc strong,
.related strong,
.cta-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}
.toc a,
.related a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 650;
  line-height: 1.25;
}
.toc a:first-of-type,
.related a:first-of-type { border-top: 0; }
.cta-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}
.cta-panel .button { width: 100%; }

.faq {
  margin-top: 20px;
  padding: clamp(22px, 3.5vw, 38px);
}
.article > .faq,
.article > .bottom-cta { width: min(1120px, calc(100vw - 40px)); }
.faq h2 { margin: 0 0 10px; }
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
details:first-of-type { border-top: 0; }
summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.28;
}
details p { margin: 9px 0 0; }
.bottom-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
  padding: clamp(22px, 3.5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.bottom-cta h2 { margin: 0 0 8px; }
.blog-bottom-cta {
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
  overflow: hidden;
}
.blog-cta-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}
.blog-bottom-cta .link-panel {
  margin-top: 4px;
  max-width: 620px;
}
.blog-cta-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 18%, rgba(15,118,110,.16), transparent 32%),
    linear-gradient(145deg, #eef6f3 0%, #fff 72%);
}
.preview-phone {
  width: min(230px, 100%);
  transform: rotate(2deg);
  border: 1px solid rgba(24,36,43,.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24,36,43,.12);
  padding: 18px;
}
.preview-row,
.preview-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(24,36,43,.09);
  padding: 13px 0;
}
.preview-row:first-child { padding-top: 2px; }
.preview-result {
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--teal-soft);
  padding: 14px;
}
.preview-row span,
.preview-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}
.preview-row strong,
.preview-result strong {
  color: var(--ink);
  font-size: 16px;
}
.preview-result strong {
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.link-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.18fr) minmax(220px, 0.82fr);
  gap: 12px;
  align-items: stretch;
  min-width: min(100%, 560px);
}
.link-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 13px;
}
.link-title {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}
.store-button-primary {
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--teal-dark);
}
.store-button::before,
.channel-icon {
  content: "";
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.store-button[data-store-link="google_play"]::before { background-image: url("/icons/brands/google-play.svg?v=5"); }
.store-button[data-store-link="app_store"]::before { background-image: url("/icons/brands/app-store.svg?v=5"); }
.store-button[data-store-link="rustore"]::before { background-image: url("/icons/brands/rustore.svg?v=5"); }
.store-button[data-store-link="huawei"]::before { background-image: url("/icons/brands/huawei-appgallery.svg?v=1"); }
.store-button[data-store-link="telegram"]::before { background-image: url("/icons/brands/telegram.svg"); border-radius: 999px; }
.store-button[data-store-link="max"]::before { background-image: url("/icons/brands/max.svg?v=5"); }
.store-button[data-store-link="google_play"],
.store-button[data-store-link="app_store"],
.store-button[data-store-link="rustore"],
.store-button[data-store-link="huawei"] {
  width: 144px;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  padding: 0;
}
.store-button[data-store-link="google_play"] { background-image: url("/icons/stores/google-play-ru.png?v=1"); }
.store-button[data-store-link="app_store"] { background-image: url("/icons/stores/app-store-ru.svg?v=1"); }
.store-button[data-store-link="rustore"] { background-image: url("/icons/stores/rustore-download-badge-black.svg?v=1"); }
.store-button[data-store-link="huawei"] {
  width: 162px;
  background-image: url("/icons/stores/appgallery-badge-en.svg?v=1");
}
.store-button[data-store-link="google_play"]::before,
.store-button[data-store-link="app_store"]::before,
.store-button[data-store-link="rustore"]::before,
.store-button[data-store-link="huawei"]::before {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(130px, auto));
  gap: 22px;
  align-items: start;
  width: 100%;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.footer-brand { color: var(--muted); font-weight: 720; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col strong {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a { color: var(--teal-dark); font-weight: 680; }

@media (max-width: 980px) {
  .layout,
  .mcc-hero,
  .blog-hero {
    grid-template-columns: 1fr;
  }
  .blog-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .features,
  .mini-steps,
  .plan-grid,
  .merchant-grid,
  .article-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-preview-card { grid-template-columns: 1fr; }
  .article-art {
    min-height: 154px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .article-svg { max-width: 128px; }
  .blog-bottom-cta { grid-template-columns: 1fr; }
  .mcc-directory { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page { width: min(100% - 32px, 1120px); }
  .nav { align-items: flex-start; }
  .site-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .site-links::-webkit-scrollbar { display: none; }
  .site-links a {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 34px;
    border-color: var(--line);
    background: #fff;
    padding: 0 12px;
    font-size: 13px;
  }
  .nav-actions .button { display: none; }
  .hero { padding: 30px 0 20px; }
  .blog-hero {
    gap: 18px;
    padding-bottom: 22px;
  }
  .blog-hero-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .blog-hero-panel a { padding: 11px 12px; }
  .hero h1,
  h1 {
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: -0.03em;
  }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; white-space: normal; text-align: center; }
  .features,
  .scenario-grid,
  .task-grid,
  .link-grid,
  .mini-steps,
  .plan-grid,
  .merchant-grid,
  .article-preview-grid,
  .sidebar,
  .mcc-quick-grid,
  .link-panel {
    grid-template-columns: 1fr;
  }
  .mcc-tools { grid-template-columns: 1fr; }
  .mcc-count { white-space: normal; }
  .feature-access-table table,
  .feature-access-table thead,
  .feature-access-table tbody,
  .feature-access-table tr,
  .feature-access-table td {
    display: block;
    width: 100%;
  }
  .feature-access-table thead { display: none; }
  .feature-access-table table { min-width: 0; }
  .feature-access-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .feature-access-table tr:last-child { border-bottom: 0; }
  .feature-access-table td {
    border-bottom: 0;
    padding: 8px 14px;
  }
  .feature-access-table td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .feature-access-table td:nth-child(1)::before { content: "Раздел"; }
  .feature-access-table td:nth-child(2)::before { content: "Free"; }
  .feature-access-table td:nth-child(3)::before { content: "PRO"; }
  .feature-access-table td:nth-child(4)::before { content: "Комментарий"; }
  .mcc-item {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mcc-code { min-height: 88px; }
  .article-preview-card {
    min-height: 0;
  }
  .article-art {
    min-height: 136px;
    padding: 14px;
  }
  .article-svg {
    max-width: 118px;
    justify-self: end;
  }
  .article-copy {
    padding: 15px;
  }
  .article-copy h3 {
    font-size: 20px;
  }
  .blog-cta-preview {
    min-height: 230px;
  }
  .article > .faq,
  .article > .bottom-cta {
    width: min(100vw - 32px, 1120px);
  }
  .footer-grid { grid-template-columns: 1fr; }
}
