/* ==========================================================================
   FlowX theme styles (approved design, Orange palette).
   Layout: dark stacked panels with large rounded corners; text left-aligned on a
   12-column shell; one cinematic map moment in the hero and one pinned map story.
   ========================================================================== */
:root {
	/* FlowX brand palette, deepened */
	--black: #070809;        /* page ground */
	--night: #0d1013;        /* hero and map panels (brand "Night") */
	--charcoal: #14181c;     /* cards */
	--raised: #1b2025;       /* hover fills, controls */
	--line: #262d35;         /* brand "Line" */
	--muted: #8d949c;        /* brand "Muted", 6.6:1 on black */
	--paper: #eceae4;        /* brand "Paper", text */
	--paper-soft: rgb(var(--paper-rgb) / 0.72);
	--paper-faint: rgb(var(--paper-rgb) / 0.45);
	--sodium: #f0a72e;       /* brand "Sodium", the one accent */
	--sodium-light: #f7bd5a;
	--sodium-deep: #b8761a;
	--error: #f08a78;        /* theme's --fx-error */
	--on-sodium: var(--on-sodium);    /* text on accent fills */
	/* Channel triplets for translucent tints */
	--black-rgb: 7 8 9; --night-rgb: 13 16 19; --charcoal-rgb: 20 24 28; --raised-rgb: 27 32 37;
	--paper-rgb: 236 234 228; --sodium-rgb: 240 167 46;
	/* Map and surface details */
	--land: #151b21; --land-line: #2a333c; --land-hero: #141a20;
	--land-live: #1a2026; --land-live-line: #2e3740; --land-idle: #181e24; --land-idle-line: #29313a;
	--land-lit: #232b33; --card-hi: #1a1f24; --runner-core: #fff3d6;
	--on-sodium-hover: #17120a; --route: #f0a72e;
	/* Brightest parts of a route: lighter tints of the route colour (follow every palette) */
	--route-core: color-mix(in srgb, var(--route) 45%, #fff); --route-hot: color-mix(in srgb, var(--route) 18%, #fff); --land-home: #202831; --land-home-line: #59636e;

	--font: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r-panel: 2.5rem;
	--r-card: 1.75rem;
	--r-ctl: 0.875rem;
	--shell: 88rem;
	--pad: clamp(1.25rem, 3.2vw, 2.5rem);
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--out: cubic-bezier(0.16, 1, 0.3, 1);
	--line-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Approved palette: Orange. Redefines the tokens above; set on <html data-palette="orange">.
   -------------------------------------------------------------------------- */
:root[data-palette="orange"] {
	--black: #120D0A; --night: #21150E; --charcoal: #21150E; --raised: #2A1A10; --line: #463021; --muted: #C8B7AA; --paper: #FFF8F0;
	--sodium: #F58220; --sodium-light: #FFA347; --sodium-deep: #F58220; --on-sodium: #120D0A; --on-sodium-hover: #120D0A; --route: #FF922B;
	--black-rgb: 18 13 10; --night-rgb: 33 21 14; --charcoal-rgb: 33 21 14; --raised-rgb: 42 26 16; --paper-rgb: 255 248 240; --sodium-rgb: 245 130 32;
	--land: #2A1A10; --land-line: #463021; --land-hero: #2A1A10; --land-live: #2A1A10; --land-live-line: #463021; --land-idle: #2A1A10; --land-idle-line: #463021;
	--land-home: #463021; --land-home-line: #C8B7AA; --land-lit: #463021; --card-hi: #2A1A10; --runner-core: #FFF8F0;
}
:root[data-palette] { --route-core: color-mix(in srgb, var(--route) 45%, #fff); --route-hot: color-mix(in srgb, var(--route) 18%, #fff); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.is-locked { overflow: hidden; }
html { scroll-padding-top: 6rem; }
[hidden] { display: none !important; }
body {
	background: var(--black);
	color: var(--paper);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img, svg { display: block; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sodium); color: var(--black); }
.shell { max-width: var(--shell); margin-inline: auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 200; padding: 0.6rem 1rem; border-radius: var(--r-ctl); background: var(--sodium); color: var(--black); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.display {
	font-weight: 560;
	font-stretch: 106%;
	letter-spacing: -0.042em;
	line-height: 0.93;
	text-wrap: balance;
}
.h1 { font-size: clamp(3rem, 1.2rem + 6.4vw, 8.4rem); }
.h2 { font-size: clamp(2.4rem, 1.3rem + 3.8vw, 5.4rem); }
.h3 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); font-weight: 520; font-stretch: 104%; letter-spacing: -0.025em; line-height: 1.05; }
.lead { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); color: var(--paper-soft); max-width: 34rem; line-height: 1.55; }
.label { font-size: 0.75rem; font-weight: 560; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-faint); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; font-weight: 500; color: var(--paper-soft); }
.eyebrow::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 0 4px rgb(var(--sodium-rgb) / 0.16); }
.eyebrow--pill { padding: 0.4rem 1rem 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 99px; }

/* Line reveal: each line slides up out of its own clip. */
.lines .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines .ln > span { display: block; }
.js-motion .lines .ln > span { transform: translateY(125%); transition: transform 1s var(--line-ease); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--stagger, 110ms)); }
.js-motion .lines.is-in .ln > span { transform: none; }
/* Word reveal */
.js-motion .words .w { display: inline-block; opacity: 0; transform: translateY(0.7em); transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1); transition-delay: calc(var(--i, 0) * 30ms); }
.js-motion .words.is-in .w { opacity: 1; transform: none; }
.words .muted { color: var(--muted); }
/* Block reveal */
.js-motion .rise { opacity: 0; transform: translateY(var(--y, 24px)); transition: opacity 0.9s var(--out), transform 1s var(--out); transition-delay: var(--d, 0ms); }
.js-motion .rise.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.pill {
	--bg: var(--paper); --fg: var(--black); --badge-bg: var(--black); --badge-fg: var(--paper);
	display: inline-flex; align-items: center; gap: 0.85rem; min-height: 3.25rem;
	padding: 0.375rem 0.375rem 0.375rem 1.5rem; border-radius: 99px;
	background: var(--bg); color: var(--fg); font-size: 0.9375rem; font-weight: 560; white-space: nowrap;
	transition: transform 0.45s var(--spring), background 0.3s, color 0.3s, border-color 0.3s;
}
.pill:hover { transform: scale(1.035); }
.pill:active { transform: scale(0.98); }
.pill .badge { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--badge-bg); color: var(--badge-fg); flex: none; }
.pill .badge svg { width: 1rem; height: 1rem; transition: transform 0.45s var(--spring); }
.pill:hover .badge svg { transform: translate(3px, 0); }
.pill:hover .badge svg.up { transform: translate(2px, -2px); }
.pill--sodium:hover { --bg: var(--sodium-light); --fg: var(--on-sodium-hover); --badge-bg: var(--on-sodium-hover); --badge-fg: var(--sodium-light); }
.pill--sodium { --bg: var(--sodium); --fg: var(--on-sodium); --badge-bg: var(--on-sodium); --badge-fg: var(--sodium); }
.pill--line { --bg: transparent; --fg: var(--paper); border: 1px solid var(--line); padding: 0 1.6rem; }
.pill--line:hover { border-color: var(--muted); }
.pill--plain { padding: 0 1.6rem; }
.pill--sm { min-height: 2.6rem; font-size: 0.875rem; padding: 0.3rem 0.3rem 0.3rem 1.1rem; gap: 0.6rem; }
.pill--sm .badge { width: 2rem; height: 2rem; }
.chip-btn {
	display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.6rem; padding: 0 1rem;
	border: 1px solid rgb(var(--paper-rgb) / 0.14); border-radius: var(--r-ctl);
	background: rgb(var(--night-rgb) / 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	font-size: 0.75rem; font-weight: 560; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-soft);
	transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.chip-btn:hover { border-color: rgb(var(--paper-rgb) / 0.35); color: var(--paper); background: rgb(var(--raised-rgb) / 0.7); }
.chip-btn svg { width: 0.95rem; height: 0.95rem; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
	position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.25rem;
	background: var(--black); border-radius: 0 0 var(--r-panel) var(--r-panel); will-change: transform;
}
/* Failsafe: the script removes the loader after the intro; if scripts never run, it gets out of the way. */
.loader { animation: fx-loader-failsafe 0.4s ease 6s forwards; }
@keyframes fx-loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader-brand { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.wordmark { display: inline-block; white-space: nowrap; font-weight: 640; font-stretch: 112%; letter-spacing: -0.02em; }
.wordmark i { font-style: normal; color: var(--sodium); }
.loader .wordmark { font-size: 2rem; }
.loader-tag { font-size: clamp(0.8125rem, 0.7rem + 0.5vw, 0.9375rem); line-height: 1.45; color: var(--paper-faint); max-width: min(90vw, 36ch); padding-inline: 1rem; text-wrap: balance; }
.loader-bar { width: min(22rem, 72vw); display: grid; gap: 0.75rem; }
.loader-track { height: 1px; background: rgb(var(--paper-rgb) / 0.14); overflow: hidden; }
.loader-fill { height: 100%; width: 100%; background: var(--sodium); transform-origin: left; transform: scaleX(0); }
.loader-row { display: flex; justify-content: space-between; }
.loader-row .num { color: var(--paper-soft); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header { position: fixed; inset-inline: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color 0.4s var(--out), border-color 0.4s var(--out); }
.header .shell { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.4rem; transition: padding 0.45s var(--out); }
.header.is-compact { background: rgb(var(--black-rgb) / 0.74); border-bottom-color: rgb(var(--paper-rgb) / 0.07); -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15); }
.header.is-compact .shell { padding-block: 0.7rem; }
.header.is-compact .clock, .header.is-compact .langs, .header.is-compact .chip-btn { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav a[aria-current="page"] { color: var(--paper); }
.header .wordmark { font-size: 1.375rem; transition: transform 0.45s var(--spring); }
.header .wordmark:hover { transform: scale(1.04); }
.nav { display: flex; gap: 2rem; margin-inline: auto; font-size: 0.9375rem; font-weight: 500; }
.nav a { display: inline-block; color: var(--paper-soft); transition: color 0.3s, transform 0.4s var(--spring); }
.nav a:hover { color: var(--paper); transform: translateY(-2px); }
.nav { align-items: center; }
.nav-item { position: relative; }
.nav-btn { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--paper-soft); font: inherit; transition: color 0.3s; }
.nav-btn:hover, .nav-item.is-open .nav-btn, .nav-btn[aria-current] { color: var(--paper); }
.nav-btn .chev { width: 0.95rem; height: 0.95rem; transition: transform 0.35s var(--out); }
.nav-item.is-open .nav-btn .chev { transform: rotate(180deg); }
/* The panel starts right under the button; its top padding bridges the gap so the pointer can travel into it. */
.dd { position: absolute; left: -1rem; top: 100%; padding-top: 0.75rem; min-width: 15.5rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.22s var(--out), transform 0.3s var(--out), visibility 0s linear 0.3s; z-index: 2; }
.dd::before { content: ""; position: absolute; inset: 0.75rem 0 0; border-radius: 1.1rem; background: rgb(var(--charcoal-rgb) / 0.96); border: 1px solid rgb(var(--paper-rgb) / 0.09); box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); z-index: -1; }
.nav-item.is-open .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav .dd a { display: block; padding: 0.7rem 1rem; margin: 0.35rem; border-radius: 0.75rem; color: var(--paper-soft); white-space: nowrap; transform: none; }
.nav .dd a:first-child { margin-top: 0.7rem; }
.nav .dd a:last-child { margin-bottom: 0.4rem; }
.nav .dd a:hover, .nav .dd a:focus-visible { color: var(--paper); background: rgb(var(--paper-rgb) / 0.06); transform: none; }
.header-end { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav + .header-end { margin-left: 0; }
/* Mobile menu: languages sit right under Request a quote, with large touch targets. */
.overlay .m-langs { padding-top: 1.1rem; }
.overlay nav .m-langs .langs { display: inline-flex; gap: 0.35rem; padding: 0.3rem; background: rgb(var(--paper-rgb) / 0.04); border-color: rgb(var(--paper-rgb) / 0.2); }
.overlay nav .m-langs .langs a, .overlay nav .m-langs .langs button { display: inline-grid; place-items: center; min-width: 3.25rem; min-height: 2.75rem; padding: 0 0.75rem; font-size: 0.875rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0.06em; line-height: 1; color: var(--paper-soft); }
.overlay nav .m-langs .langs [aria-current="true"], .overlay nav .m-langs .langs [aria-pressed="true"] { background: var(--paper); color: var(--black); }
.clock { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.6rem; padding: 0 0.9rem; border: 1px solid rgb(var(--paper-rgb) / 0.14); border-radius: var(--r-ctl); background: rgb(var(--night-rgb) / 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.75rem; color: var(--paper-faint); white-space: nowrap; }
.clock b { color: var(--paper); font-weight: 560; min-width: 2.6rem; }
.clock .sep { opacity: 0.4; }
.langs { display: inline-flex; padding: 0.2rem; border: 1px solid rgb(var(--paper-rgb) / 0.14); border-radius: var(--r-ctl); background: rgb(var(--night-rgb) / 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.langs a, .langs button { display: inline-grid; place-items: center; text-decoration: none; min-width: 2.4rem; min-height: 2.15rem; padding: 0 0.5rem; border-radius: 0.65rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; color: var(--paper-faint); transition: color 0.25s, background 0.25s; }
.langs a:hover, .langs button:hover { color: var(--paper); }
.langs [aria-current="true"], .langs button[aria-pressed="true"] { background: var(--paper); color: var(--black); }

/* (floating nav replaced by the sticky header) */
.float-nav { display: none; position: fixed; z-index: 60; top: calc(1rem + env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); display: flex; gap: 0.5rem; opacity: 0; transform: translateY(-1rem); pointer-events: none; transition: opacity 0.4s var(--out), transform 0.5s var(--out); }
.float-nav.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-nav .chip-btn { background: rgb(var(--charcoal-rgb) / 0.8); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); border-radius: 0 0 var(--r-panel) var(--r-panel); min-height: 100svh; display: flex; flex-direction: column; }
.hero-map { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-map svg, .hero-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map canvas { pointer-events: none; }
.land { fill: var(--land); stroke: var(--land-line); stroke-linejoin: round; stroke-width: calc(var(--sw, 1) * 0.7); }
.hero .land { fill: var(--land-hero); }
.land path[fill], .cm-land path[fill] { fill: var(--land-home); stroke: var(--land-home-line); }
/* Neon routes, three layers: wide soft glow, saturated mid glow (both blurred by the
   SVG filter on .neon-glow), and a sharp bright core on top. Widths are on-screen px. */
.routes path { fill: none; stroke: var(--route); stroke-width: calc(var(--sw, 1) * 2.2); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.45; transition: stroke 0.3s, opacity 0.3s, stroke-width 0.3s; }
.routes .glow { stroke-width: calc(var(--sw, 1) * 6); opacity: 0.12; }
.routes .core { stroke: var(--route-hot); stroke-width: calc(var(--sw, 1) * 1); opacity: 1; }
.js-motion .routes path.draw { stroke-dashoffset: 1; }
.has-active .routes path:not(.is-active) { opacity: 0.18; }
.routes path.is-active { stroke-width: calc(var(--sw, 1) * 2.8); opacity: 0.55; }
.routes .glow.is-active { stroke-width: calc(var(--sw, 1) * 7); opacity: 0.12; }
.routes .core.is-active { stroke: #fff; stroke-width: calc(var(--sw, 1) * 1.3); }
/* Glowing city markers */
.stop .halo, .cm-stop .halo { fill: url(#fx-halo); opacity: 1; transform-box: fill-box; transform-origin: center; animation: fx-breathe 3.4s ease-in-out infinite; animation-delay: var(--bd, 0s); }
.stop .dot, .cm-stop .dot { fill: var(--route-core); transition: fill 0.3s; }
.stop.is-active .halo, .cm-stop.is-focus .halo { animation-name: fx-breathe-hot; animation-duration: 1.5s; }
.stop.is-active .dot, .cm-stop.is-focus .dot { fill: var(--route-hot); }
.origin .halo, .cm-origin .halo { fill: url(#fx-halo-hot); transform-box: fill-box; transform-origin: center; animation: fx-breathe 4s ease-in-out infinite; }
@keyframes fx-breathe { 0%, 100% { transform: scale(0.9); opacity: 0.75; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes fx-breathe-hot { 0%, 100% { transform: scale(1.1); opacity: 0.85; } 50% { transform: scale(1.4); opacity: 1; } }
.particles .p, .particles .arrive { pointer-events: none; }
.particles .arrive circle { fill: none; stroke: var(--route-core); stroke-width: 0.8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.particles .p .core, .cm-runner .core { fill: var(--route-hot); }
.particles .p .halo { fill: url(#fx-halo); }
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.stop text { fill: var(--paper); font: 500 12px var(--font); paint-order: stroke; stroke: var(--night); stroke-width: 3px; stroke-linejoin: round; }
.stop .km { fill: var(--muted); font-size: 10px; font-weight: 400; }
.stop { transition: opacity 0.3s; }
.has-active .stop:not(.is-active) { opacity: 0.35; }
.origin .dot { fill: var(--route-hot); }
.origin .ring { fill: none; stroke: var(--route-core); stroke-width: 0.8; opacity: 0.6; transform-origin: 0 0; animation: ping 2.8s var(--out) infinite; }
.origin text { fill: var(--paper); font: 600 14px var(--font); paint-order: stroke; stroke: var(--night); stroke-width: 4px; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.runner { display: none; }

.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
	linear-gradient(90deg, rgb(var(--night-rgb) / 0.94) 0%, rgb(var(--night-rgb) / 0.7) 34%, rgb(var(--night-rgb) / 0) 62%),
	linear-gradient(180deg, rgb(var(--night-rgb) / 0.55) 0%, rgb(var(--night-rgb) / 0) 22%, rgb(var(--night-rgb) / 0) 70%, rgb(var(--night-rgb) / 0.85) 100%); }
.watermark { position: absolute; inset-inline: 0; bottom: 4.25rem; z-index: 1; text-align: center; pointer-events: none; user-select: none; font-weight: 760; font-stretch: 125%; letter-spacing: -0.05em; line-height: 0.8; font-size: clamp(6rem, 21vw, 22rem); color: rgb(var(--paper-rgb) / 0.035); white-space: nowrap; }
.hero-grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.5rem; row-gap: 2.5rem; align-items: end; padding-top: 9rem; padding-bottom: 3.5rem; width: 100%; }
.hero-copy { grid-column: 1 / span 7; display: grid; gap: 1.75rem; }
.hero-side { grid-column: 9 / span 4; display: grid; gap: 2rem; justify-items: end; }
.hero h1 { max-width: 11ch; }
/* Same hero composition in every language: Russian words are longer, so the headline is set
   a little smaller (same width, three lines) and the description gets a little more room. */
:root { --h1-fit: 1; }
:root:lang(ru) { --h1-fit: 0.86; }
.hero h1 { font-size: calc(clamp(3rem, 1.2rem + 6.4vw, 8.4rem) * var(--h1-fit)); max-width: calc(11ch / var(--h1-fit)); }
:root:lang(et) .hero .lead { max-width: 37rem; }
:root:lang(ru) .hero .lead { max-width: 40rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Service carousel card */
.svc-card { width: 100%; max-width: 21rem; padding: 0.5rem; border-radius: 1.25rem; background: rgb(var(--charcoal-rgb) / 0.72); border: 1px solid rgb(var(--paper-rgb) / 0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8); }
.svc-card-inner { display: flex; gap: 0.5rem; cursor: pointer; }
.svc-tile { flex: none; width: 6rem; aspect-ratio: 1; border-radius: var(--r-ctl); display: grid; place-items: center; background: linear-gradient(145deg, var(--sodium-light), var(--sodium-deep)); color: var(--on-sodium); overflow: hidden; }
.svc-tile svg { width: 3rem; height: 3rem; }
.svc-body { flex: 1; min-width: 0; border-radius: var(--r-ctl); background: rgb(var(--paper-rgb) / 0.05); padding: 0.75rem 0.85rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem; }
.svc-slot { position: relative; min-height: 3.6rem; }
.svc-item { position: absolute; inset: 0; }
.svc-item .label { font-size: 0.65rem; }
.svc-item p { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.svc-ctl { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 0.3rem; }
.dots span { height: 0.25rem; width: 0.375rem; border-radius: 99px; background: rgb(var(--paper-rgb) / 0.22); transition: width 0.35s var(--out), background 0.35s; }
.dots span.on { width: 1rem; background: var(--sodium); }
.arrows { display: flex; gap: 0.3rem; }
.arrows button { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--paper-soft); border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.arrows button:hover { color: var(--paper); border-color: var(--muted); }
.arrows svg { width: 0.8rem; height: 0.8rem; }
.arrows .prev svg { transform: rotate(180deg); }

.towns { width: 100%; max-width: 21rem; }
.towns .label { display: block; margin-bottom: 0.85rem; text-align: right; }
.towns ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem 1.1rem; }
.towns li.wide { flex-basis: 100%; display: flex; justify-content: flex-end; }
.towns .town { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--paper-soft); transition: color 0.25s, transform 0.4s var(--spring); }
.towns .town::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1.5px solid var(--muted); transition: border-color 0.25s, background 0.25s; }
button.town:hover, .towns .town.is-active { color: var(--paper); transform: translateY(-2px); }
.towns .town.is-link { color: var(--sodium); border-bottom: 1px solid rgb(var(--sodium-rgb) / 0.4); padding-bottom: 0.1rem; }
.towns .town.is-link::before { display: none; }
button.town:hover::before, .towns .town.is-active::before { border-color: var(--sodium); background: var(--sodium); }

.statusbar { position: relative; z-index: 2; width: 100%; }
.statusbar .shell { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgb(var(--paper-rgb) / 0.08); }
.statusbar .scroll { display: inline-flex; gap: 0.5rem; align-items: center; }
.statusbar .scroll i { font-style: normal; display: inline-block; animation: nudge 2.2s var(--out) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(5rem, 3rem + 6vw, 9rem); }
.about .shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
.coords { position: relative; min-height: 20rem; display: flex; flex-direction: column; justify-content: space-between; }
.coords-big { position: absolute; left: -0.06em; top: 50%; translate: 0 -50%; font-weight: 700; font-stretch: 25%; font-size: clamp(7rem, 4rem + 9vw, 15rem); letter-spacing: -0.03em; line-height: 0.82; color: transparent; -webkit-text-stroke: 1px rgb(var(--paper-rgb) / 0.11); pointer-events: none; user-select: none; }
.coords-note { position: relative; display: flex; align-items: center; gap: 0.85rem; font-size: 0.9375rem; color: var(--paper-soft); max-width: 18rem; }
.coords-note svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--sodium); }
.statement { display: grid; gap: 2.75rem; }
.statement h2 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.75rem); font-weight: 480; font-stretch: 102%; letter-spacing: -0.02em; line-height: 1.22; }
.statement-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.lang-chips { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.lang-chips span { min-width: 2.6rem; height: 2.6rem; padding: 0 0.6rem; border-radius: 99px; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 600; background: var(--charcoal); border: 1px solid var(--line); color: var(--paper-soft); transition: transform 0.4s var(--spring); }
.lang-chips span:first-child { background: var(--sodium); border-color: var(--sodium); color: var(--on-sodium); }
.lang-chips span:hover { transform: scale(1.12); }

/* --------------------------------------------------------------------------
   Band
   -------------------------------------------------------------------------- */
/* Delivery story: compact stages under a scroll-driven scene (no pinning) */
.dl-scene svg { display: block; width: 100%; height: auto; overflow: hidden; }
.dl-scene path, .dl-scene rect, .dl-scene circle { vector-effect: non-scaling-stroke; }
.wh-slats-d { fill: none; stroke: rgb(var(--paper-rgb) / 0.14); stroke-width: 1; }
.dl-wheel circle { fill: var(--black); stroke: rgb(var(--paper-rgb) / 0.3); stroke-width: 1; }
.dl-wheel path { fill: none; stroke: rgb(var(--paper-rgb) / 0.3); stroke-width: 1; }
.dl-tail { fill: var(--route-hot); opacity: 0.7; }
.dl-check-ring { fill: var(--charcoal); stroke: rgb(var(--paper-rgb) / 0.22); stroke-width: 1; transition: stroke 0.4s var(--out); }
.dl-check-tick { fill: none; stroke: var(--route-hot); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-check.is-on .dl-check-ring { stroke: var(--route); }
.dl-stages { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(0.5rem, 1.5vw, 1.25rem); margin-top: clamp(1rem, 2vw, 1.75rem); }
.dl-stage { height: clamp(3.75rem, 2.5rem + 3.6vw, 7rem); border-radius: 99px; display: grid; place-items: center; padding: 0 1rem; text-align: center; font-size: clamp(1.05rem, 0.7rem + 1.3vw, 1.8rem); font-weight: 520; font-stretch: 104%; letter-spacing: -0.03em; line-height: 1.05; opacity: 0.38; transition: opacity 0.5s var(--out), box-shadow 0.5s var(--out); }
.dl-stage.is-on { opacity: 1; }
.dl-stage.is-now { box-shadow: 0 0 0 1px rgb(var(--sodium-rgb) / 0.5), 0 0 2.5rem rgb(var(--sodium-rgb) / 0.22); }
.dl-stage--pick { background: var(--paper); color: var(--black); }
.dl-stage--drive { background: linear-gradient(135deg, var(--sodium-light), var(--sodium-deep)); color: var(--on-sodium); }
.dl-stage--done { background: transparent; border: 1px dashed rgb(var(--paper-rgb) / 0.2); color: var(--paper-faint); transition: opacity 0.5s var(--out), color 0.5s, border-color 0.5s, box-shadow 0.5s var(--out); }
.dl-stage--done.is-on { color: var(--paper); border-color: var(--sodium); border-style: solid; }
.dl-link svg { width: clamp(1.25rem, 0.8rem + 1.6vw, 2.5rem); height: auto; display: block; fill: none; stroke: rgb(var(--paper-rgb) / 0.3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card-li { min-width: 0; }
.card-li.wide { grid-column: 1 / -1; }
.card {
	--mx: 50%; --my: 50%;
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
	min-height: 28rem; height: 100%; padding: clamp(1.5rem, 2.5vw, 2.25rem); overflow: hidden;
	border-radius: var(--r-card); background: var(--charcoal); border: 1px solid rgb(var(--paper-rgb) / 0.06);
	transition: transform 0.6s var(--spring), border-color 0.4s;
	transform: translateY(var(--lift, 0)) scale(var(--sc, 1));
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(26rem circle at var(--mx) var(--my), rgb(var(--sodium-rgb) / 0.13), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { --lift: -8px; --sc: 1.008; border-color: rgb(var(--sodium-rgb) / 0.28); }
.card:hover::before { opacity: 1; }
.card-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.card-badge { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--paper-rgb) / 0.08); border: 1px solid rgb(var(--paper-rgb) / 0.14); transition: transform 0.55s var(--spring), background 0.3s, color 0.3s; flex: none; }
.card-badge svg { width: 1.1rem; height: 1.1rem; }
.card:hover .card-badge { transform: rotate(45deg) scale(1.08); background: var(--sodium); color: var(--on-sodium); border-color: var(--sodium); }
.card-art { position: absolute; right: -2%; top: 50%; width: min(58%, 26rem); translate: 0 -55%; color: rgb(var(--paper-rgb) / 0.16); pointer-events: none; transition: color 0.5s; }
.card:hover .card-art { color: rgb(var(--sodium-rgb) / 0.55); }
.card-art svg { width: 100%; height: auto; overflow: visible; }
.card-art .stroke { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card-body { position: relative; display: grid; gap: 0.85rem; max-width: 34rem; }
.card-body p { color: var(--paper-soft); font-size: 0.9375rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tags span { padding: 0.45rem 0.95rem; border-radius: 99px; border: 1px solid rgb(var(--paper-rgb) / 0.18); font-size: 0.8125rem; color: var(--paper-soft); background: rgb(var(--black-rgb) / 0.35); }
.card.primary { background: linear-gradient(160deg, var(--card-hi) 0%, var(--charcoal) 55%); }
.card.primary .card-art { width: min(52%, 34rem); }
/* Four services: every card shares the same rows (label, artwork, heading, text, extras),
   so headings and text start at the same height across a row. Artwork keeps its own drawing
   and sits in the reserved artwork row. Phones use the natural card height. */
.card-gap { display: none; }
@supports (grid-template-rows: subgrid) {
	@media (min-width: 601px) {
		.cards { --art-h: clamp(12.5rem, 5rem + 14vw, 18rem); grid-auto-rows: auto var(--art-h) minmax(calc(2.1 * clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem) + 0.85rem), auto) minmax(6.4rem, auto) minmax(clamp(8.4rem, 14.5rem - 6.75vw, 10.5rem), auto);   /* last row includes the card gap; fits the courier zones */ column-gap: 1.25rem; row-gap: 0; }
		.cards .card-li { display: grid; grid-row: span 5; grid-template-rows: subgrid; margin-bottom: 1.25rem; }
		.cards .card { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 0; }
		.cards .card-top { margin-bottom: 0; }
		.cards .card-gap { display: block; margin-bottom: 1.5rem; }
		.cards .card-body { display: contents; }
		.cards .card-body > * { position: relative; z-index: 1; max-width: 34rem; align-self: start; }
		.cards .card-body > .h3 { margin-bottom: 0.85rem; }
		.cards .card-body > p { margin-bottom: 1.1rem; }
		.cards .card-body > .zones, .cards .card-body > .tags, .cards .card-body > .card-cta { margin-top: 0; }
		.cards .card-art.card-scene, .cards .card-art.card-map, .cards .card-art.card-scene[data-scene] { height: calc(var(--art-h) + 4.4rem); }
	}
}
/* Freight card: interactive Europe map (same europe.svg and route data as the hero and the map story) */
.card.has-map { min-height: 34rem; }
.card.has-map .card-top, .card.has-map .card-body { z-index: 1; }
.card-art.card-map { top: 0; right: 0; translate: none; width: 72%; height: 64%; color: inherit;
	-webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%), linear-gradient(to right, transparent 0%, #000 26%); -webkit-mask-composite: source-in;
	mask-image: linear-gradient(to bottom, #000 66%, transparent 100%), linear-gradient(to right, transparent 0%, #000 26%); mask-composite: intersect; }
.card:hover .card-art.card-map { color: inherit; }
.card-map svg { width: 100%; height: 100%; overflow: hidden; }
.cm-land { fill: var(--land-idle); stroke: var(--land-idle-line); stroke-width: calc(var(--sw, 1) * 0.6); stroke-linejoin: round; transition: fill 0.8s var(--out), stroke 0.8s var(--out); }
.card-map.is-live .cm-land { fill: var(--land-live); stroke: var(--land-live-line); }
.cm-route, .cm-glow, .cm-core { fill: none; stroke: var(--route); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity 0.4s, stroke 0.4s, stroke-width 0.4s; }
.cm-route { stroke-width: calc(var(--sw, 1) * 2); opacity: 0.45; }
.cm-glow { stroke-width: calc(var(--sw, 1) * 5.5); opacity: 0.12; }
.cm-core { stroke: var(--route-hot); stroke-width: calc(var(--sw, 1) * 0.9); }
.card-map.has-focus .cm-route:not(.is-focus), .card-map.has-focus .cm-core:not(.is-focus) { opacity: 0.3; }
.card-map.has-focus .cm-glow:not(.is-focus) { opacity: 0.06; }
.cm-route.is-focus { stroke-width: calc(var(--sw, 1) * 2.6); opacity: 0.55; }
.cm-glow.is-focus { stroke-width: calc(var(--sw, 1) * 7); opacity: 0.12; }
.cm-core.is-focus { stroke: #fff; stroke-width: calc(var(--sw, 1) * 1.2); }
.cm-stop { opacity: 0; }
.cm-origin .dot { fill: var(--route-hot); }
.cm-origin .ring { fill: none; stroke: var(--route-core); stroke-width: 0.8; transform-origin: 0 0; animation: ping 2.4s var(--out) infinite; animation-play-state: paused; opacity: 0; }
.card-map.is-live .cm-origin .ring { animation-play-state: running; }
.cm-origin .halo { opacity: 0.45; transition: opacity 0.6s; animation-play-state: paused; }
.card-map.is-live .cm-origin .halo { animation-play-state: running; }
.card-map.is-live .cm-origin .halo { opacity: 1; }
.cm-name { fill: var(--paper); font: 600 11px var(--font); paint-order: stroke; stroke: var(--charcoal); stroke-width: 3px; stroke-linejoin: round; }
.cm-km { fill: var(--muted); font: 400 9.5px var(--font); paint-order: stroke; stroke: var(--charcoal); stroke-width: 3px; stroke-linejoin: round; }
.cm-runners { display: none; }
.cm-label { opacity: 0; transition: opacity 0.3s; }
.card-map.has-focus .cm-label { opacity: 1; }
/* B2B card: e-commerce fulfilment scene (order -> pick -> pack -> dispatch), same placement as the freight map */
.card.has-scene .card-top, .card.has-scene .card-body { z-index: 1; }
.card-art.card-scene { top: 0; right: 0; translate: none; width: 78%; height: 64%; color: inherit;
	-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 22%); -webkit-mask-composite: source-in;
	mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 22%); mask-composite: intersect; }
.card:hover .card-art.card-scene { color: inherit; }
.card-art.card-scene[data-scene="courier"] { height: 50%; }   /* this card has more text (zones) below */
.card-scene svg { width: 100%; height: 100%; overflow: visible; }
.card-scene path, .card-scene rect, .card-scene circle, .card-scene ellipse { vector-effect: non-scaling-stroke; }
.wh-ground { fill: none; stroke: var(--land-idle-line); stroke-width: 1; stroke-dasharray: 2 8; }
.wh-pool { fill: url(#wh-pool-g); opacity: 0.35; transition: opacity 0.8s var(--out); }
.wh-rack { fill: none; stroke: var(--land-idle-line); stroke-width: 1; stroke-linecap: round; transition: stroke 0.8s var(--out); }
.wh-rack--tick { stroke: rgb(var(--paper-rgb) / 0.1); }
.wh-sbox rect { fill: var(--land-idle); stroke: rgb(var(--paper-rgb) / 0.19); stroke-width: 0.9; transition: stroke 0.8s var(--out); }
.wh-sbox path { fill: none; stroke: rgb(var(--paper-rgb) / 0.14); stroke-width: 0.9; stroke-linecap: round; }
.wh-surface { fill: var(--land-idle); stroke: rgb(var(--paper-rgb) / 0.16); stroke-width: 1; transition: stroke 0.8s var(--out); }
.wh-ui { fill: rgb(var(--paper-rgb) / 0.2); }
.wh-ui--dim { fill: rgb(var(--paper-rgb) / 0.09); }
.wh-front { fill: none; stroke: rgb(var(--paper-rgb) / 0.22); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.8s var(--out); }
.wh-rollers circle { fill: none; stroke: rgb(var(--paper-rgb) / 0.14); stroke-width: 0.9; }
.wh-slats path { fill: none; stroke: rgb(var(--paper-rgb) / 0.12); stroke-width: 0.9; }
.wh-beam { fill: none; stroke: var(--route-core); stroke-width: 1; stroke-linecap: round; opacity: 0.18; }
.wh-led { fill: rgb(var(--paper-rgb) / 0.22); transition: fill 0.5s var(--out); }
.wh-led-halo { fill: url(#fx-halo); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity 0.6s var(--out); }
.wh-order.is-on .wh-led { fill: var(--route-hot); }
.wh-order.is-on .wh-led-halo { opacity: 0.55; }
.wh-glow, .wh-route, .wh-core { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.6s var(--out); }
.wh-glow { stroke: var(--route); stroke-width: 4.5; opacity: 0.09; }
.wh-route { stroke: var(--route); stroke-width: 1.3; opacity: 0.34; }
.wh-core { stroke: var(--route-hot); stroke-width: 0.6; opacity: 0.65; }
.wh-track { fill: none; stroke: none; }
.wh-runner .wh-dot { fill: var(--runner-core); }
.wh-runner .wh-dot-halo { fill: url(#fx-halo); opacity: 0.85; }
.wh-parcel rect { fill: rgb(var(--sodium-rgb) / 0.2); stroke: var(--route-core); stroke-width: 0.9; }
.wh-parcel path { fill: none; stroke: var(--route-core); stroke-width: 0.9; stroke-linecap: round; opacity: 0.7; }
.wh-runner .wh-parcel, .wh-runner.is-parcel .wh-dot, .wh-runner.is-parcel .wh-dot-halo { opacity: 0; }
.wh-runner.is-parcel .wh-parcel { opacity: 1; }
/* Live: on hover (mouse) or while on screen (touch) the warehouse lights up a little. */
.card-scene.is-live .wh-rack { stroke: var(--land-live-line); }
.card-scene.is-live .wh-sbox rect, .card-scene.is-live .wh-surface { stroke: rgb(var(--paper-rgb) / 0.26); }
.card-scene.is-live .wh-front { stroke: rgb(var(--paper-rgb) / 0.3); }
.card-scene.is-live .wh-pool { opacity: 0.6; }
.card-scene.is-live .wh-route { opacity: 0.5; }
.card-scene.is-live .wh-core { opacity: 0.95; }
.card-scene.is-live .wh-glow { opacity: 0.13; }
/* Courier card: parcel -> scan -> van -> tracked delivery (reuses the warehouse tokens) */
.cr-van-body { fill: var(--land-idle); stroke: rgb(var(--paper-rgb) / 0.26); stroke-width: 1; stroke-linejoin: round; transition: stroke 0.8s var(--out); }
.cr-door { fill: rgb(var(--black-rgb) / 0.55); stroke: rgb(var(--paper-rgb) / 0.2); stroke-width: 1; }
.cr-wheel { fill: var(--black); stroke: rgb(var(--paper-rgb) / 0.28); stroke-width: 1; }
.cr-steps-line { fill: none; stroke: rgb(var(--paper-rgb) / 0.12); stroke-width: 1; }
.cr-step { fill: var(--charcoal); stroke: rgb(var(--paper-rgb) / 0.25); stroke-width: 1; transition: fill 0.5s var(--out), stroke 0.5s var(--out); }
.cr-step.is-on { fill: var(--route-hot); stroke: var(--route); }
.cr-arc { fill: none; stroke: rgb(var(--paper-rgb) / 0.16); stroke-width: 1; stroke-dasharray: 2 6; }
.cr-arc-lit { opacity: 0.8; }
.cr-pin-shape { fill: var(--land-idle); stroke: rgb(var(--paper-rgb) / 0.3); stroke-width: 1; transition: stroke 0.5s var(--out); }
.cr-pin-dot { fill: var(--route-hot); }
.cr-parcel rect { fill: var(--land-idle); stroke: rgb(var(--paper-rgb) / 0.4); }
.cr-parcel path { stroke: rgb(var(--paper-rgb) / 0.3); }
.cr-parcel.is-scanned rect { fill: rgb(var(--sodium-rgb) / 0.2); stroke: var(--route-core); }
.cr-parcel.is-scanned path { stroke: var(--route-core); }
.cr-laser { opacity: 0.5; }
.card-scene.is-live .cr-van-body { stroke: rgb(var(--paper-rgb) / 0.34); }
/* Loading card: two movers (simple silhouettes, no faces) */
.card-scene .mv-limb { vector-effect: none; fill: none; stroke: rgb(var(--paper-rgb) / 0.5); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.card-scene .mv-limb--far { stroke: rgb(var(--paper-rgb) / 0.28); }
.mv-body { fill: rgb(var(--paper-rgb) / 0.42); }
.mv-vest { fill: none; stroke: var(--sodium); stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.mv-head { fill: rgb(var(--paper-rgb) / 0.55); }
.mv-shadow { fill: rgb(var(--black-rgb) / 0.55); }
.mv-furniture rect, .mv-furniture path { fill: none; stroke: rgb(var(--paper-rgb) / 0.24); stroke-width: 1; stroke-linecap: round; }
.mv-furniture rect { fill: var(--land-idle); }
.mv-door { fill: rgb(var(--black-rgb) / 0.4); stroke: rgb(var(--paper-rgb) / 0.22); stroke-width: 1; stroke-linejoin: round; }
.card-scene.is-live .mv-body { fill: rgb(var(--paper-rgb) / 0.5); }
.card-photo .card-img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-card) - 0.5rem); }
/* Quote form: B2B uses business wording for the shared contact fields */
.q-b2b { display: none; }
[data-service="b2b"] .q-b2b { display: inline; }
[data-service="b2b"] .q-std { display: none; }
.card-cta { --bg: transparent; --fg: var(--paper); justify-self: start; margin-top: 0.5rem; border: 1px solid var(--line); transition: transform 0.45s var(--spring), border-color 0.3s, background 0.3s; }
.card-cta .badge { --badge-bg: rgb(var(--paper-rgb) / 0.08); }
.card:hover .card-cta { border-color: rgb(var(--sodium-rgb) / 0.55); }
.card:hover .card-cta .badge { background: var(--sodium); color: var(--on-sodium); }
.zones { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; max-width: 38rem; margin-top: 0.75rem; }
.zones div { padding: 0.85rem 1rem; border-radius: var(--r-ctl); background: rgb(var(--black-rgb) / 0.45); border: 1px solid rgb(var(--paper-rgb) / 0.08); display: grid; gap: 0.15rem; }
.zones b { font-weight: 560; font-size: 0.9375rem; }
.zones span { font-size: 0.75rem; color: var(--paper-faint); }

/* --------------------------------------------------------------------------
   Map story
   -------------------------------------------------------------------------- */
.story { padding-inline: clamp(0.5rem, 1.5vw, 1.25rem); }
.story-panel { position: relative; overflow: hidden; background: var(--night); border-radius: var(--r-panel); height: 100svh; min-height: 36rem; border: 1px solid rgb(var(--paper-rgb) / 0.05); }
.story-map { position: absolute; inset: 0; }
.story-map svg { width: 100%; height: 100%; }
.story-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(var(--night-rgb) / 0.96) 0%, rgb(var(--night-rgb) / 0.75) 30%, rgb(var(--night-rgb) / 0) 55%); }
.story-ui { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-block: clamp(2rem, 4vw, 3.25rem); }
.story-words { position: relative; height: clamp(3rem, 1.4rem + 5.6vw, 7.5rem); margin-top: 1.25rem; }
.story-words .word { position: absolute; left: 0; top: 0; white-space: nowrap; }
.story-words .word .ln > span { transform: translateY(125%); }
.story-words .word.on .ln > span { transform: none; transition: transform 0.8s var(--line-ease); }
.story-words .word.off .ln > span { transform: translateY(-125%); transition: transform 0.5s var(--line-ease); }
.story-sub { margin-top: 1.25rem; max-width: 26rem; color: var(--paper-soft); }
.dests { align-self: end; width: min(100%, 26rem); }
.dests .label { display: block; margin-bottom: 0.6rem; }
.dests ul { border-top: 1px solid var(--line); }
.dests button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.15rem 1rem; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; transition: background 0.3s, padding 0.45s var(--out); border-radius: 0; }
.dests button:hover, .dests button.is-active { background: rgb(var(--paper-rgb) / 0.05); padding-left: 1.1rem; }
.dests b { font-weight: 540; font-size: 1.0625rem; }
.dests .country { grid-column: 1; font-size: 0.75rem; color: var(--paper-faint); }
.dests .km { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-stretch: 80%; font-size: 1.375rem; font-weight: 420; }
.dests button.is-active .km { color: var(--sodium); }
.dests .note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--paper-faint); }
.story-progress { position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); top: 50%; translate: 0 -50%; z-index: 2; display: grid; gap: 0.6rem; }
.story-progress span { width: 0.25rem; height: 2.2rem; border-radius: 99px; background: rgb(var(--paper-rgb) / 0.15); overflow: hidden; position: relative; }
.story-progress span i { position: absolute; inset: 0; background: var(--sodium); transform-origin: top; transform: scaleY(0); }

/* --------------------------------------------------------------------------
   Process rows
   -------------------------------------------------------------------------- */
.rows li + li { border-top: 1px solid var(--line); }
button.row { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.row .arrow svg { transition: transform 0.5s var(--spring); }
.is-open .row .arrow { background: var(--sodium); }
.is-open .row .arrow svg { transform: rotate(90deg); }
.row-more { padding: 0 1.5rem 1.9rem calc(2.25rem + 2.5rem + clamp(1rem, 2vw, 2rem)); overflow: hidden; }
.row-more p { max-width: 46rem; color: var(--paper-soft); font-size: 1rem; line-height: 1.6; }
.rows-cta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; }
.row { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); padding: clamp(1.4rem, 2.4vw, 2.1rem) 1.5rem; border-radius: 1.25rem; transition: background 0.5s var(--out), padding 0.6s var(--out); }
.row:hover { background: var(--charcoal); padding-left: 2.25rem; padding-right: 1.25rem; }
.row .idx { width: 2.5rem; font-size: 0.875rem; font-weight: 500; color: var(--paper-faint); flex: none; }
.row-h { margin: 0; font: inherit; }
.row h3, .row .row-title { flex: 1; font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); font-weight: 500; font-stretch: 104%; letter-spacing: -0.03em; line-height: 1.05; }
.row p, .row .row-sum { flex: 0 1 22rem; font-size: 0.9375rem; color: var(--paper-soft); }
.row .arrow { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--black); flex: none; transition: transform 0.5s var(--spring), background 0.3s; }
.row:hover .arrow { transform: translateX(5px); background: var(--sodium); }
.row .arrow svg { width: 1.1rem; height: 1.1rem; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.trust-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.trust-item { display: grid; align-content: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem) 0 0; min-width: 0; }
.trust-item + .trust-item { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--line); }
.trust-item b { display: block; font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5.5rem); font-weight: 540; font-stretch: 104%; letter-spacing: -0.045em; line-height: 0.95; overflow-wrap: anywhere; }
.trust-item b small { font-size: 0.55em; font-weight: 460; color: var(--sodium); margin-left: 0.04em; letter-spacing: 0; }
.trust-item p { font-size: 0.8125rem; font-weight: 560; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-faint); max-width: 16rem; }
.stats-panel { border-radius: var(--r-panel); background: var(--charcoal); border: 1px solid rgb(var(--paper-rgb) / 0.06); padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.stats-panel::after { content: ""; position: absolute; right: -10rem; top: -12rem; width: 34rem; height: 34rem; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--sodium-rgb) / 0.12), transparent); pointer-events: none; }
.stats-panel h2 { margin-top: 1.1rem; max-width: 18ch; font-size: clamp(1.9rem, 1.3rem + 2vw, 3.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.stats { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 2rem; position: relative; }
.stat b { display: block; font-size: clamp(3rem, 2rem + 3.6vw, 5.75rem); font-weight: 520; font-stretch: 80%; letter-spacing: -0.035em; line-height: 0.95; }
.stat b small { font-size: 0.4em; font-weight: 420; font-stretch: 100%; letter-spacing: -0.01em; color: var(--sodium); margin-left: 0.15em; }
.stat p { margin-top: 0.85rem; font-size: 0.875rem; color: var(--paper-faint); max-width: 14rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; margin-top: clamp(1rem, 3vw, 2rem); border-radius: var(--r-panel) var(--r-panel) 0 0; background: var(--paper); color: var(--black); }
.footer .shell { position: relative; z-index: 1; padding-top: clamp(4.5rem, 7vw, 7rem); padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.foot-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 4rem; border-bottom: 1px solid rgb(var(--black-rgb) / 0.12); }
.foot-cta h2 { max-width: 14ch; }
.footer .pill { --bg: var(--black); --fg: var(--paper); --badge-bg: var(--sodium); --badge-fg: var(--on-sodium); }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3.5rem; }
.foot-cols h3 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--black-rgb) / 0.45); margin-bottom: 1rem; }
.foot-cols li + li { margin-top: 0.55rem; }
.foot-cols a, .foot-cols span.v { display: inline-block; font-size: 0.9375rem; opacity: 0.72; transition: transform 0.4s var(--spring), opacity 0.25s; }
.foot-cols a:hover { opacity: 1; transform: translateX(4px); }
.foot-brand p { margin-top: 0.9rem; max-width: 20rem; font-size: 0.9375rem; color: rgb(var(--black-rgb) / 0.6); }
.foot-brand .wordmark { font-size: 1.5rem; }
.foot-brand .wordmark i { color: var(--sodium-deep); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid rgb(var(--black-rgb) / 0.12); font-size: 0.8125rem; color: rgb(var(--black-rgb) / 0.55); }
.foot-mark { position: absolute; inset-inline: 0; bottom: -0.12em; text-align: center; pointer-events: none; user-select: none; font-weight: 780; font-stretch: 125%; letter-spacing: -0.05em; line-height: 0.8; font-size: clamp(6rem, 22vw, 23rem); color: rgb(var(--black-rgb) / 0.045); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Menu overlay
   -------------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--black); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.overlay[hidden] { display: none; }
.overlay-top .shell { display: flex; align-items: center; justify-content: space-between; padding-block: 1.4rem; }
.overlay-top .wordmark { font-size: 1.375rem; }
.overlay nav { flex: 1; display: flex; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.overlay nav > ul { display: grid; gap: 0.25rem; margin-block: auto; padding-block: 1.5rem; width: 100%; }
.overlay .m-link { display: flex; align-items: baseline; gap: 1rem; width: 100%; padding-block: 0.35rem; text-align: left; font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.75rem); font-weight: 540; font-stretch: 106%; letter-spacing: -0.04em; line-height: 1.05; color: var(--paper-soft); transition: color 0.3s; }
.overlay .m-link small { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--paper-faint); transition: color 0.3s; flex: none; }
.overlay .m-link .chev { width: 0.45em; height: 0.45em; align-self: center; flex: none; transition: transform 0.4s var(--out); }
.overlay .m-link:hover, .overlay .is-open > .m-link { color: var(--paper); }
.overlay .m-link:hover small, .overlay .is-open > .m-link small { color: var(--sodium); }
.overlay .is-open > .m-link .chev { transform: rotate(180deg); }
.overlay .m-sub { display: grid; gap: 0.15rem; padding: 0.35rem 0 0.9rem calc(1rem + 2.4ch); overflow: hidden; }
.overlay nav .m-sub a { display: flex; align-items: center; min-height: 2.9rem; font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; color: var(--paper-soft); }
.overlay nav .m-sub a::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--sodium); margin-right: 0.8rem; flex: none; }
.overlay nav .m-sub a:hover { color: var(--paper); }
.overlay .m-cta { padding-top: 1.25rem; }
.overlay nav a { display: flex; align-items: baseline; gap: 1rem; padding-block: 0.35rem; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.75rem); font-weight: 540; font-stretch: 106%; letter-spacing: -0.04em; line-height: 1; color: var(--paper-soft); transition: color 0.3s; }
.overlay nav a small { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--paper-faint); transition: color 0.3s; }
.overlay nav a:hover { color: var(--paper); }
.overlay nav a:hover small { color: var(--sodium); }
.overlay-foot .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Quote modal
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); background: rgb(var(--black-rgb) / 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.modal[hidden] { display: none; }
.modal-panel { position: relative; width: 100%; max-width: 36rem; max-height: calc(100svh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 0 !important; border-radius: 2rem; background: var(--charcoal); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.9); }
.modal-close { position: sticky; top: 0; float: right; z-index: 3; margin: -0.5rem -0.5rem 0 0.75rem; box-shadow: 0 0 0 6px var(--charcoal); width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--paper-soft); transition: color 0.2s, background 0.2s; }
.modal-close:hover { color: var(--paper); background: var(--line); }
.modal-close svg { width: 1rem; height: 1rem; }
.modal h2 { margin-top: 0.6rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.1; padding-right: 2.5rem; }
.modal form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 0.75rem; font-weight: 560; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-faint); }
.field select { appearance: none; -webkit-appearance: none; width: 100%; padding: 0.8rem 2.5rem 0.8rem 1rem; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--black) 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='%23C8B7AA' stroke-width='1.6'/%3E%3C/svg%3E") right 1rem center / 12px 8px no-repeat; font-size: 0.9375rem; color: var(--paper); }
.field select:focus { outline: none; border-color: var(--sodium); }
.field input, .field textarea { width: 100%; padding: 0.8rem 1rem; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--black); font-size: 0.9375rem; transition: border-color 0.2s, background 0.2s; }
.field textarea { resize: vertical; min-height: 6rem; }
.field > span i, .seg legend i { font-style: normal; color: var(--sodium); }
.field .hint, .form-hint { font-size: 0.8125rem; color: var(--paper-faint); }
.err { font-size: 0.8125rem; color: var(--error); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--error); }
.f-group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.f-group > legend { grid-column: 1 / -1; }
.field input[type="file"] { padding: 0.55rem 0.7rem; color: var(--paper-soft); font-size: 0.875rem; }
.field input[type="file"]::file-selector-button { margin-right: 0.8rem; padding: 0.45rem 0.9rem; border-radius: 99px; border: 1px solid var(--line); background: var(--raised); color: var(--paper); font: 500 0.8125rem var(--font); cursor: pointer; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.75rem; align-items: start; font-size: 0.875rem; color: var(--paper-soft); line-height: 1.45; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; accent-color: var(--sodium); }
.check .err { grid-column: 2; }
.demo-tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 99px; border: 1px dashed rgb(var(--sodium-rgb) / 0.6); color: var(--sodium); font-size: 0.75rem; font-weight: 560; letter-spacing: 0.04em; }
.form-summary, .form-error { grid-column: 1 / -1; padding: 0.85rem 1rem; border-radius: var(--r-ctl); border: 1px solid var(--error); background: rgb(var(--black-rgb) / 0.45); color: var(--paper); font-size: 0.875rem; }
.form-error b { display: block; margin-bottom: 0.2rem; }
.form-error:focus { outline: 2px solid var(--error); outline-offset: 2px; }
[data-state="sending"] [type="submit"] { opacity: 0.7; cursor: progress; }
.pill[disabled] { pointer-events: none; }
.done .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sodium); }
.seg { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg .err { width: 100%; }
.seg legend { width: 100%; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 560; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-faint); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 0.6rem 1rem; min-height: 2.75rem; display: inline-flex; align-items: center; line-height: 1.25; max-width: 100%; border-radius: 99px; border: 1px solid var(--line); font-size: 0.875rem; cursor: pointer; color: var(--paper-soft); transition: all 0.25s; }
.seg input:checked + label { background: var(--sodium); border-color: var(--sodium); color: var(--on-sodium); }
.seg input:focus-visible + label { outline: 2px solid var(--sodium); outline-offset: 2px; }
.modal-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
/* In the quote modal the submit row sticks to the bottom of the scrolling panel. */
.modal .modal-foot { position: sticky; bottom: 0; z-index: 2; margin-inline: calc(-1 * clamp(1.5rem, 3vw, 2.25rem)); padding: 0.9rem clamp(1.5rem, 3vw, 2.25rem) calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--charcoal); border-top: 1px solid var(--line); }
.modal .done { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.modal-foot p { font-size: 0.8125rem; color: var(--paper-faint); max-width: 18rem; }
.modal-head { display: grid; gap: 0.6rem; justify-items: start; padding-right: 2.5rem; }
.modal h2 { padding-right: 0; }
.done { display: grid; justify-items: center; gap: 1rem; text-align: center; padding-block: 2rem 0.5rem; }
.done .tick { width: 3.75rem; height: 3.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--sodium); color: var(--on-sodium); }
.done .tick svg { width: 1.5rem; height: 1.5rem; }
.done p { max-width: 32ch; color: var(--paper-soft); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Careers page
   -------------------------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.page-hero .shell { position: relative; z-index: 2; padding-top: clamp(8rem, 12vw, 11rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); display: grid; gap: 1.75rem; justify-items: start; }
.page-hero .watermark { bottom: -0.1em; }
.page-hero h1 { max-width: 12ch; }
/* Same fit as the homepage hero, so the careers headline keeps two lines in every language. */
.page-hero h1 { font-size: calc(clamp(3rem, 1.2rem + 6.4vw, 8.4rem) * var(--h1-fit)); max-width: calc(12ch / var(--h1-fit)); }
:root:lang(ru) .page-hero h1 { max-width: none; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Careers hero: waving courier beside a parcel (thin outlines, small orange details) */
.cw-art { position: absolute; right: clamp(0.5rem, 3vw, 3rem); bottom: clamp(1rem, 3vw, 2.5rem); width: clamp(14rem, 7rem + 15vw, 24rem); pointer-events: none; z-index: 1; }
.cw-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.cw-shadow { fill: rgb(var(--black-rgb) / 0.55); }
.cw-parcel rect, .cw-parcel path { fill: var(--land-idle); stroke: rgb(var(--paper-rgb) / 0.32); stroke-width: 1.3; stroke-linejoin: round; }
.cw-parcel path { fill: none; stroke: rgb(var(--paper-rgb) / 0.2); }
.cw-parcel .cw-label { fill: rgb(var(--sodium-rgb) / 0.18); stroke: var(--sodium); }
.cw-limb { fill: none; stroke: color-mix(in srgb, var(--paper) 80%, var(--charcoal)); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.cw-shoe { fill: none; stroke: color-mix(in srgb, var(--paper) 58%, var(--charcoal)); stroke-width: 6; stroke-linecap: round; }
.cw-body { fill: var(--charcoal); stroke: rgb(var(--paper-rgb) / 0.78); stroke-width: 1.5; stroke-linejoin: round; }
.cw-vest { fill: none; stroke: var(--sodium); stroke-width: 2.4; stroke-linecap: round; }
.cw-neck { fill: none; stroke: color-mix(in srgb, var(--paper) 80%, var(--charcoal)); stroke-width: 7; stroke-linecap: round; }
.cw-face { fill: var(--charcoal); stroke: rgb(var(--paper-rgb) / 0.78); stroke-width: 1.5; }
.cw-cap { fill: none; stroke: var(--sodium); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cw-eye { fill: rgb(var(--paper-rgb) / 0.85); }
.cw-smile { fill: none; stroke: rgb(var(--paper-rgb) / 0.8); stroke-width: 1.6; stroke-linecap: round; }
.cw-logo { font: 700 8.5px var(--font); letter-spacing: -0.02em; fill: var(--paper); }
.cw-logo-x { fill: var(--sodium); }
.cw-hand { fill: color-mix(in srgb, var(--paper) 80%, var(--charcoal)); }
@media (max-width: 1023px) { .cw-art { position: relative; right: auto; bottom: auto; justify-self: end; width: min(16.5rem, 66vw); margin-top: -0.5rem; } }
.page-hero-glow { position: absolute; right: -12rem; top: -10rem; width: 40rem; height: 40rem; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--sodium-rgb) / 0.14), transparent); pointer-events: none; z-index: 1; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card.role { min-height: 17rem; cursor: default; }
.card.role .card-body { max-width: 30rem; }
.card.role .role-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--sodium-rgb) / 0.12); color: var(--sodium); }
.card.role .role-icon svg { width: 1.35rem; height: 1.35rem; }
.apply-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.apply-steps li { display: grid; gap: 0.75rem; align-content: start; padding: 1.75rem 1.5rem 0 0; }
.apply-steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.apply-steps .idx { font-size: 0.875rem; color: var(--sodium); font-weight: 560; }
.apply-steps h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); font-weight: 520; letter-spacing: -0.025em; line-height: 1.1; }
.apply-steps p { color: var(--paper-soft); font-size: 0.9375rem; max-width: 24rem; }
.apply-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
.apply-intro { display: grid; gap: 1.25rem; align-content: start; }
.apply-intro h2 { margin-top: 0; }
.apply-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.apply-form .done { padding-block: 3rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
	.hero-copy { grid-column: 1 / span 8; }
	.hero-side { grid-column: 9 / span 4; }
}
/* Horizontal navigation is the main navigation from 1024px; MENU is an extra where it fits. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.header [data-open-menu] { display: none; }
	.header .shell { gap: 1.25rem; }
	.nav { gap: 1.6rem; }
}
/* Below 1024px the full header does not fit: MENU opens the navigation. */
@media (max-width: 1023px) {
	.nav { display: none; }
	.nav + .header-end { margin-left: auto; }
	.header-end { gap: 0.625rem; }
}
@media (max-width: 900px) {
	.towns ul, .towns li.wide { justify-content: flex-start; }
	.row-more { padding-left: 1.5rem; }
	.trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust-item:nth-child(3) { padding-left: 0; border-left: 0; }
	.trust-item:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.5rem; }
	.roles, .apply-steps, .apply-panel { grid-template-columns: minmax(0, 1fr); }
	.apply-steps li, .apply-steps li + li { padding: 1.5rem 0; border-left: 0; }
	.apply-steps li + li { border-top: 1px solid var(--line); }
	.clock { display: none; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 52svh; }
	.hero-copy, .hero-side { grid-column: 1 / -1; }
	.hero-side { justify-items: start; }
	.towns .label { text-align: left; }
	.hero-shade { background: linear-gradient(180deg, rgb(var(--night-rgb) / 0.5) 0%, rgb(var(--night-rgb) / 0) 18%, rgb(var(--night-rgb) / 0.15) 38%, rgb(var(--night-rgb) / 0.95) 56%, var(--night) 100%); }
	.watermark { display: none; }
	.about .shell { grid-template-columns: minmax(0, 1fr); }
	.coords { min-height: 12rem; }
	.cards { grid-template-columns: minmax(0, 1fr); }
	.card-art { opacity: 0.6; }
	.card-art.card-map, .card-art.card-scene { opacity: 1; }
	.sec-head--row { grid-template-columns: minmax(0, 1fr); }
	.story-shade { background: linear-gradient(180deg, rgb(var(--night-rgb) / 0.96) 0%, rgb(var(--night-rgb) / 0.55) 30%, rgb(var(--night-rgb) / 0) 45%, rgb(var(--night-rgb) / 0) 60%, rgb(var(--night-rgb) / 0.95) 78%); }
	.story-progress { display: none; }
	.row p, .row .row-sum { display: none; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.hero h1 { max-width: none; font-size: calc(clamp(2.5rem, 11.4vw, 3rem) * var(--h1-fit)); }
	.hero-copy .pill { font-size: 0.875rem; padding-left: 1.1rem; gap: 0.55rem; }
	.hero-copy .pill--line { padding: 0 1.1rem; }
	:root:lang(ru) { --h1-fit: 0.95; }
	.header .pill { padding: 0.3rem; gap: 0; }
	.header .pill .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.header .langs { display: none; }
	.f-group, .apply-form form { grid-template-columns: minmax(0, 1fr); }
	.trust-grid { grid-template-columns: minmax(0, 1fr); }
	.trust-item, .trust-item + .trust-item { padding: 1.4rem 0; border-left: 0; }
	.trust-item + .trust-item { border-top: 1px solid var(--line); }
	.langs a, .langs button { min-width: 2.1rem; }
	.row > * { min-width: 0; }
	.row { overflow-wrap: anywhere; hyphens: auto; }   /* long Estonian words on small phones */
	.dl-stages { gap: 0.35rem; }
	.dl-stage { padding: 0 0.3rem; font-size: clamp(0.72rem, 3.7vw, 1.05rem); letter-spacing: -0.015em; }
	.dl-link svg { width: 0.9rem; }
	.zones { grid-template-columns: minmax(0, 1fr); }
	.card, .card.primary { min-height: 0; }
	.card-art { position: relative; right: auto; top: auto; translate: none; width: 70%; margin-left: auto; }
	.card-art.card-map { width: 100%; height: 14rem; margin-top: -0.5rem; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
	.card.has-scene { min-height: 0; }
	.card-art.card-scene, .card-art.card-scene[data-scene] { position: relative; width: 100%; height: 14rem; margin-top: -0.5rem; opacity: 1; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
	.modal form { grid-template-columns: minmax(0, 1fr); }
	/* Phones: the modal becomes a bottom sheet that uses the full height. */
	.modal { align-items: flex-end; padding: env(safe-area-inset-top, 0px) 0 0; }
	.modal-panel { max-width: none; border-radius: 1.5rem 1.5rem 0 0; border-bottom: 0; max-height: calc(100svh - 0.75rem - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 0.75rem - env(safe-area-inset-top, 0px)); padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
	.modal .modal-foot { margin-inline: -1.25rem; padding-inline: 1.25rem; }
	.modal-foot .pill { width: 100%; justify-content: space-between; }
	.modal-foot p { max-width: none; }
	.statusbar .mid { display: none; }
	.towns ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero .stop .km { display: none; }
}
/* Phones and tablets: no backdrop blur on the sticky header and its controls (re-blurring the moving
   map behind it on every scroll frame is expensive in Safari); the pinned map gets its own layer. */
@media (hover: none), (max-width: 899px) {
	.chip-btn, .langs, .header.is-compact { -webkit-backdrop-filter: none; backdrop-filter: none; }
	.chip-btn, .langs { background: rgb(var(--night-rgb) / 0.82); }
	.header.is-compact { background: rgb(var(--black-rgb) / 0.94); }
	.story-map { contain: layout paint; transform: translateZ(0); }
	.story-map .stop .halo { animation: none; }
	.story-map .land { shape-rendering: optimizeSpeed; }   /* coastline re-rasterized at each zoom step; invisible at 3x density */   /* breathing markers would repaint the whole pinned map */
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   WordPress
   -------------------------------------------------------------------------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; }
.wordmark img, .custom-logo { display: block; height: 2rem; width: auto; }
.admin-bar .overlay, .admin-bar .modal { top: var(--wp-admin--admin-bar--height, 0px); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.overlay nav .m-cta a.pill { display: inline-flex; align-items: center; gap: 0.85rem; padding: 0.375rem 0.375rem 0.375rem 1.5rem; font-size: 0.9375rem; font-weight: 560; font-stretch: 100%; letter-spacing: 0; line-height: 1.55; color: var(--fg); }
.card-art img.card-img { width: 100%; height: auto; border-radius: 1rem; display: block; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 1rem; }
.legal-menu a { opacity: 0.8; }
