@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   CFD Bonus Ratgeber — Design System
   Premium financial media. Dark base, restrained gold accent.
   ========================================================================== */

:root {
  /* --- Фоны --- */
  --bg-base:        #0D0F14;
  --bg-surface:     #13161D;
  --bg-elevated:    #1A1E28;
  --bg-subtle:      #0A0C10;

  /* --- Золото --- */
  --gold-bright:    #C9A84C;
  --gold-mid:       #A8843A;
  --gold-muted:     #6B5525;
  --gold-trace:     #2A1F0D;

  /* --- Текст --- */
  --text-primary:   #E8E2D5;
  --text-secondary: #8B8578;
  --text-tertiary:  #4A4540;
  --text-inverse:   #0D0F14;

  /* --- Границы --- */
  --border-subtle:  #1E2230;
  --border-default: #252A38;
  --border-gold:    #3D2E12;

  /* --- Семантика --- */
  --positive:       #2D6A4F;
  --positive-text:  #74C69D;
  --negative:       #6B2737;
  --negative-text:  #F28B82;
  --neutral:        #2A3045;
  --neutral-text:   #8BA3C7;

  /* --- Специальные --- */
  --risk-bg:        #1C140A;
  --risk-border:    #4A3010;
  --risk-text:      #C9A84C;

  /* --- Шрифты --- */
  --font-serif:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Шкала --- */
  --text-xs:    0.6875rem;
  --text-sm:    0.8125rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.5rem;
  --text-5xl:   3.5rem;
  --text-6xl:   4.5rem;

  /* --- Line-height --- */
  --lh-tight:   1.15;
  --lh-heading: 1.3;
  --lh-body:    1.65;
  --lh-loose:   1.8;

  /* --- Letter-spacing --- */
  --ls-tight:   -0.02em;
  --ls-wide:    0.08em;
  --ls-widest:  0.12em;

  /* --- Layout --- */
  --container-max:    1260px;
  --container-pad:    clamp(1rem, 4vw, 4rem);
  --content-col:      720px;
  --sidebar-col:      300px;
  --gap-content:      48px;
  --header-h:         64px;

  /* --- Spacing --- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* --- Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--lh-heading); }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold-mid); }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold-bright);
  color: var(--text-inverse);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

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

/* --------------------------------------------------------------------------
   Eyebrow / section headers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 var(--space-4);
}

.section-title {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: var(--lh-heading);
  margin: 0;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
  font-size: 110%;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 66ch;
  margin: var(--space-4) 0 0;
}

.section {
  padding: var(--space-20) 0;
  background: var(--bg-base);
}
.section--alt { background: var(--bg-surface); }
.section-head { margin-bottom: var(--space-10); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}
.logo:hover { color: var(--text-primary); }
.logo-mark { color: var(--gold-bright); font-size: 15px; line-height: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-right: auto;
}

.nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  text-underline-offset: 6px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--gold-bright);
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 7px;
  cursor: pointer;
  color: var(--text-primary);
}

.header .btn-primary { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-bright);
  color: var(--text-inverse);
  border: 1px solid var(--gold-bright);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary:hover {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
  color: var(--text-inverse);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover {
  background: var(--gold-trace);
  border-color: var(--gold-muted);
  color: var(--gold-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.cta-note {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding: 12px 0;
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumb-sep { color: var(--text-tertiary); font-size: 10px; }
.breadcrumbs [aria-current="page"] { color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.chart-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 0;
  animation: drift 40s linear infinite;
}

@keyframes drift { to { stroke-dashoffset: -400; } }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4) var(--container-pad) var(--space-16);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
  min-height: 460px;
  padding-top: var(--space-10);
}

h1 { margin: 0 0 var(--space-6); }

.h1-serif {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-6xl);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-bright);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

.h1-sans {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: var(--lh-heading);
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 var(--space-8);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: 11px;
  color: var(--text-tertiary);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  color: var(--text-secondary);
  background: rgba(19, 22, 29, 0.6);
}
.meta-badge svg { color: var(--gold-mid); flex-shrink: 0; }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-4);
  margin-top: var(--space-8);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.trust-item svg { color: var(--gold-mid); flex-shrink: 0; }

/* Hero data card */
.hero-data-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.rate-label {
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: 6px;
}

.rate-value {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.rate-change {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.rate-change.is-up { color: var(--positive-text); }
.rate-change.is-down { color: var(--negative-text); }

.rate-source {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.card-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-5) 0;
  border: 0;
}

.quick-list { display: grid; gap: var(--space-4); }
.quick-list-item { display: grid; gap: 2px; }
.quick-list-label {
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.quick-list-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.section--alt .card { background: var(--bg-base); }
.section--alt .card:hover { background: var(--bg-elevated); }

.card-title {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  line-height: var(--lh-heading);
}
.card-text { font-size: 14px; color: var(--text-secondary); line-height: var(--lh-body); margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }

/* Quick facts */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fact-cell {
  background: var(--bg-surface);
  padding: var(--space-5);
  display: grid;
  gap: 6px;
  align-content: start;
}
.section--alt .fact-cell { background: var(--bg-base); }
.fact-icon { color: var(--gold-mid); }
.fact-label {
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.fact-value { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.45; }

.source-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  margin: var(--space-6) 0;
}
.section--alt .table-wrapper { background: var(--bg-base); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-elevated); }

.table-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: -8px 0 var(--space-6);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge-positive { background: var(--positive); color: var(--positive-text); }
.badge-negative { background: var(--negative); color: var(--negative-text); }
.badge-neutral  { background: var(--neutral);  color: var(--neutral-text);  }
.badge-gold     { background: var(--gold-muted); color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   Risk box
   -------------------------------------------------------------------------- */

.risk-box {
  background: var(--risk-bg);
  border: 1px solid var(--risk-border);
  border-left: 3px solid var(--gold-bright);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: var(--space-6) 0;
}
.risk-box-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--gold-bright);
}
.risk-box-text { font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.risk-box-text strong { color: var(--gold-bright); font-weight: 500; }

/* --------------------------------------------------------------------------
   CTA blocks
   -------------------------------------------------------------------------- */

.cta-inline {
  background: var(--gold-trace);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: var(--space-8) 0;
}
.cta-inline-text { font-size: var(--text-base); color: var(--text-primary); font-weight: 500; }
.cta-inline-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.cta-inline-action { flex-shrink: 0; }

.cta-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 64px var(--container-pad);
  text-align: center;
}
.cta-section-inner { max-width: 720px; margin: 0 auto; }
.cta-section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  margin: 0 0 12px;
}
.cta-section-title em { color: var(--gold-bright); font-style: normal; }
.cta-section-sub { font-size: 14px; color: var(--text-secondary); margin: 0 0 var(--space-8); }
.cta-section .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Author / reviewer
   -------------------------------------------------------------------------- */

.author-block {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.section--alt .author-block { background: var(--bg-base); }

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-elevated);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--gold-mid);
}
.author-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.author-role { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.author-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; line-height: 1.6; }
.author-link { font-size: 12px; display: inline-block; margin-top: 8px; }

/* Expert verdict */
.verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.section--alt .verdict { background: var(--bg-base); }
.verdict-head { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.verdict-title { font-size: var(--text-xl); font-weight: 500; color: var(--text-primary); }
.rating { display: inline-flex; gap: 2px; color: var(--gold-bright); font-size: 13px; letter-spacing: 2px; }
.rating-note { font-size: 12px; color: var(--text-secondary); }
.verdict-body { font-size: 14px; color: var(--text-secondary); line-height: var(--lh-body); margin: var(--space-4) 0; }

.verdict-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-5); }
.marker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.marker-list li { display: flex; gap: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.marker-list svg { flex-shrink: 0; margin-top: 3px; }
.marker-list.is-positive svg { color: var(--positive-text); }
.marker-list.is-negative svg { color: var(--negative-text); }

/* --------------------------------------------------------------------------
   Methodology steps
   -------------------------------------------------------------------------- */

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.methodology-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-muted) 10%, var(--gold-muted) 90%, transparent);
}
.method-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 0;
}
.method-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-mid);
  border: 2px solid var(--bg-base);
  position: relative;
  z-index: 1;
}
.section--alt .method-step-dot { border-color: var(--bg-surface); }
.method-step-label { font-size: 12px; font-weight: 500; color: var(--text-primary); text-align: center; line-height: 1.4; }
.method-step-sub { font-size: 11px; color: var(--text-secondary); text-align: center; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Calculators
   -------------------------------------------------------------------------- */

.calculator {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.section--alt .calculator { background: var(--bg-base); }

.calculator-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.calc-field { display: block; }

.calc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  display: block;
}

.calc-input {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 8px 12px;
  width: 100%;
  transition: border-color 0.15s;
  font-variant-numeric: tabular-nums;
}
.section--alt .calc-input { background: var(--bg-surface); }
.calc-input:focus { outline: none; border-color: var(--gold-mid); }
select.calc-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.calc-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 22px;
}
.calc-static strong { color: var(--text-primary); font-weight: 500; font-variant-numeric: tabular-nums; }

.calc-results { display: grid; gap: var(--space-3); margin-top: var(--space-6); }

.calc-result {
  background: var(--bg-base);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.section--alt .calc-result { background: var(--bg-surface); }

.calc-result-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.calc-result-value {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.calc-result--muted { border-color: var(--border-default); }
.calc-result--muted .calc-result-value { color: var(--text-primary); font-size: 18px; }

.calc-disclaimer { font-size: 11px; color: var(--text-tertiary); margin-top: var(--space-4); line-height: 1.55; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { border-top: 1px solid var(--border-subtle); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  color: inherit;
}
.faq-question {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.45;
  transition: color 0.15s ease;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold-mid);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--gold-bright); }
.faq-answer {
  display: none;
  padding: 0 40px 18px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: var(--lh-body);
}
.faq-item.open .faq-answer { display: block; }

/* --------------------------------------------------------------------------
   Inner page layout
   -------------------------------------------------------------------------- */

.inner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px var(--container-pad) 64px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.toc-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 12px;
}
.toc-link {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.45;
}
.toc-link:hover,
.toc-link.active {
  color: var(--gold-bright);
  border-left-color: var(--gold-bright);
}

.side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px;
}
.side-card-title { font-size: 14px; font-weight: 500; color: var(--text-primary); margin: 0 0 6px; }
.side-card-sub { font-size: 12px; color: var(--text-secondary); margin: 0 0 14px; line-height: 1.5; }
.side-card .btn-primary { width: 100%; }

.side-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.side-block-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 10px;
}
.side-block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-block-list li { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose { max-width: var(--content-col); }
.inner-layout .prose { max-width: none; }

.prose h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin: 28px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose p {
  font-size: 16px;
  line-height: var(--lh-loose);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.prose > p:first-of-type {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.7;
}

.prose strong { color: var(--text-primary); font-weight: 500; }

.prose a { color: var(--gold-bright); text-decoration: underline; text-decoration-color: var(--border-gold); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold-bright); }

.prose ul { list-style: none; padding: 0; margin: 16px 0; }
.prose ul li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
  line-height: var(--lh-body);
}
.prose ul li::before {
  content: '—';
  color: var(--gold-mid);
  flex-shrink: 0;
  font-weight: 300;
}

.prose ol { counter-reset: list-counter; list-style: none; padding: 0; margin: 16px 0; }
.prose ol li {
  counter-increment: list-counter;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  line-height: var(--lh-body);
}
.prose ol li:last-child { border-bottom: none; }
.prose ol li::before {
  content: counter(list-counter, decimal-leading-zero);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-mid);
  font-family: var(--font-sans);
  flex-shrink: 0;
  min-width: 24px;
  padding-top: 4px;
}

.prose .data-table td:first-child { color: var(--text-primary); font-weight: 500; }

.lead-answer {
  border-left: 2px solid var(--gold-muted);
  padding-left: var(--space-5);
  margin-bottom: var(--space-8);
}
.lead-answer p { font-size: var(--text-lg); color: var(--text-primary); line-height: 1.7; margin: 0; }
.lead-answer p + p { margin-top: var(--space-4); font-size: 16px; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Infographics
   -------------------------------------------------------------------------- */

.figure {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}
.section--alt .figure { background: var(--bg-base); }
.figure-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 var(--space-5);
}
.figure-caption { font-size: 11px; color: var(--text-tertiary); margin-top: var(--space-4); line-height: 1.55; }
.figure-scroll { overflow-x: auto; }

.donut-row { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.donut-text { font-size: 13px; color: var(--text-secondary); line-height: var(--lh-body); max-width: 42ch; }

/* EU vs Offshore */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.compare-col { padding: 0 var(--space-6); }
.compare-col:first-child { border-right: 1px solid var(--border-subtle); padding-left: 0; }
.compare-col:last-child { padding-right: 0; }
.compare-head {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
}
.compare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compare-list li { display: flex; gap: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.mark-yes { color: var(--positive-text); flex-shrink: 0; }
.mark-no  { color: var(--negative-text); flex-shrink: 0; }

/* Pros & cons */
.proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.proscons-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.section--alt .proscons-col { background: var(--bg-base); }
.proscons-title { font-size: 14px; font-weight: 500; color: var(--text-primary); margin: 0 0 var(--space-4); }

/* Spoke cards */
.spoke-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.spoke-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.section--alt .spoke-card { background: var(--bg-base); }
.spoke-card:hover { background: var(--bg-elevated); border-color: var(--border-gold); }
.spoke-icon { color: var(--gold-mid); margin-top: 2px; }
.spoke-title { font-size: 15px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.spoke-teaser { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }

/* Definition rows */
.deflist { display: grid; gap: 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.deflist-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: var(--space-4);
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}
.section--alt .deflist-row { background: var(--bg-base); }
.deflist-row:last-child { border-bottom: none; }
.deflist-key { color: var(--text-tertiary); text-transform: uppercase; letter-spacing: var(--ls-wide); font-size: 11px; padding-top: 2px; }
.deflist-val { color: var(--text-primary); }

/* Regulator cards */
.reg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.reg-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--bg-surface);
}
.section--alt .reg-card { background: var(--bg-base); }
.reg-abbr { font-family: var(--font-serif); font-size: 28px; color: var(--gold-bright); line-height: 1; }
.reg-name { font-size: 13px; color: var(--text-primary); margin-top: 10px; font-weight: 500; }
.reg-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }

/* Sources list */
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.source-list li { font-size: 13px; color: var(--text-secondary); display: flex; gap: 10px; line-height: 1.55; }
.source-list li::before { content: '·'; color: var(--gold-mid); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid { display: grid; gap: var(--space-4); max-width: 560px; }
.form-status {
  display: none;
  border: 1px solid var(--border-gold);
  background: var(--gold-trace);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-primary);
}
.form-status.is-visible { display: block; }
.field-error { font-size: 11px; color: var(--negative-text); margin-top: 4px; display: none; }
.field-error.is-visible { display: block; }
textarea.calc-input { min-height: 140px; resize: vertical; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: none;
  gap: var(--space-5);
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-text { font-size: 13px; color: var(--text-secondary); line-height: 1.55; flex: 1 1 320px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 56px var(--container-pad) 32px;
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-10); }
.footer-brand-text { font-size: 13px; color: var(--text-secondary); margin-top: var(--space-4); max-width: 34ch; line-height: 1.6; }
.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--gold-bright); }

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.8;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Animation
   -------------------------------------------------------------------------- */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeSlideUp 0.4s ease forwards; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid { gap: var(--space-10); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .inner-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--bg-subtle);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-6) var(--container-pad);
    overflow-y: auto;
    z-index: 49;
  }
  .nav.is-open a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 16px;
  }
  .nav-toggle { display: inline-flex; }
  .header .btn-primary { display: none; }
  .nav.is-open .btn-primary { display: inline-flex; margin-top: var(--space-6); border-bottom: none; width: 100%; }
  .reg-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .verdict { grid-template-columns: 1fr; }
  .spoke-grid { grid-template-columns: 1fr; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-static { margin-top: 0; }
  .deflist-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 768px) {
  :root { --space-20: 3.5rem; }
  .hero-data-card { display: none; }
  .h1-serif { font-size: var(--text-4xl); }
  .h1-sans  { font-size: var(--text-2xl); }
  .section-title { font-size: var(--text-2xl); }
  .cta-section-title { font-size: var(--text-3xl); }
  .data-table { min-width: 600px; }
  .trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .methodology-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .methodology-steps::before { display: none; }
  .proscons, .grid-2, .verdict-lists, .compare-grid { grid-template-columns: 1fr; }
  .compare-col:first-child { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 0 0 var(--space-5); }
  .compare-col:last-child { padding: var(--space-5) 0 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .author-block { flex-direction: column; gap: var(--space-4); }
}

@media (max-width: 480px) {
  .h1-serif { font-size: 2rem; }
  .h1-sans  { font-size: 1.35rem; }
  .btn-row .btn-primary, .btn-row .btn-secondary { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
}

@media print {
  .header, .footer, .cookie-banner, .sidebar, .cta-inline, .cta-section { display: none !important; }
  body { background: #fff; color: #000; }
}
