/* ============================================================
   MAG Global Link
   Navy ink on warm paper. Route codes (CN → ZA) are the signature.
   ============================================================ */
:root {
  --paper: #F6F4EF;
  --card: #FFFFFF;
  --raised: #EEEAE2;
  --ink: #0F1D33;
  --ink-2: #44506A;
  --ink-3: #5F6A80;
  --line: rgba(15, 29, 51, .10);
  --line-2: rgba(15, 29, 51, .18);

  --navy: #0A3D7C;
  --navy-deep: #082B57;
  --navy-ink: #061F40;
  --on-navy-2: rgba(255, 255, 255, .82);
  --on-navy-3: rgba(255, 255, 255, .66);
  --line-navy: rgba(255, 255, 255, .16);

  --gold: #F4B400;
  --wa: #15803D;
  --wa-hover: #116B33;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-card: 14px;
  --r-lg: 18px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-float: 0 12px 32px rgba(15, 29, 51, .12), 0 1px 2px rgba(15, 29, 51, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
svg { flex: none; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .dark :focus-visible, .footer :focus-visible, .cta-band :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.03em; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.code { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0; white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--white { background: var(--card); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 56px);
}
.section-head .lead { max-width: 32rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--navy); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #FFC424; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--raised); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .8); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--navy); text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .16s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.prose a, .link { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.header__inner { display: flex; align-items: center; gap: 32px; }
.header.is-solid { background: var(--paper); box-shadow: 0 1px 0 var(--line); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand img { width: 60px; height: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; color: #fff; transition: color .2s var(--ease); }
.brand__word strong { font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.brand__word small { margin-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: .26em; opacity: .85; }
.header.is-solid .brand__word { color: var(--navy); }
.header.is-solid .brand__word small { color: var(--ink-3); opacity: 1; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a:not(.btn) {
  padding-block: 8px; font-size: 15px; font-weight: 500; text-decoration: none;
  color: rgba(255, 255, 255, .86); transition: color .16s var(--ease);
}
.nav a:not(.btn):hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.header.is-solid .nav a:not(.btn) { color: var(--ink-2); }
.header.is-solid .nav a:not(.btn):hover, .header.is-solid .nav a[aria-current="page"] { color: var(--ink); }

.burger {
  display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border-radius: var(--r);
  background: transparent; border: 1px solid rgba(255, 255, 255, .4); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.header.is-solid .burger { border-color: var(--line-2); }
.header.is-solid .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: min(100svh, 900px);
  color: #fff; background: var(--navy-ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 31, 64, .94) 0%, rgba(6, 31, 64, .84) 36%, rgba(8, 43, 87, .5) 70%, rgba(8, 43, 87, .32) 100%),
    linear-gradient(0deg, rgba(6, 31, 64, .9) 0%, rgba(6, 31, 64, 0) 30%);
}
.hero__inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px;
}
.hero__text { max-width: 660px; }
.hero h1 { color: #fff; }
.hero__lead { margin-top: 24px; max-width: 34rem; font-size: 20px; line-height: 1.55; color: var(--on-navy-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__lead, .hero__actions { animation: rise .5s var(--ease) both; }
.hero__actions { animation-delay: .06s; }

.routes { border-top: 1px solid var(--line-navy); }
.routes__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; padding-block: 20px 24px; }
.routes__label { font-size: 15px; color: var(--on-navy-3); }
.routes__list { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.routes__list a { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; }
.routes__list .code { color: var(--gold); font-size: 12px; }
.routes__list a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro .h2 { margin-bottom: 24px; }
.intro .lead { margin-bottom: 16px; }
.intro .muted { margin-bottom: 32px; max-width: 32rem; }
.intro__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.intro__media figure:nth-child(2) { margin-top: 56px; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); background: var(--raised); }
.photo figcaption { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--raised); }
.cat h3 { margin-top: 16px; font-size: 20px; }
.cat p { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.cats-more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
.cats-more a { color: var(--navy); font-weight: 500; }

/* rows variant: thumbnail beside text (country pages, and every page on phones) */
.cats--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cats--rows .cat { display: flex; gap: 20px; align-items: center; padding-block: 20px; border-top: 1px solid var(--line); }
.cats--rows .cat img { width: 112px; aspect-ratio: 1; border-radius: var(--r); flex: none; }
.cats--rows .cat h3 { margin-top: 0; font-size: 19px; }

/* ---------- End to end ---------- */
.e2e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.e2e .h2 { margin-bottom: 20px; }
.svc { margin-top: 40px; border-bottom: 1px solid var(--line); }
.svc li { display: flex; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.svc svg { width: 24px; height: 24px; margin-top: 2px; color: var(--navy); }
.svc h3 { font-size: 19px; margin-bottom: 4px; }
.svc p { color: var(--ink-2); font-size: 16px; }

.e2e__visual { position: sticky; top: calc(var(--header-h) + 32px); padding-bottom: 96px; }
.e2e__visual > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--raised); }
.e2e__visual .slip { position: absolute; left: -32px; bottom: 0; }

/* The shipment slip: a paper waybill */
.slip {
  width: min(360px, 100%); padding: 20px 24px 24px; border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow-float);
}
.slip__head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.slip__route { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--ink); }
.slip__route i { flex: 1; border-top: 1.5px dashed var(--ink-3); position: relative; }
.slip__route i::after { content: ""; position: absolute; right: -1px; top: -5px; width: 8px; height: 8px; border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3); transform: rotate(45deg); }
.slip__item { margin-top: 4px; margin-bottom: 20px; font-weight: 500; }
.slip__steps { display: grid; gap: 12px; }
.slip__steps li { position: relative; padding-left: 32px; font-size: 15px; color: var(--ink-3); }
.slip__steps li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--card);
}
.slip__steps li:not(:last-child)::after { content: ""; position: absolute; left: 9.25px; top: 24px; height: 10px; border-left: 1.5px solid var(--line-2); }
.slip__steps .done { color: var(--ink); }
.slip__steps .done::before {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.slip__steps .done::after { border-color: var(--navy); }
.slip__steps .now { color: var(--navy); font-weight: 600; }
.slip__steps .now::before { border: 6px solid var(--navy); }

/* ---------- Study (dark) ---------- */
.dark { background: var(--navy-deep); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .muted { color: var(--on-navy-2); }
.study { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.study__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 64% center; border-radius: var(--r-lg); }
.study .h2 { margin-bottom: 20px; }
.checks { display: grid; gap: 12px; margin-top: 32px; }
.checks li { display: flex; gap: 12px; color: #fff; }
.checks svg { width: 20px; height: 20px; margin-top: 4px; color: var(--gold); }
.study__programmes { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-navy); color: var(--on-navy-2); font-size: 16px; }
.study__programmes strong { color: #fff; font-weight: 500; }
.study__note { margin: 16px 0 32px; color: var(--on-navy-3); font-size: 15px; }
.study__note a { color: inherit; text-decoration: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { position: relative; }
.steps__n { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--navy); }
.steps__n::after { content: ""; flex: 1; border-top: 1.5px dashed var(--line-2); }
.steps li:last-child .steps__n::after { border-top-style: solid; border-color: var(--navy); max-width: 24px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .h2 { margin-bottom: 20px; }
.contact__list { margin-top: 40px; border-bottom: 1px solid var(--line); }
.contact__list a { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); text-decoration: none; }
.contact__list svg { width: 22px; height: 22px; color: var(--navy); }
.contact__list .wa-ico { color: var(--wa); }
.contact__list small { display: block; font-size: 14px; color: var(--ink-3); }
.contact__list strong { display: block; font-weight: 500; font-size: 18px; overflow-wrap: anywhere; }
.contact__list a:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact__note { margin-top: 24px; font-size: 15px; color: var(--ink-3); }
.contact__note a { color: inherit; text-decoration: none; }

.form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font: 400 17px/1.4 var(--sans);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field select { appearance: none; padding-right: 40px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6A80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 61, 124, .14); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field__error { margin-top: 6px; font-size: 14px; color: #B42318; }
.form__note { font-size: 14px; color: var(--ink-3); }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-ink); color: var(--on-navy-2); padding: 72px 0 32px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand__word { color: #fff; }
.footer__brand p { margin-top: 20px; max-width: 18rem; }
.footer__h { margin-bottom: 16px; color: #fff; font-weight: 600; font-size: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .16s var(--ease); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer .code { color: var(--gold); margin-right: 8px; font-size: 12px; }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; font-size: 14px; color: var(--on-navy-3); }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-navy); }
.footer__bottom nav { display: flex; gap: 24px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; display: block;
  filter: drop-shadow(0 6px 12px rgba(15, 29, 51, .25));
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.wa-float svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wa-float.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* ============================================================
   Inner pages (countries, hub, privacy, 404)
   ============================================================ */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px;
  color: #fff; background: var(--navy-ink);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 31, 64, .95) 0%, rgba(6, 31, 64, .86) 50%, rgba(8, 43, 87, .6) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; max-width: 15ch; }
.page-hero--plain h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 20px; max-width: 36rem; color: var(--on-navy-2); }
.page-hero .hero__actions { margin-top: 32px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; font-size: 14px; color: var(--on-navy-3); }
.crumbs a { color: var(--on-navy-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--on-navy-3); }

.route-code { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-navy); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--on-navy-3); }
.facts dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; color: #fff; line-height: 1.4; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .h2 { position: sticky; top: calc(var(--header-h) + 32px); }

.prose { max-width: 42rem; font-size: 18px; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; font-size: 26px; color: var(--ink); }
.prose h3 { margin-top: 32px; font-size: 20px; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li + li { margin-top: 8px; }

/* Journey: a dashed route line down the page */
.journey { position: relative; display: grid; gap: 0; }
.journey li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding-bottom: 32px; }
.journey li::before { content: ""; position: absolute; left: 112px; top: 10px; bottom: -6px; border-left: 1.5px dashed var(--line-2); }
.journey li:last-child::before { display: none; }
.journey li::after { content: ""; position: absolute; left: 107px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--navy); }
.section--white .journey li::after { background: var(--card); }
.journey li:last-child::after { background: var(--navy); }
.journey .code { padding-top: 2px; color: var(--navy); text-align: right; }
.journey h3 { padding-left: 24px; font-size: 19px; margin-bottom: 4px; }
.journey p { padding-left: 24px; color: var(--ink-2); font-size: 16px; }

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.tips li { padding-block: 24px; border-top: 1px solid var(--line); }
.tips h3 { font-size: 19px; margin-bottom: 8px; }
.tips p { color: var(--ink-2); font-size: 16px; }

.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 20px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding-bottom: 24px; max-width: 44rem; color: var(--ink-2); }
.faq details > div p + p { margin-top: 12px; }

.cta-band { background: var(--navy-deep); color: #fff; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 56px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; max-width: 22ch; }
.cta-band p { margin-top: 8px; color: var(--on-navy-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.country {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.section--white .country { background: var(--paper); }
.country:hover { border-color: var(--navy); }
.country .code { color: var(--navy); }
.country strong { font-size: 21px; font-weight: 600; }
.country span:last-child { color: var(--ink-2); font-size: 16px; }
.country--current { pointer-events: none; opacity: .55; }

.notfound { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; z-index: -1; height: 100dvh; width: min(340px, 88vw);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: calc(var(--header-h) + 24px) 24px 32px; background: var(--paper);
    visibility: hidden; transform: translateX(100%);
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { visibility: visible; transform: none; transition: transform .3s var(--ease); box-shadow: -16px 0 48px rgba(6, 31, 64, .25); }
  .nav a:not(.btn), .header.is-solid .nav a:not(.btn) { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--navy); }
  .nav .btn { margin-top: 24px; min-height: 52px; font-size: 17px; }
  body.menu-open .brand__word { color: var(--navy); }
  body.menu-open .brand__word small { color: var(--ink-3); }
  body.menu-open .burger { border-color: var(--line-2); }
  body.menu-open .burger span { background: var(--ink); }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(6, 31, 64, .45); }

  .section-head, .intro, .e2e, .study, .contact, .split { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }
  .split > .h2 { position: static; }
  .e2e__visual { position: relative; top: 0; max-width: 560px; }
  .study__media img { aspect-ratio: 16 / 11; object-position: 64% 30%; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats--rows, .tips { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand img { width: 48px; }
  .brand__word strong { font-size: 22px; }
  .brand__word small { font-size: 9.5px; }

  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(6, 31, 64, .88) 0%, rgba(6, 31, 64, .78) 60%, rgba(6, 31, 64, .94) 100%); }
  .hero__inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
  .h1 { font-size: 42px; }
  .hero__lead { font-size: 19px; }
  .hero__actions .btn { width: 100%; min-height: 52px; font-size: 17px; }
  .routes__inner { display: block; padding-block: 20px 28px; }
  .routes__label { display: block; margin-bottom: 12px; }
  .routes__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }

  .h2 { font-size: 32px; }
  .intro__media figure:nth-child(2) { margin-top: 40px; }
  .photo figcaption { font-size: 14px; }

  .cats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cat { display: flex; gap: 16px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); }
  .cat img { width: 96px; aspect-ratio: 1; border-radius: var(--r); flex: none; }
  .cat h3 { margin-top: 0; font-size: 18px; }
  .cats--rows .cat img { width: 96px; }
  .cats-more { margin-top: 24px; }

  .e2e__visual { padding-bottom: 0; }
  .e2e__visual > img { aspect-ratio: 4 / 3; }
  .e2e__visual .slip { position: relative; left: auto; bottom: auto; margin: -48px auto 0; width: calc(100% - 24px); }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps__n::after { display: none; }

  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form .btn { justify-self: stretch; min-height: 52px; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }

  .page-hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero .hero__actions .btn { width: 100%; min-height: 52px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .countries { grid-template-columns: minmax(0, 1fr); }
  .journey li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-left: 32px; }
  .journey li::before { left: 6px; top: 10px; }
  .journey li::after { left: 1px; }
  .journey .code { text-align: left; }
  .journey h3, .journey p { padding-left: 0; }
  .faq summary { font-size: 18px; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
}

@media print {
  .header, .wa-float, .burger { display: none; }
  .hero, .page-hero, .dark, .footer, .cta-band { background: #fff; color: #000; }
}
