/* RS Mobile — EN homepage (/en/, partial home-en) and EN case-study index
   (/en/case-studies/, partial cases-en). Approved mockup: HomeEN.dc.html,
   system "Warsztat". Loaded after site.css; every selector is scoped to .he. */

.he { overflow-x: clip; }

/* ---- Shared section scaffolding ------------------------------------------ */
.he .he-sec { padding: clamp(56px, 7vw, 96px) 0; }
.he .he-sec--line { border-top: 1px solid var(--rsm-line); }
.he .he-sec--white { background: #FFFFFF; border-top: 1px solid var(--rsm-line); border-bottom: 1px solid var(--rsm-line); }
.he .he-sec__in { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.he .he-sec__in--tight { gap: clamp(28px, 3.5vw, 40px); }
.he .he-sec__in--how { gap: clamp(36px, 4.5vw, 56px); }

.he .he-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.he .he-head__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.he .he-sec__in > .he-head__main { flex: none; }
.he .he-head__aside { flex: 1 1 340px; min-width: 0; max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--rsm-muted); text-wrap: pretty; }
.he .he-head__sub { max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--rsm-muted); text-wrap: pretty; }
.he .he-kicker { font-family: var(--rsm-f-mono); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--rsm-muted); }
.he .he-kicker__n { color: var(--rsm-blue-text); }
.he .he-h2 { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -0.022em; color: var(--rsm-ink); text-wrap: balance; }

/* Text links with an arrow (≥44 px tall tap target, same look as the mockup). */
.rsm .he .he-ext,
.rsm .he .he-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.rsm .he .he-more { gap: 8px; }
.rsm .he .he-ext:hover,
.rsm .he .he-more:hover { text-decoration: underline; }
.rsm .he .he-ext svg,
.rsm .he .he-more svg { flex: none; }

.rsm .he .he-btn-dark { min-height: 48px; padding: 0 18px 0 20px; background: var(--rsm-ink); color: #FFFFFF; font-size: 15px; }
.rsm .he .he-btn-dark:hover { background: #2B2F36; color: #FFFFFF; }

/* ---- 1. Hero -------------------------------------------------------------- */
.he .he-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px); }
.he .he-hero__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; }
.he .he-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.he .he-hero__title { display: flex; flex-direction: column; gap: 14px; font-family: var(--rsm-f-display); color: var(--rsm-ink); }
.he .he-hero__h1 { font-size: clamp(38px, 3.6vw, 52px); font-weight: 800; line-height: 1.03; letter-spacing: -0.025em; text-wrap: balance; }
.he .he-hero__h1sub { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; line-height: 1.22; letter-spacing: -0.012em; color: var(--rsm-muted); text-wrap: balance; }
.he .he-hero__lead { display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
.he .he-hero__lead p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--rsm-ink-2); text-wrap: pretty; }
.he .he-hero__lead .he-hero__direct { font-weight: 600; color: var(--rsm-ink); }
.he .he-hero__brand { max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--rsm-muted); text-wrap: pretty; }
.he .he-hero__brand strong { font-weight: 600; color: var(--rsm-ink); }
.he .he-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.rsm .he .he-hero__ctas .rsm-btn--primary { padding: 0 20px 0 22px; }
.rsm .he .he-hero__ctas .rsm-btn--ghost { padding: 0 22px; }
.he .he-hero__reply { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--rsm-muted); }
.he .he-hero__reply svg { flex: none; margin-top: 2px; color: var(--rsm-blue-text); }
.he .he-hero__reply span { min-width: 0; }
.rsm .he .he-hero__reply a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.rsm .he .he-hero__reply a:hover { text-decoration: underline; }

/* Stage: phone first in the markup, laid out right-to-left; the desktop frame
   slides 232 px under the phone. Phones see only the phone. */
.he .he-hero__fig { flex: 0 1 580px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.he .he-stage { display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-start; height: 584px; }
.he .he-phone { position: relative; z-index: 1; flex: none; width: 256px; padding: 7px; background: #101215; border-radius: 40px; box-shadow: 0 0 0 1px rgba(16, 18, 21, 0.10), 0 30px 50px -22px rgba(16, 18, 21, 0.50); }
.he .he-phone__screen { width: 242px; height: 523px; overflow: hidden; border-radius: 33px; background: #FFFFFF; }
.he .he-phone__screen img { display: block; width: 100%; height: auto; }
.he .he-stage__desk { position: relative; z-index: 0; flex: 1 1 536px; max-width: 578px; margin: 64px -232px 0 0; box-shadow: 0 1px 2px rgba(16, 18, 21, 0.05), 0 22px 44px -26px rgba(16, 18, 21, 0.34); }
.he .he-stage__desk .rsm-frame__title { line-height: 1; }
.he .he-stage__shot { height: 360px; overflow: hidden; background: #F4F4F2; }
.he .he-stage__shot img { display: block; width: 576px; max-width: none; height: auto; }
.he .he-hero__cap { max-width: 520px; line-height: 1.55; }
.he .he-hero__cap-narrow { display: none; }

/* ---- 2. Selected work: Turlo --------------------------------------------- */
.he .he-turlo { display: flex; flex-direction: column; min-width: 0; background: #FFFFFF; border: 1px solid var(--rsm-line); border-radius: 14px; overflow: hidden; }
.he .he-turlo__rule { height: 4px; background: #FF5533; }
.he .he-turlo__body { display: flex; flex-direction: column; gap: 36px; padding: clamp(20px, 3vw, 40px); }
.he .he-turlo__text { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.he .he-turlo__brand { display: flex; align-items: center; gap: 14px; }
.he .he-turlo__brand img { display: block; flex: none; width: auto; height: 52px; }
.he .he-turlo__meta { font-family: var(--rsm-f-mono); font-size: 12.5px; line-height: 1.5; color: var(--rsm-muted); }
.he .he-turlo__title { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -0.02em; color: var(--rsm-ink); text-wrap: balance; }
.he .he-turlo__desc { font-size: 16.5px; line-height: 1.65; color: var(--rsm-ink-2); text-wrap: pretty; }
.he .he-turlo__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.he .he-query { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--rsm-bg); border: 1px solid var(--rsm-line-soft); border-radius: 10px; }
.he .he-query__label { font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1.4; color: var(--rsm-muted); }
.he .he-query__box { display: flex; align-items: center; gap: 10px; padding: 11px 18px; background: #FFFFFF; border: 1px solid #D3CFC6; border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--rsm-ink); }
.he .he-query__box svg { flex: none; color: var(--rsm-muted); }
.he .he-query__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1.4; color: var(--rsm-muted); }
.he .he-chip { padding: 3px 8px; background: #FFFFFF; border: 1px solid var(--rsm-line); border-radius: 4px; color: var(--rsm-ink); }
.he .he-query__note { font-size: 14px; line-height: 1.5; color: var(--rsm-muted); }

.he .he-turlo__media { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.he .he-turlo__fig { display: flex; flex-direction: column; gap: 10px; }
.he .he-turlo__frame { container-type: inline-size; box-shadow: 0 1px 2px rgba(16, 18, 21, 0.05), 0 14px 30px -20px rgba(16, 18, 21, 0.32); }
.he .he-turlo__frame .rsm-frame__title { line-height: 1; }
/* Crop of the 1440×900 screen: x 293–1133, y 400–900 (pasted URLs + import
   progress) at 60 % in a 504 px wide frame. Wider frames scale the crop with
   them; narrower ones keep the 60 % size anchored right, so the statuses stay
   legible (cqw = 1 % of the frame's inner width). */
.he .he-turlo__crop { height: max(300px, 59.524cqw); background: #F5F5F5; }
.he .he-turlo__crop img { position: absolute; top: -80%; right: min(-184px, -36.508cqw); width: max(864px, 171.429cqw); max-width: none; height: auto; }

.he .he-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rsm-line); border-left: 1px solid var(--rsm-line); }
.he .he-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 14px 16px 16px; border-right: 1px solid var(--rsm-line); border-bottom: 1px solid var(--rsm-line); }
.he .he-stats dt { font-size: 13.5px; line-height: 1.4; color: var(--rsm-muted); }
.he .he-stats dd { font-family: var(--rsm-f-display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.02em; color: var(--rsm-ink); }
.he .he-stack { display: flex; flex-direction: column; gap: 6px; }
.he .he-stack__label { font-family: var(--rsm-f-mono); font-size: 11.5px; line-height: 1.4; color: var(--rsm-muted); }
.he .he-stack__list { font-size: 14.5px; line-height: 1.6; color: var(--rsm-ink); }

@media (min-width: 1100px) {
  .he .he-turlo__body { display: grid; grid-template-columns: minmax(0, 1fr) 506px; align-items: start; gap: 48px; }
}

/* ---- 2b. Manufacturing clients row --------------------------------------- */
.he .he-mfg { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(8px, 2vw, 24px); }
.he .he-mfg__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; }
.he .he-mfg__title { flex: 1 1 420px; min-width: 0; font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(23px, 2.1vw, 30px); line-height: 1.15; letter-spacing: -0.018em; color: var(--rsm-ink); text-wrap: balance; }
.he .he-mfg__intro { flex: 1 1 340px; min-width: 0; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--rsm-muted); text-wrap: pretty; }
.he .he-mfg__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.he .he-mfg__list > li { display: flex; min-width: 0; }

.he .he-client--kuznia { --he-accent: #BD0D0C; --he-tint: #F2EEE7; --he-tint-line: #E6E0D5; }
.he .he-client--mostostal { --he-accent: #22408F; --he-tint: #EEF1F6; --he-tint-line: #DCE2EC; }
.he .he-client--humavit { --he-accent: #16A34A; --he-tint: #EEF3EC; --he-tint-line: #DCE4DA; }
.he .he-client--lakotech { --he-accent: #1D5FAE; --he-tint: #ECEEF1; --he-tint-line: #DADDE2; }
.he .he-client--turlo { --he-accent: #FF5533; --he-tint: #F3E6D8; --he-tint-line: #E6D5C3; }

.he .he-client { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--rsm-line); border-radius: 12px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.he .he-client:hover { border-color: var(--rsm-line-strong); box-shadow: 0 16px 32px -24px rgba(16, 18, 21, 0.40); }
.he .he-client__rule { height: 3px; background: var(--he-accent); }
.he .he-client__logo { height: 128px; display: flex; align-items: center; justify-content: center; padding: 0 20px; background: #FFFFFF; border-bottom: 1px solid #ECEAE5; }
.he .he-client__img { display: block; max-width: 100%; height: auto; }
.he .he-client__img--kuznia { width: auto; height: 88px; }
.he .he-client__img--mostostal { width: 200px; }
.he .he-client__img--humavit { width: 150px; }
.he .he-client__img--lakotech { width: 188px; }
.he .he-client__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
.he .he-client__name { font-family: var(--rsm-f-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--rsm-ink); }
.he .he-client__sector { font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1.45; color: var(--rsm-muted); }
.he .he-client__desc { font-size: 15.5px; line-height: 1.55; color: var(--rsm-ink-2); text-wrap: pretty; }
.he .he-client__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.he .he-client__tags { font-family: var(--rsm-f-mono); font-size: 11.5px; line-height: 1.5; color: var(--rsm-muted); }
/* The link covers the whole card (one tap target); its own focus ring stays. */
.rsm .he .he-client__link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.rsm .he .he-client__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rsm .he .he-client:hover .he-client__link { text-decoration: underline; }
.rsm .he .he-client__link svg { flex: none; transition: transform .15s ease; }
.rsm .he .he-client:hover .he-client__link svg { transform: translateX(2px); }

/* ---- 3. What I build ----------------------------------------------------- */
.he .he-build { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--rsm-line); }
.he .he-build__item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 40px; padding: 28px 0; border-bottom: 1px solid var(--rsm-line); }
.he .he-build__name { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 16px; }
.he .he-build__icon { flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rsm-line); border-radius: 10px; background: var(--rsm-bg); color: var(--rsm-blue-text); }
.he .he-build__title { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.014em; color: var(--rsm-ink); text-wrap: balance; }
.he .he-build__text { flex: 2 1 400px; min-width: 0; max-width: 720px; font-size: 16.5px; line-height: 1.65; color: var(--rsm-ink-2); text-wrap: pretty; }

/* ---- 4. How I work (dark band) ------------------------------------------- */
.he .he-how { background: var(--rsm-dark); color: #FFFFFF; }
.he .he-how .he-kicker { color: #B4B9C1; }
.he .he-how .he-kicker__n { color: #6CB0FF; }
.he .he-how .he-h2 { color: #FFFFFF; }
.he .he-how .he-head__aside { color: #B4B9C1; }
.he .he-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 28px; }
.he .he-step { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; }
.he .he-step__top { display: flex; flex-direction: column; gap: 14px; }
.he .he-step__n { display: flex; align-items: center; gap: 12px; font-family: var(--rsm-f-mono); font-size: 14px; font-weight: 500; line-height: 1; color: #6CB0FF; }
.he .he-step__line { flex: 1 1 auto; height: 1px; background: #30353D; }
.he .he-step__title { font-family: var(--rsm-f-display); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; color: #FFFFFF; }
.he .he-step__text { font-size: 16px; line-height: 1.6; color: #B4B9C1; text-wrap: pretty; }
.he .he-step__out { display: flex; flex-direction: column; gap: 8px; min-height: 112px; padding-top: 16px; border-top: 1px dashed #3A3F48; }
.he .he-step__label { font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1.4; color: #B4B9C1; }
.he .he-step__result { font-size: 16px; font-weight: 600; line-height: 1.45; color: #FFFFFF; }
.he .he-step__price { font-family: var(--rsm-f-mono); font-size: 17px; font-weight: 500; line-height: 1.4; color: #FFFFFF; }
.he .he-step__per { font-size: 13px; color: #B4B9C1; }
.he .he-step__eur { font-family: var(--rsm-f-mono); font-size: 13px; line-height: 1.5; color: #B4B9C1; }
.he .he-how__note { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid #30353D; font-size: 14.5px; line-height: 1.6; color: #B4B9C1; }
.he .he-how__note p { max-width: 920px; text-wrap: pretty; }
.he .he-how__more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rsm .he .he-how__more a { color: #8EC0FF; font-weight: 600; text-decoration: none; }
.rsm .he .he-how__more a:hover { color: #FFFFFF; text-decoration: underline; }

/* ---- 5. About ------------------------------------------------------------ */
.he .he-about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.he .he-about__fig { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.he .he-about__photo { display: block; width: 100%; height: auto; aspect-ratio: 7 / 8; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--rsm-line); border-radius: 14px; background: #E9E7E2; }
.he .he-about__text { flex: 1 1 520px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 22px; }
.he .he-about__copy { display: flex; flex-direction: column; gap: 14px; }
.he .he-about__copy p { font-size: 17px; line-height: 1.65; color: var(--rsm-ink-2); text-wrap: pretty; }
.he .he-facts { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); border-top: 1px solid var(--rsm-line); }
.he .he-facts dt { padding: 11px 24px 11px 0; border-bottom: 1px solid var(--rsm-line); font-family: var(--rsm-f-mono); font-size: 12.5px; line-height: 1.7; color: var(--rsm-muted); }
.he .he-facts dd { padding: 11px 0; border-bottom: 1px solid var(--rsm-line); font-size: 15.5px; line-height: 1.55; color: var(--rsm-ink); }
.he .he-about__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.rsm .he .he-about__links .rsm-btn--sm { min-height: 46px; padding: 0 18px; }

/* ---- 6. From the blog ---------------------------------------------------- */
.he .he-head--blog { gap: 16px 48px; }
.he .he-posts { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--rsm-line); }
.he .he-post { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--rsm-line); }
.he .he-post__n { flex: 0 0 28px; font-family: var(--rsm-f-mono); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--rsm-blue-text); }
.he .he-post__main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.he .he-post__title { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.012em; text-wrap: balance; }
.rsm .he .he-post__title a { color: var(--rsm-ink); text-decoration: underline; text-decoration-color: var(--rsm-line-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rsm .he .he-post__title a:hover { color: var(--rsm-blue-text); text-decoration-color: currentColor; }
.he .he-post__excerpt { font-size: 15.5px; line-height: 1.6; color: var(--rsm-muted); text-wrap: pretty; }
.he .he-post__date { flex: 0 0 auto; font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1.4; color: var(--rsm-muted); }

/* ---- 7. FAQ (rsm_faq accordion, answers open; two columns on wide screens) */
.he .he-faq .rsm-faq { border-bottom: 1px solid var(--rsm-line); }
.he .he-faq .rsm-faq__item { position: relative; }
.he .he-faq .rsm-faq__q { padding: 26px 0; gap: 16px; }
.he .he-faq .rsm-faq__item[open] > .rsm-faq__q { padding-bottom: 10px; }
.rsm .he .he-faq .rsm-faq__title { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.3; letter-spacing: -0.01em; color: var(--rsm-ink); text-wrap: balance; }
.he .he-faq .rsm-faq__icon { margin-top: 3px; }
.he .he-faq .rsm-faq__item[open] .rsm-faq__icon { transform: none; }
.he .he-faq .rsm-faq__icon path { transition: opacity .15s ease; }
.he .he-faq .rsm-faq__item[open] .rsm-faq__icon path:first-child { opacity: 0; }
.he .he-faq .rsm-faq__a { padding: 0 0 26px; font-size: 16.5px; line-height: 1.65; color: var(--rsm-ink-2); }
.he .he-faq .rsm-faq__a p { text-wrap: pretty; }
.he .he-faq .rsm-faq__a strong { font-weight: 600; color: var(--rsm-ink); }
@supports selector(::details-content) {
  @media (min-width: 920px) {
    /* Question left, answer right (as in the approved layout); the toggle sits at the far right. */
    .he .he-faq .rsm-faq__item[open] { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 56px; align-items: start; }
    .he .he-faq .rsm-faq__item[open] > .rsm-faq__q { padding-bottom: 26px; }
    .he .he-faq .rsm-faq__item[open] .rsm-faq__a { padding: 26px 44px 26px 0; }
    .he .he-faq .rsm-faq__item[open] .rsm-faq__icon { position: absolute; top: 29px; right: 0; margin: 0; }
  }
}

/* ---- 8. Contact ---------------------------------------------------------- */
.he .he-contact { border-bottom: 0; }
.he .he-contact__in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.he .he-contact__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.he .he-contact__lead { max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--rsm-ink-2); text-wrap: pretty; }
.he .he-contact__list { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--rsm-line); }
.he .he-contact__list > li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rsm-line); }
.he .he-contact__list > li > svg { flex: none; color: var(--rsm-blue-text); }
.he .he-contact__list > li > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.he .he-contact__k { font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1.4; color: var(--rsm-muted); }
/* Each link is a 44 px tap target; the negative margin keeps the label and note where they were
   (the extra height only reaches over that non-interactive text, and the links sit above it).
   Wrapped links never overlap. */
.he .he-contact__v { display: flex; flex-wrap: wrap; gap: 0 14px; margin-block: -10px; font-size: 16px; line-height: 1.5; }
.rsm .he .he-contact__v a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.rsm .he .he-contact__v a:hover { text-decoration: underline; }
.rsm .he .he-contact__v a.he-contact__tel { color: var(--rsm-ink); white-space: nowrap; }
.he .he-contact__note { font-size: 14px; line-height: 1.5; color: var(--rsm-muted); }
.he .he-contact__addr-v { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--rsm-ink); }

.he .he-contact__form { flex: 1 1 534px; min-width: 0; padding: clamp(22px, 3vw, 36px); background: var(--rsm-bg); border: 1px solid var(--rsm-line); border-radius: 14px; }
.he .he-contact__form .rsm-form { max-width: none; gap: 20px; }
.he .he-contact__form .rsm-form__row { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.he .he-contact__form .rsm-form__field { gap: 8px; }
.he .he-contact__form .rsm-form__label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--rsm-ink); }
.he .he-contact__form .rsm-form__req { margin-left: 0; font-size: 11.5px; font-weight: 400; color: var(--rsm-muted); opacity: 1; }
.rsm .he .he-contact__form .rsm-form input[type="text"],
.rsm .he .he-contact__form .rsm-form input[type="email"],
.rsm .he .he-contact__form .rsm-form input[type="tel"],
.rsm .he .he-contact__form .rsm-form select,
.rsm .he .he-contact__form .rsm-form textarea { border-color: #8F8A80; }
.rsm .he .he-contact__form .rsm-form input:focus,
.rsm .he .he-contact__form .rsm-form select:focus,
.rsm .he .he-contact__form .rsm-form textarea:focus { border-color: var(--rsm-blue); }
.rsm .he .he-contact__form .rsm-form button[type="submit"] { min-height: 54px; padding: 12px 24px; text-align: center; }
.he .he-contact__form .rsm-form__status:empty { display: none; }
.he .he-contact__form .rsm-form__note { font-size: 13.5px; line-height: 1.55; color: var(--rsm-muted); opacity: 1; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1099px) {
  .he .he-about { gap: 40px; }
}
@media (min-width: 700px) {
  .he .he-about { flex-wrap: nowrap; }
}
@media (max-width: 639px) {
  .he .he-stage { height: auto; }
  .he .he-stage__desk { display: none; }
  .he .he-hero__cap { text-align: center; margin-inline: auto; }
  .he .he-hero__cap-wide { display: none; }
  .he .he-hero__cap-narrow { display: inline; }
  .he .he-client__logo { height: 104px; }
  .he .he-client__img--kuznia { height: 72px; }
  .he .he-client__img--mostostal { width: 184px; }
  .he .he-client__img--humavit { width: 132px; }
  .he .he-client__img--lakotech { width: 172px; }
  .he .he-post__date { padding-left: 52px; }
  .he .he-about__fig { flex-basis: 100%; max-width: 340px; }
  .he .he-facts { grid-template-columns: minmax(104px, max-content) minmax(0, 1fr); }
  .he .he-facts dt { padding-right: 16px; }
}
@media (max-width: 420px) {
  .he .he-stats dd { font-size: 30px; }
  .he .he-stats > div { padding: 12px 12px 14px; }
}

/* ---- Case-study index (/en/case-studies/) -------------------------------- */
.he .he-chero { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.he .he-chero__head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.he .he-chero__title { font-family: var(--rsm-f-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; color: var(--rsm-ink); }
.he .he-chero__lead { max-width: 680px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--rsm-ink-2); text-wrap: pretty; }

.he .he-case { position: relative; min-width: 0; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--rsm-line); border-radius: 14px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.he .he-case:hover { border-color: var(--rsm-line-strong); box-shadow: 0 18px 36px -26px rgba(16, 18, 21, 0.40); }
.he .he-case__rule { flex: none; height: 4px; background: var(--he-accent); }
.he .he-case__shotpanel { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 14px; background: var(--he-tint); border-bottom: 1px solid var(--he-tint-line); }
.he .he-case__frame { box-shadow: 0 1px 2px rgba(16, 18, 21, 0.05), 0 14px 30px -20px rgba(16, 18, 21, 0.35); }
.he .he-case__frame .rsm-frame__title { line-height: 1; }
.he .he-case__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 24px 28px 28px; }
.he .he-case__main { display: flex; flex-direction: column; gap: 16px; }
.he .he-case__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.he .he-case__logo { height: 48px; display: flex; align-items: center; }
.he .he-case__img { display: block; max-width: 100%; }
.he .he-case__img--turlo,
.he .he-case__img--kuznia { width: auto; height: 46px; }
.he .he-case__img--humavit { width: auto; height: 44px; }
.he .he-case__img--mostostal,
.he .he-case__img--lakotech { width: 128px; height: auto; }
.he .he-case__sector { display: flex; align-items: center; gap: 8px; font-family: var(--rsm-f-mono); font-size: 12.5px; line-height: 1.4; color: var(--rsm-muted); }
.he .he-case__sector::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--he-accent); }
.he .he-case__title { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(21px, 1.75vw, 25px); line-height: 1.2; letter-spacing: -0.015em; color: var(--rsm-ink); text-wrap: balance; }
.he .he-case__title--feature { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -0.02em; }
.he .he-case__desc { font-size: 16px; line-height: 1.6; color: var(--rsm-ink-2); text-wrap: pretty; }
.he .he-case__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 18px; border-top: 1px solid #ECE9E3; }
.he .he-case__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.he .he-case__tags li { padding: 7px 10px; border: 1px solid var(--rsm-line); border-radius: 999px; background: var(--rsm-bg); font-family: var(--rsm-f-mono); font-size: 12px; line-height: 1; color: var(--rsm-ink-2); }
.he .he-case__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
/* The case-study link covers the whole card; the external link stays on top of it. */
.rsm .he .he-case__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.rsm .he .he-case__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rsm .he .he-case:hover .he-case__link { text-decoration: underline; }
.rsm .he .he-case__link svg { flex: none; transition: transform .15s ease; }
.rsm .he .he-case:hover .he-case__link svg { transform: translateX(2px); }
.he .he-case__ext { position: relative; z-index: 2; }

.he .he-case__stats { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 4px; }
.he .he-case__stats > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.he .he-case__stats dt { font-size: 13.5px; line-height: 1.4; color: var(--rsm-muted); }
.he .he-case__stats dd { font-family: var(--rsm-f-display); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -0.02em; color: var(--rsm-ink); }

.he .he-case--feature .he-case__shotpanel { justify-content: center; padding: clamp(20px, 3vw, 36px); border-bottom: 0; }
@media (min-width: 1000px) {
  .he .he-case__feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .he .he-case--feature .he-case__body { padding: clamp(28px, 3vw, 40px); }
  .he .he-case--feature .he-case__shotpanel { border-left: 1px solid var(--he-tint-line); }
}
@media (max-width: 999px) {
  .he .he-case__feature { display: flex; flex-direction: column-reverse; }
  .he .he-case--feature .he-case__shotpanel { border-bottom: 1px solid var(--he-tint-line); }
}

.he .he-cases__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 720px) {
  .he .he-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .he .he-case__shotpanel { padding: 16px 16px 12px; }
  .he .he-case__body { padding: 20px 20px 22px; }
}

.he .he-ccta { padding-top: clamp(48px, 6vw, 80px); }
.he .he-ccta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(22px, 3vw, 36px); background: #FFFFFF; border: 1px solid var(--rsm-line); border-radius: 14px; }
.he .he-ccta__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.he .he-ccta__title { font-family: var(--rsm-f-display); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.018em; color: var(--rsm-ink); text-wrap: balance; }
.he .he-ccta__lead { max-width: 620px; font-size: 16.5px; line-height: 1.6; color: var(--rsm-ink-2); text-wrap: pretty; }
.he .he-ccta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
