/* Pozytyw launch v5 — final mobile and production polish. */

/* Homepage mobile storytelling: make static visuals deliberate, not broken desktop leftovers. */
@media (max-width:1100px){
  html.sm-v4-static-story .sm-sig-perspective-visual{
    width:min(29rem,90vw)!important;
    max-width:29rem!important;
    margin:2.5rem auto 1.5rem!important;
    transform:none!important;
  }
  html.sm-v4-static-story .sm-sig-perspective-visual__core{
    width:8rem!important;height:8rem!important;
  }
  html.sm-v4-static-story .sm-sig-perspective-visual__node{
    width:5rem!important;height:5rem!important;
  }

  /* Clear section break between the audience sequence and the 06 topics section. */
  body.page-id-27 .sm-sig-topics{
    position:relative!important;
    margin-top:0!important;
    padding-top:7rem!important;
    border-top:1px solid rgba(21,50,56,.12)!important;
  }
  body.page-id-27 .sm-sig-topics:before{
    content:"";
    position:absolute;
    left:50%;top:0;
    width:5.5rem;height:.28rem;
    border-radius:999px;
    transform:translate(-50%,-50%);
    background:linear-gradient(90deg,#88aeb7,#b7cc75);
  }

  /* Authority: no negative overlap on mobile/tablet. */
  body.page-id-27 .sm-sig-authority{
    padding-top:clamp(4.5rem,8vw,6rem)!important;
  }
  body.page-id-27 .sm-sig-authority__card{
    margin-top:0!important;
  }

  /* Method lens becomes a centered explanatory diagram on static layouts. */
  html.sm-v4-static-story .sm-sig-method-lens{
    width:min(28rem,88vw)!important;
    max-width:28rem!important;
    margin:2.4rem auto 1.8rem!important;
    transform:none!important;
  }
  html.sm-v4-static-story .sm-sig-method-lens__core{
    width:8.5rem!important;height:8.5rem!important;
    transform:translate(-50%,-50%)!important;
  }
  html.sm-v4-static-story .sm-sig-method-lens__label{
    z-index:10!important;
    padding:.42rem .7rem!important;
    background:rgba(255,255,255,.98)!important;
    border:1px solid rgba(21,50,56,.13)!important;
    box-shadow:0 .45rem 1.25rem rgba(21,50,56,.10)!important;
    color:#29484e!important;
    font-size:.68rem!important;
    letter-spacing:.09em!important;
    opacity:1!important;
  }
  html.sm-v4-static-story .sm-sig-method-lens__label--1{
    left:50%!important;right:auto!important;top:5%!important;bottom:auto!important;
    transform:translate(-50%,-50%)!important;
  }
  html.sm-v4-static-story .sm-sig-method-lens__label--2{
    left:auto!important;right:1%!important;top:50%!important;bottom:auto!important;
    transform:translate(0,-50%)!important;
  }
  html.sm-v4-static-story .sm-sig-method-lens__label--3{
    left:50%!important;right:auto!important;top:auto!important;bottom:5%!important;
    transform:translate(-50%,50%)!important;
  }
  html.sm-v4-static-story .sm-sig-method-lens__label--4{
    left:1%!important;right:auto!important;top:50%!important;bottom:auto!important;
    transform:translate(0,-50%)!important;
  }
  html.sm-v4-static-story .sm-sig-method-step__word{
    color:rgba(21,50,56,.17)!important;
    opacity:1!important;
  }
}

@media (max-width:600px){
  html.sm-v4-static-story .sm-sig-perspective-visual{
    width:min(23rem,94vw)!important;
    margin:2.25rem auto 1.25rem!important;
  }
  html.sm-v4-static-story .sm-sig-perspective-visual__core{width:7.2rem!important;height:7.2rem!important}
  html.sm-v4-static-story .sm-sig-perspective-visual__node{width:4.35rem!important;height:4.35rem!important}
  html.sm-v4-static-story .sm-sig-method-lens{
    width:min(23rem,92vw)!important;
    margin:2rem auto 1.25rem!important;
  }
  html.sm-v4-static-story .sm-sig-method-lens__core{width:7.6rem!important;height:7.6rem!important}
  html.sm-v4-static-story .sm-sig-method-lens__label{font-size:.62rem!important;padding:.38rem .58rem!important}
  html.sm-v4-static-story .sm-sig-method-lens__label--2{right:0!important}
  html.sm-v4-static-story .sm-sig-method-lens__label--4{left:0!important}
  html.sm-v4-static-story .sm-sig-method-step__word{
    font-size:clamp(3.3rem,14vw,4.8rem)!important;
    line-height:.86!important;
    margin:.35rem 0 .5rem!important;
  }
  body.page-id-27 .sm-sig-topics{margin-top:0!important;padding-top:6rem!important}
  body.page-id-27 .sm-sig-authority{padding-top:4.5rem!important}
}

/* ID50: only the intentional lime bullet remains. */
body.page-id-50 .sm-subpage-topic__body ul{
  list-style:none!important;
  padding-left:0!important;
}
body.page-id-50 .sm-subpage-topic__body li{
  list-style:none!important;
}
body.page-id-50 .sm-subpage-topic__body li::marker{
  content:""!important;
  font-size:0!important;
}
body.page-id-50 .sm-subpage-topic__body li:after{
  content:none!important;
  display:none!important;
}

/* ID53 and ID54: mobile process cards must grow with copy, never overlap the result line. */
@media (max-width:720px){
  body.page-id-53 .sm3-process-card,
  body.page-id-54 .sm3-process-card{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:auto!important;
    padding:1.55rem!important;
  }
  body.page-id-53 .sm3-process-card__result,
  body.page-id-54 .sm3-process-card__result{
    position:relative!important;
    left:auto!important;right:auto!important;bottom:auto!important;
    margin-top:1.35rem!important;
    padding-top:1rem!important;
  }
  body.page-id-53 .sm3-process-card p,
  body.page-id-54 .sm3-process-card p{
    margin-bottom:0!important;
  }
}

/* O Kamili: real photography as editorial content, not a PowerPoint insert. */
body.page-id-54 .sm3-hero__panel{
  overflow:hidden!important;
}
body.page-id-54 .sm3-hero__panel img{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center 24%!important;
}
body.page-id-54 .sm-kamila-practice{
  padding:clamp(6rem,8vw,9rem) 0!important;
  background:linear-gradient(180deg,#fff,#f5f8f4)!important;
}
body.page-id-54 .sm-kamila-practice__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(18rem,.72fr);
  gap:clamp(2.5rem,6vw,6rem);
  align-items:end;
  margin-bottom:clamp(2.5rem,4vw,4rem);
}
body.page-id-54 .sm-kamila-practice__head h2{
  max-width:11ch;
  margin:.55rem 0 0!important;
  font-size:clamp(3.2rem,4.7vw,5.3rem)!important;
  line-height:.95!important;
  letter-spacing:-.052em!important;
  color:#153238!important;
}
body.page-id-54 .sm-kamila-practice__head p{
  margin:0!important;
  color:#66797d;
  line-height:1.68;
}
body.page-id-54 .sm-kamila-practice__grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(18rem,.65fr);
  gap:1.25rem;
  align-items:stretch;
}
body.page-id-54 .sm-kamila-practice figure{
  margin:0!important;
  overflow:hidden;
  border-radius:2rem;
  background:#eef3ef;
  box-shadow:0 1.5rem 4rem rgba(21,50,56,.08);
}
body.page-id-54 .sm-kamila-practice figure:first-child{aspect-ratio:4/3}
body.page-id-54 .sm-kamila-practice figure:last-child{aspect-ratio:4/5}
body.page-id-54 .sm-kamila-practice img{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
}
@media(max-width:760px){
  body.page-id-54 .sm-kamila-practice{padding:5rem 0!important}
  body.page-id-54 .sm-kamila-practice__head{grid-template-columns:1fr;gap:1rem}
  body.page-id-54 .sm-kamila-practice__head h2{font-size:clamp(2.8rem,12vw,4rem)!important}
  body.page-id-54 .sm-kamila-practice__grid{grid-template-columns:1fr;gap:1rem}
  body.page-id-54 .sm-kamila-practice figure:first-child{aspect-ratio:4/3}
  body.page-id-54 .sm-kamila-practice figure:last-child{aspect-ratio:4/5}
}

/* Footer credit: same baseline as copyright, right aligned. */
#copyright .container{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:1rem!important;
}
#copyright .sm-shade-credit{
  margin-left:auto!important;
  color:inherit!important;
  opacity:.7;
  font-weight:600;
  text-decoration:none!important;
  white-space:nowrap;
  transition:opacity .2s ease;
}
#copyright .sm-shade-credit:hover{opacity:1}
@media(max-width:600px){
  #copyright .container{gap:.75rem!important}
  #copyright .sm-shade-credit{font-size:.78rem}
}

/* Homepage mobile: keep story copy on the same editorial gutter as the rest of the page. */
@media(max-width:600px){
  body.page-id-27 .sm-sig-pathways__stage,
  body.page-id-27 .sm-sig-method__stage{
    width:calc(100vw - 2rem)!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body.page-id-27 .sm-sig-pathways__left,
  body.page-id-27 .sm-sig-method__left{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  body.page-id-27 .sm-sig-perspective-visual{
    width:calc(100vw - 2rem)!important;
    max-width:22.5rem!important;
    min-width:0!important;
    aspect-ratio:1!important;
    margin:2.4rem auto 1.65rem!important;
    left:auto!important;right:auto!important;
    transform:none!important;
  }
  body.page-id-27 .sm-sig-perspective-visual__core{
    width:8.2rem!important;height:8.2rem!important;
  }
  body.page-id-27 .sm-sig-perspective-visual__node{
    width:4.9rem!important;height:4.9rem!important;
  }
  body.page-id-27 .sm-sig-method-lens{
    width:calc(100vw - 2rem)!important;
    max-width:22.5rem!important;
    min-width:0!important;
    aspect-ratio:1!important;
    margin:2.5rem auto 1.75rem!important;
    left:auto!important;right:auto!important;
    transform:none!important;
  }
  body.page-id-27 .sm-sig-method-lens__core{
    width:8.5rem!important;height:8.5rem!important;
    transform:translate(-50%,-50%)!important;
  }
  body.page-id-27 .sm-sig-method__progress,
  body.page-id-27 .sm-sig-pathways__progress{
    width:calc(100vw - 2rem)!important;
    max-width:22.5rem!important;
    margin-left:auto!important;margin-right:auto!important;
  }
}

/* Mobile menu: keep the contextual eyebrow fully below the floating header. */
@media(max-width:900px){
  .sm-mobile-drawer__panel{padding-top:6.6rem!important}
}
@media(max-width:600px){
  .sm-mobile-drawer__panel{padding-top:6.35rem!important}
}

/* Final authentic photography placements. */
body.page-id-54 .sm-kamila-credentials__side{
  display:grid;
  grid-template-columns:minmax(9rem,.72fr) minmax(0,1fr);
  gap:1.35rem;
  align-items:end;
}
body.page-id-54 .sm-kamila-credentials__portrait{
  margin:0!important;
  overflow:hidden;
  aspect-ratio:4/5;
  border-radius:1.5rem;
  background:#eef3ef;
  box-shadow:0 1.25rem 3.5rem rgba(21,50,56,.10);
}
body.page-id-54 .sm-kamila-credentials__portrait img{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 20%;
}
body.page-id-54 .sm-kamila-credentials__side>p{
  margin:0!important;
  color:#66797d;
  line-height:1.68;
}
@media(max-width:900px){
  body.page-id-54 .sm-kamila-credentials__side{
    grid-template-columns:minmax(10rem,18rem) minmax(0,1fr);
  }
}
@media(max-width:620px){
  body.page-id-54 .sm-kamila-credentials__side{grid-template-columns:1fr;gap:1rem}
  body.page-id-54 .sm-kamila-credentials__portrait{width:min(100%,19rem);aspect-ratio:4/5}
}

body.page-id-55 .sm-contact-portrait{
  padding:clamp(1rem,2vw,2rem) 0 clamp(5rem,7vw,8rem)!important;
  background:#fff;
}
body.page-id-55 .sm-contact-portrait figure{
  margin:0!important;
  overflow:hidden;
  aspect-ratio:16/9;
  border-radius:2rem;
  background:#eef3ef;
  box-shadow:0 1.5rem 4rem rgba(21,50,56,.09);
}
body.page-id-55 .sm-contact-portrait img{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 40%;
}
@media(max-width:620px){
  body.page-id-55 .sm-contact-portrait{padding-bottom:4.5rem!important}
  body.page-id-55 .sm-contact-portrait figure{aspect-ratio:4/3;border-radius:1.5rem}
}

/* Homepage mobile: pad the actual copy blocks, not only the outer scene shell. */
@media(max-width:600px){
  body.page-id-27 .sm-sig-pathways__intro,
  body.page-id-27 .sm-sig-pathway-scene,
  body.page-id-27 .sm-sig-method-step{
    padding-left:1rem!important;
    padding-right:1rem!important;
  }
}

/* Final correction after production probe: stage owns the mobile gutter. */
@media(max-width:600px){
  body.page-id-27 .sm-sig-pathways__stage,
  body.page-id-27 .sm-sig-method__stage{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:1rem!important;
    padding-right:1rem!important;
  }
  body.page-id-27 .sm-sig-pathways__intro,
  body.page-id-27 .sm-sig-pathway-scene,
  body.page-id-27 .sm-sig-method-step{
    padding-left:0!important;
    padding-right:0!important;
  }
}

/* Kamila's preferred photo on homepage; portrait crop is controlled, not stretched. */
body.page-id-27 .sm-sig-authority__card:before{
  background:linear-gradient(180deg,rgba(21,50,56,.02),rgba(21,50,56,.08)),url("https://pozytywedu.pl/wp-content/uploads/2026/09/pozytyw_kamila_3.webp?v=20260914-2") 35% 30%/cover no-repeat!important;
}

/* Previous homepage portrait moves to Kontakt; 4:3 preserves more of the portrait than the former 16:9 crop. */
body.page-id-55 .sm-contact-portrait figure{
  aspect-ratio:4/3!important;
}
body.page-id-55 .sm-contact-portrait img{
  object-position:center 26%!important;
}

/* Private offer: only the full logo inside the offer finale is reduced. */
body.page-id-138 .sm-offer-final__logo{
  width:5rem!important;
  max-width:5rem!important;
  height:auto!important;
  max-height:none!important;
}

/* Private offer access gate: keep WordPress-native password mechanics, replace only presentation. */
body.page-id-138 .post-password-form{
  position:relative;
  box-sizing:border-box;
  width:min(92vw,34rem);
  margin:clamp(5rem,10vh,8rem) auto!important;
  padding:clamp(2rem,5vw,3.25rem)!important;
  border:1px solid rgba(21,50,56,.10);
  border-radius:2rem;
  background:radial-gradient(circle at 88% 10%,rgba(183,204,117,.18),transparent 34%),linear-gradient(145deg,#f8fbf8 0%,#fff 62%);
  box-shadow:0 2rem 5rem rgba(21,50,56,.12);
  color:#153238;
  overflow:hidden;
}
body.page-id-138 .post-password-form:before{
  content:"";
  display:block;
  width:4.5rem;
  aspect-ratio:1;
  margin:0 0 2rem;
  border-radius:50%;
  background:url("https://pozytywedu.pl/wp-content/plugins/shade-signature-blocks/assets/pozytyw-symbol.webp") center/80% auto no-repeat,#fff;
  box-shadow:0 .8rem 2rem rgba(21,50,56,.10),inset 0 0 0 1px rgba(21,50,56,.08);
}
body.page-id-138 .post-password-form>p:first-child{
  margin:0 0 2rem!important;
  font-size:0!important;
  line-height:1!important;
}
body.page-id-138 .post-password-form>p:first-child:before{
  content:"Oferta dla szkół";
  display:block;
  margin-bottom:.8rem;
  font-size:clamp(2.2rem,6vw,3.4rem);
  line-height:.94;
  letter-spacing:-.045em;
  font-weight:760;
  color:#153238;
}
body.page-id-138 .post-password-form>p:first-child:after{
  content:"Pełna oferta jest dostępna dla wybranych placówek. Wpisz otrzymane hasło.";
  display:block;
  max-width:29rem;
  font-size:1rem;
  line-height:1.6;
  color:#66797d;
}
body.page-id-138 .post-password-form>p:last-child{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.75rem;
  align-items:end;
  margin:0!important;
}
body.page-id-138 .post-password-form label{
  display:grid;
  gap:.55rem;
  margin:0!important;
  color:#526a6f;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.page-id-138 .post-password-form input[type="password"]{
  box-sizing:border-box;
  width:100%;
  min-height:3.35rem;
  margin:0!important;
  padding:.8rem 1rem!important;
  border:1px solid rgba(21,50,56,.18)!important;
  border-radius:.95rem!important;
  background:#fff!important;
  color:#153238!important;
  font:inherit;
  font-size:1rem!important;
  outline:none;
  box-shadow:none!important;
  transition:border-color .2s ease,box-shadow .2s ease;
}
body.page-id-138 .post-password-form input[type="password"]:focus{
  border-color:#88aeb7!important;
  box-shadow:0 0 0 4px rgba(136,174,183,.14)!important;
}
body.page-id-138 .post-password-form input[type="submit"]{
  min-height:3.35rem;
  margin:0!important;
  padding:.8rem 1.25rem!important;
  border:0!important;
  border-radius:.95rem!important;
  background:#153238!important;
  color:#fff!important;
  font-weight:760!important;
  cursor:pointer;
  box-shadow:none!important;
}
body.page-id-138 .post-password-form input[type="submit"]:hover{
  background:#23464d!important;
}
@media(max-width:600px){
  body.page-id-138 .post-password-form{
    width:calc(100vw - 2rem);
    margin:4rem auto!important;
    padding:1.6rem!important;
    border-radius:1.5rem;
  }
  body.page-id-138 .post-password-form>p:last-child{
    grid-template-columns:1fr;
  }
  body.page-id-138 .post-password-form input[type="submit"]{
    width:100%;
  }
}
