@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f3f5f4;
  --surface: #ffffff;
  --mist: #e2e9e6;
  --line: #cfd8d5;
  --ink: #16212b;
  --muted: #52606b;
  --wine: #7c1f33;
  --wine-dark: #5f1626;
  --wine-tint: #f4e6e9;
  --stamp: #1f6a4e;
  --stamp-tint: #e1efe8;
  --warn: #8a5a00;
  --warn-tint: #fbf1dc;

  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 66ch;
  --wrap: 72rem;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 800;
}

h2 {
  font-size: var(--step-3);
  font-weight: 750;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: var(--wine);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--wine-dark);
}

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Notice bars */

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.4rem 0.7rem;
  font: inherit;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--mist);
  }

  .nav .button {
    margin-top: 0.8rem;
    text-align: center;
  }
}

/* Buttons */

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-s);
  border: 2px solid var(--wine);
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  color: #fff;
}

.button-quiet {
  background: transparent;
  color: var(--wine);
}

.button-quiet:hover {
  background: var(--wine-tint);
  color: var(--wine-dark);
}

.button-small {
  padding: 0.55rem 1rem;
  font-size: var(--step--1);
}

.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav .button {
  color: #fff;
}

.nav .button-quiet {
  color: var(--wine);
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow-x: clip;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.4rem;
}

.hero-note {
  font-size: var(--step--1);
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* Passport data page illustration */

.passport {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(22, 33, 43, 0.45);
  background-image:
    repeating-linear-gradient(115deg, transparent 0 14px, rgba(124, 31, 51, 0.035) 14px 15px),
    repeating-linear-gradient(65deg, transparent 0 22px, rgba(31, 106, 78, 0.03) 22px 23px);
  max-width: 30rem;
  justify-self: end;
  width: 100%;
  margin: 0;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .passport {
    justify-self: start;
  }
}

.passport-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.passport-body {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.1rem;
}

.passport-photo {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background: var(--mist);
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.passport-photo svg {
  width: 80%;
}

.passport-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
}

.passport-fields div {
  min-width: 0;
}

.passport-fields dt {
  font-size: 0.72rem;
  color: var(--muted);
}

.passport-fields dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.passport-fields .wide {
  grid-column: 1 / -1;
}

.mrz {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 0.42rem + 0.5vw, 0.74rem);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: #34414c;
  white-space: nowrap;
  overflow: hidden;
}

.stamp {
  position: absolute;
  right: 1.4rem;
  bottom: 1.1rem;
  transform: rotate(-11deg);
  border: 3px solid var(--stamp);
  color: var(--stamp);
  border-radius: 10px;
  padding: 0.35rem 0.9rem 0.45rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.92);
}

.stamp small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .stamp {
    animation: stamp-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.9s both;
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(-11deg) scale(1.9);
  }
  to {
    opacity: 1;
    transform: rotate(-11deg) scale(1);
  }
}

/* Sections */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.4rem;
}

.section-head p {
  color: var(--muted);
}

/* ETIAS facts */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.facts div {
  padding: 1.2rem 1.2rem 0.4rem 0;
}

.facts div + div {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 650;
  line-height: 1.15;
}

.facts dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: var(--step--1);
}

@media (max-width: 760px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

.callout {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--warn);
  background: var(--warn-tint);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  max-width: 48rem;
}

.callout p {
  margin: 0;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.2rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 2px solid var(--wine);
  color: var(--wine);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 3rem;
  right: -0.8rem;
  border-top: 2px dotted var(--line);
}

.steps p {
  color: var(--muted);
  font-size: var(--step--1);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps li {
    padding: 0 0 1.6rem 3.4rem;
  }

  .steps li:not(:last-child)::after {
    top: 2.6rem;
    left: 1.1rem;
    right: auto;
    bottom: 0.2rem;
    border-top: 0;
    border-left: 2px dotted var(--line);
  }
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.6rem;
}

.service-featured {
  border: 2px solid var(--wine);
}

.service-tag {
  align-self: flex-start;
  background: var(--wine);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.service p {
  color: var(--muted);
  font-size: var(--step--1);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.6rem 0 0.2rem;
}

.price strong {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
}

.price span {
  color: var(--muted);
  font-size: var(--step--1);
}

.price-tax {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: var(--step--1);
}

.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.75rem;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--stamp);
  border-bottom: 2px solid var(--stamp);
  transform: rotate(-45deg);
}

.checklist li.you::before {
  border: 0;
  width: 0.5rem;
  height: 0.5rem;
  top: 0.8rem;
  border-radius: 50%;
  background: var(--muted);
  transform: none;
}

.service .button {
  margin-top: auto;
  text-align: center;
}

@media (max-width: 960px) {
  .services {
    grid-template-columns: 1fr;
  }
}

.services-foot {
  margin-top: 1.6rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* Price calculator */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

.receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.5rem;
  position: sticky;
  top: 5.5rem;
}

.receipt h3 {
  margin-bottom: 1rem;
}

.receipt-rows {
  margin: 0;
}

.receipt-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}

.receipt-rows dt {
  color: var(--muted);
}

.receipt-rows dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
}

.receipt-rsd {
  text-align: right;
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0.1rem 0 0;
  max-width: none;
}

.receipt-note {
  margin: 1rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.receipt .button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* Forms */

.field {
  margin-bottom: 1.2rem;
}

.field > label,
.field > legend,
.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hint {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #b7c2bf;
  border-radius: var(--radius-s);
  padding: 0.7rem 0.8rem;
  min-height: 2.9rem;
}

input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 1px;
}

input[aria-invalid="true"] {
  border-color: #b3261e;
}

.error {
  color: #b3261e;
  font-size: var(--step--1);
  margin-top: 0.3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.stepper-input {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b7c2bf;
  border-radius: var(--radius-s);
  background: var(--surface);
  overflow: hidden;
}

.stepper-input button {
  font: inherit;
  font-size: 1.3rem;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}

.stepper-input button:hover {
  background: var(--line);
}

.stepper-input output {
  min-width: 3rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  cursor: pointer;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  flex: none;
  accent-color: var(--wine);
}

/* Option tiles (radio) */

.options {
  display: grid;
  gap: 0.7rem;
}

.option {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid #b7c2bf;
  border-radius: var(--radius-m);
  background: var(--surface);
  cursor: pointer;
}

.option input {
  margin: 0.3rem 0 0;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  accent-color: var(--wine);
}

.option:has(input:checked) {
  border: 2px solid var(--wine);
  padding: calc(1rem - 1px) calc(1.1rem - 1px);
  background: #fffafb;
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--wine);
  outline-offset: 2px;
}

.option-body {
  flex: 1;
  min-width: 0;
}

.option-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

.option-title span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.option-desc {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Traveler rows in calculator and order */

.travelers {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.traveler-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.traveler-row span {
  font-weight: 600;
  font-size: var(--step--1);
}

/* Guarantee */

.guarantee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

@media (max-width: 860px) {
  .guarantee {
    grid-template-columns: 1fr;
  }
}

.plain-list {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.plain-list li {
  margin-bottom: 0.4rem;
}

/* FAQ */

.faq {
  max-width: 48rem;
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.2rem 1.1rem 0;
  font-weight: 600;
  font-size: var(--step-1);
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 0.9rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--wine);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
}

/* Closing call */

.closing {
  background: var(--wine);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.closing h2 {
  max-width: 22ch;
}

.closing p {
  color: #f1dfe3;
}

.closing .button {
  background: #fff;
  border-color: #fff;
  color: var(--wine);
}

.closing .button:hover {
  background: var(--wine-tint);
  border-color: var(--wine-tint);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #c4ced4;
  font-size: var(--step--1);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h2 {
  font-size: var(--step-0);
  color: #fff;
  margin-bottom: 0.7rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-legal {
  border-top: 1px solid #2c3a46;
  padding-top: 1.4rem;
}

.footer-legal p {
  max-width: none;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Order flow */

.flow {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 960px) {
  .flow-layout {
    grid-template-columns: 1fr;
  }

  .flow-layout .receipt {
    position: static;
    order: -1;
  }
}

.progress {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  gap: 0.4rem;
  counter-reset: progress;
}

.progress li {
  counter-increment: progress;
  flex: 1;
  font-size: var(--step--1);
  color: var(--muted);
  padding-top: 0.6rem;
  border-top: 4px solid var(--line);
}

.progress li::before {
  content: counter(progress) ". ";
}

.progress li.is-done {
  border-top-color: var(--stamp);
  color: var(--ink);
}

.progress li.is-current {
  border-top-color: var(--wine);
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 600px) {
  .progress li:not(.is-current) {
    font-size: 0;
  }

  .progress li:not(.is-current)::before {
    font-size: var(--step--1);
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.panel + .panel {
  margin-top: 1.2rem;
}

.panel h2 {
  font-size: var(--step-2);
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.flow-actions .button:only-child {
  margin-left: auto;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

@media (max-width: 600px) {
  .pay-methods {
    grid-template-columns: 1fr;
  }
}

.bank-mock {
  margin-top: 1.2rem;
  padding: 1.2rem;
  border: 1px dashed #b7c2bf;
  border-radius: var(--radius-m);
  background: var(--paper);
}

.bank-mock-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1rem;
}

.qr {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.qr svg {
  width: 9.5rem;
  height: 9.5rem;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid var(--line);
}

.processing {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  font-weight: 600;
}

.spinner {
  width: 1.3rem;
  height: 1.3rem;
  border: 3px solid var(--line);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }

  html {
    scroll-behavior: auto;
  }
}

.paid {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--stamp-tint);
  color: var(--stamp);
  border-radius: var(--radius-s);
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.traveler-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.traveler-card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.scan-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border-radius: var(--radius-s);
  margin-bottom: 1.2rem;
  font-size: var(--step--1);
}

.scan-box p {
  margin: 0;
  flex: 1 1 14rem;
}

.yesno {
  display: flex;
  gap: 1.5rem;
}

.yesno label {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.question {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--mist);
}

.question p {
  margin-bottom: 0.5rem;
}

.done-head {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.done-head .stamp {
  position: static;
  animation: none;
}

.order-id {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  background: var(--paper);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Status timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 2.4rem;
  color: var(--muted);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.76rem;
  top: 1.4rem;
  bottom: 0.1rem;
  border-left: 2px solid var(--line);
}

.timeline strong {
  display: block;
  color: inherit;
}

.timeline small {
  display: block;
  font-size: var(--step--1);
}

.timeline li.is-done {
  color: var(--ink);
}

.timeline li.is-done::before {
  background: var(--stamp);
  border-color: var(--stamp);
}

.timeline li.is-done::after {
  border-left-color: var(--stamp);
}

.timeline li.is-current {
  color: var(--ink);
}

.timeline li.is-current::before {
  border-color: var(--wine);
  background: var(--wine-tint);
  box-shadow: 0 0 0 4px var(--wine-tint);
}

/* Prose pages (policies) */

.prose {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.prose .wrap {
  max-width: 46rem;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  margin: 1rem 0 1.5rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.draft {
  display: inline-block;
  background: var(--warn-tint);
  color: var(--warn);
  font-weight: 600;
  font-size: var(--step--1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.meta {
  color: var(--muted);
  font-size: var(--step--1);
}

/* Long-form pages (ETIAS guide, internal notes) */

.page-head {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-head .hero-lead {
  max-width: 52ch;
}

.doc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3rem) 0 4rem;
}

.toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  font-size: var(--step--1);
}

.toc h2 {
  font-size: var(--step-0);
  margin-bottom: 0.6rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--wine);
  border-left-color: var(--wine);
}

.doc-body {
  max-width: 44rem;
}

.doc-body section {
  scroll-margin-top: 5.5rem;
  margin-bottom: 2.6rem;
}

.doc-body h2 {
  font-size: var(--step-2);
}

.doc-body h3 {
  margin-top: 1.4rem;
}

.doc-body .callout {
  margin-top: 1rem;
}

.country-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  columns: 3 11rem;
  column-gap: 1.5rem;
}

.country-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--mist);
  break-inside: avoid;
}

.doc-cta {
  background: var(--wine);
  color: #fff;
  border-radius: var(--radius-m);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 1rem 0 2rem;
}

.doc-cta p {
  color: #f1dfe3;
}

.doc-cta .button {
  background: #fff;
  border-color: #fff;
  color: var(--wine);
}

.doc-cta .button:hover {
  background: var(--wine-tint);
  border-color: var(--wine-tint);
}

@media (max-width: 860px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1rem 1.2rem;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  margin: 1rem 0 1.5rem;
}

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

.data-table th {
  font-weight: 700;
}

.data-table td:last-child {
  white-space: nowrap;
}

.more-link {
  margin-top: 1.4rem;
  font-weight: 600;
}

/* Internal pages */

.internal-bar {
  background: var(--warn-tint);
  color: var(--warn);
  border-bottom: 1px solid #ecdcb8;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.55rem 0;
}

.brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

.internal-nav {
  border-top: 1px solid var(--mist);
}

.internal-nav .wrap {
  display: flex;
  justify-content: flex-start;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 0;
}

.internal-nav a {
  padding: 0.7rem 0.6rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

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

.internal-nav a[aria-current="page"] {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  vertical-align: 0.1em;
  white-space: nowrap;
}

.tag-ok {
  background: var(--stamp-tint);
  color: var(--stamp);
}

.tag-check {
  background: var(--warn-tint);
  color: var(--warn);
}

.tag-open {
  background: var(--wine-tint);
  color: var(--wine);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.blocker {
  border: 1px solid var(--line);
  border-left: 4px solid var(--wine);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--surface);
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
}

.blocker h3 {
  margin: 0 0 0.4rem;
}

.blocker p {
  margin: 0 0 0.4rem;
  font-size: var(--step--1);
}

.roadmap {
  margin: 0;
  padding-left: 1.4rem;
}

.roadmap li {
  margin-bottom: 0.9rem;
  padding-left: 0.3rem;
}

.roadmap li::marker {
  font-weight: 800;
  color: var(--wine);
}

.roadmap p {
  margin: 0.2rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-links a {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink);
}

.page-links a:hover {
  border-color: var(--wine);
}

.page-links strong {
  display: block;
  color: var(--wine);
}

.page-links span {
  font-size: var(--step--1);
  color: var(--muted);
}

@media (max-width: 600px) {
  .page-links {
    grid-template-columns: 1fr;
  }
}

/* Numbered question lists with a prefix (A1, K1, Z1) */

.question-list {
  padding-left: 2.6rem;
  margin: 0 0 1.5rem;
}

.question-list > li {
  margin-bottom: 1rem;
  padding-left: 0.3rem;
}

.question-list > li::marker {
  font-weight: 800;
  color: var(--wine);
}

.question-list[data-prefix="A"] > li::marker {
  content: "A" counter(list-item) ". ";
}

.question-list[data-prefix="K"] > li::marker {
  content: "K" counter(list-item) ". ";
}

.question-list[data-prefix="Z"] > li::marker {
  content: "Z" counter(list-item) ". ";
}

.question-list ol {
  margin: 0.4rem 0 0;
  padding-left: 1.4rem;
}

.question-list ol li {
  margin-bottom: 0.3rem;
}

@media print {
  .internal-bar,
  .site-header,
  .toc,
  .skip-link,
  .legend {
    display: none !important;
  }

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

  h1 {
    font-size: 22pt;
  }

  h2 {
    font-size: 15pt;
  }

  p {
    max-width: none;
  }

  .page-head {
    border: 0;
    padding: 0 0 1rem;
  }

  .doc {
    display: block;
    padding: 0;
  }

  .doc-body {
    max-width: none;
  }

  .question-list > li,
  .blocker {
    break-inside: avoid;
  }

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

/* Diagrams */

.diagram {
  margin: 1.2rem 0 1.6rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow-x: auto;
}

.diagram svg {
  min-width: 720px;
  width: 100%;
  height: auto;
}

.diagram figcaption {
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.6rem;
}

.diagram text {
  font-family: var(--font-body);
  fill: var(--ink);
}

.diagram .t-title {
  font-size: 15px;
  font-weight: 700;
}

.diagram .t-sub {
  font-size: 12px;
  fill: var(--muted);
}

.diagram .t-lane {
  font-size: 13px;
  font-weight: 700;
  fill: var(--muted);
}

.diagram .box {
  fill: #fff;
  stroke: #9fb0ab;
  stroke-width: 1.4;
}

.diagram .box-accent {
  fill: var(--wine-tint);
  stroke: var(--wine);
  stroke-width: 1.6;
}

.diagram .box-green {
  fill: var(--stamp-tint);
  stroke: var(--stamp);
  stroke-width: 1.4;
}

.diagram .box-ext {
  fill: var(--paper);
  stroke: #9fb0ab;
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
}

.diagram .group {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.4;
  stroke-dasharray: 6 5;
}

.diagram .lane {
  fill: var(--paper);
}

.diagram .lane-alt {
  fill: #fff;
}

.diagram .arrow {
  fill: none;
  stroke: #52606b;
  stroke-width: 1.6;
}

.diagram .arrow-dash {
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
}

.diagram .t-note {
  font-size: 12px;
  fill: var(--wine);
  font-weight: 600;
}

/* Wide long-form layout: contents on top, full-width body (pages with diagrams) */

.doc-wide {
  grid-template-columns: minmax(0, 1fr);
}

.doc-wide .toc {
  position: static;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1rem 1.2rem;
}

.doc-wide .toc ol {
  columns: 3 14rem;
  column-gap: 1.5rem;
}

.doc-wide .toc li {
  break-inside: avoid;
}

.doc-wide .doc-body {
  max-width: none;
}

/* Wide tables: use more of the screen, keep running text readable. */
.wrap.doc-wide,
.wrap-wide {
  width: min(100% - 2 * var(--gutter), 100rem);
}

.doc-wide .doc-body > section > p,
.doc-wide .doc-body > section > ul {
  max-width: 48rem;
}

.doc-wide .data-table th,
.doc-wide .data-table td {
  padding: 0.55rem 0.45rem;
}

.doc-wide .table-narrow {
  max-width: 56rem;
}
