/* 30 dni dla Siebie: lekka narracyjna warstwa strony glownej. */
body.home-story-v2{
  background:
    radial-gradient(circle at 8% 8%,rgba(255,90,0,.075),transparent 24rem),
    radial-gradient(circle at 92% 34%,rgba(255,90,0,.045),transparent 28rem),
    var(--bg);
}
body.home-story-v2 main{overflow:clip}
body.home-story-v2 .home-nav-shell{
  position:sticky;top:0;z-index:80;
  background:color-mix(in srgb,var(--surface) 84%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--border) 76%,transparent);
  backdrop-filter:blur(18px) saturate(1.35);
  -webkit-backdrop-filter:blur(18px) saturate(1.35)
}
body.home-story-v2 .home-nav{min-height:70px}
body.home-story-v2 .home-nav__links{gap:6px}
body.home-story-v2 .home-nav__links a{padding:9px 11px;border-radius:999px}
body.home-story-v2 .home-nav__links a:hover{background:var(--surface-2)}
body.home-story-v2 .home-nav__actions{align-items:center}
body.home-story-v2 .home-nav__actions .home-theme-btn{position:static;right:auto;top:auto;z-index:auto;min-height:36px;padding:7px 11px;border-radius:999px;box-shadow:none;background:color-mix(in srgb,var(--surface) 92%,transparent);white-space:nowrap}
body.home-story-v2 .home-nav__actions .home-theme-btn:hover{background:var(--surface-2)}

.home-story-chapter{position:relative;isolation:isolate;scroll-margin-top:92px}
.home-story-chapter>.shell,.home-story-chapter.shell{position:relative;z-index:4}
.home-story-eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:14px;color:var(--orange);font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.14em}
.home-story-eyebrow::before{content:"";width:26px;height:2px;border-radius:99px;background:currentColor}
.home-story-title{font-size:clamp(34px,5.5vw,74px);line-height:.98;letter-spacing:-.055em;margin:0;max-width:820px;text-wrap:balance}
.home-story-title em{font-style:normal;color:var(--orange)}
.home-story-lead{font-size:clamp(16px,1.65vw,20px);line-height:1.72;max-width:670px;color:var(--muted);margin:20px 0 0}
.home-story-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;position:relative;z-index:12}
.home-story-mini-trust{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.home-story-mini-trust span{display:inline-flex;align-items:center;min-height:31px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:color-mix(in srgb,var(--surface) 88%,transparent);font-size:11px;font-weight:800;color:var(--muted);box-shadow:0 8px 24px rgba(17,24,39,.035)}

body.home-story-v2 .landing-hero{padding:clamp(72px,9vw,126px) 0 clamp(76px,10vw,138px);min-height:min(830px,calc(100vh - 70px));display:flex;align-items:center}
body.home-story-v2 .landing-grid{display:block;width:min(1180px,calc(100% - 36px));max-width:1180px}
body.home-story-v2 .home-hero-copy{max-width:790px;padding:0}
body.home-story-v2 .home-free-pill{width:max-content;max-width:100%;margin:0 0 13px}
body.home-story-v2 .home-main-lead{max-width:650px;font-size:clamp(16px,1.65vw,20px);line-height:1.72;color:var(--muted);margin-top:18px}
body.home-story-v2 .home-hero-actions{margin-top:26px}
body.home-story-v2 .home-trust-row{margin-top:18px;gap:8px}
body.home-story-v2 .home-trust-row span{font-size:11px;min-height:31px;padding:6px 10px;border-radius:999px;background:color-mix(in srgb,var(--surface) 88%,transparent)}
body.home-story-v2 .home-hero-more{max-width:670px;margin-top:18px;border:0;background:transparent;padding:0}
body.home-story-v2 .home-hero-more summary{width:max-content;max-width:100%;font-size:12px;font-weight:800;color:var(--muted);cursor:pointer}
body.home-story-v2 .home-hero-more>div{margin-top:10px;padding:14px 16px;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--surface) 90%,transparent);font-size:12px;line-height:1.65;color:var(--muted)}
body.home-story-v2 .home-hero-more p{margin:0 0 8px}
body.home-story-v2 .home-hero-more p:last-child{margin-bottom:0}

/* Puzzle story */
.home-story-puzzle{
  --story-left:82vw;--story-top:39vh;--story-width:clamp(235px,26vw,405px);--story-rotate:4deg;--story-park-top:70px;
  position:fixed;left:var(--story-left);top:var(--story-top);width:var(--story-width);aspect-ratio:2008/2362;
  transform:translate(-50%,-50%) rotate(var(--story-rotate));
  z-index:8;pointer-events:none;opacity:0;
  transition:left .78s cubic-bezier(.2,.78,.18,1),top .78s cubic-bezier(.2,.78,.18,1),width .78s cubic-bezier(.2,.78,.18,1),transform .78s cubic-bezier(.2,.78,.18,1),opacity .35s ease,filter .5s ease;
  filter:drop-shadow(0 22px 28px rgba(17,24,39,.12));
  contain:layout style
}
.home-story-puzzle.is-ready{opacity:.98}
.home-story-puzzle.is-page-hidden{opacity:0}
.home-story-puzzle__board,.home-story-puzzle .puzzle30-board{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;isolation:isolate;pointer-events:none}
.home-story-puzzle .puzzle30-piece{cursor:grab!important;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 3px 3px rgba(0,0,0,.16));contain:layout style;will-change:transform,filter,opacity}
.home-story-puzzle .puzzle30-piece:active,.home-story-puzzle .puzzle30-piece.is-active{cursor:grabbing!important}
.home-story-puzzle .puzzle30-piece-outline{stroke:rgba(25,25,28,.86);stroke-width:1.15}
[data-theme="dark"] .home-story-puzzle .puzzle30-piece-outline{stroke:rgba(255,255,255,.72)}
.home-story-puzzle__controls{position:absolute;left:50%;bottom:-38px;display:flex;align-items:center;gap:6px;transform:translateX(-50%);z-index:260;pointer-events:auto;white-space:nowrap}
.home-story-puzzle__toggle,.home-story-puzzle__counter{display:flex;align-items:center;justify-content:center;height:28px;border-radius:999px;border:1px solid color-mix(in srgb,var(--border) 82%,transparent);background:color-mix(in srgb,var(--surface) 90%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 22px rgba(17,24,39,.09);font-size:10px;font-weight:800;color:var(--muted)}
.home-story-puzzle__toggle{appearance:none;padding:0 10px;font-family:inherit;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease,opacity .18s ease}
.home-story-puzzle__toggle:hover{color:var(--text);border-color:rgba(255,90,0,.34);background:color-mix(in srgb,var(--surface) 82%,#fff1e9 18%)}
.home-story-puzzle__toggle:disabled{cursor:default;opacity:.58}
.home-story-puzzle__counter{min-width:48px;padding:0 9px;letter-spacing:.04em}
.home-story-puzzle__counter::before{content:"";width:6px;height:6px;border-radius:50%;margin-right:6px;background:var(--orange);box-shadow:0 0 0 4px rgba(255,90,0,.12)}
.home-story-puzzle__hint{display:none;align-items:center;height:28px;padding:0 2px;font-size:10px;font-weight:750;color:var(--muted);white-space:nowrap}
.home-story-puzzle.is-complete .home-story-puzzle__hint{display:flex}
.home-story-puzzle[data-anchor="hero-right"] .home-story-puzzle__controls,.home-story-puzzle[data-anchor^="right-"] .home-story-puzzle__controls{left:0;transform:none}
.home-story-puzzle[data-anchor^="left-"] .home-story-puzzle__controls{left:auto;right:0;transform:none}
.home-story-puzzle.is-complete{filter:drop-shadow(0 28px 38px rgba(17,24,39,.17))}
.home-story-puzzle.is-complete .home-story-puzzle__counter{color:var(--text);border-color:rgba(255,90,0,.25);background:color-mix(in srgb,var(--surface) 86%,#fff1e9 14%)}
.home-story-puzzle.is-parked{left:calc(100vw + 58px)!important;top:var(--story-park-top)!important;width:min(190px,44vw)!important;transform:translate(-50%,-88%) rotate(5deg)!important;filter:drop-shadow(0 8px 12px rgba(17,24,39,.10));z-index:82}
.home-story-puzzle.is-parked .home-story-puzzle__board{pointer-events:none!important}
.home-story-puzzle.is-parked .puzzle30-piece{pointer-events:none!important}
.home-story-puzzle.is-parked .home-story-puzzle__controls{left:0!important;right:auto!important;top:94%!important;bottom:auto!important;transform:translate(-100%,-50%) rotate(-5deg)!important}
.home-story-puzzle.is-parked .home-story-puzzle__counter,.home-story-puzzle.is-parked .home-story-puzzle__hint{display:none!important}
.home-story-puzzle.is-parked .home-story-puzzle__toggle{box-shadow:0 8px 20px rgba(17,24,39,.12)}
body.puzzle-dragging .home-story-puzzle,
.home-story-puzzle.is-pointer-takeover{z-index:1400!important;filter:drop-shadow(0 28px 36px rgba(17,24,39,.2))}
body.puzzle-dragging,body.puzzle-dragging *{user-select:none!important;-webkit-user-select:none!important}
body.puzzle-dragging .home-story-puzzle__controls{opacity:.22;pointer-events:none}
.home-story-puzzle[data-anchor="hero-right"]{--story-left:82vw;--story-top:42vh;--story-width:clamp(245px,27vw,420px);--story-rotate:5deg}
.home-story-puzzle[data-anchor="left-high"]{--story-left:18vw;--story-top:34vh;--story-width:clamp(230px,24vw,370px);--story-rotate:-5deg}
.home-story-puzzle[data-anchor="right-high"]{--story-left:83vw;--story-top:34vh;--story-width:clamp(235px,25vw,385px);--story-rotate:3deg}
.home-story-puzzle[data-anchor="left-mid"]{--story-left:19vw;--story-top:54vh;--story-width:clamp(245px,25vw,390px);--story-rotate:-2.5deg}
.home-story-puzzle[data-anchor="right-mid"]{--story-left:82vw;--story-top:53vh;--story-width:clamp(245px,25vw,400px);--story-rotate:3deg}
.home-story-puzzle[data-anchor="right-low"]{--story-left:82vw;--story-top:67vh;--story-width:clamp(235px,24vw,385px);--story-rotate:4deg}
.home-story-puzzle[data-anchor="left-low"]{--story-left:18vw;--story-top:66vh;--story-width:clamp(235px,24vw,385px);--story-rotate:-4deg}
.home-story-puzzle[data-anchor="center"]{--story-left:50vw;--story-top:43vh;--story-width:clamp(270px,27vw,430px);--story-rotate:0deg}
.home-story-puzzle[data-anchor="final"]{--story-left:50vw;--story-top:var(--story-final-top,34vh);--story-width:var(--story-final-width,clamp(310px,31vw,500px));--story-rotate:0deg}


/* Kliknięta treść zawsze może wejść nad układankę. */
.home-story-priority-context{
  position:relative!important;
  z-index:48!important;
}
.home-story-priority-card{
  position:relative!important;
  z-index:52!important;
  isolation:isolate;
}
.home-story-priority-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  z-index:-1;
  border-radius:inherit;
  pointer-events:none;
}
body.home-content-priority-active .home-story-puzzle:not(.is-parked){
  z-index:7!important;
}
body.puzzle-dragging .home-story-puzzle{
  z-index:1400!important;
}

/* Minimalne rozdzialy */
body.home-story-v2 .home-section,body.home-story-v2 .home-beta-section{padding-top:clamp(68px,8vw,112px);padding-bottom:clamp(68px,8vw,112px)}
body.home-story-v2 .home-section-head{margin-bottom:30px}
body.home-story-v2 .home-section-head h2{font-size:clamp(30px,4.2vw,54px);line-height:1.03;letter-spacing:-.045em;text-wrap:balance}
body.home-story-v2 .home-section-head>p{max-width:610px;line-height:1.65}
body.home-story-v2 .home-section::before{display:none}

body.home-story-v2 #jak-to-dziala{padding-right:min(29vw,360px)}
body.home-story-v2 #jak-to-dziala .home-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.home-story-v2 #jak-to-dziala .home-step{min-height:150px;padding:20px;border-radius:20px;background:color-mix(in srgb,var(--surface) 93%,transparent);box-shadow:0 16px 44px rgba(17,24,39,.05)}
body.home-story-v2 #jak-to-dziala .home-step p{font-size:12px;line-height:1.6}

.home-story-gallery-wrap{position:relative;padding:clamp(30px,4vw,58px) 0 clamp(76px,8vw,116px);isolation:isolate}
body.home-story-v2 .home-platform-gallery{width:min(1180px,calc(100% - 28px));margin-inline:auto;border-radius:28px;padding:clamp(20px,2.6vw,30px) clamp(20px,3vw,34px) clamp(16px,2vw,22px);background:color-mix(in srgb,var(--surface) 94%,transparent);border:1px solid color-mix(in srgb,var(--border) 82%,transparent);box-shadow:0 30px 78px rgba(17,24,39,.075);position:relative;z-index:4}
body.home-story-v2 .home-gallery-head{margin-bottom:8px}
body.home-story-v2 .home-gallery-head h2{font-size:clamp(30px,4vw,52px);letter-spacing:-.045em}
body.home-story-v2 .home-gallery-head p{max-width:430px}
body.home-story-v2 .home-gallery-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;mask-image:linear-gradient(90deg,#000 92%,transparent)}
body.home-story-v2 .home-gallery-tabs::-webkit-scrollbar{display:none}
/* Screenshoty pływają bez dodatkowego kafelka wewnątrz głównej karty. */
body.home-story-v2 .home-gallery-stage{min-height:clamp(285px,38vw,440px);border:0!important;border-radius:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;margin-top:0!important}
body.home-story-v2 .home-gallery-stage::before,body.home-story-v2 .home-gallery-stage::after{display:none!important}
body.home-story-v2 .home-gallery-stage .home-gallery-badge{display:none!important}
body.home-story-v2 .home-gallery-shot{box-shadow:0 26px 58px rgba(17,24,39,.17)}


.home-auth-section{position:relative;padding:clamp(76px,9vw,124px) 0;isolation:isolate}
.home-auth-section__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,470px);gap:clamp(34px,7vw,100px);align-items:center}
.home-auth-section__copy{max-width:560px;position:relative;z-index:4}
.home-auth-section__copy h2{font-size:clamp(34px,4.8vw,60px);line-height:1.02;letter-spacing:-.05em;margin:0}
.home-auth-section__copy p{font-size:15px;line-height:1.7;color:var(--muted);margin:18px 0 0}
body.home-story-v2 .landing-side{min-width:0;position:relative;z-index:13}
body.home-story-v2 .auth-card{border-radius:26px;padding:24px;border:1px solid color-mix(in srgb,var(--border) 82%,transparent);box-shadow:0 30px 90px rgba(17,24,39,.11);background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:blur(16px)}

body.home-story-v2 #mozliwosci{padding-left:min(27vw,340px)}
body.home-story-v2 .home-example-grid{gap:10px}
body.home-story-v2 .home-example-grid article{border-radius:18px;background:color-mix(in srgb,var(--surface) 93%,transparent);box-shadow:0 14px 38px rgba(17,24,39,.045)}

body.home-story-v2 .home-challenges-catalogue{padding-top:clamp(80px,9vw,126px);padding-bottom:clamp(80px,9vw,126px)}
body.home-story-v2 .home-challenges-login-note{border-radius:18px}
body.home-story-v2 .home-challenge-grid--featured{gap:10px}
body.home-story-v2 .home-challenge-card{border-radius:20px;box-shadow:0 14px 40px rgba(17,24,39,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
body.home-story-v2 .home-challenge-card:hover{transform:translateY(-3px);box-shadow:0 20px 50px rgba(17,24,39,.075);border-color:color-mix(in srgb,var(--orange) 22%,var(--border))}
body.home-story-v2 .home-challenge-card__body p{font-size:11px;line-height:1.55}
body.home-story-v2 .home-challenges-more{margin-top:18px;border-radius:20px;overflow:clip}

.home-story-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:clamp(60px,7vw,96px);padding-bottom:clamp(60px,7vw,96px);position:relative;z-index:4}
.home-story-pair>section{width:auto!important;margin:0!important;padding:0!important;max-width:none!important}
.home-story-pair>.home-onboarding{padding:24px!important;box-sizing:border-box;overflow:hidden}
.home-story-pair>.home-onboarding .home-section-head{min-width:0}
.home-story-pair>.home-onboarding .home-section-head>div{min-width:0;max-width:100%}
.home-story-pair>.home-onboarding .home-section-head h2{max-width:100%;overflow-wrap:normal}
body.home-story-v2 .home-beta-card,body.home-story-v2 .home-onboarding{height:100%}
body.home-story-v2 .home-beta-card{border-radius:24px;padding:24px}
body.home-story-v2 .home-onboarding{border:1px solid var(--border);border-radius:24px;padding:24px;background:color-mix(in srgb,var(--surface) 94%,transparent)}
body.home-story-v2 .home-onboarding .home-section-head{margin-bottom:14px}
body.home-story-v2 .home-onboarding-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.home-story-v2 .home-onboarding-grid article{padding:14px;border-radius:15px}
body.home-story-v2 .home-onboarding-grid article p{display:none}
body.home-story-v2 .home-onboarding-story{margin-top:12px}

.home-story-deep{position:relative;z-index:4;width:min(1040px,calc(100% - 36px));margin:clamp(40px,6vw,84px) auto clamp(72px,9vw,128px);border:1px solid var(--border);border-radius:26px;background:color-mix(in srgb,var(--surface) 95%,transparent);box-shadow:0 26px 72px rgba(17,24,39,.065);overflow:hidden}
.home-story-deep>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;font-size:clamp(18px,2.4vw,28px);font-weight:800;letter-spacing:-.025em}
.home-story-deep>summary::-webkit-details-marker{display:none}
.home-story-deep>summary::after{content:"+";display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);font-size:21px}
.home-story-deep[open]>summary::after{content:"−"}
.home-story-deep__intro{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:0;max-width:520px;margin-left:auto}
.home-story-deep__body{border-top:1px solid var(--border);padding:0 22px 28px}
.home-story-deep__body>.home-section,.home-story-deep__body>.home-feature-split,.home-story-deep__body>.home-community-section,.home-story-deep__body>.home-about-short{width:100%;max-width:none;margin:0;padding:48px 0;border-bottom:1px solid var(--border)}
.home-story-deep__body>*:last-child{border-bottom:0}

body.home-story-v2 .home-privacy{padding-right:min(27vw,340px)}
body.home-story-v2 .home-privacy-grid{gap:10px}
body.home-story-v2 .home-privacy-grid p{border-radius:17px;background:color-mix(in srgb,var(--surface) 93%,transparent)}

body.home-story-v2 #faq{padding-left:min(24vw,300px)}
body.home-story-v2 .home-faq{gap:8px}
body.home-story-v2 .home-faq details{border-radius:16px;background:color-mix(in srgb,var(--surface) 93%,transparent)}
body.home-story-v2 .home-faq details{display:block}

.home-story-final{position:relative;min-height:min(900px,92vh);display:flex;align-items:flex-end;padding:clamp(250px,38vh,390px) 0 clamp(72px,9vw,120px);isolation:isolate;overflow:hidden;background:radial-gradient(circle at 50% 43%,rgba(255,90,0,.12),transparent 24rem)}
.home-story-final__inner{position:relative;z-index:12;text-align:center;max-width:760px;margin:0 auto}
.home-story-final__badge{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border-radius:999px;background:#fff1e9;color:#b64000;border:1px solid rgba(255,90,0,.22);font-size:11px;font-weight:800;margin-bottom:14px}
.home-story-final h2{font-size:clamp(38px,6vw,78px);line-height:.98;letter-spacing:-.055em;margin:0;text-wrap:balance}
.home-story-final p{max-width:610px;margin:18px auto 0;font-size:clamp(15px,1.6vw,19px);line-height:1.7;color:var(--muted)}
.home-story-final .home-story-actions{justify-content:center}
.home-story-final.is-complete .home-story-final__badge{animation:homeFinalPulse .7s ease both}
@keyframes homeFinalPulse{50%{transform:scale(1.08)}100%{transform:scale(1)}}

.home-story-confetti{position:fixed;inset:0;z-index:120;pointer-events:none;overflow:hidden}
.home-story-confetti i{position:absolute;left:var(--x);top:-24px;width:8px;height:14px;border-radius:var(--shape);background:var(--orange);opacity:.92;animation:homeConfetti var(--duration) cubic-bezier(.18,.7,.25,1) var(--delay) both}
.home-story-confetti i:nth-child(3n){background:#17191d}
.home-story-confetti i:nth-child(4n){background:#fff;border:1px solid rgba(17,24,39,.15)}
.home-story-confetti i:nth-child(5n){width:6px;height:6px}
@keyframes homeConfetti{0%{transform:translate3d(0,-30px,0) rotate(0);opacity:0}8%{opacity:1}100%{transform:translate3d(var(--drift),110vh,0) rotate(var(--spin));opacity:.92}}

body.home-story-v2 .home-promo-section{padding-top:46px;padding-bottom:56px}
body.home-story-v2 .home-brand-promo{border-radius:22px;overflow:hidden}
body.home-story-v2 .footer{position:relative;z-index:12}
body.home-story-v2 .home-mobile-authbar{z-index:95}

/* Ważna treść zawsze nad układanką. Silnik JS wstrzymuje dokładanie, gdy plansza jest pod tymi warstwami. */
body.home-story-v2 .home-story-gallery-wrap,
body.home-story-v2 .home-auth-section,
body.home-story-v2 #wszystkie-czelendze{position:relative;z-index:20}
body.home-story-v2 .home-platform-gallery,
body.home-story-v2 #homeRegistration{position:relative;z-index:22}

/* Czytelne warstwy ponad puzzlami. */
body.home-story-v2 .btn,body.home-story-v2 summary,body.home-story-v2 input,body.home-story-v2 button,body.home-story-v2 .home-challenge-card,body.home-story-v2 .auth-card{position:relative;z-index:12}

@media(min-width:821px){
  .home-story-puzzle[data-anchor="hero-right"]{--story-width:clamp(294px,32.4vw,504px)}
  .home-story-puzzle[data-anchor="left-high"]{--story-width:clamp(276px,28.8vw,444px)}
  .home-story-puzzle[data-anchor="right-high"]{--story-width:clamp(282px,30vw,462px)}
  .home-story-puzzle[data-anchor="left-mid"]{--story-width:clamp(294px,30vw,468px)}
  .home-story-puzzle[data-anchor="right-mid"]{--story-width:clamp(294px,30vw,480px)}
  .home-story-puzzle[data-anchor="right-low"]{--story-width:clamp(282px,28.8vw,462px)}
  .home-story-puzzle[data-anchor="left-low"]{--story-width:clamp(282px,28.8vw,462px)}
  .home-story-puzzle[data-anchor="center"]{--story-width:clamp(324px,32.4vw,516px)}
  .home-story-puzzle[data-anchor="final"]{--story-width:var(--story-final-width,clamp(372px,37.2vw,600px))}
}

@media(max-width:1040px){
  body.home-story-v2 #jak-to-dziala{padding-right:24vw}
  body.home-story-v2 #mozliwosci{padding-left:22vw}
  body.home-story-v2 .home-privacy{padding-right:21vw}
  body.home-story-v2 #faq{padding-left:20vw}
  .home-auth-section__grid{grid-template-columns:minmax(0,1fr) minmax(330px,430px);gap:38px}
}

@media(max-width:820px){
  body.home-story-v2{padding-bottom:72px}
  body.home-story-v2 .home-nav-shell{top:0}
  body.home-story-v2 .home-nav{min-height:60px}
  body.home-story-v2 .home-nav__links{display:none!important}
  body.home-story-v2 .home-nav{padding-right:0!important}
  body.home-story-v2 .home-nav__actions{display:flex!important;margin-left:auto;gap:6px}
  body.home-story-v2 .home-nav__actions .home-login-link,body.home-story-v2 .home-nav__actions>.btn{display:none!important}
  body.home-story-v2 .home-nav__actions .home-theme-btn{display:inline-flex!important;position:static!important;min-height:34px;padding:6px 9px;font-size:9px}
  body.home-story-v2 .landing-hero{min-height:auto;padding:72px 0 92px;align-items:flex-start}
  body.home-story-v2 .landing-grid{width:calc(100% - 22px)!important;max-width:calc(100% - 22px)!important}
  body.home-story-v2 .home-hero-copy{max-width:78%;padding-top:2px}
  body.home-story-v2 .landing-copy h1{font-size:clamp(38px,12vw,60px);line-height:.97}
  body.home-story-v2 .home-main-lead{font-size:14px;line-height:1.65}
  body.home-story-v2 .home-hero-actions{display:grid;grid-template-columns:1fr;margin-top:20px;max-width:260px}
  body.home-story-v2 .home-hero-actions .btn{min-height:46px}
  body.home-story-v2 .home-trust-row{max-width:300px}
  body.home-story-v2 .home-trust-row span:nth-child(n+4){display:none}

  .home-story-puzzle{--story-width:clamp(150px,50vw,215px);opacity:.94;filter:drop-shadow(0 15px 20px rgba(17,24,39,.14))}
  .home-story-puzzle[data-anchor="hero-right"]{--story-left:89vw;--story-top:37vh;--story-width:clamp(160px,54vw,225px);--story-rotate:5deg}
  .home-story-puzzle[data-anchor="left-high"]{--story-left:13vw;--story-top:31vh;--story-width:clamp(145px,48vw,205px);--story-rotate:-5deg}
  .home-story-puzzle[data-anchor="right-high"]{--story-left:88vw;--story-top:30vh;--story-width:clamp(145px,48vw,205px);--story-rotate:4deg}
  .home-story-puzzle[data-anchor="left-mid"]{--story-left:14vw;--story-top:55vh;--story-width:clamp(150px,49vw,210px);--story-rotate:-3deg}
  .home-story-puzzle[data-anchor="right-mid"]{--story-left:88vw;--story-top:54vh;--story-width:clamp(150px,49vw,210px);--story-rotate:3deg}
  .home-story-puzzle[data-anchor="right-low"]{--story-left:88vw;--story-top:68vh;--story-width:clamp(150px,49vw,210px);--story-rotate:3deg}
  .home-story-puzzle[data-anchor="left-low"]{--story-left:13vw;--story-top:68vh;--story-width:clamp(150px,49vw,210px);--story-rotate:-3deg}
  .home-story-puzzle[data-anchor="center"]{--story-left:50vw;--story-top:34vh;--story-width:clamp(175px,55vw,235px);--story-rotate:0deg}
  .home-story-puzzle[data-anchor="final"]{--story-left:50vw;--story-top:var(--story-final-top,31vh);--story-width:var(--story-final-width,clamp(210px,64vw,280px));--story-rotate:0deg}
  .home-story-puzzle__controls{bottom:-34px;gap:5px}
  .home-story-puzzle__toggle,.home-story-puzzle__counter{height:25px;font-size:9px}
  .home-story-puzzle__toggle{padding:0 8px}
  .home-story-puzzle__counter{min-width:44px;padding:0 7px}
  .home-story-puzzle.is-parked{left:calc(100vw + 48px)!important;width:min(160px,45vw)!important;transform:translate(-50%,-88%) rotate(5deg)!important}
  .home-story-puzzle.is-parked .home-story-puzzle__controls{top:94%!important;bottom:auto!important;transform:translate(-100%,-50%) rotate(-5deg)!important}
  .home-story-puzzle.is-complete .home-story-puzzle__hint{font-size:8px;height:25px}

  body.home-story-v2 .home-section,body.home-story-v2 .home-beta-section{padding-top:66px;padding-bottom:66px}
  body.home-story-v2 #jak-to-dziala,body.home-story-v2 #mozliwosci,body.home-story-v2 .home-privacy,body.home-story-v2 #faq{padding-left:0;padding-right:0}
  body.home-story-v2 #jak-to-dziala .home-section-head,body.home-story-v2 #mozliwosci .home-section-head,body.home-story-v2 .home-privacy .home-section-head,body.home-story-v2 #faq .home-section-head{max-width:76%}
  body.home-story-v2 #jak-to-dziala .home-steps{grid-template-columns:1fr;max-width:82%}
  body.home-story-v2 #jak-to-dziala .home-step{min-height:0;padding:16px}
  body.home-story-v2 #jak-to-dziala .home-step:nth-child(even){margin-left:8%}

  .home-story-gallery-wrap{padding:34px 0 80px}
  body.home-story-v2 .home-platform-gallery{width:calc(100% - 18px);border-radius:22px;padding:14px 13px 10px}
  body.home-story-v2 .home-gallery-head{display:block}
  body.home-story-v2 .home-gallery-head p{font-size:12px;line-height:1.55}
  body.home-story-v2 .home-gallery-stage{min-height:58vw;border-radius:0}
  body.home-story-v2 .home-gallery-tabs button{font-size:10px;min-height:32px;white-space:nowrap}

  .home-auth-section{padding:72px 0}
  .home-auth-section__grid{grid-template-columns:1fr;gap:24px;width:calc(100% - 18px)!important;max-width:calc(100% - 18px)!important}
  .home-auth-section__copy{max-width:78%}
  .home-auth-section__copy h2{font-size:38px}
  .home-auth-section__copy p{font-size:13px}
  body.home-story-v2 .auth-card{padding:18px;border-radius:20px}

  body.home-story-v2 .home-example-grid{max-width:84%;margin-left:auto}
  body.home-story-v2 .home-example-grid article:nth-child(even){transform:translateX(-5%)}
  body.home-story-v2 .home-challenges-catalogue .home-section-head{max-width:80%}
  body.home-story-v2 .home-challenge-card{border-radius:15px}

  .home-story-pair{grid-template-columns:1fr;width:calc(100% - 18px)!important;max-width:calc(100% - 18px)!important;gap:10px;padding-top:52px;padding-bottom:52px}
  .home-story-pair>.home-onboarding{padding:18px!important}
  body.home-story-v2 .home-onboarding-grid{grid-template-columns:1fr 1fr}

  .home-story-deep{width:calc(100% - 18px);border-radius:20px;margin-top:40px;margin-bottom:72px}
  .home-story-deep>summary{display:block;padding:20px;font-size:21px}
  .home-story-deep>summary::after{float:right;margin-top:-4px}
  .home-story-deep__intro{display:block;margin:8px 42px 0 0;font-size:11px;line-height:1.5}
  .home-story-deep__body{padding:0 14px 20px}
  .home-story-deep__body>.home-section,.home-story-deep__body>.home-feature-split,.home-story-deep__body>.home-community-section,.home-story-deep__body>.home-about-short{padding:38px 0}

  body.home-story-v2 .home-privacy .home-section-head{max-width:76%}
  body.home-story-v2 .home-privacy-grid{grid-template-columns:1fr;max-width:84%;margin-left:auto}
  body.home-story-v2 #faq .home-faq{max-width:86%;margin-left:auto}
  body.home-story-v2 .home-faq{display:block!important}
  body.home-story-v2 .home-faq__col{display:contents!important}
  body.home-story-v2 .home-faq details{margin-bottom:8px}

  .home-story-final{min-height:780px;padding-top:330px;padding-bottom:84px;background:radial-gradient(circle at 50% 33%,rgba(255,90,0,.14),transparent 17rem)}
  .home-story-final__inner{width:calc(100% - 22px)}
  .home-story-final h2{font-size:clamp(40px,12vw,58px)}
  .home-story-final p{font-size:14px}
  .home-story-final .home-story-actions{display:grid;grid-template-columns:1fr;max-width:310px;margin-left:auto;margin-right:auto}
}

@media(max-width:430px){
  body.home-story-v2 .home-hero-copy{max-width:80%}
  body.home-story-v2 .home-section-head h2{font-size:34px}
  body.home-story-v2 #jak-to-dziala .home-section-head,body.home-story-v2 #mozliwosci .home-section-head,body.home-story-v2 .home-privacy .home-section-head,body.home-story-v2 #faq .home-section-head{max-width:79%}
  body.home-story-v2 .home-example-grid{max-width:88%}
  .home-story-puzzle[data-anchor="final"]{--story-top:var(--story-final-top,29vh);--story-width:var(--story-final-width,min(67vw,270px))}
  .home-story-final{min-height:740px;padding-top:300px}
}

@media(prefers-reduced-motion:reduce){
  .home-story-puzzle{transition:none!important}
  .home-story-confetti{display:none!important}
}

/* Priorytet nad starszym home-mobile-r1530.css. */
@media(max-width:820px){
  body.home-story-v2 .home-nav-shell{position:sticky!important;top:0!important}
  body.home-story-v2 .landing-hero{padding:72px 0 92px!important}
  body.home-story-v2 .home-hero-copy h1{font-size:clamp(38px,12vw,60px)!important;line-height:.97!important;margin:9px 0 13px!important}
  body.home-story-v2 .home-main-lead{font-size:14px!important;line-height:1.65!important}
  body.home-story-v2 .home-hero-actions{grid-template-columns:1fr 1fr!important;gap:7px!important;max-width:330px}
  body.home-story-v2 .home-hero-actions .btn{font-size:9px!important;min-height:44px!important;padding:9px 7px!important}
  body.home-story-v2 .home-platform-gallery .home-gallery-stage{height:auto!important;min-height:205px!important;aspect-ratio:1.72/1!important}
  body.home-story-v2 .home-story-deep__body>.home-section,
  body.home-story-v2 .home-story-deep__body>.home-feature-split,
  body.home-story-v2 .home-story-deep__body>.home-community-section,
  body.home-story-v2 .home-story-deep__body>.home-about-short{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
}
