/* D-01-WP-30/31 (WP-31: systemowe „Ogranicz ruch” nie wyłącza już efektów — tylko przełącznik Ⅱ na stronie) — telefon: chowany nagłówek (wszystkie strony) i sekcje strony głównej mieszczące się w jednym ekranie (html.mp). */
/* nagłówek chowany na wszystkich ekranach (właściciel 09.11: „ta sama zasada na www”) */
/* WP-31: chowanie szybkie, powrót łagodny (uwaga właściciela 09.11) — także przy wyłączonym ruchu */
html[data-motion] body header.site-header{transition:transform .62s cubic-bezier(.16,.84,.3,1),background .4s,color .4s,border-color .4s,backdrop-filter .4s!important;will-change:transform}
html[data-motion].mh-hide body header.site-header{transform:translateY(-102%);transition:transform .34s cubic-bezier(.55,0,.75,.4),background .4s,color .4s,border-color .4s,backdrop-filter .4s!important}
/* WP-31: pas pod wycięciem ekranu iPhone'a — czarny, gdy nagłówek schowany */
@media (max-width:760px){html::after{content:'';position:fixed;left:0;right:0;top:0;height:env(safe-area-inset-top,0px);background:#000;z-index:2147482000;pointer-events:none;opacity:0;transition:opacity .25s}html.mh-hide::after{opacity:1}}
@media (max-width:760px){html.mh-hide body .chapter-rail{opacity:0;transition:opacity .3s}}
@media (prefers-reduced-motion:reduce) and (max-width:0px){html body .site-header{transition:none}}

@media (max-width:760px) and (pointer:coarse){
  /* każda sekcja = jeden ekran; miejsce u góry na nagłówek tylko w wysokości bezpiecznego marginesu (nagłówek się chowa) */
  html.mp main .chapter{min-height:var(--mvh,100svh);box-sizing:border-box}
  html.mp main .chapter:not(#start){padding-top:calc(env(safe-area-inset-top,0px) + 22px);padding-bottom:14px}
  html.mp main .chapter>.chapter-bottom{display:none}
  html.mp main .chapter .background-word{opacity:.5}

  /* moduły (Dla sieci, Dla marek, Wdrożenia, Player, Miejsca, Realizacje, Nasze doświadczenie) */
  html.mp .module{height:auto;display:flex;flex-direction:column;justify-content:center}
  html.mp .module .module-layout{gap:0}
  html.mp .module .module-copy{display:flex;flex-direction:column;gap:10px}
  html.mp .module .module-copy>*{margin:0}
  html.mp .module .eyebrow{font-size:11px;line-height:1.3}
  html.mp .module h2{font-size:clamp(26px,7.6vw,32px);line-height:1.02;letter-spacing:-.045em;margin:0}
  html.mp .module .intro{font-size:14px;line-height:1.42;margin:0}
  html.mp .module .module-stage{position:relative;margin:2px 0 0}
  html.mp .module .scene-card{height:min(31svh,270px);width:auto;max-width:100%;aspect-ratio:1.1/1;margin-inline:auto}
  html.mp .module .stage-bottom{position:absolute;right:calc((100% - min(31svh,270px) * 1.1) / 2 + 8px);bottom:8px;margin:0;padding:0;z-index:9;pointer-events:none}
  html.mp .module .stage-bottom .stage-controls{pointer-events:auto;gap:6px}
  html.mp .module .stage-bottom .stage-controls button{width:38px;height:38px;font-size:16px;background:rgba(246,244,236,.92);color:#161816;border-color:transparent;box-shadow:0 2px 10px rgba(0,0,0,.18)}
  html.mp .module .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:4px;margin:0;padding-bottom:2px}
  html.mp .module .tabs::-webkit-scrollbar{display:none}
  html.mp .module .tab{flex:none;font-size:14px;padding:9px 12px;min-height:0;white-space:nowrap}
  html.mp .module .tab-number{font-size:11px}
  html.mp .module .step-description{font-size:14px;line-height:1.42;margin:0}
  html.mp .module .module-cta{align-self:flex-start;padding:12px 18px;font-size:15px;min-height:0}
  html.mp #o-nas .net-strip{display:none}
  html.mp .chapter-bottom.has-strip{display:none}

  /* 08 Wiedza z rynku */
  html.mp #wiedza{display:flex;flex-direction:column;justify-content:center}
  html.mp #wiedza .knowledge-heading{gap:10px;margin-bottom:14px}
  html.mp #wiedza .knowledge-heading h2{font-size:clamp(26px,7.6vw,32px);line-height:1.02}

  /* 09 To zaczyna się w sklepie / ROASfully */
  html.mp #roasfully{display:flex;flex-direction:column;justify-content:center}
  html.mp #roasfully .bridge-source h2{font-size:clamp(26px,7.6vw,32px);line-height:1.02}
  html.mp #roasfully .bridge-layout{gap:14px}
  html.mp #roasfully .bridge-source{gap:10px}
  html.mp #roasfully .bridge-source>*{margin:0}
  html.mp #roasfully .bridge-photo{height:min(30svh,260px)}
  html.mp #roasfully .bridge-photo img,html.mp #roasfully .bridge-photo canvas{height:100%}
  html.mp #roasfully .bridge-destination h2{font-size:clamp(28px,8.4vw,36px)}

  /* 10 Kontakt */
  html.mp #kontakt{display:flex;flex-direction:column;justify-content:center}
  html.mp #kontakt h2{font-size:clamp(26px,7.6vw,32px);line-height:1.02;margin-bottom:14px}
  html.mp #kontakt .contact-option{padding-top:14px;padding-bottom:14px;min-height:0}
}

/* WP-31: pas rozdziałów przy lewej krawędzi — kolejne kropki schodzą w dół (uwaga właściciela 09.11) */
html body .chapter-rail{top:calc(var(--head,70px) + 26px);bottom:auto;left:41px;transform:rotate(90deg);transform-origin:left top}

/* WP-34 (właściciel 09.11): telefon — nagłówek się chowa, więc nad etykietą sekcji nie trzymamy miejsca na niego.
   Wysokość sekcji bez zmian: treść i ilustracja przesunięte w górę o wysokość nagłówka (--head), ta sama wartość dodana na dole. Otwarcie (#start) bez zmian. */
@media (max-width:760px){
  html:not(.mp) body main .chapter:not(#start){padding-top:calc(env(safe-area-inset-top,0px) + 25px);padding-bottom:calc(var(--pb-base,42px) + var(--head,70px))}
  html:not(.mp) body main #roasfully{--pb-base:35px}
}
