/*
 * Recruit Dispatch (A+) — base look: type, buttons, section headings, signup form, header, drawer,
 * contact sheet, footer, sticky CTA. Mockup: design/mockups/a2/. Behaviour (positions, scroll lock,
 * dialog mechanics) comes from recruit-core's structure.css; colours are --rc-* scheme tokens.
 */

/* ---------- Tokens that are not colours ---------- */
:root {
  --rc-font-heading: Geologica, "Geologica Fallback", system-ui, sans-serif;
  --rc-font-body: "Golos Text", system-ui, sans-serif;
  --rc-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1288px;
  --gutter: 24px;
  --space-section: 104px;
  --radius: 6px;
  --radius-lg: 14px;
  /* Header heights read by site-header/view.js (px). */
  --rc-header-top: 88;
  --rc-header-stuck: 72;
  --rc-header-top-mobile: 72;
  --rc-header-stuck-mobile: 64;
  --header-h: 88px;
  --card-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 16px 40px -16px rgb(0 0 0 / 18%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rc-bg);
  color: var(--rc-text);
  font: 400 16px/1.6 var(--rc-font-body);
  -webkit-font-smoothing: antialiased;
  counter-reset: section;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--rc-font-heading); font-weight: 600; color: var(--rc-text); text-wrap: balance; }
h1 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
p { color: var(--rc-body-text); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 4px; }
::selection { background: var(--rc-accent); color: var(--rc-accent-ink); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.rc-skip { top: 8px; left: 16px; padding: 12px 16px; background: var(--rc-accent); color: var(--rc-accent-ink); font-weight: 600; border-radius: 4px; }

.rc-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.rc-main > .entry-content > * { margin-block: 0; }

/* ---------- Buttons ---------- */
.rc-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 4px;
  font: 600 15px/1.4 var(--rc-font-body); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}
.rc-button > span:last-child:not(:first-child) { font-size: 20px; line-height: 1; }
.rc-button:active { transform: translateY(1px); }
.rc-button--primary { background: var(--rc-accent); color: var(--rc-accent-ink); }
.rc-button--primary:hover { background: var(--rc-accent-hover); }
.rc-button--ghost { background: transparent; color: var(--rc-text); border-color: var(--rc-line); }
.rc-button--ghost:hover { border-color: var(--rc-accent); }
.rc-button--text {
  min-height: 44px; padding: 12px 0; gap: 24px; border: 0; border-bottom: 1px solid var(--rc-accent);
  border-radius: 0; background: transparent; color: var(--rc-accent); font-size: 14px;
}
.rc-button--text:hover { color: var(--rc-text); border-color: var(--rc-text); }
.rc-button--text > span:last-child:not(:first-child) { font-size: 16px; }

/* ---------- Sections: number + label, heading, lead ---------- */
.rc-section { padding-block: var(--space-section); border-bottom: 1px solid var(--rc-line); counter-increment: section; }
.rc-section__label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font: 500 14px/1.4 var(--rc-font-mono); color: var(--rc-muted); text-transform: uppercase; letter-spacing: .04em;
}
.rc-section__label::before {
  content: counter(section, decimal-leading-zero);
  color: var(--rc-accent); padding-right: 12px; border-right: 1px solid var(--rc-line);
}
.rc-section__intro { max-width: 760px; margin-bottom: 48px; }
.rc-section__intro p, .rc-section__lead { margin-top: 24px; max-width: 680px; font-size: 18px; }

/* Icon chip (line icons from the plugin). */
.rc-icon { width: 20px; height: 20px; flex: none; }
.rc-icon-chip {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--rc-line); border-radius: 4px; background: var(--rc-accent-soft); color: var(--rc-accent);
}
.rc-icon-chip--lg { width: 48px; height: 48px; }
.rc-icon-chip--lg .rc-icon { width: 24px; height: 24px; }

.rc-note { padding-left: 16px; border-left: 1px solid var(--rc-line); color: var(--rc-muted); font-size: 16px; max-width: 760px; }

/* ---------- Photo with an optional glass caption (steps, media lists, work types) ---------- */
.rc-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--rc-line); border-radius: var(--radius-lg); background: var(--rc-surface-2); }
.rc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); filter: var(--rc-photo-filter); }
.rc-photo::after { content: ""; position: absolute; inset: 0; background: var(--rc-photo-scrim); pointer-events: none; }
.rc-photo__caption {
  position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; padding: 16px 24px;
  border: 1px solid var(--rc-glass-line); border-radius: var(--radius-lg); background: var(--rc-glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--rc-text); font-size: 15px;
}
@media (max-width: 767px) {
  .rc-photo__caption { left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; font-size: 14px; }
}

/* ---------- Signup form (hero panel, final section) ---------- */
.rc-signup { position: relative; min-width: 0; }
.rc-signup--glass, .rc-hero .rc-signup {
  padding: 32px; border: 1px solid var(--rc-glass-line); border-radius: var(--radius);
  background: var(--rc-glass); -webkit-backdrop-filter: blur(18px) brightness(.5); backdrop-filter: blur(18px) brightness(.5);
}
.rc-signup--glass::before, .rc-hero .rc-signup::before { content: ""; position: absolute; top: -1px; left: 32px; width: 48px; height: 2px; background: var(--rc-accent); }
.rc-signup__title { margin-bottom: 32px; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.rc-signup__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.rc-signup__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; color: var(--rc-text); }
.rc-signup input:not([type="hidden"]) {
  display: block; width: 100%; min-width: 0; height: 48px; padding: 8px 12px;
  border: 1px solid var(--rc-field-line); border-radius: 4px; background: var(--rc-field-bg); color: var(--rc-text);
  transition: border-color 160ms ease-out;
}
.rc-signup input:hover { border-color: var(--rc-muted); }
.rc-signup input:focus { border-color: var(--rc-accent); outline-offset: 2px; }
.rc-signup input:-webkit-autofill { -webkit-text-fill-color: var(--rc-text); box-shadow: 0 0 0 1000px var(--rc-surface-2) inset; }
.rc-signup input[aria-invalid="true"] { border-color: var(--rc-notice); }
.rc-signup__error { color: var(--rc-notice); font-size: 13px; }
.rc-signup .rc-button[data-primary] { width: 100%; min-height: 56px; margin-top: 24px; justify-content: center; gap: 12px; }
.rc-signup__note { margin-top: 16px; text-align: center; font-size: 14px; color: var(--rc-muted); }
.rc-signup__platform { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rc-glass-line); font-size: 12px; line-height: 1.6; color: var(--rc-muted); }

/* ---------- Header ---------- */
.rc-header {
  height: var(--header-h);
  color: var(--rc-text);
  background: transparent;
  border-bottom: 1px solid var(--rc-glass-line);
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out, height 200ms ease-out, transform 200ms ease-out;
}
.rc-header.is-stuck, body:not(.has-dark-hero) .rc-header {
  background: var(--rc-header-glass); border-color: var(--rc-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
@supports not (backdrop-filter: blur(1px)) {
  .rc-header.is-stuck, body:not(.has-dark-hero) .rc-header { background: var(--rc-header-fallback); }
}
.rc-header__inner {
  display: flex; align-items: center; gap: 16px; height: 100%;
  max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter);
}
.rc-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px;
  font: 600 18px/1.1 var(--rc-font-heading); letter-spacing: -.025em; white-space: nowrap; color: var(--rc-text);
}
/* Brand mark: a dispatch "check in a frame", drawn with a mask in the accent colour. */
.rc-brand__mark {
  width: 28px; height: 28px; flex: none; font-size: 0; color: transparent; background: var(--rc-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 11V3h8M21 3h8v8M29 21v8h-8M11 29H3v-8M10 17l4 4 9-11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 11V3h8M21 3h8v8M29 21v8h-8M11 29H3v-8M10 17l4 4 9-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rc-header__nav { display: flex; flex: 1; justify-content: center; gap: 28px; }
.rc-header__nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.rc-header__nav a:hover { color: var(--rc-accent); }
.rc-header__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rc-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.rc-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rc-header__languages, .rc-languages-control { display: flex; align-items: center; }
.rc-language {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; padding-inline: 5px;
  font: 600 12px/1 var(--rc-font-mono); text-transform: uppercase; color: var(--rc-muted); background: none; border: 0;
}
.rc-header__languages .rc-language { font-size: 0; }
.rc-header__languages .rc-language::after { content: attr(data-language); font-size: 12px; }
.rc-language[aria-current="true"], .rc-language[aria-pressed="true"] { color: var(--rc-accent); text-decoration: underline; text-underline-offset: 5px; }
.rc-header .rc-button { min-height: 40px; padding: 8px 14px; gap: 8px; font-size: 13px; }
.rc-contact-trigger { color: var(--rc-text); border-color: var(--rc-line); }
.rc-contact-trigger:hover { border-color: var(--rc-signal); }
.rc-header__burger {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--rc-line); border-radius: 4px; background: transparent; color: var(--rc-text);
}
.rc-header__burger:hover { border-color: var(--rc-signal); }
.rc-header__burger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.rc-header__burger path { transform-origin: 12px 12px; transition: transform 200ms ease, opacity 200ms ease; }
.rc-header__burger[aria-expanded="true"] path:nth-child(1) { transform: translateY(6px) rotate(45deg); transform-origin: 12px 6px; }
.rc-header__burger[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
.rc-header__burger[aria-expanded="true"] path:nth-child(3) { transform: translateY(-6px) rotate(-45deg); transform-origin: 12px 18px; }

@media (min-width: 1280px) and (max-width: 1439px) {
  .rc-header__nav { gap: 20px; }
}
@media (max-width: 1279px) {
  .rc-header__nav { display: none; }
  .rc-header__burger { display: grid; }
}
/* Spanish and Russian menu labels are longer: the full menu needs about 1600px, so they switch to the drawer earlier. */
@media (max-width: 1599px) {
  html:is([lang^="es"], [lang^="ru"]) .rc-header__nav { display: none; }
  html:is([lang^="es"], [lang^="ru"]) .rc-header__burger { display: grid; }
}
.rc-header__actions { flex-shrink: 0; }
@media (max-width: 1023px) {
  .rc-header__languages { display: none; }
}
@media (max-width: 767px) {
  :root { --header-h: 72px; --gutter: 16px; --space-section: 64px; }
  html { scrollbar-gutter: auto; }
  .rc-header__inner { gap: 8px; }
  .rc-brand { font-size: 15px; gap: 8px; }
  .rc-brand__mark { width: 24px; height: 24px; }
  .rc-header.is-hidden { transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px))); }
  .rc-header__cta { display: none; }
  .rc-contact-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .rc-contact-trigger > span:not(:first-child) { display: none; }
}

/* ---------- Navigation drawer ---------- */
.rc-drawer { border: 0; background: transparent; color: var(--rc-text); --drawer-duration: 220ms; }
.rc-drawer::backdrop { background: var(--rc-overlay-scrim); opacity: 0; transition: opacity var(--drawer-duration) ease; }
.rc-drawer.is-visible::backdrop { opacity: 1; }
.rc-drawer__panel {
  width: min(360px, 100%); gap: 16px;
  padding: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 16px) 24px max(24px, env(safe-area-inset-bottom));
  background: var(--rc-surface); border-left: 1px solid var(--rc-line);
  transition: transform var(--drawer-duration) ease-out, opacity var(--drawer-duration) ease-out;
}
.has-drawer .rc-header { background: var(--rc-surface); border-color: var(--rc-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-drawer .rc-header__languages { display: none; }
.rc-drawer__nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 0;
  border-bottom: 1px solid var(--rc-line); font-size: 18px; font-weight: 600;
}
.rc-drawer__nav a::after { content: "↗"; color: var(--rc-muted); font-size: 16px; }
.rc-drawer__nav a:hover, .rc-drawer__nav a[aria-current="page"] { color: var(--rc-accent); }
.rc-drawer__panel > .rc-languages-control { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rc-line); border-radius: 4px; }
.rc-drawer .rc-language + .rc-language { border-left: 1px solid var(--rc-line); }
.rc-drawer__bottom { flex: none; margin-top: auto; padding-top: 16px; }
.rc-drawer__bottom > .rc-button { width: 100%; min-height: 52px; margin-top: 16px; }
.rc-drawer__bottom .rc-contact__label { display: none; }

/* ---------- Contact popover / bottom sheet ---------- */
.rc-contact {
  inset: 96px 24px auto auto; margin: 0; width: 340px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto;
  padding: 8px; border: 1px solid var(--rc-line); border-radius: var(--radius); background: var(--rc-surface); color: var(--rc-text);
}
.rc-contact::backdrop { background: transparent; }
.rc-contact[open] { animation: rc-contact-in 160ms ease-out; }
@keyframes rc-contact-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.rc-contact__handle { display: none; }
.rc-contact__heading { padding: 16px 52px 8px 16px; }
.rc-contact__heading h2 { font: 600 16px/1.4 var(--rc-font-body); letter-spacing: 0; }
.rc-contact__heading p { margin-top: 4px; font-size: 13px; color: var(--rc-muted); }
.rc-contact > .rc-dialog-close { position: absolute; top: 8px; right: 8px; }
.rc-dialog-close { border: 1px solid var(--rc-line); border-radius: 4px; background: transparent; color: var(--rc-text); font-size: 24px; }
.rc-dialog-close:hover { border-color: var(--rc-signal); }
.rc-contact__row { display: flex; align-items: center; min-width: 0; border-bottom: 1px solid var(--rc-line); }
.rc-contact__row:last-child { border-bottom: 0; }
.rc-contact__row a { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; min-height: 60px; padding: 8px 12px; border-radius: 4px; }
.rc-contact__row a:hover, .rc-contact__copy:hover { background: var(--rc-surface-2); }
.rc-contact__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 4px; background: var(--rc-accent-soft); color: var(--rc-accent); }
.rc-contact__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-contact__body { display: grid; flex: 1; min-width: 0; }
.rc-contact__label { font: 600 13px/1.4 var(--rc-font-mono); text-transform: uppercase; color: var(--rc-muted); }
.rc-contact__value { font: 600 15px/1.4 var(--rc-font-body); overflow-wrap: anywhere; }
.rc-contact__copy { width: 32px; height: 32px; flex: none; border: 0; border-radius: 4px; background: transparent; color: var(--rc-muted); }
.rc-contact__status { padding-inline: 16px; font-size: 13px; }
.rc-contact__status:not(:empty) { padding-block: 8px; }
.rc-toast { bottom: 96px; padding: 12px 20px; border: 1px solid var(--rc-line); border-radius: 4px; background: var(--rc-surface-2); color: var(--rc-text); font-size: 14px; box-shadow: var(--card-shadow); }
@media (max-width: 767px) {
  .rc-contact {
    inset: auto 0 0 !important; width: 100%; max-width: none; max-height: 80dvh;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; overscroll-behavior: contain;
  }
  .rc-contact::backdrop { background: var(--rc-overlay-scrim); }
  .rc-contact[open] { animation: rc-sheet-in 240ms cubic-bezier(.2, .8, .2, 1); }
  @keyframes rc-sheet-in { from { transform: translateY(100%); } }
  .rc-contact__handle { display: block; width: 36px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--rc-muted); }
  .rc-contact__heading { padding: 8px 52px 16px 0; }
  .rc-contact > .rc-dialog-close { top: 20px; right: 16px; }
  .rc-contact__row a { min-height: 64px; padding: 8px; }
  .rc-contact__icon { width: 44px; height: 44px; }
  .rc-contact__row[data-contact-row="phone"] { background: var(--rc-surface-2); border-radius: 8px; }
}

/* ---------- Footer ---------- */
.rc-footer { padding-block: 64px 24px; border-top: 1px solid var(--rc-line); color: var(--rc-muted); }
.rc-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr); gap: 48px; padding-bottom: 40px; }
.rc-footer__brand p { margin-top: 24px; max-width: 460px; font-size: 14px; color: var(--rc-body-text); }
.rc-footer__brand .rc-footer__disclaimer { margin-top: 16px; color: var(--rc-muted); }
.rc-footer h3 { margin-bottom: 12px; font: 600 13px/1.4 var(--rc-font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--rc-muted); }
.rc-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.rc-footer__col a, .rc-footer__legal a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; color: var(--rc-text); }
.rc-footer a:hover { color: var(--rc-accent); }
.rc-footer__start { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.rc-footer__start .rc-button { width: 100%; }
.rc-footer__languages { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 13px/1.4 var(--rc-font-mono); }
.rc-footer__languages svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rc-languages-control--full { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rc-languages-control--full .rc-language { min-width: 0; font-size: 13px; color: var(--rc-text); border-bottom: 1px solid transparent; text-decoration: none; }
.rc-languages-control--full .rc-language:hover { border-bottom-color: currentColor; }
.rc-languages-control--full .rc-language[aria-current="true"] { color: var(--rc-accent); border-bottom-color: currentColor; }
.rc-footer__contact { padding-block: 24px; border-top: 1px solid var(--rc-line); }
.rc-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; font-size: 13px;
  /* The rule spans the content width, not the gutters. */
  background: linear-gradient(var(--rc-line), var(--rc-line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.rc-footer__legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.rc-footer__legal a { font-size: 13px; color: var(--rc-muted); }
@media (max-width: 1023px) {
  .rc-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .rc-footer__brand, .rc-footer__start { grid-column: 1 / -1; }
  .rc-footer__start .rc-button { width: auto; }
}
@media (max-width: 767px) {
  .rc-footer { padding-block: 40px 24px; }
}

/* ---------- Sticky mobile CTA ---------- */
.rc-sticky { display: none; }
@media (max-width: 767px) {
  .rc-sticky:not([hidden]) {
    display: flex; position: fixed; inset: auto 0 0; z-index: 40;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--rc-header-glass); border-top: 1px solid var(--rc-glass-line);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    transform: translateY(100%); visibility: hidden; transition: transform 200ms ease-out, visibility 200ms;
  }
  .rc-sticky.is-visible { transform: none; visibility: visible; }
  .rc-sticky .rc-button { flex: 1; min-height: 48px; font-size: 14px; }
  body.has-sticky-cta { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Legal pages (core blocks in a .rc-legal group) ---------- */
.rc-legal { max-width: calc(68ch + 2 * var(--gutter)); margin: 64px auto var(--space-section); padding-block: 8px; }
.rc-legal > h2 { margin-top: 48px; margin-bottom: 16px; font-size: 26px; line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 24px); }
.rc-legal > h2:first-child { margin-top: 0; }
.rc-legal > h3 { margin-top: 32px; margin-bottom: 12px; font-size: 20px; }
.rc-legal p, .rc-legal li { font-size: 17px; line-height: 1.75; color: var(--rc-reading-text); }
.rc-legal > p { margin-block: 16px; }
.rc-legal > ul, .rc-legal > ol { margin-block: 16px; padding-left: 24px; list-style: disc; }
.rc-legal li { margin-block: 8px; padding-left: 4px; }
.rc-legal li::marker { color: var(--rc-accent); }
.rc-legal strong { color: var(--rc-text); }
.rc-legal a { color: var(--rc-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Phones: phone and email get a full row each (a3), the two name fields stay side by side. */
@media (max-width: 767px) {
  .rc-signup__field:has(input[type="tel"]), .rc-signup__field:has(input[type="email"]) { grid-column: 1 / -1; }
}
/* .rc-main > .entry-content > * resets margins; legal pages need their own space under the hero. */
.rc-main > .entry-content > .rc-legal { margin-block: 64px var(--space-section); }
@media (max-width: 767px) {
  .rc-main > .entry-content > .rc-legal { margin-block: 40px var(--space-section); }
}

/* Inline links inside running text (FAQ answers, notes, cards, lists) look like links in every language. */
.rc-main :is(p, li, dd) a:not(.rc-button) { color: var(--rc-accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.rc-main :is(p, li, dd) a:not(.rc-button):hover { color: var(--rc-accent-hover, var(--rc-accent)); }

/* The site's own mark (same as its favicon) replaces the default check-in-a-frame mark. */
.rc-brand__mark--own { background: none; -webkit-mask: none; mask: none; font-size: inherit; color: inherit; border-radius: 6px; overflow: hidden; }
.rc-brand__mark--own svg { display: block; width: 100%; height: 100%; }
/* Long translated footer CTA (RU): keep the arrow off the button edge. */
.rc-footer__start .rc-button { justify-content: space-between; gap: 12px; padding-inline: 20px; white-space: normal; text-align: left; }
