/* Self-hosted Onest (variable, 400-700) and Prata, both SIL OFL 1.1. See ../../THIRD_PARTY.md. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/prata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/prata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* WIND ROSE · Business Tours landing (v5, "trade documents on security paper").
   Light grey-green paper with fine grain, white document sheets with a double frame, guilloche engraving as the
   one bold ornament, one red company seal. Prata for headlines and big numbers, Onest for everything else.
   The lacquer red accent is for target buttons only; everything else is neutral (see ../FUNNEL-v3.md).
   Motion: the seal is stamped once on load, the rail diagram intro (app.js), colour and underline transitions;
   card lift and photo zoom on desktop hover only. All of it respects prefers-reduced-motion. */

:root {
  --paper: #E9ECE6; --sheet: #FCFCFA; --sheet-2: #F4F5F1; --tint: #E3ECE6;
  --ink: #13212B; --ink-2: #34434D; --muted: #5B6971;
  --hair: rgba(19, 33, 43, .13); --frame: rgba(19, 33, 43, .26);
  --accent: #A3241C; --accent-d: #871D16; --on-accent: #fff;
  --accent-ink: #A3241C;                 /* accent as small text or thin strokes */
  --accent-ring: rgba(163, 36, 28, .18);
  --seal: #B3261E; --guil: rgba(163, 36, 28, .10); --guil-band: rgba(163, 36, 28, .2);
  --band: #13212B; --on-band: #fff; --on-band-2: rgba(255, 255, 255, .78); --guil-dark: rgba(255, 255, 255, .07);
  --focus: #A3241C;
  --err: #A3241C; --err-tint: #FBEAE8;
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --r: 2px;
  --sec-pad: clamp(56px, 7vw, 96px);
  --header-h: 60px;
  --sheet-shadow: 0 1px 0 rgba(19, 33, 43, .06), 0 2px 3px rgba(19, 33, 43, .05), 0 24px 48px -28px rgba(19, 33, 43, .35);
  --card-shadow: 0 1px 2px rgba(19, 33, 43, .06), 0 10px 24px -18px rgba(19, 33, 43, .35);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .13 0 0 0 0 .17 0 0 0 .55 -.24'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (min-width: 720px) {
  :root { --header-h: 72px; }
}

:root[data-theme="dark"] {
  --paper: #0F161B; --sheet: #162029; --sheet-2: #121A21; --tint: #1A2A26;
  --ink: #E8ECE9; --ink-2: #C2CBC8; --muted: #97A3A5;
  --hair: rgba(232, 236, 233, .12); --frame: rgba(232, 236, 233, .24);
  --accent: #B8322A; --accent-d: #9C2A23;
  --accent-ink: #E5766C;
  --accent-ring: rgba(229, 118, 108, .28);
  --seal: #D0473C; --guil: rgba(229, 118, 108, .09); --guil-band: rgba(229, 118, 108, .22);
  --band: #0A1014;
  --focus: #E5766C;
  --err: #E5766C; --err-tint: #2B1816;
  --sheet-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 24px 48px -28px rgba(0, 0, 0, .8);
  --card-shadow: 0 10px 24px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.on-band :focus-visible { outline-color: #fff; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

/* ---------- Headings and intro lines ---------- */

.h2 {
  margin-bottom: clamp(24px, 3.4vw, 40px);
  font: 400 clamp(30px, 3.6vw, 54px)/1.05 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.sublead {
  max-width: 52ch;
  margin: calc(clamp(24px, 3.4vw, 40px) * -.55) 0 clamp(24px, 3vw, 36px);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Sections: paper meets a white sheet, or a hairline, or a guilloche band ---------- */

.sec { padding-block: var(--sec-pad); }
.sec--sheet {
  background: var(--sheet);
  border-block: 1px solid var(--hair);
}
.sec--divided { padding-top: 0; }
.divider {
  height: 36px;
  margin-bottom: clamp(32px, 4vw, 48px);
  background: var(--guil-band);
  -webkit-mask: url(img/guilloche-band.svg) 0 0 / 160px 36px repeat-x;
  mask: url(img/guilloche-band.svg) 0 0 / 160px 36px repeat-x;
}
#faq .divider { margin-top: var(--sec-pad); }

/* ---------- Buttons ----------
   .btn--primary is the accent: target actions only, never two side by side. Everything else is secondary. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--frame);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: 600 16px/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { background: var(--hair); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 30px; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent-d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(135, 29, 22, .3);
}
.btn--primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn--primary:active { background: var(--accent-d); filter: brightness(.9); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- Document sheet: double frame, optional rosette in a corner ---------- */

.doc {
  position: relative;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  padding: clamp(22px, 5vw, 64px);
}
.doc::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--frame);
  outline: 1px solid var(--hair);
  outline-offset: -4px;
  pointer-events: none;
}
@media (min-width: 720px) {
  .doc::before { inset: 10px; outline-offset: -5px; }
}
.guil { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.guil::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: min(620px, 80vw);
  aspect-ratio: 1;
  background: var(--guil);
  -webkit-mask: url(img/guilloche-rosette.svg) center / contain no-repeat;
  mask: url(img/guilloche-rosette.svg) center / contain no-repeat;
}
.stack { position: relative; }
.stack::before {
  content: "";
  position: absolute;
  inset: 10px -8px -10px 8px;
  background: var(--sheet-2);
  box-shadow: var(--sheet-shadow);
}

/* ---------- Brand seal (inline SVG; text inherits the page font) ---------- */

.seal {
  color: var(--seal);
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  opacity: .92;
}
.seal text { font: 600 15.5px var(--sans); letter-spacing: .2em; fill: currentColor; }
:root[data-theme="dark"] .seal { mix-blend-mode: normal; }

/* the one orchestrated moment: the hero seal is stamped onto the sheet once */
@keyframes seal-in {
  from { transform: scale(1.25) rotate(-2deg); opacity: 0; }
  to { transform: rotate(-9deg); opacity: .92; }
}
.seal--hero { animation: seal-in 420ms cubic-bezier(.2, .9, .25, 1.15) 350ms both; }
html.js .stamp:not(.is-stamped) { opacity: 0; }
.stamp.is-stamped { animation: seal-in 420ms cubic-bezier(.2, .9, .25, 1.15) both; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sheet);
  border-bottom: 1px solid var(--hair);
}
.bar { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
/* the logo is never recoloured: it sits on a light background (the light header) or on a white plate (dark theme, footer band) */
.brand__logo { flex: none; width: auto; height: 40px; }
.brand__name {
  padding-left: 10px;
  border-left: 1px solid var(--frame);
  font: 400 15px/1.3 var(--serif);
  letter-spacing: -.01em;
  white-space: nowrap;
}
:root[data-theme="dark"] .brand__logo, .footer .brand__logo { padding: 2px 6px; background: #fff; border-radius: var(--r); }
@media (min-width: 400px) {
  .brand__logo { height: 44px; }
  .brand__name { font-size: 17px; }
}
@media (min-width: 480px) {
  .brand__name { padding-left: 12px; font-size: 21px; }
}
@media (min-width: 720px) {
  .brand__logo { height: 54px; }
  .brand__name { font-size: 24px; }
}

.bar__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav__list { display: flex; gap: 26px; }
.nav__list a {
  display: block;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(var(--accent-ink), var(--accent-ink)) 0 100% / 0 1px no-repeat;
  transition: background-size 250ms var(--ease), color 200ms var(--ease);
}
.nav__list a:hover, .nav__list a:focus-visible { background-size: 100% 1px; color: var(--ink); }
.nav__extra { display: none; }

.lang { display: flex; gap: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.lang button {
  min-width: 34px;
  min-height: 34px;
  padding: 6px 7px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  transition: color 200ms var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--ink); }
.lang--bar { display: none; }

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--ink-2);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
html.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--ink); background: var(--hair); }
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

.bar__cta { display: none; min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (min-width: 720px) { .bar__cta { display: inline-flex; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--ink);
}
.burger:hover { background: var(--hair); }
.burger__bar { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform 220ms var(--ease); }
.site-header.is-open .burger__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.site-header.is-open .burger__bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* below 1240px the links live in a menu panel under the header */
@media (max-width: 1239.98px) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 4px var(--gut) 24px;
    background: var(--sheet);
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--card-shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.is-open .nav { display: block; animation: menu-in 220ms var(--ease-out) both; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: flex; align-items: center; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 17px; background-image: none; }
  .nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 20px; }
  .nav__extra .lang button { min-height: 44px; min-width: 44px; }
  .nav__extra .btn { width: 100%; }
}
@media (min-width: 720px) and (max-width: 1239.98px) {
  .nav__extra .btn { display: none; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 1240px) {
  .bar { gap: 28px; }
  .nav { flex: 1; display: flex; justify-content: flex-end; }
  .bar__end { margin-left: 0; gap: 14px; }
  .burger { display: none; }
  .lang--bar { display: flex; }
}

/* ---------- Photo print: a mat, a hairline, the photo in full colour ---------- */

.print {
  position: relative;
  padding: 8px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  box-shadow: var(--card-shadow);
}
@media (min-width: 720px) {
  .print { padding: 10px; }
}
.ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 3 / 2);
  background: var(--tint);
}
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.print__cap { padding: 10px 2px 2px; color: var(--muted); font-size: 14px; line-height: 1.35; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .print:hover .ph > img { transform: scale(1.03); }
}

/* ---------- Diagram (rail): hairlines on a sheet, the active part in the accent ---------- */

.diagram-panel {
  --ring-fill: var(--sheet);
  position: relative;
  padding: 20px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  box-shadow: var(--card-shadow);
  color: var(--ink);
}

.rail { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.ln { fill: none; stroke-width: 3; stroke-linecap: butt; stroke-linejoin: round; }
.ln--a { stroke: var(--ink); }
.ln--b { stroke: var(--muted); }
.gap { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.cap { fill: var(--muted); font-family: var(--sans); font-size: 20px; font-weight: 500; }

.train__body { fill: var(--ink); }
.train__win { fill: var(--sheet); opacity: .9; }

.ring { fill: var(--ring-fill); stroke: var(--ink); stroke-width: 2; }
.fill { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.halo { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: transform 420ms var(--ease-out), opacity 300ms var(--ease); }
.ring-a { fill: none; stroke: var(--accent-ink); stroke-width: 2.5; opacity: 0; transition: opacity 240ms var(--ease); }
.fill-a { fill: var(--accent-ink); opacity: 0; transition: opacity 240ms var(--ease); }
.st.active .halo, .st.fit .halo { opacity: .55; transform: scale(1); }
.st.active .ring-a, .st.fit .ring-a, .st.active .fill-a, .st.fit .fill-a { opacity: 1; }

.lbl { transition: opacity 300ms var(--ease); }
.nm { font-size: 22px; font-weight: 600; fill: var(--ink); }
.tg { font-family: var(--sans); font-size: 18px; font-weight: 500; fill: var(--muted); }
.lbl.active .tg, .lbl.fit .nm { fill: var(--accent-ink); }

.rail[data-filter] .st:not(.fit), .rail[data-filter] .lbl:not(.fit) { opacity: .3; }
.rail--builder .train, .rail--builder .tg { display: none; }

@media (max-width: 720px) {
  .nm { font-size: 25px; }
  .tg { font-size: 22px; }
  .cap { font-size: 24px; }
}

/* rail intro: hidden start state, only while the script drives the sequence */
html.js .rail[data-intro]:not(.is-done) .ln { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
html.js .rail[data-intro]:not(.is-done) .fill { transform: scale(0); }
html.js .rail[data-intro]:not(.is-done) .lbl,
html.js .rail[data-intro]:not(.is-done) .gap,
html.js .rail[data-intro]:not(.is-done) .cap,
html.js .rail[data-intro]:not(.is-done) .train { opacity: 0; }

/* ---------- Hero: a document sheet ---------- */

.hero { padding: clamp(20px, 3.4vw, 44px) 0 clamp(56px, 7vw, 88px); }
.hero__doc { padding: clamp(22px, 5vw, 64px) clamp(22px, 5vw, 64px) clamp(30px, 5vw, 64px); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__copy { min-width: 0; }

.hero__title {
  margin: 0 0 22px;
  font: 400 clamp(36px, 10.2vw, 44px)/1.04 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: manual;
}
.hero__lead {
  max-width: 34ch;
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}


.hero__collage { position: relative; min-width: 0; padding-bottom: 36px; }
.hero__print { --ar: 5 / 4; }
.hero__print .print__cap { text-align: right; }

.hero__pass { position: relative; width: calc(100% - 14px); margin-top: -52px; }

/* boarding pass: white stock, a perforation before the stub (the notches are masked out, so the sheet
   behind shows through; the outline and shadow are a filter on the wrapper, so they follow the notches) */
.ticket {
  position: relative;
  filter: drop-shadow(0 0 .6px rgba(19, 33, 43, .55)) drop-shadow(0 16px 12px rgba(19, 33, 43, .18));
}
:root[data-theme="dark"] .ticket {
  filter: drop-shadow(0 0 .6px rgba(232, 236, 233, .5)) drop-shadow(0 16px 12px rgba(0, 0, 0, .5));
}
.ticket__sheet {
  --stub: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--sheet);
  -webkit-mask:
    radial-gradient(circle 11px at calc(100% - var(--stub)) 0, #0000 10.5px, #000 11px),
    radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, #0000 10.5px, #000 11px);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 11px at calc(100% - var(--stub)) 0, #0000 10.5px, #000 11px),
    radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, #0000 10.5px, #000 11px);
  mask-composite: intersect;
}
.ticket__main { min-width: 0; padding: 18px 16px 16px 20px; }
.ticket__title { font: 400 20px/1.2 var(--serif); text-wrap: balance; }
.ticket__sub { margin: 4px 0 12px; color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ticket__rows { display: grid; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.ticket__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; line-height: 1.4; }
.ticket__row--wide { display: block; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.ticket__row dt { color: var(--muted); }
.ticket__row dd { font-weight: 600; text-align: right; }
.ticket__row--wide dd { margin-top: 2px; text-align: left; }
.ticket__stub {
  display: flex;
  justify-content: center;
  padding: 22px 6px 12px;
  border-left: 2px dashed var(--hair);
}
.ticket__bars {
  width: 46px;
  height: 56px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, #0000 2px 4px, var(--ink) 4px 5px, #0000 5px 8px, var(--ink) 8px 11px, #0000 11px 13px);
  opacity: .8;
}

.seal--hero {
  position: absolute;
  z-index: 3;
  right: -6px;
  bottom: -52px;
  width: 84px;
  height: 84px;
}

@media (min-width: 720px) {
  .hero__title { font-size: clamp(44px, 7vw, 60px); }
  .hero__grid { gap: 48px; }
  .hero__pass { width: min(460px, 92%); margin-top: -64px; }
  .ticket__sheet { --stub: 96px; }
  .ticket__main { padding: 20px 20px 18px 24px; }
  .ticket__title { font-size: 22px; }
  .seal--hero { right: -14px; bottom: -62px; width: 120px; height: 120px; }
  .hero__collage { padding-bottom: 56px; }
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
  .hero__title { font-size: clamp(40px, 4vw, 58px); }
  .hero__pass { margin-left: -9%; width: min(420px, 90%); }
  .seal--hero { width: clamp(104px, 8.4vw, 120px); height: clamp(104px, 8.4vw, 120px); }
}
@media (max-width: 479.98px) {
  .hero .actions .btn { flex: 1 1 100%; }
}
/* on phones the pass covers the strip under the photo, so the caption is dropped there */
@media (max-width: 719.98px) {
  .hero__print .print__cap { display: none; }
}

/* ---------- Upcoming trips: tickets with a perforation ---------- */

.trips { display: grid; gap: 20px; max-width: 960px; }
.trips__sub { margin: clamp(32px, 4vw, 48px) 0 8px; font: 400 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); text-wrap: balance; }
.trips__intro { max-width: 52ch; margin: 0 0 20px; color: var(--muted); text-wrap: pretty; }
.trip {
  position: relative;
  display: grid;
  background: var(--sheet);
  border: 1px solid var(--hair);
  box-shadow: var(--card-shadow);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.trip__main { display: flex; flex-direction: column; justify-content: center; padding: 24px 22px 22px; }
.trip__title { font: 400 clamp(22px, 2.4vw, 28px)/1.15 var(--serif); text-wrap: balance; }
.trip__meta { margin-top: 6px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.trip__stub { position: relative; padding: 20px 22px 24px; border-top: 2px dashed var(--hair); }
.trip__stub::before, .trip__stub::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
}
.trip__stub::before { left: -12px; }
.trip__stub::after { right: -12px; }
.trip__btn { width: 100%; padding-inline: 14px; }
@media (min-width: 720px) {
  .trip { grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); }
  .trip__main { padding: 26px 32px; }
  .trip__stub { display: grid; align-items: center; padding: 26px 32px; border-top: 0; border-left: 2px dashed var(--hair); }
  .trip__stub::before { top: -12px; left: -12px; }
  .trip__stub::after { top: auto; bottom: -12px; left: -12px; right: auto; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .trip:hover { transform: translateY(-2px); box-shadow: var(--sheet-shadow); }
}

/* ---------- Tour cards: a photo print on top, a dashed tear line before the request button ---------- */

.tours { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tour {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--sheet);
  border: 1px solid var(--hair);
  box-shadow: var(--card-shadow);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.tour .ph { --ar: 3 / 2; }
.tour__body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 24px; }
.tour__name { font: 400 clamp(22px, 2vw, 26px)/1.15 var(--serif); text-wrap: balance; }
.tour__desc { margin-top: 8px; color: var(--ink-2); text-wrap: pretty; }
.tour__meta { display: grid; gap: 4px; margin: 18px 0 20px; padding-top: 14px; border-top: 2px dashed var(--hair); color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.4; }
.tour__btn { margin-top: auto; }
/* status marks (admin: tour and date status), tags, and the optional "more" block of a card */
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.flag { display: inline-block; padding: 2px 9px; border: 1px solid var(--hair); background: var(--sheet-2); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.4; }
.flag--few { border-color: var(--accent-ink); color: var(--accent-ink); }
.flag--sold { color: var(--muted); }
.flag--featured { background: var(--tint); }
.tour__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.tour__tags li { padding: 1px 8px; border: 1px solid var(--hair); }
.tour__more { margin: 0 0 18px; font-size: 15px; }
.tour__more > summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.tour__more-body { display: grid; gap: 10px; padding-top: 10px; color: var(--ink-2); }
.tour__more-body h4 { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.tour__more-body ul, .tour__more-body ol { margin: 0; padding-left: 1.2em; }
.tour__more-body li + li { margin-top: 4px; }
.tour__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.tour__gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 720px) {
  .tours { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1180px) {
  .tours { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tour:hover { transform: translateY(-2px); box-shadow: var(--sheet-shadow); }
  .tour:hover .ph > img { transform: scale(1.03); }
}

/* ---------- What you will see: prints in a calm grid ---------- */

.prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prints .ph { --ar: 4 / 3; }
@media (min-width: 720px) {
  .prints { gap: 24px; }
}
@media (min-width: 900px) {
  .prints { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .prints .ph { --ar: 3 / 2; }
}

/* ---------- Program: sticky diagram, compact day lines ---------- */

.program { display: grid; gap: 0; align-items: start; }
.days {
  display: grid;
  background: var(--sheet);
  border: 1px solid var(--hair);
  box-shadow: var(--card-shadow);
}
.day {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color 200ms var(--ease);
}
.days li:last-child .day { border-bottom: 0; }
.day:hover { background: var(--sheet-2); }
.day.is-active { background: var(--tint); box-shadow: inset 3px 0 0 var(--accent); }
.day:focus-visible { outline-offset: -3px; }
.day__n { color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.day.is-active .day__n { color: var(--ink); }
.day__body { display: block; min-width: 0; }
.day__city { display: block; font-size: 19px; font-weight: 600; line-height: 1.25; }
.day__t { display: block; max-width: 44ch; margin-top: 2px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }

@media (min-width: 960px) {
  .program { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; }
  .program__visual { position: sticky; top: calc(var(--header-h) + 28px); order: 2; }
  .days { order: 1; }
}
@media (max-width: 959.98px) {
  /* compact strip above the day list; it sticks under the header */
  .program__visual {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    margin: 0 calc(var(--gut) * -1) 14px;
  }
  .program__visual .diagram-panel { padding: 8px 0 10px; border-inline: 0; box-shadow: 0 8px 12px -10px rgba(19, 33, 43, .45); }
  .program__visual .rail { max-width: 480px; margin-inline: auto; }
}

/* ---------- Builder ---------- */

.builder { display: grid; gap: 40px; align-items: start; }
.builder__controls {
  display: grid;
  gap: 28px;
  padding: 26px 20px 24px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  box-shadow: var(--sheet-shadow);
}
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field__legend { display: block; padding: 0; margin-bottom: 12px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.builder__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--frame);
  border-radius: var(--r);
  background: var(--sheet);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }

.choice-list { display: grid; gap: 2px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.choice input, .segment__item input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--frame);
  border-radius: 50%;
  background: var(--sheet);
  transition: border-color 200ms var(--ease);
}
.choice__box::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 200ms var(--ease-out);
}
.choice:hover .choice__box { border-color: var(--ink); }
.choice input:checked ~ .choice__box { border-color: var(--accent); }
.choice input:checked ~ .choice__box::after { transform: scale(1); }
.choice input:focus-visible ~ .choice__box { outline: 2px solid var(--focus); outline-offset: 3px; }
.choice__text { font-weight: 500; }

.segment { display: inline-flex; border: 1px solid var(--frame); border-radius: var(--r); background: var(--sheet); overflow: hidden; }
.segment__item { position: relative; display: block; }
.segment__item span { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.segment__item + .segment__item { border-left: 1px solid var(--frame); }
.segment__item input:checked + span { background: var(--ink); color: var(--sheet); }
.segment__item input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -4px; }
.segment__item input:checked:focus-visible + span { outline-color: var(--sheet); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--frame); border-radius: var(--r); background: var(--sheet); }
.stepper__btn { width: 44px; height: 42px; border: 0; background: none; font-size: 22px; line-height: 1; transition: background-color 200ms var(--ease); }
.stepper__btn:hover { background: var(--sheet-2); }
.stepper__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.stepper__val { min-width: 44px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.builder__result { display: grid; gap: 24px; }
.builder__visual .diagram-panel { --ring-fill: var(--tint); background: var(--tint); padding: 22px 18px 24px; }
.summary { display: grid; gap: 18px; }
.summary__text {
  max-width: 46ch;
  padding: 16px 18px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}
.builder__note { color: var(--muted); font-size: 15px; }

@media (min-width: 960px) {
  .builder { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .builder__controls { padding: 34px 32px 32px; }
  .builder__result { position: sticky; top: calc(var(--header-h) + 28px); }
}
@media (max-width: 719.98px) {
  .builder__visual .diagram-panel { padding: 8px 0 12px; }
}

/* ---------- Included: a document sheet and a quiet side card ---------- */

.included { display: grid; gap: 24px; align-items: start; }
.included__main { padding: 30px 26px 24px; }
.included__main > *, .included__side > * { position: relative; }
.included__side { padding: 26px 24px 22px; background: var(--sheet-2); border: 1px solid var(--hair); }
.included__title { margin-bottom: 10px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.check-list li, .dash-list li { position: relative; padding: 8px 0 8px 32px; line-height: 1.4; }
.check-list li { font-size: 17px; font-weight: 500; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dash-list li { color: var(--ink-2); font-size: 17px; }
.dash-list li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 12px; height: 1px; background: var(--muted); }
@media (min-width: 720px) {
  .included { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; }
  .included__main .check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

/* ---------- Trust: a portrait, three facts, the licence ---------- */

.team { display: grid; gap: 36px; align-items: start; }
.frame {
  --mk: var(--frame);
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--ar);
  color: var(--muted);
  background:
    linear-gradient(var(--mk), var(--mk)) top 12px left 12px / 16px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) top 12px left 12px / 1px 16px no-repeat,
    linear-gradient(var(--mk), var(--mk)) top 12px right 12px / 16px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) top 12px right 12px / 1px 16px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom 12px left 12px / 16px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom 12px left 12px / 1px 16px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom 12px right 12px / 16px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom 12px right 12px / 1px 16px no-repeat,
    var(--tint);
}
.figure--license { width: min(480px, 100%); }
.frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--sheet); }
.team__side { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.team__name { font: 400 clamp(24px, 2.6vw, 32px)/1.1 var(--serif); }
.team__lead { margin-top: 6px; max-width: 46ch; color: var(--ink-2); text-wrap: pretty; }
.pay { width: 100%; max-width: 560px; padding: 22px 24px 16px; background: var(--sheet-2); border: 1px solid var(--hair); }
.pay .dash-list li { font-size: 16px; }
.team__points li { font-size: 17px; }
@media (min-width: 760px) {
  .team { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; }
}

/* ---------- Banner to the cargo site ---------- */

.banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 24px;
  align-items: center;
  justify-items: start;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 20px 22px;
  background: var(--sheet-2);
  border: 1px solid var(--hair);
}
.banner__print { width: 128px; padding: 6px; box-shadow: none; }
.banner__print .ph { --ar: 4 / 3; }
.banner__title { font: 400 clamp(20px, 2vw, 24px)/1.25 var(--serif); text-wrap: balance; }
@media (min-width: 640px) {
  .banner { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ---------- FAQ: one document sheet ---------- */

.faq-wrap { display: grid; gap: 28px; }
.faq-wrap .h2 { margin-bottom: 0; }
.faq { background: var(--sheet); border: 1px solid var(--hair); box-shadow: var(--card-shadow); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { font-size: inherit; font-weight: inherit; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  border: 0;
  background: none;
  text-align: left;
  font: 600 19px/1.3 var(--sans);
  transition: background-color 200ms var(--ease);
}
.faq__btn:hover { background: var(--sheet-2); }
.faq__btn:focus-visible { outline-offset: -3px; }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink-2); }
.faq__icon::after { transition: transform 240ms var(--ease); transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 20px 22px; }
.faq__a p { max-width: 60ch; color: var(--ink-2); text-wrap: pretty; }
.faq__a:not([hidden]) { animation: faq-in 240ms var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
}

/* ---------- Final band: the lead form on a white document sheet, the footer on the same band ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--band);
  color: var(--on-band);
}
#request::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -200px;
  width: min(640px, 110vw);
  aspect-ratio: 1;
  background: var(--guil-dark);
  -webkit-mask: url(img/guilloche-rosette.svg) center / contain no-repeat;
  mask: url(img/guilloche-rosette.svg) center / contain no-repeat;
  pointer-events: none;
}
.band > * { position: relative; z-index: 1; }
.band .wrap { position: relative; z-index: 1; }
#request { padding-block: var(--sec-pad); }
.band .h2 { color: var(--on-band); }
.band .sublead { color: var(--on-band-2); }
.band .btn:not(.btn--primary) { border-color: rgba(255, 255, 255, .4); color: #fff; }
.band .btn:not(.btn--primary):hover { border-color: #fff; }
.band .btn:not(.btn--primary):active { background: rgba(255, 255, 255, .12); }

.request { display: grid; gap: 40px; align-items: start; }
.request__alt { display: grid; justify-items: start; gap: 10px; margin-top: 24px; color: var(--on-band-2); }

.appform { color: var(--ink); padding: clamp(24px, 4vw, 48px); }
.appform > * { position: relative; z-index: 1; }
.appform :focus-visible { outline-color: var(--focus); }
.band .appform .btn:not(.btn--primary) { border-color: var(--frame); color: var(--ink); }
.band .appform .btn:not(.btn--primary):hover { border-color: var(--ink); }
.appform__head { padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.appform__title { font: 400 clamp(24px, 2.6vw, 32px)/1.1 var(--serif); }

.form { padding-top: 22px; }
.form__grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.input { min-width: 0; }
.input--full { grid-column: 1 / -1; }
.input label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.input input, .input select, .input textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--frame);
  border-radius: var(--r);
  background: var(--sheet);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.input textarea { min-height: 100px; padding: 12px 14px; resize: vertical; }
.input select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313212B' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
:root[data-theme="dark"] .input select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23E8ECE9' stroke-width='1.6'/%3E%3C/svg%3E");
}
.input input::placeholder, .input textarea::placeholder { color: var(--muted); opacity: 1; }
.input input:hover, .input select:hover, .input textarea:hover { border-color: var(--ink-2); }
.input input:focus, .input select:focus, .input textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: 2px solid transparent; }
.input [aria-invalid="true"] { border-color: var(--err); background-color: var(--err-tint); }
.input__err { margin-top: 6px; color: var(--err); font-size: 14px; font-weight: 500; }
.form__submit { width: 100%; margin-top: 24px; }
.form__privacy { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.form__privacy a { color: var(--ink-2); text-underline-offset: 3px; }

.done { position: relative; padding-top: 24px; }
.done:focus { outline: none; }
.done__seal { position: absolute; right: 0; top: 14px; z-index: 2; width: 92px; height: 92px; }
.done__rows { display: grid; gap: 10px; padding-right: 108px; min-height: 90px; }
.done__rows div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 16px; }
.done__rows dt { color: var(--muted); }
.done__rows dd { font-weight: 600; overflow-wrap: anywhere; }
.done__msg {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--serif);
  text-wrap: balance;
  transition: opacity 360ms var(--ease);
}
html.js .done:not(.is-msg) .done__msg { opacity: 0; }
.done__again { margin-top: 22px; }

@media (min-width: 960px) {
  .request { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}
@media (max-width: 559.98px) {
  .form__grid { grid-template-columns: 1fr; }
  .done__seal { position: relative; right: auto; top: auto; width: 72px; height: 72px; margin: 0 0 16px auto; }
  .done__rows { padding-right: 0; min-height: 0; }
  .done__rows div { grid-template-columns: 96px 1fr; }
}

/* footer: the same band, separated by a hairline */
.footer .wrap { padding-block: 0 36px; }
.footer__grid { display: grid; gap: 28px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer .brand { color: var(--on-band); }
.footer__brand { display: grid; gap: 6px; justify-items: start; }
.footer__brand .brand { margin-bottom: 8px; }
.footer__small { color: var(--on-band-2); font-size: 15px; text-wrap: pretty; }
.footer__contacts { display: grid; gap: 2px; }
.footer__contacts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.footer__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__contacts li:first-child { margin-bottom: 8px; }
.lang--footer { align-self: start; justify-self: start; color: var(--on-band-2); }
.lang--footer button:hover, .lang--footer button[aria-pressed="true"] { color: #fff; }
.lang--footer button[aria-pressed="true"] { box-shadow: inset 0 -1.5px 0 #fff; }
.lang--footer button { min-height: 44px; min-width: 44px; }
.footer__credit { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--on-band-2); font-size: 14px; }
@media (min-width: 840px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr auto; gap: 32px 48px; align-items: start; }
  .footer__credit { grid-column: 1 / -1; }
}

/* ---------- "Write to us" chooser (markup is built by assets/contact.js) ---------- */

.cx { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
.cx[open] { animation: cx-in 220ms var(--ease-out) both; }
.cx::backdrop { background: rgba(10, 16, 20, .55); }
/* the dim layer is drawn under the top layer so the copy toast stays readable above it */
@supports selector(:has(*)) {
  .cx::backdrop { background: transparent; }
  html:has(.cx[open])::before { content: ""; position: fixed; inset: 0; z-index: 150; background: rgba(10, 16, 20, .55); }
}
@keyframes cx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cx__panel {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  padding: 28px 22px 22px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
}
.cx__panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--frame);
  outline: 1px solid var(--hair);
  outline-offset: -4px;
  pointer-events: none;
}
.cx__panel > * { position: relative; }
.cx__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cx__title { margin: 0; font: 400 26px/1.1 var(--serif); }
.cx__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.cx__close:hover { background: var(--hair); }
.cx__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cx__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.cx__opt:hover { background: var(--sheet-2); border-color: var(--frame); }
.cx__opt:focus-visible, .cx__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cx__opt svg, .cx__ico { flex: none; width: 26px; height: 26px; }
.cx__t { font-weight: 600; font-size: 17px; line-height: 1.2; }
.cx__n { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; overflow-wrap: anywhere; }
/* the main channel: Telegram blue (contact.js recolours it green for WhatsApp), large white label */
.cx__opt--main { min-height: 76px; flex-wrap: wrap; border-color: transparent; background: #229ED9; color: #fff; }
.cx__opt--main:hover { background: #1b8bc2; border-color: transparent; }
.cx__opt--main svg { width: 32px; height: 32px; }
.cx__opt--main .cx__t { font-size: 22px; }
.cx__opt--main .cx__n { padding: 3px 9px 2px; border-radius: var(--r); background: #13212B; color: #fff; font-size: 13px; font-weight: 600; }
.cx__note { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cx__toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 200;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: var(--r);
  background: #13212B;
  color: #fff;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
  opacity: 0;
  translate: -50% 12px;
  pointer-events: none;
  transition: opacity 200ms var(--ease), translate 200ms var(--ease-out);
}
:root[data-theme="dark"] .cx__toast { background: #E8ECE9; color: #13212B; }
.cx__toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Privacy page: one document sheet with plain text ---------- */

.legal { max-width: 860px; }
.legal > * { position: relative; }
.legal .h2 { margin-bottom: 8px; }
.legal .legal__updated { margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 28px 0 6px; font: 400 clamp(21px, 2.2vw, 26px)/1.2 var(--serif); text-wrap: balance; }
.legal p { max-width: 64ch; color: var(--ink-2); text-wrap: pretty; }
.legal a:not(.btn) { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.legal__back { margin-top: 32px; }
@media (min-width: 840px) {
  .footer__grid--simple { grid-template-columns: 1fr auto; }
}

/* ---------- 19.11: separate pages ---------- */

/* current page in the menu and the footer */
.nav__list a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
@media (max-width: 1239.98px) {
  .nav__list a[aria-current="page"] { padding-left: 12px; box-shadow: inset 3px 0 0 var(--accent-ink); }
}
.footer__contacts a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.footer__credit a { color: inherit; text-underline-offset: 3px; }

/* closing line of the home page: one sentence and the one button */
.cta-line { padding-block: clamp(40px, 5vw, 64px); }
.cta-line__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-line__title { max-width: 26ch; font: 400 clamp(24px, 3vw, 38px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }

.note-line { margin-top: 20px; color: var(--muted); font-size: 15px; }
.faq__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.rail-source { display: none; }

/* long lists: on phones the first items stay, the rest open with a button (app.js marks the rest .is-extra) */
.more-btn { display: none; margin-top: 18px; }
@media (max-width: 719.98px) {
  .more-list:not(.is-open) > .is-extra { display: none; }
  .more-btn { display: block; }
}

/* form: send error and wait message, and the consent line under the button */
.form__status { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--err); background: var(--err-tint); color: var(--err); font-size: 15px; font-weight: 500; }
.form__submit:disabled { opacity: .65; cursor: progress; }

/* legal pages */
.legal__draft { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 14px; }

/* ---------- No horizontal scroll on phones: grid children may shrink, and the page sections clip stray overflow
   (clip does not make a scroll container, so the sticky diagram keeps working) ---------- */

main, .footer { overflow-x: clip; }
.hero__grid > *, .team > *, .builder > *, .included > *, .program > *, .request > *, .footer__grid > * { min-width: 0; }

/* ---------- Reduced motion: no stamp animation, no zoom, no lift; colour changes stay ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .seal--hero, .stamp.is-stamped { animation: none; }
}
