/* FxPro / Гид — independent editorial visual system */
:root {
  --paper: #f6f5f1;
  --paper-deep: #ebe9e2;
  --ink: #171b20;
  --ink-soft: #4d535a;
  --line: #d3d0c8;
  --line-dark: #343a41;
  --red: #d72435;
  --red-dark: #ab1725;
  --white: #ffffff;
  --header: #1c2025;
  --max: 1320px;
  --measure: 740px;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(72px, 9vw, 132px);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--red);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red);
}

button,
select {
  font: inherit;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  color: var(--white);
  background: var(--red);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - (2 * var(--gutter))), var(--measure));
  margin-inline: auto;
}

.eyebrow,
.kicker,
.meta-label,
.figure-label {
  margin: 0;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  max-width: 1000px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7.2vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 720;
}

.lede {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.55;
}

.muted {
  color: var(--ink-soft);
}

.rule-top {
  border-top: 1px solid var(--line);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--white);
  background: var(--header);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  gap: clamp(24px, 4vw, 60px);
}

.brand {
  display: inline-grid;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand-note {
  margin-top: 7px;
  color: #bbbfc4;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: center;
}

.primary-nav ul,
.footer-nav ul,
.index-list,
.source-list,
.related-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 42px);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e9eaeb;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--white);
}

.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--red);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-field {
  position: relative;
}

.language-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-field select {
  min-width: 112px;
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  color: var(--white);
  background: #272c32;
  border: 1px solid #50565e;
  border-radius: 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid #4b5158;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  display: none;
  color: var(--white);
  background: var(--header);
  border-top: 1px solid #3c4249;
}

.mobile-panel-inner {
  padding-block: 22px 28px;
}

.mobile-panel nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-block: 8px;
  color: var(--white);
  border-bottom: 1px solid #343a41;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  text-decoration: none;
}

.mobile-language {
  margin-top: 20px;
}

.hero {
  padding-block: clamp(64px, 9vw, 126px) clamp(48px, 7vw, 92px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.hero-copy .eyebrow {
  margin-bottom: 26px;
}

.hero-copy h1 {
  font-size: clamp(3.65rem, 6.35vw, 6.8rem);
}

.hero-copy .lede {
  max-width: 630px;
  margin-bottom: 34px;
}

.hero-actions,
.section-actions,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.button-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-quiet {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.button-quiet:hover {
  color: var(--red);
  background: transparent;
  border-color: transparent;
}

.editorial-figure {
  margin: 0;
}

.editorial-figure-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: clamp(20px, 3vw, 42px);
  color: var(--white);
  background: var(--ink);
}

.editorial-figure-frame::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 42px;
  height: 5px;
  background: var(--red);
  content: "";
}

.editorial-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.risk-note {
  padding-block: 20px;
  border-block: 1px solid var(--line);
  color: #30353a;
  font-size: 0.82rem;
}

.risk-note .container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
}

.risk-mark {
  width: 8px;
  height: 20px;
  margin-top: 3px;
  background: var(--red);
}

.section {
  padding-block: var(--section);
}

.section-compact {
  padding-block: clamp(56px, 7vw, 90px);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ink);
}

.section-header .kicker {
  margin-bottom: 15px;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header p {
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--red) var(--paper-deep);
  border-bottom: 1px solid var(--ink);
}

.data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 24px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table tbody th {
  width: 19%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.6);
}

.table-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.journey {
  color: var(--white);
  background: var(--ink);
}

.journey .section-header {
  border-color: #4d535a;
}

.journey .section-header p {
  color: #b9bdc1;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
  counter-reset: journey;
}

.journey-step {
  position: relative;
  min-height: 245px;
  padding: 64px 28px 24px;
  border-left: 1px solid #40464d;
  counter-increment: journey;
}

.journey-step:last-child {
  border-right: 1px solid #40464d;
}

.journey-step::before {
  position: absolute;
  top: 0;
  left: 28px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
  content: "0" counter(journey);
}

.journey-step h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.journey-step p {
  color: #bfc2c5;
  font-size: 0.9rem;
}

.journey-step a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 6vw, 90px);
  padding-top: 50px;
}

.index-column {
  border-top: 4px solid var(--ink);
}

.index-column:nth-child(2) {
  border-top-color: var(--red);
}

.index-column h3 {
  padding: 22px 0 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.index-list li {
  border-bottom: 1px solid var(--line);
}

.index-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  gap: 20px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.index-list a::after {
  color: var(--red);
  content: "↗";
}

.index-list a:hover {
  color: var(--red);
}

.app-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.app-copy h2 {
  font-size: clamp(2.8rem, 4.6vw, 5.4rem);
}

.app-points {
  padding: 0;
  margin: 28px 0 34px;
  list-style: none;
}

.app-points li {
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--line);
  position: relative;
}

.app-points li::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--red);
  content: "";
}

.app-diagram {
  min-height: 560px;
  padding: clamp(20px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 24px 24px 0 var(--paper-deep);
}

.jurisdiction-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 120px);
  padding-top: 50px;
}

.jurisdiction-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.jurisdiction-list {
  border-top: 1px solid var(--ink);
}

.jurisdiction-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.jurisdiction-item h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.jurisdiction-item p {
  margin-bottom: 10px;
}

.citation {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--red-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.citation::before {
  margin-right: 8px;
  color: var(--ink-soft);
  content: "[источник]";
  font-weight: 650;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 18px 0;
  gap: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  content: "+";
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

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

.faq-answer {
  max-width: 760px;
  padding: 0 60px 26px 0;
  color: var(--ink-soft);
}

.sources-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(34px, 7vw, 100px);
  padding: clamp(34px, 5vw, 62px);
  background: var(--paper-deep);
  border-top: 5px solid var(--ink);
}

.sources-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 0 34px;
}

.source-list li {
  border-top: 1px solid #c5c1b8;
}

.source-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  min-height: 58px;
  padding: 15px 0;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.source-id {
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.updated {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.breadcrumbs {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 7px;
  color: #969b9f;
  content: "/";
}

.breadcrumbs a {
  color: inherit;
}

.article-hero,
.comparison-hero {
  padding-block: clamp(60px, 8vw, 112px);
  border-bottom: 1px solid var(--ink);
}

.article-hero h1,
.comparison-hero h1 {
  margin-top: 22px;
  font-size: clamp(3.2rem, 6.5vw, 6.6rem);
}

.article-hero .lede,
.comparison-hero .lede {
  max-width: 820px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, var(--measure)) minmax(80px, 1fr);
  gap: clamp(34px, 5vw, 76px);
  padding-block: clamp(54px, 8vw, 110px);
}

.toc {
  position: sticky;
  top: 116px;
  align-self: start;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
}

.toc-title {
  margin-bottom: 14px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  min-height: 42px;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  color: var(--red);
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
}

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

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

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  padding-top: 36px;
  margin-top: 54px;
  border-top: 1px solid var(--ink);
  font-size: clamp(2.1rem, 3.8vw, 3.65rem);
  scroll-margin-top: 110px;
}

.article-body h3 {
  margin-top: 36px;
}

.article-body p,
.article-body li {
  max-width: 720px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body a:not(.button) {
  color: var(--red-dark);
}

.article-body .table-wrap {
  margin-block: 34px;
}

.article-body .data-table {
  min-width: 660px;
  font-size: 0.9rem;
}

.article-body .data-table tbody th {
  width: 28%;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 780;
}

.article-figure {
  margin: 38px 0 46px;
  padding: clamp(22px, 4vw, 42px);
  color: var(--white);
  background: var(--ink);
}

.article-figure figcaption {
  padding-top: 16px;
  margin-top: 20px;
  color: #bfc2c5;
  border-top: 1px solid #464c53;
  font-size: 0.78rem;
}

.step-list {
  padding: 0;
  margin: 32px 0;
  list-style: none;
  counter-reset: article-step;
}

.step-list li {
  position: relative;
  min-height: 108px;
  padding: 24px 0 24px 76px;
  border-top: 1px solid var(--line);
  counter-increment: article-step;
}

.step-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-list li::before {
  position: absolute;
  top: 22px;
  left: 0;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
  content: "0" counter(article-step);
}

.step-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.callout {
  position: relative;
  padding: 28px 30px 28px 50px;
  margin: 38px 0;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.callout::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 24px;
  width: 4px;
  background: var(--red);
  content: "";
}

.callout strong {
  display: block;
  margin-bottom: 8px;
}

.inline-cite {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  color: var(--white) !important;
  background: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  vertical-align: 0.12em;
}

.related {
  padding-block: clamp(58px, 7vw, 90px);
  border-top: 1px solid var(--ink);
}

.related-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 50px;
}

.related h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 34px;
}

.related-list li {
  border-top: 1px solid var(--line);
}

.related-list a {
  display: block;
  min-height: 88px;
  padding: 18px 28px 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}

.comparison-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.decision-figure {
  margin: 0;
  padding: clamp(22px, 3vw, 38px);
  color: var(--white);
  background: var(--ink);
}

.decision-figure figcaption {
  padding-top: 14px;
  margin-top: 16px;
  color: #bfc2c5;
  border-top: 1px solid #454b51;
  font-size: 0.76rem;
}

.filter-bar {
  position: sticky;
  z-index: 50;
  top: 85px;
  padding-block: 18px;
  background: rgba(246, 245, 241, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.filter-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
}

.filter-button {
  min-height: 44px;
  padding: 8px 15px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.filter-status {
  min-width: 96px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-align: right;
}

.platform-cell strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.device-tag {
  display: inline-flex;
  padding: 3px 7px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-profiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
}

.platform-profile {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 280px;
  padding: 34px;
  gap: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-profile:nth-child(even) {
  border-right: 0;
}

.profile-index {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
}

.platform-profile h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.platform-profile p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.platform-profile a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-footer {
  padding-block: clamp(54px, 7vw, 86px) 30px;
  color: var(--white);
  background: var(--header);
  border-top: 5px solid var(--red);
}

.footer-top {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(50px, 8vw, 120px);
  padding-bottom: 56px;
}

.footer-brand .brand-name {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.footer-brand p {
  max-width: 400px;
  margin-top: 22px;
  color: #b9bdc1;
  font-size: 0.86rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.footer-nav h2 {
  margin-bottom: 15px;
  color: #888e94;
  font-family: inherit;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav li {
  border-top: 1px solid #3a4047;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 47px;
  color: #e5e6e7;
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 28px;
  color: #8f9499;
  border-top: 1px solid #3a4047;
  font-size: 0.7rem;
}

.footer-bottom p {
  max-width: 760px;
  margin: 0;
}

.footer-bottom a {
  color: #d5d7d9;
}

@media (max-width: 1120px) {
  .primary-nav,
  .header-tools > .language-field {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-tools {
    grid-column: 2;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel[data-open="true"] {
    display: block;
  }

  .hero-grid,
  .comparison-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .editorial-figure {
    max-width: 760px;
    margin-inline: auto;
  }

  .article-layout {
    grid-template-columns: 200px minmax(0, var(--measure));
  }

  .article-layout::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .section-header,
  .app-feature,
  .jurisdiction-grid,
  .sources-panel,
  .related-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
  }

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

  .journey-step:nth-child(2) {
    border-right: 1px solid #40464d;
  }

  .journey-step:nth-child(n + 3) {
    border-top: 1px solid #40464d;
    padding-top: 76px;
  }

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

  .guide-index {
    gap: 50px;
  }

  .app-copy {
    max-width: 640px;
  }

  .jurisdiction-intro,
  .toc {
    position: static;
  }

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

  .toc {
    padding: 20px;
    background: var(--paper-deep);
    border-top: 3px solid var(--ink);
  }

  .toc ol {
    columns: 2;
  }

  .platform-profiles {
    grid-template-columns: 1fr;
  }

  .platform-profile,
  .platform-profile:nth-child(even) {
    border-right: 0;
  }

  .source-list,
  .related-list {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    top: 83px;
  }

  .filter-bar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .filter-status {
    text-align: left;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  html {
    scroll-padding-top: 90px;
  }

  .container,
  .narrow {
    width: min(calc(100% - 40px), var(--max));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-name {
    font-size: 1.28rem;
  }

  .brand-note {
    max-width: 160px;
    font-size: 0.58rem;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  h1,
  .hero-copy h1,
  .article-hero h1,
  .comparison-hero h1 {
    font-size: clamp(3rem, 14.7vw, 4.15rem);
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    gap: 52px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 20px;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .button-quiet {
    justify-content: flex-start;
    padding-inline: 0;
  }

  .editorial-figure-frame {
    min-height: 360px;
    padding: 20px;
  }

  .editorial-figure figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .risk-note .container {
    gap: 12px;
  }

  .section-header {
    gap: 20px;
    padding-bottom: 26px;
  }

  .data-table th,
  .data-table td {
    padding: 18px 16px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-step,
  .journey-step:nth-child(2),
  .journey-step:nth-child(n + 3) {
    min-height: 0;
    padding: 72px 22px 26px;
    border-top: 1px solid #40464d;
    border-right: 1px solid #40464d;
  }

  .journey-step::before {
    top: 22px;
    left: 22px;
  }

  .app-diagram {
    min-height: 390px;
    padding: 16px;
    box-shadow: 10px 10px 0 var(--paper-deep);
  }

  .jurisdiction-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .faq-list summary {
    min-height: 68px;
    font-size: 1.12rem;
  }

  .faq-answer {
    padding-right: 0;
  }

  .sources-panel {
    padding: 30px 20px;
  }

  .article-hero,
  .comparison-hero {
    padding-block: 50px 58px;
  }

  .article-meta {
    flex-direction: column;
    gap: 2px;
  }

  .toc ol {
    columns: 1;
  }

  .article-body h2 {
    padding-top: 28px;
    margin-top: 44px;
  }

  .step-list li {
    padding-left: 62px;
  }

  .callout {
    padding: 24px 20px 24px 42px;
  }

  .callout::before {
    left: 18px;
  }

  .platform-profile {
    grid-template-columns: 52px 1fr;
    min-height: 0;
    padding: 26px 0;
  }

  .profile-index {
    font-size: 2rem;
  }

  .filter-bar {
    top: 77px;
  }

  .filter-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .filter-button {
    width: 100%;
  }

  .footer-nav {
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .mobile-panel,
  .filter-bar,
  .site-footer,
  .hero-actions,
  .section-actions {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .container,
  .narrow {
    width: 100%;
  }

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