/* =====================================================================
   REC MODERN - shared design system for Rush Expedited Courier
   Identity: warm paper white, deep navy ink, signal red (from the logo).
   Loaded on every page through templates/header.html.
   Sections: 1 tokens - 2 base - 3 buttons/utilities - 4 topbar/header/mega
             5 mobile menu - 6 footer/band - 7 mobile bar/back-to-top - 8 motion
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --ink: #0b1b3a;
  --ink-2: #14295a;
  --navy: #0a1730;
  --navy-2: #0f2347;
  --navy-3: #16305f;
  --red: #d5202b;
  --red-2: #e8353f;
  --red-deep: #ae1f23;
  --red-soft: #fdecee;
  --paper: #f7f4ef;
  --paper-2: #efeae1;
  --white: #ffffff;
  --line: #e5dfd3;
  --line-cool: #dde3ee;
  --text: #1d2944;
  --muted: #58647d;
  --kraft: #d8c3a0;
  --ok: #17a673;
  --sky: #e6eefb;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow-s: 0 1px 2px rgba(11, 27, 58, .06), 0 4px 14px -6px rgba(11, 27, 58, .14);
  --shadow-m: 0 2px 4px rgba(11, 27, 58, .05), 0 18px 40px -18px rgba(11, 27, 58, .28);
  --shadow-l: 0 30px 70px -28px rgba(11, 27, 58, .45);
  --font-head: 'Manrope', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-cond: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', Impact, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topbar-h: 38px;
  --header-h: 76px;
}

/* ---------- 2. BASE ---------- */
.rm-skin, .rm-skin *, .rm-skin *::before, .rm-skin *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 18px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:where(.rm-skin) img { max-width: 100%; height: auto; }
:where(.rm-skin) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote, address) { margin: 0; }
/* the site chrome ignores legacy page-level list rules (e.g. blog1.css: ul, ol, li) - placed early so component rules win ties */
.rm-topbar ul, .rm-header ul, .rm-footer ul { margin: 0; padding: 0; list-style: none; }
.rm-topbar li, .rm-header li, .rm-footer li { margin: 0; }
body.rm-skin {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid rgba(213, 32, 43, .55); outline-offset: 3px; border-radius: 6px; }

.rm-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.rm-i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.rm-i--sm { width: 1em; height: 1em; }
.rm-skip { position: absolute; left: 12px; top: -60px; z-index: 5000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.rm-skip:focus { top: 0; }
#rm-content { display: block; height: 0; outline: none; }

/* ---------- 3. BUTTONS + UTILITIES ---------- */
.rm-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1; letter-spacing: .005em;
  padding: 1.02rem 1.5rem; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.rm-btn .rm-i { transition: transform .25s var(--ease); }
.rm-btn:hover .rm-i:last-child { transform: translateX(3px); }
.rm-btn--sm { padding: .78rem 1.15rem; font-size: .92rem; border-radius: 10px; }
.rm-btn--block { display: flex; width: 100%; }
.rm-btn--red { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 12px 26px -12px rgba(213, 32, 43, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.rm-btn--red::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.rm-btn--red:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(213, 32, 43, .9), inset 0 1px 0 rgba(255, 255, 255, .22); }
.rm-btn--red:hover::after { transform: translateX(120%); }
.rm-btn--ghost { background: transparent; color: var(--ink); border-color: rgba(11, 27, 58, .22); }
.rm-btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.rm-btn--white { background: #fff; color: var(--red-deep); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.rm-btn--white:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(0, 0, 0, .55); }
.rm-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.rm-btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }
.rm-btn--navy { background: var(--ink); color: #fff; box-shadow: 0 12px 26px -14px rgba(11, 27, 58, .8); }
.rm-btn--navy:hover { background: var(--ink-2); transform: translateY(-2px); }

/* ---------- 4. TOPBAR + HEADER + MEGA MENU ---------- */
.rm-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2001; pointer-events: none; }
.rm-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-2)); transform: scaleX(0); transform-origin: 0 50%; }

.rm-topbar { background: var(--navy); color: #c3cee6; font-size: .8125rem; font-weight: 500; position: relative; z-index: 1001; }
.rm-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--topbar-h); }
.rm-topbar__status { margin: 0; display: flex; align-items: center; gap: 10px; letter-spacing: .01em; }
.rm-topbar__short { display: none; }
.rm-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.rm-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: .7; animation: rm-ping 2s ease-out infinite; }
@keyframes rm-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.rm-topbar__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.rm-topbar a { color: #c3cee6; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.rm-topbar a:hover { color: #fff; }
.rm-lang { display: flex; align-items: center; gap: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 2px; font-weight: 700; font-size: .72rem; letter-spacing: .06em; }
.rm-lang span, .rm-lang a { padding: 3px 11px; border-radius: 999px; }
.rm-lang span { background: #fff; color: var(--ink); }

.rm-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); box-shadow: none; transition: box-shadow .3s, background-color .3s; }
.rm-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 27, 58, .45); background: rgba(255, 255, 255, .97); }
.rm-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; height: var(--header-h); transition: height .3s var(--ease); }
.rm-header.is-scrolled .rm-bar { height: 64px; }
.rm-logo { display: block; flex: none; line-height: 0; }
.rm-logo img { height: 54px; width: auto; transition: height .3s var(--ease); }
.rm-header.is-scrolled .rm-logo img { height: 46px; }

.rm-nav { display: flex; align-items: center; margin-left: auto; }
.rm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.rm-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font: 700 .95rem/1 var(--font-head); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 10px; transition: color .2s, background-color .2s; }
.rm-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.rm-link:hover, .rm-has-mega.is-open > .rm-link { color: var(--red-deep); }
.rm-link:hover::after, .rm-has-mega.is-open > .rm-link::after { transform: scaleX(1); }
.rm-caret { transition: transform .25s var(--ease); }
.rm-has-mega.is-open .rm-caret { transform: rotate(180deg); }

.rm-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.rm-phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.rm-phone__ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.rm-phone:hover .rm-phone__ico { background: var(--red); color: #fff; transform: rotate(-12deg) scale(1.05); }
.rm-phone__txt { display: flex; flex-direction: column; line-height: 1.15; }
.rm-phone__txt small { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rm-phone__txt strong { font: 800 1.02rem/1.2 var(--font-head); }

/* mega menu */
.rm-has-mega { position: static; }
.rm-mega { position: absolute; left: 50%; top: calc(100% - 4px); width: min(980px, calc(100vw - 40px)); transform: translate(-50%, 10px); opacity: 0; visibility: hidden; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-l); overflow: hidden; }
.rm-ready .rm-mega { transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s; }
html:not(.js) .rm-has-mega:hover .rm-mega, html:not(.js) .rm-has-mega:focus-within .rm-mega,
.rm-has-mega.is-open .rm-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.rm-mega__grid { display: grid; grid-template-columns: 1.55fr 1fr; }
.rm-mega__main { padding: 26px 26px 22px; display: grid; gap: 6px; }
.rm-mega__side { padding: 26px 26px 22px; background: var(--paper); border-left: 1px solid var(--line); }
.rm-mega__h { margin: 0 0 10px; font: 700 .78rem/1 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rm-tile { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.rm-tile:hover { background: var(--paper); border-color: var(--line); transform: translateX(3px); }
.rm-tile__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 1.3rem; transition: background-color .25s; }
.rm-tile:hover .rm-tile__ico { background: var(--red); }
.rm-tile__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rm-tile__txt strong { font: 800 1rem/1.25 var(--font-head); }
.rm-tile__txt small { font-size: .84rem; line-height: 1.4; color: var(--muted); font-weight: 500; }
.rm-tile__go { margin-left: auto; color: var(--red); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease); }
.rm-tile:hover .rm-tile__go { opacity: 1; transform: none; }
.rm-mega__also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px 0; border-top: 1px dashed var(--line); margin-top: 8px; }
.rm-mega__alsoh { font: 700 .78rem/1 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-chips span { font-size: .78rem; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.rm-mega__all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--red-deep); text-decoration: none; }
.rm-mega__side .rm-mega__all { margin: 14px 0 0; }
.rm-mega__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.rm-guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rm-guides a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.35; text-decoration: none; transition: background-color .2s, color .2s; }
.rm-guides a .rm-i { margin-top: 3px; color: var(--red); }
.rm-guides a:hover { background: #fff; color: var(--red-deep); }
.rm-mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; background: var(--navy); color: #cfd8ec; font-size: .9rem; font-weight: 500; }
.rm-mega__foot span { display: inline-flex; align-items: center; gap: 10px; }
.rm-mega__foot a { color: #fff; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rm-mega__foot a:hover { color: #ffb4b8; }

/* burger */
.rm-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-cool); background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.rm-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.rm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.rm-nav__mobile { display: none; }

/* ---------- 5. RESPONSIVE HEADER (tablet + phone) ---------- */
@media (max-width: 1120px) {
  .rm-phone__txt { display: none; }
  .rm-topbar__mail { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .rm-header, .rm-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .rm-burger { display: flex; }
  .rm-actions .rm-btn { display: none; }
  .rm-nav { position: fixed; left: 0; right: 0; top: 0; bottom: 0; margin: 0; padding: calc(var(--header-h) + var(--topbar-h) + 10px) 22px 28px; background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; overflow-y: auto; transform: translateY(-14px); opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s; z-index: -1; }
  .rm-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .rm-header { z-index: 1100; }
  body.rm-lock { overflow: hidden; }
  .rm-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .rm-menu > li { border-bottom: 1px solid var(--line); }
  .rm-link { width: 100%; justify-content: space-between; padding: 17px 4px; font-size: 1.15rem; border-radius: 0; }
  .rm-link::after { display: none; }
  .rm-mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; pointer-events: auto; border: 0; box-shadow: none; border-radius: 0; background: transparent; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .rm-has-mega.is-open .rm-mega { transform: none; max-height: 1400px; }
  .rm-mega__grid { grid-template-columns: 1fr; }
  .rm-mega__main { padding: 0 0 10px; }
  .rm-mega__side { border: 0; background: transparent; padding: 6px 0 14px; }
  .rm-tile { padding: 12px 8px; }
  .rm-tile__go { display: none; }
  .rm-mega__foot { display: none; }
  .rm-mega__also { padding: 12px 8px 0; }
  .rm-nav__mobile { display: grid; gap: 12px; margin-top: 6px; }
  .rm-nav__lang { margin: 6px 0 0; text-align: center; }
  .rm-nav__lang a { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 720px) {
  .rm-wrap { padding: 0 18px; }
  .rm-topbar__status { font-size: .76rem; }
  .rm-topbar__long { display: none; }
  .rm-topbar__short { display: inline; }
  .rm-topbar__links li:not(.rm-lang) { display: none; }
  .rm-logo img { height: 44px; }
  .rm-header.is-scrolled .rm-logo img { height: 40px; }
}

/* ---------- 6. FOOTER + CTA BAND ---------- */
.rm-footer { position: relative; background: var(--navy); color: #b9c6e2; font-size: .95rem; }
.rm-band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(105deg, var(--red-deep) 0%, var(--red) 52%, var(--red-2) 100%); }
.rm-band::before { content: ""; position: absolute; inset: -40% -10%; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 18px, transparent 18px 52px); animation: rm-slide 22s linear infinite; }
@keyframes rm-slide { to { transform: translateX(104px); } }
.rm-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.rm-band__txt h2 { margin: 0 0 6px; font: 800 clamp(1.5rem, 3vw, 2.15rem)/1.15 var(--font-head); letter-spacing: -.02em; color: #fff; }
.rm-band__txt p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 52ch; font-size: 1.02rem; }
.rm-band__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.rm-foot { padding: 64px 0 38px; background: radial-gradient(900px 380px at 12% 0%, rgba(22, 48, 95, .75), transparent 70%), var(--navy); }
.rm-foot__grid { display: grid; grid-template-columns: 1.5fr .9fr .9fr 1.3fr 1.2fr; gap: 38px; }
.rm-foot h3 { margin: 0 0 16px; font: 700 .86rem/1.2 var(--font-cond); letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.rm-foot__brand h3 { font: 800 1.02rem/1.3 var(--font-head); letter-spacing: 0; text-transform: none; margin: 18px 0 10px; }
.rm-foot__logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 12px; line-height: 0; }
.rm-foot__logo img { height: 48px; width: auto; }
.rm-foot p { margin: 0 0 10px; color: #b9c6e2; line-height: 1.65; }
.rm-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rm-foot a { color: #b9c6e2; text-decoration: none; transition: color .2s, transform .2s var(--ease); }
.rm-foot a:hover { color: #fff; }
.rm-foot ul a { display: inline-block; }
.rm-foot ul a:hover { transform: translateX(4px); }
.rm-foot strong { color: #fff; font-weight: 700; }
.rm-foot address { font-style: normal; margin-top: 12px; line-height: 1.65; }
.rm-foot address a { color: #b9c6e2; }
.rm-foot__col--guides a { line-height: 1.4; }
.rm-foot__bottom { background: #071126; border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .86rem; color: #8695b6; }
.rm-foot__bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rm-foot__bottom p { margin: 0; color: #8695b6; }
.rm-foot__tag { font-family: var(--font-cond); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; font-size: .86rem; }
@media (max-width: 1040px) { .rm-foot__grid { grid-template-columns: repeat(4, 1fr); } .rm-foot__brand { grid-column: 1 / -1; max-width: 680px; } }
@media (max-width: 860px) { .rm-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .rm-foot { padding: 46px 0 28px; }
  .rm-foot__grid { gap: 30px 22px; }
  .rm-foot__contact { grid-column: 1 / -1; }
  .rm-band__in { flex-direction: column; align-items: flex-start; padding-top: 38px; padding-bottom: 38px; }
  .rm-band__cta { width: 100%; }
  .rm-band__cta .rm-btn { flex: 1 1 100%; }
}
@media (max-width: 480px) { .rm-foot__grid { grid-template-columns: 1fr; } }

/* ---------- 7. MOBILE ACTION BAR + BACK TO TOP ---------- */
.rm-mobbar { display: none; }
@media (max-width: 860px) {
  body.rm-skin { padding-bottom: 66px; }
  .rm-mobbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(11, 27, 58, .5); }
  .rm-mobbar a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 10px; border-radius: 12px; font: 800 .95rem/1 var(--font-head); text-decoration: none; }
  .rm-mobbar__call { background: var(--ink); color: #fff; }
  .rm-mobbar__quote { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 10px 20px -12px rgba(213, 32, 43, .9); }
}
.rm-top { position: fixed; right: 22px; bottom: 24px; z-index: 1150; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--ink); color: #fff; font-size: 1.3rem; box-shadow: 0 14px 28px -12px rgba(11, 27, 58, .7); opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.rm-top.is-on { opacity: 1; transform: none; }
.rm-top:hover { background: var(--red); }
.rm-top[hidden] { display: none; }
@media (max-width: 860px) { .rm-top { right: 14px; bottom: 82px; width: 44px; height: 44px; } }

/* ---------- 8. MOTION ---------- */
.js .rm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); will-change: opacity, transform; }
.js .rm-reveal.rm-reveal--left { transform: translateX(-34px); }
.js .rm-reveal.rm-reveal--right { transform: translateX(34px); }
.js .rm-reveal.rm-reveal--zoom { transform: scale(.94); }
.js .rm-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rm-reveal { opacity: 1; transform: none; }
}
@media print {
  .js .rm-reveal { opacity: 1 !important; transform: none !important; }
  .rm-topbar, .rm-header, .rm-mobbar, .rm-top, .rm-band, .rm-progress { display: none !important; }
}
