/* RS Mobile — site system "Warsztat" (homepage variant A, approved 2026-10-11).
   Shared by every rsm-site page: tokens, reset, type, buttons, header with the
   PL | EN switcher, footer, screenshot frames, FAQ, forms. Page identities
   (case studies) live in their own case-*.css and only style the area between
   the header and the footer. */

:root {
  --rsm-bg: #F6F5F2;
  --rsm-surface: #FFFFFF;
  --rsm-ink: #101215;
  --rsm-ink-2: #33373E;
  --rsm-muted: #4A4F57;
  --rsm-line: #DAD7D0;
  --rsm-line-soft: #E4E1DA;
  --rsm-line-strong: #C9C5BC;
  --rsm-blue: #0070F2;
  --rsm-blue-text: #0062DB;
  --rsm-blue-hover: #004BA8;
  --rsm-dark: #101215;
  --rsm-dark-line: #2B2F36;
  --rsm-on-dark: #E3E6EA;
  --rsm-on-dark-muted: #C9CDD3;
  --rsm-f-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --rsm-f-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rsm-f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rsm-gutter: clamp(16px, 4vw, 40px);
  --rsm-max: 1200px;
  --rsm-radius: 6px;
  --rsm-header-h: 76px;
}

/* ---- Reset (the theme's CSS is not loaded on these pages) ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--rsm-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.rsm {
  margin: 0;
  background: var(--rsm-bg);
  color: var(--rsm-ink);
  font-family: var(--rsm-f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.rsm img, .rsm svg, .rsm video { max-width: 100%; }
.rsm img { height: auto; }
/* :where() keeps this reset at class-level specificity, so .rsm-display / .rsm-h2 / .rsm-h3 win on headings. */
.rsm :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-weight: 700; line-height: 1.15; }
.rsm p, .rsm ul, .rsm ol, .rsm dl, .rsm dd, .rsm figure, .rsm blockquote { margin: 0; }
.rsm ul, .rsm ol { padding: 0; }
.rsm a { color: var(--rsm-blue-text); text-underline-offset: 3px; }
.rsm a:hover { color: var(--rsm-blue-hover); }
.rsm button, .rsm input, .rsm select, .rsm textarea { font: inherit; color: inherit; }
.rsm :focus-visible { outline: 3px solid var(--rsm-blue); outline-offset: 2px; border-radius: 2px; }
.rsm table { border-collapse: collapse; }
.rsm address { font-style: normal; }

.rsm-wrap { width: 100%; max-width: calc(var(--rsm-max) + 2 * var(--rsm-gutter)); margin-inline: auto; padding-inline: var(--rsm-gutter); }
.rsm-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rsm-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--rsm-radius); background: var(--rsm-ink); color: #fff !important; font-weight: 600; text-decoration: none; }
.rsm-skip:focus { top: 12px; }
.rsm-main { display: block; }

/* ---- Type helpers ---------------------------------------------------------- */
.rsm-display { font-family: var(--rsm-f-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.03; text-wrap: balance; }
.rsm-h2 { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.rsm-h3 { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; letter-spacing: -0.015em; }
.rsm-lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--rsm-ink-2); text-wrap: pretty; }
.rsm-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--rsm-f-mono); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--rsm-muted); letter-spacing: 0; }
.rsm-label__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--rsm-blue); flex: none; }
.rsm-mono { font-family: var(--rsm-f-mono); }
.rsm-nowrap { white-space: nowrap; }

/* ---- Buttons --------------------------------------------------------------- */
.rsm .rsm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border-radius: var(--rsm-radius);
  font-family: var(--rsm-f-body); font-size: 16px; font-weight: 600; line-height: 1.25;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.rsm .rsm-btn svg { flex: none; }
.rsm .rsm-btn--primary { background: var(--rsm-blue); color: #FFFFFF; }
.rsm .rsm-btn--primary:hover { background: var(--rsm-blue-text); color: #FFFFFF; }
.rsm .rsm-btn--ghost { background: var(--rsm-surface); border-color: var(--rsm-line-strong); color: var(--rsm-ink); }
.rsm .rsm-btn--ghost:hover { border-color: var(--rsm-ink); color: var(--rsm-ink); }
.rsm .rsm-btn--light { background: #FFFFFF; color: var(--rsm-ink); }
.rsm .rsm-btn--light:hover { background: #E8EEF9; color: var(--rsm-ink); }
.rsm .rsm-btn--outline-light { background: transparent; border-color: #5A606B; color: #FFFFFF; }
.rsm .rsm-btn--outline-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.rsm .rsm-btn--sm { min-height: 44px; padding: 0 16px 0 20px; font-size: 15px; gap: 8px; }

/* ---- Header ---------------------------------------------------------------- */
.rsm-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60;
  background: #FFFFFF; border-bottom: 1px solid #E4E2DC;
  font-family: var(--rsm-f-body); color: var(--rsm-ink);
}
.rsm-header__bar { display: flex; align-items: center; min-height: 75px; position: relative; }
.rsm-header__logo { display: flex; align-items: center; flex: none; height: 75px; text-decoration: none; }
.rsm-header__logo img { display: block; width: 144px; height: 36px; }
.rsm-header__menu { display: flex; align-items: center; column-gap: 32px; margin-left: auto; min-width: 0; }
.rsm-nav__list { display: flex; flex-wrap: nowrap; align-items: center; column-gap: clamp(18px, 2.2vw, 28px); margin: 0; padding: 0; list-style: none; }
.rsm .rsm-nav__link {
  display: block; padding: 10px 0 8px; font-size: 15px; line-height: 20px; font-weight: 500;
  color: var(--rsm-muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent;
}
.rsm .rsm-nav__link:hover { color: var(--rsm-ink); }
.rsm .rsm-nav__link[aria-current] { color: var(--rsm-ink); border-bottom-color: var(--rsm-blue); }
.rsm-header__cta { flex: none; white-space: nowrap; }
.rsm .rsm-header__cta { min-height: 44px; padding: 0 16px 0 20px; font-size: 15px; gap: 8px; }

/* Each item is a 44 × 44 px tap target; the label inside keeps the text-width underline.
   The 11 px of slack on each side replaces the old 10 px gaps and part of the margin. */
.rsm-switch { flex: none; display: flex; align-items: center; margin-left: 17px; }
.rsm .rsm-switch__item { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--rsm-muted); text-decoration: none; }
.rsm-switch__label {
  display: block; padding: 10px 1px 8px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
}
.rsm .rsm-switch a:hover { color: var(--rsm-ink); }
.rsm .rsm-switch [aria-current] { color: var(--rsm-ink); }
.rsm-switch [aria-current] .rsm-switch__label { font-weight: 700; border-bottom-color: var(--rsm-blue); }
.rsm-switch__sep { display: block; width: 1px; height: 14px; background: var(--rsm-line-strong); }

.rsm-burger {
  display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin-left: 6px; padding: 0; border: 0; border-radius: var(--rsm-radius);
  background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rsm-line-strong); color: var(--rsm-ink); cursor: pointer;
}
.rsm-burger path { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.rsm-burger[aria-expanded="true"] .rsm-burger__l1 { transform: translateY(5px) rotate(45deg); }
.rsm-burger[aria-expanded="true"] .rsm-burger__l2 { opacity: 0; }
.rsm-burger[aria-expanded="true"] .rsm-burger__l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .rsm-burger { display: flex; }
  .rsm-switch { margin-left: auto; }
  /* The bar is a full-width .rsm-wrap (gutter = padding), so 0/0 already spans the viewport. */
  .rsm-header__menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    margin: 1px 0 0; padding: 8px var(--rsm-gutter) 24px; background: #FFFFFF;
    border-bottom: 1px solid #E4E2DC; box-shadow: 0 18px 30px -18px rgba(16, 18, 21, 0.28);
    flex-direction: column; align-items: stretch; row-gap: 16px;
  }
  .rsm-header__menu.is-open { display: flex; }
  .rsm-nav__list { flex-direction: column; align-items: stretch; }
  .rsm .rsm-nav__link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--rsm-line-soft); }
  .rsm .rsm-nav__link[aria-current] { border-bottom-color: var(--rsm-line-soft); box-shadow: inset 3px 0 0 var(--rsm-blue); padding-left: 12px; }
  .rsm .rsm-header__cta { min-height: 52px; font-size: 16px; }
}
@media (max-width: 380px) {
  .rsm-header__logo img { width: 120px; height: 30px; }
  .rsm-burger { margin-left: 0; }
}

/* ---- Footer ---------------------------------------------------------------- */
.rsm-footer { background: var(--rsm-dark); color: #FFFFFF; font-family: var(--rsm-f-body); }
.rsm-footer__inner { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 44px; }
.rsm-footer__top { display: flex; flex-wrap: wrap; column-gap: 48px; row-gap: 40px; }
.rsm-footer__brand { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.rsm-footer__brand img { display: block; width: 144px; height: 36px; }
.rsm-footer__claim { max-width: 360px; font-family: var(--rsm-f-display); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: #FFFFFF; text-wrap: balance; }
.rsm-footer__sub { max-width: 360px; margin-top: -8px !important; font-size: 15px; line-height: 23px; color: var(--rsm-on-dark-muted); }
.rsm-footer__cols { flex: 2 1 560px; display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 36px; }
.rsm-footer__col { flex: 1 1 170px; display: flex; flex-direction: column; gap: 16px; }
.rsm-footer__col--contact { flex: 1.2 1 200px; }
.rsm-footer__h { font-family: var(--rsm-f-display); font-size: 16px; line-height: 22px; font-weight: 600; color: #FFFFFF; letter-spacing: 0; }
.rsm-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.rsm .rsm-footer a { color: var(--rsm-on-dark); text-decoration: none; }
.rsm .rsm-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.rsm-footer__address dl { display: flex; flex-direction: column; gap: 12px; }
.rsm-footer__address dl > div { display: flex; flex-direction: column; gap: 2px; }
.rsm-footer__address dt { font-size: 13px; line-height: 18px; color: var(--rsm-on-dark-muted); }
.rsm-footer__address dd { font-size: 15px; line-height: 22px; color: var(--rsm-on-dark); }
/* 44 px tap targets without moving anything: padding grows the hit area, the equal negative margin cancels it. */
.rsm .rsm-footer__address dd a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.rsm .rsm-footer__brand > a { display: block; padding-block: 4px; margin-block: -4px; }
.rsm-footer__bottom { border-top: 1px solid var(--rsm-dark-line); padding-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 24px; row-gap: 12px; font-size: 14px; line-height: 20px; color: var(--rsm-on-dark-muted); }
.rsm-footer-switch { display: flex; align-items: baseline; gap: 10px; }
.rsm-footer-switch__item { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.rsm .rsm-footer-switch a { color: var(--rsm-on-dark-muted); }
.rsm-footer-switch__label { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.rsm .rsm-footer-switch [aria-current] { color: #FFFFFF; font-weight: 600; }
.rsm-footer-switch [aria-current] .rsm-footer-switch__label { border-bottom-color: var(--rsm-blue); }
.rsm .rsm-footer-switch a:hover { text-decoration: none; color: #FFFFFF; }
.rsm-footer-switch__sep::before { content: "/"; color: var(--rsm-on-dark-muted); }
@media (max-width: 940px) {
  /* Touch: one 44 px row per footer link (the negative margins keep the column's spacing). */
  .rsm-footer__list { gap: 0; margin-block: -11px; }
  .rsm .rsm-footer__list a { display: block; padding-block: 11px; }
}

/* ---- Screenshot frames ----------------------------------------------------- */
.rsm-frame {
  border: 1px solid #D3CFC6; border-radius: 10px; background: #FFFFFF; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 18, 21, 0.06), 0 18px 40px -20px rgba(16, 18, 21, 0.32);
}
.rsm-frame__bar { height: 28px; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: #F3F1EC; border-bottom: 1px solid #E4E1DA; }
.rsm-frame__dots { display: flex; gap: 6px; flex: none; }
.rsm-frame__dots span { width: 7px; height: 7px; border-radius: 50%; background: #CBC6BC; }
.rsm-frame__title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--rsm-f-mono); font-size: 11px; line-height: 1.2; color: var(--rsm-muted); }
.rsm-frame__shot { display: block; position: relative; overflow: hidden; background: #F4F4F2; }
.rsm-frame__shot img { display: block; width: 100%; height: auto; }
.rsm-frame__shot--crop { aspect-ratio: 16 / 10; }
.rsm-frame__shot--crop img { height: 100%; object-fit: cover; object-position: top left; }
a.rsm-frame__shot { cursor: zoom-in; }
.rsm-caption { font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1.5; color: var(--rsm-muted); }

/* Full-size screenshot viewer (site.js opens links marked data-rsm-zoom). The dialog sits in
   body.rsm, so the close button needs more weight than `.rsm button { font: inherit; color: inherit }`. */
.rsm-zoom-dialog { width: min(1600px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 10px; background: #FFFFFF; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: auto; }
.rsm-zoom-dialog::backdrop { background: rgba(16, 18, 21, 0.78); }
.rsm-zoom-dialog img { display: block; width: 100%; height: auto; }
.rsm-zoom-dialog .rsm-zoom-dialog__close { position: sticky; top: 10px; float: right; margin: 10px 10px -54px 0; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(16,18,21,.85); color: #fff; font-size: 26px; line-height: 44px; cursor: pointer; }
/* Portrait (phone) screens on wide windows: fit the window height instead of stretching
   to the dialog width (site.js sets .is-tall once the image has loaded). */
@media (min-width: 1025px) {
  .rsm-zoom-dialog.is-tall { width: fit-content; }
  .rsm-zoom-dialog.is-tall img { width: auto; height: 94vh; }
  .rsm-zoom-dialog.is-tall .rsm-zoom-dialog__close { position: absolute; top: 10px; right: 10px; margin: 0; float: none; }
}
/* Phones and tablets: a 96vw box would show the screen no larger than inline. Go full screen
   with the screenshot at the screen height (600–900 px, i.e. up to the design's 1:1 size),
   centred and panned when wider; the close button stays fixed. */
@media (max-width: 1024px) {
  .rsm-zoom-dialog { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; background: #101215; }
  .rsm-zoom-dialog[open] { display: flex; }
  .rsm-zoom-dialog img { flex: none; width: auto; max-width: none; height: 100%; min-height: 600px; max-height: 900px; margin: auto; }
  .rsm-zoom-dialog .rsm-zoom-dialog__close { position: fixed; top: 12px; right: 12px; margin: 0; float: none; }
}

/* ---- FAQ ------------------------------------------------------------------- */
.rsm-faq { border-bottom: 1px solid var(--rsm-line); }
.rsm-faq__item { border-top: 1px solid var(--rsm-line); }
.rsm-faq__q { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; }
.rsm-faq__q::-webkit-details-marker { display: none; }
.rsm .rsm-faq__title { font-family: var(--rsm-f-body); font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: 0; }
.rsm-faq__icon { flex: none; margin-top: 3px; color: var(--rsm-blue-text); transition: transform .2s ease; }
.rsm-faq__item[open] .rsm-faq__icon { transform: rotate(45deg); }
.rsm-faq__a { padding: 0 44px 22px 0; color: var(--rsm-ink-2); font-size: 16px; line-height: 1.65; }
.rsm-faq__a p + p { margin-top: 10px; }

/* ---- Contact form (shortcode [rsm_quote_form]) ----------------------------- */
.rsm-form { display: grid; gap: 18px; max-width: 640px; }
.rsm-form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.rsm-form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rsm-form__label { font-size: 14px; line-height: 1.4; font-weight: 600; color: inherit; }
.rsm-form__req { margin-left: 8px; font-family: var(--rsm-f-mono); font-size: 11px; font-weight: 500; opacity: .75; }
.rsm .rsm-form input[type="text"], .rsm .rsm-form input[type="tel"], .rsm .rsm-form input[type="email"],
.rsm .rsm-form select, .rsm .rsm-form textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #8F8A80; /* 3:1 field boundary (WCAG 1.4.11) */
  border-radius: var(--rsm-radius); background: #FFFFFF; color: var(--rsm-ink); font-size: 16px; line-height: 1.4;
  box-shadow: none; appearance: none;
}
.rsm .rsm-form textarea { min-height: 140px; resize: vertical; }
.rsm .rsm-form select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23101215' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.rsm .rsm-form input:focus, .rsm .rsm-form select:focus, .rsm .rsm-form textarea:focus { outline: 3px solid var(--rsm-blue); outline-offset: 0; border-color: var(--rsm-blue); }
.rsm-form__captcha { max-width: 260px; }
.rsm-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rsm-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.rsm-form__btn-label { text-wrap: balance; }
.rsm-form__status { min-height: 22px; font-size: 15px; line-height: 1.45; font-weight: 600; }
.rsm-form__status.is-ok { color: #188918; }
.rsm-form__status.is-err { color: #B3261E; }
.rsm-form__note { font-size: 13px; line-height: 1.5; opacity: .85; }
.rsm .rsm-form button[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* Forms placed on the dark band */
.rsm-on-dark .rsm-form__label { color: #FFFFFF; }
.rsm-on-dark .rsm-form__note, .rsm-on-dark .rsm-form__req { color: var(--rsm-on-dark-muted); opacity: 1; }
.rsm-on-dark .rsm-form__status.is-ok { color: #6EE7A0; }
.rsm-on-dark .rsm-form__status.is-err { color: #FF9A92; }
.rsm .rsm-on-dark .rsm-form input[type="text"], .rsm .rsm-on-dark .rsm-form input[type="tel"], .rsm .rsm-on-dark .rsm-form input[type="email"],
.rsm .rsm-on-dark .rsm-form select, .rsm .rsm-on-dark .rsm-form textarea { border-color: #3A3F48; background-color: #181B20; color: #FFFFFF; }
.rsm .rsm-on-dark .rsm-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.rsm .rsm-on-dark .rsm-form ::placeholder { color: #9AA1AC; }

/* Floating WhatsApp button (100-rsmobile.php) — keep it clear of the content on phones. */
@media (max-width: 640px) {
  .rsm a[href^="https://wa.me/"][style*="position:fixed"] { right: 14px !important; bottom: 14px !important; width: 52px !important; height: 52px !important; }
  .rsm a[href^="https://wa.me/"][style*="position:fixed"] img { width: 52px !important; height: 52px !important; }
}
