:root{
  --mc-teal:#078f8b;
  --mc-teal-dark:#056f6d;
  --mc-ink:#243437;
  --mc-muted:#687477;
  --mc-line:rgba(4,123,120,.18);
  --mc-glass:rgba(255,255,255,.70);
  --mc-shadow:0 24px 70px rgba(64,48,24,.12),0 8px 24px rgba(64,48,24,.08);
}

.mclient-page{
  min-height:100vh;
  padding:132px 20px 72px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.12)),
    url('tlo-piaskowe.jpg') center top/cover fixed;
  color:var(--mc-ink);
  overflow:hidden;
}

.mclient-shell{
  width:min(1180px,100%);
  margin:0 auto 28px;
  border:1px solid rgba(255,255,255,.72);
  background:linear-gradient(145deg,rgba(255,255,255,.74),rgba(255,255,255,.48));
  box-shadow:var(--mc-shadow);
  backdrop-filter:blur(18px) saturate(145%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  border-radius:34px;
}

.mclient-kicker{
  display:block;
  margin-bottom:12px;
  color:var(--mc-teal);
  font-size:11px;
  line-height:1.2;
  letter-spacing:.18em;
  font-weight:900;
}

.mclient-hero{
  min-height:610px;
  display:grid;
  grid-template-columns:minmax(360px,.88fr) minmax(560px,1.12fr);
  gap:26px;
  align-items:center;
  padding:54px 52px 38px;
  position:relative;
}

.mclient-copy{position:relative;z-index:3}
.mclient-copy h1,
.mclient-section-head h2,
.mclient-guide h2,
.mclient-offline h2,
.mclient-final-cta h2{
  margin:0;
  color:var(--mc-ink);
  letter-spacing:-.045em;
}
.mclient-copy h1{font-size:clamp(48px,5.1vw,72px);line-height:1.02}
.mclient-lead{max-width:535px;margin:24px 0 0;font-size:18px;line-height:1.62;color:var(--mc-muted)}
.mclient-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.mclient-btn{
  min-height:58px;
  padding:0 22px;
  border-radius:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  border:1px solid var(--mc-line);
  font-weight:800;
  text-decoration:none!important;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.mclient-btn:hover{transform:translateY(-2px)}
.mclient-btn-primary{background:linear-gradient(135deg,#0b9c96,#087d80);color:#fff!important;box-shadow:0 16px 32px rgba(7,126,126,.23)}
.mclient-btn-secondary{background:rgba(255,255,255,.64);color:var(--mc-teal-dark)!important}
.mclient-btn span{font-size:20px;line-height:1}

.mclient-mini-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:28px}
.mclient-mini-benefits>div{display:flex;gap:8px;align-items:flex-start;min-height:70px;padding:12px;border-radius:17px;background:rgba(255,255,255,.48);border:1px solid rgba(255,255,255,.62)}
.mclient-mini-benefits b{color:var(--mc-teal);font-size:17px}
.mclient-mini-benefits strong,.mclient-mini-benefits small{display:block}
.mclient-mini-benefits strong{font-size:12px;color:#344548}
.mclient-mini-benefits small{font-size:10px;line-height:1.35;color:#788487;margin-top:3px}

.mclient-phones{height:520px;position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate}
.mclient-phone{margin:0;position:relative;border-radius:42px;padding:9px;background:linear-gradient(145deg,#30373a,#090b0c);box-shadow:0 30px 55px rgba(32,27,20,.24),inset 0 0 0 1px rgba(255,255,255,.18);overflow:hidden}
.mclient-phone::before{content:"";position:absolute;z-index:4;top:15px;left:50%;transform:translateX(-50%);width:70px;height:18px;border-radius:999px;background:#080a0b}
.mclient-phone img{display:block;width:100%;height:100%;object-fit:cover;border-radius:34px;background:#f8f4eb}
.mclient-phone-main{width:255px;height:522px;z-index:3;transform:translateY(4px)}
.mclient-phone-left,.mclient-phone-right{width:218px;height:448px;z-index:2;position:absolute;top:49px}
.mclient-phone-left{left:20px;transform:rotate(-5.5deg)}
.mclient-phone-right{right:10px;transform:rotate(5.5deg)}

.mclient-features-section{padding:48px 44px 46px}
.mclient-section-head{text-align:center;max-width:740px;margin:0 auto 30px}
.mclient-section-head h2,.mclient-guide h2,.mclient-offline h2,.mclient-final-cta h2{font-size:clamp(32px,3.8vw,48px);line-height:1.06}
.mclient-section-head p,.mclient-guide-copy>p,.mclient-offline p,.mclient-final-cta p{margin:14px auto 0;color:var(--mc-muted);font-size:17px;line-height:1.55}
.mclient-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.mclient-feature{padding:24px 22px 22px;min-height:190px;border-radius:24px;background:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.8);box-shadow:0 12px 28px rgba(80,62,35,.07)}
.mclient-feature h3{margin:16px 0 8px;font-size:19px;color:#28383a}
.mclient-feature p{margin:0;color:#6d797b;line-height:1.55;font-size:14px}
.mclient-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;border:1px solid rgba(15,172,162,.23);background:rgba(236,255,251,.72);color:var(--mc-teal);font-weight:900;font-size:25px}

.mclient-guide{padding:40px 38px;display:grid;grid-template-columns:300px minmax(0,1fr);gap:26px;align-items:center}
.mclient-guide-copy{padding:12px 4px 12px 6px}
.mclient-guide-copy>p{margin-left:0}
.mclient-guide-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}
.mclient-guide-actions .mclient-btn{width:100%}
.mclient-guide-stage{position:relative;min-width:0;padding:8px 44px 32px}
.mclient-guide-viewport{overflow:hidden;border-radius:24px}
.mclient-guide-track{display:flex;transition:transform .5s cubic-bezier(.22,.8,.22,1);will-change:transform}
.mclient-guide-card{flex:0 0 100%;min-width:100%;display:grid;grid-template-columns:1fr 185px;gap:18px;align-items:center;min-height:390px;padding:26px;border-radius:24px;background:rgba(255,255,255,.64);border:1px solid rgba(255,255,255,.82)}
.mclient-guide-card small{display:block;color:var(--mc-teal);font-weight:900;letter-spacing:.12em;margin-bottom:8px}
.mclient-guide-card h3{margin:0 0 10px;font-size:27px;color:#263638}
.mclient-guide-card p{margin:0;color:#6d797b;font-size:15px;line-height:1.6}
.mclient-guide-card img{width:170px;height:350px;object-fit:cover;border-radius:24px;border:7px solid #182123;box-shadow:0 20px 35px rgba(0,0,0,.18)}
.mclient-guide-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:42px;height:42px;border-radius:50%;border:1px solid rgba(5,128,125,.18);background:rgba(255,255,255,.82);color:#243638;font-size:31px;line-height:1;cursor:pointer;box-shadow:0 9px 24px rgba(43,36,28,.12)}
.mclient-guide-prev{left:0}.mclient-guide-next{right:0}
.mclient-guide-dots{position:absolute;left:0;right:0;bottom:5px;display:flex;justify-content:center;gap:7px}
.mclient-guide-dots button{width:8px;height:8px;border-radius:50%;border:0;background:#d7d6d0;padding:0;cursor:pointer}
.mclient-guide-dots button.is-active{background:var(--mc-teal);transform:scale(1.2)}

.mclient-offline{padding:34px 48px;display:grid;grid-template-columns:1fr 180px;align-items:center;gap:34px;min-height:290px}
.mclient-offline p{margin-left:0;max-width:740px}
.mclient-phone-inline{width:145px;height:265px;border-radius:29px;padding:6px;justify-self:center}
.mclient-phone-inline::before{width:46px;height:12px;top:10px}.mclient-phone-inline img{border-radius:23px}

.mclient-final-cta{padding:34px 42px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.mclient-final-cta p{margin-left:0}.mclient-final-btn{flex:0 0 auto}

.mclient-public-pwa{width:min(1040px,calc(100% - 24px));margin:18px auto 0;padding:16px 20px;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(255,255,255,.42);border:1px solid rgba(255,255,255,.62);color:#566466}
.mclient-public-pwa>div strong,.mclient-public-pwa>div span{display:block}.mclient-public-pwa>div strong{font-size:14px;color:#304244}.mclient-public-pwa>div span{font-size:12px;margin-top:2px}
.mclient-install-link{border:1px solid rgba(7,143,139,.25);background:rgba(255,255,255,.62);color:var(--mc-teal-dark);border-radius:14px;padding:11px 15px;cursor:pointer;text-align:left}
.mclient-install-link strong,.mclient-install-link small{display:block}.mclient-install-link strong{font-size:12px}.mclient-install-link small{font-size:10px;margin-top:2px;color:#778486}

.mlanding-sheet{position:fixed;inset:0;z-index:1000001;display:none}.mlanding-sheet.is-open{display:block}.mlanding-sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(24,30,29,.32);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.mlanding-sheet-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100% - 24px));padding:28px;border-radius:28px;background:rgba(250,247,240,.97);border:1px solid rgba(255,255,255,.75);box-shadow:0 35px 90px rgba(0,0,0,.24);text-align:center}.mlanding-sheet-close{position:absolute;right:13px;top:13px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.75);font-size:25px;cursor:pointer}.mlanding-sheet-icon img{width:82px;height:82px;border-radius:20px}.mlanding-sheet-card h2{margin:17px 0 12px;font-size:28px}.mlanding-sheet-card p{color:#5c6969;line-height:1.55;margin:8px 0}.mlanding-sheet-card ol{margin:18px 0 0;padding-left:23px;text-align:left;color:#394a4b;line-height:1.7}.mlanding-sheet-card b{color:var(--mc-teal-dark)}

@media(max-width:1080px){
  .mclient-hero{grid-template-columns:.9fr 1.1fr;padding-left:38px;padding-right:38px}
  .mclient-phone-left{left:-4px}.mclient-phone-right{right:-16px}
  .mclient-feature-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:840px){
  .mclient-page{padding:104px 12px 42px;background-attachment:scroll}
  .mclient-shell{border-radius:27px;margin-bottom:18px}
  .mclient-hero{display:block;padding:34px 24px 28px;min-height:0}
  .mclient-copy h1{font-size:clamp(44px,10vw,62px)}
  .mclient-lead{font-size:16px}
  .mclient-mini-benefits{grid-template-columns:1fr 1fr 1fr}
  .mclient-phones{height:430px;margin-top:28px}
  .mclient-phone-main{width:210px;height:430px}
  .mclient-phone-left,.mclient-phone-right{width:170px;height:350px;top:48px}
  .mclient-phone-left{left:calc(50% - 255px)}.mclient-phone-right{right:calc(50% - 255px)}
  .mclient-features-section{padding:36px 22px}
  .mclient-guide{grid-template-columns:1fr;padding:30px 20px}
  .mclient-guide-actions{flex-direction:row}.mclient-guide-actions .mclient-btn{width:auto}
  .mclient-guide-card{min-height:350px;grid-template-columns:1fr 160px}.mclient-guide-card img{width:145px;height:300px}
}

@media(max-width:620px){
  .mclient-page{padding:92px 8px 34px}
  .mclient-hero{padding:28px 18px 22px}
  .mclient-copy h1{font-size:44px}
  .mclient-actions{display:grid;grid-template-columns:1fr}.mclient-btn{width:100%}
  .mclient-mini-benefits{grid-template-columns:1fr;margin-top:18px}.mclient-mini-benefits>div{min-height:58px}
  .mclient-phones{height:390px;margin-left:-10px;margin-right:-10px}
  .mclient-phone-main{width:188px;height:385px}
  .mclient-phone-left,.mclient-phone-right{width:146px;height:300px;top:52px}
  .mclient-phone-left{left:calc(50% - 224px)}.mclient-phone-right{right:calc(50% - 224px)}
  .mclient-feature-grid{grid-template-columns:1fr}.mclient-feature{min-height:0;padding:20px}
  .mclient-section-head{text-align:left}.mclient-section-head p{margin-left:0}
  .mclient-guide-actions{display:grid;grid-template-columns:1fr}
  .mclient-guide-stage{padding:8px 30px 32px}
  .mclient-guide-card{display:flex;flex-direction:column-reverse;align-items:flex-start;min-height:0;padding:20px}.mclient-guide-card img{width:135px;height:278px;align-self:center}.mclient-guide-card h3{font-size:24px}
  .mclient-guide-arrow{width:36px;height:36px;font-size:26px}
  .mclient-offline{grid-template-columns:1fr;padding:28px 22px;text-align:left}.mclient-phone-inline{display:none}
  .mclient-final-cta{display:block;padding:28px 22px}.mclient-final-btn{margin-top:22px}
  .mclient-public-pwa{display:block}.mclient-install-link{width:100%;margin-top:12px}
  .mlanding-sheet-card{top:auto;bottom:0;transform:translateX(-50%);border-radius:28px 28px 0 0;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}

/* v0.3.1 - fixed header clearance. Global header CSS uses #primary with !important. */
#primary.mclient-page{
  padding-top:152px !important;
  margin-top:0 !important;
}

@media(max-width:840px){
  #primary.mclient-page{ padding-top:112px !important; }
}

@media(max-width:620px){
  #primary.mclient-page{ padding-top:102px !important; }
}

/* =========================================================
   v0.3.2 — MOBILE POLISH + PDF MODAL
========================================================= */

/* PDF instruction modal — desktop + mobile */
.mclient-pdf-modal{
  position:fixed;
  inset:0;
  z-index:1000005;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.mclient-pdf-modal.is-open{display:flex}
.mclient-pdf-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(24,30,29,.48);
  backdrop-filter:blur(11px);
  -webkit-backdrop-filter:blur(11px);
}
.mclient-pdf-dialog{
  position:relative;
  z-index:2;
  width:min(1080px,calc(100vw - 48px));
  height:min(88vh,900px);
  overflow:hidden;
  border-radius:28px;
  background:#f8f4ec;
  border:1px solid rgba(255,255,255,.82);
  box-shadow:0 38px 110px rgba(0,0,0,.34);
  display:grid;
  grid-template-rows:64px minmax(0,1fr);
}
.mclient-pdf-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 18px 0 24px;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(247,243,235,.90));
  border-bottom:1px solid rgba(7,143,139,.12);
}
.mclient-pdf-head strong{font-size:17px;color:var(--mc-ink)}
.mclient-pdf-head span{display:block;margin-top:2px;font-size:11px;color:var(--mc-muted)}
.mclient-pdf-close{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border:1px solid rgba(7,143,139,.16);
  border-radius:50%;
  background:rgba(255,255,255,.8);
  color:var(--mc-ink);
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.mclient-pdf-frame{
  width:100%;
  height:100%;
  border:0;
  background:#3b3b3b;
}
body.mclient-modal-open{overflow:hidden!important}

@media(max-width:620px){
  /* Trzy benefity hero w jednym, przesuwanym poziomo rzędzie */
  .mclient-mini-benefits{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    margin:18px -18px 0!important;
    padding:0 18px 8px!important;
    scrollbar-width:none;
  }
  .mclient-mini-benefits::-webkit-scrollbar{display:none}
  .mclient-mini-benefits>div{
    flex:0 0 176px!important;
    min-width:176px!important;
    min-height:64px!important;
    scroll-snap-align:start;
    padding:11px 12px!important;
  }

  /* Kompozycja prawdziwych ekranów mieści się w szerokości telefonu */
  .mclient-phones{
    width:100%!important;
    max-width:100%!important;
    height:356px!important;
    margin:18px 0 0!important;
    overflow:visible!important;
  }
  .mclient-phone-main{
    width:170px!important;
    height:348px!important;
    transform:translateY(2px)!important;
  }
  .mclient-phone-left,
  .mclient-phone-right{
    width:116px!important;
    height:238px!important;
    top:52px!important;
  }
  .mclient-phone-left{
    left:3px!important;
    transform:rotate(-5deg)!important;
  }
  .mclient-phone-right{
    right:3px!important;
    transform:rotate(5deg)!important;
  }
  .mclient-phone::before{
    width:52px!important;
    height:13px!important;
    top:12px!important;
  }
  .mclient-phone-left::before,
  .mclient-phone-right::before{
    width:38px!important;
    height:10px!important;
    top:10px!important;
  }

  /* Funkcje jako poziomy slider zamiast długiej listy */
  .mclient-features-section{
    padding:34px 0 32px!important;
    overflow:hidden;
  }
  .mclient-features-section .mclient-section-head{
    padding:0 20px;
    margin-bottom:22px;
  }
  .mclient-feature-grid{
    display:flex!important;
    grid-template-columns:none!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding:2px 20px 12px!important;
    scrollbar-width:none;
  }
  .mclient-feature-grid::-webkit-scrollbar{display:none}
  .mclient-feature{
    flex:0 0 min(82vw,310px)!important;
    min-width:min(82vw,310px)!important;
    min-height:210px!important;
    padding:22px 20px!important;
    scroll-snap-align:start;
  }

  /* PDF jako pełnoekranowy, szklany dymek na telefonie */
  .mclient-pdf-modal{
    padding:
      max(10px,env(safe-area-inset-top))
      8px
      max(10px,env(safe-area-inset-bottom));
  }
  .mclient-pdf-dialog{
    width:100%;
    height:100%;
    max-height:none;
    border-radius:24px;
    grid-template-rows:58px minmax(0,1fr);
  }
  .mclient-pdf-head{padding:0 10px 0 16px}
  .mclient-pdf-head strong{font-size:15px}
  .mclient-pdf-head span{font-size:10px}
  .mclient-pdf-close{width:40px;height:40px;font-size:26px}
}

/* =========================================================
   v0.3.3 — RESTORE WATERCOLOR BACKGROUND
   Przywraca wyraźne akwarelowe tło z wcześniejszej wersji,
   bez zmiany układu, sliderów i modalu PDF.
========================================================= */

#primary.mclient-page{
  background-color:#ead8b7 !important;
  background-image:
    linear-gradient(120deg,rgba(255,255,255,.10),rgba(255,255,255,.01)),
    url('tlo-piaskowe.jpg') !important;
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}

/* Karty mają zostać szklane, ale akwarela ma być wyraźnie widoczna pod nimi. */
#primary.mclient-page .mclient-shell{
  background:linear-gradient(145deg,rgba(255,255,255,.60),rgba(255,255,255,.34)) !important;
  border-color:rgba(255,255,255,.78) !important;
  backdrop-filter:blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(16px) saturate(140%) !important;
}

#primary.mclient-page .mclient-feature,
#primary.mclient-page .mclient-guide-card,
#primary.mclient-page .mclient-mini-benefits > div{
  background:rgba(255,255,255,.56) !important;
}

#primary.mclient-page .mclient-public-pwa{
  background:rgba(255,255,255,.38) !important;
}

@media(max-width:840px){
  #primary.mclient-page{
    background-attachment:scroll !important;
    background-size:auto 100vh !important;
    background-repeat:repeat-y !important;
  }

  #primary.mclient-page .mclient-shell{
    background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(255,255,255,.38)) !important;
  }
}


/* =========================================================
   v0.3.4 — EXACT SHARED MIALOCO WATERCOLOR BACKGROUND
   Używa dokładnie tego samego tła piaskowo-akwarelowego,
   które występuje na pozostałych materiałach MIALOCO.
========================================================= */

#primary.mclient-page{
  background-color:#f3ead9 !important;
  background-image:url('tlo-piaskowe.jpg') !important;
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}

/* Wszystkie główne sekcje pozostają szklane, żeby jedno tło było widoczne wszędzie. */
#primary.mclient-page .mclient-shell{
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.32)) !important;
  border-color:rgba(255,255,255,.78) !important;
  backdrop-filter:blur(16px) saturate(138%) !important;
  -webkit-backdrop-filter:blur(16px) saturate(138%) !important;
}

#primary.mclient-page .mclient-feature,
#primary.mclient-page .mclient-guide-card,
#primary.mclient-page .mclient-mini-benefits > div{
  background:rgba(255,255,255,.54) !important;
}

#primary.mclient-page .mclient-public-pwa{
  background:rgba(255,255,255,.36) !important;
}

@media(max-width:840px){
  #primary.mclient-page{
    background-position:center top !important;
    background-size:auto 100vh !important;
    background-repeat:repeat-y !important;
    background-attachment:scroll !important;
  }
}


/* =========================================================
   v0.3.5 — EXACT WATERCOLOR + CACHE BUST
   Nowa nazwa pliku tła omija cache przeglądarki/CDN.
========================================================= */
#primary.mclient-page{
  background-color:#f5eddf !important;
  background-image:url('tlo-piaskowe-3.jpg?v=035') !important;
  background-position:center top !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}

@media(max-width:840px){
  #primary.mclient-page{
    background-image:url('tlo-piaskowe-3.jpg?v=035') !important;
    background-position:center top !important;
    background-size:auto 100vh !important;
    background-repeat:repeat-y !important;
    background-attachment:scroll !important;
  }
}
