
.story-page{--bg:#393E46;--gold:#F3DC6B;--cream:#F4F0E8;background:var(--bg);color:var(--cream);overflow:hidden}
.story-page *{box-sizing:border-box}
.story-shell{width:calc(100% - (2 * clamp(24px,7.2vw,140px)));margin:0 auto}
.story-hero{position:relative;min-height:760px;padding:clamp(185px,18vw,260px) 0 70px}
.story-hero__lines{position:absolute;top:82px;left:0;width:100%;max-width:none}
.story-hero__grid,.story-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:clamp(48px,7vw,120px);align-items:center}
.story-kicker{margin:0 0 38px;font-family:"Libre Baskerville",Georgia,serif;font-size:clamp(1.9rem,2.3vw,3rem)}
.story-page h1,.story-page h2{color:var(--gold);font-family:"Libre Baskerville",Georgia,serif;font-weight:400;line-height:1.18}
.story-page h1{max-width:980px;margin:0 0 38px;font-size:clamp(2.15rem,3.3vw,4.35rem)}
.story-page h2{margin:0 0 clamp(32px,4vw,54px);font-size:clamp(2rem,3vw,3.8rem)}
.story-hero__portrait{width:min(100%,330px);margin:0 auto;border-radius:50%;overflow:hidden}
.story-hero__portrait img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.story-section{position:relative;padding:clamp(54px,6vw,92px) 0}
.story-text{font-size:clamp(1rem,1.35vw,1.28rem);line-height:1.48}
.story-text p{margin:0 0 28px}
.full{width:100%;max-width:none}
.emphasis{color:var(--gold);font-weight:700;font-style:italic}
.visual-left{grid-template-columns:minmax(160px,230px) minmax(0,1fr)}
.visual-right{grid-template-columns:minmax(0,1fr) minmax(190px,310px)}
.story-stick{display:block;width:100%;max-width:300px;margin:auto;object-fit:contain}
.story-stick.small{max-width:180px}
.story-stick.idea{width:120px;margin:-35px 0 0 34%}
.beliefs{display:grid;grid-template-columns:minmax(260px,1fr) minmax(130px,220px) minmax(260px,1fr);gap:clamp(28px,5vw,80px);align-items:center;margin-top:34px}
.belief-column{display:grid;gap:18px}
.belief-column span{display:flex;align-items:center;justify-content:center;min-height:52px;padding:10px 28px;border:2px solid var(--cream);border-radius:999px;color:var(--gold);font-family:"Courier New",monospace;font-size:clamp(.95rem,1.4vw,1.4rem);letter-spacing:.18em;line-height:1.25;text-align:center}
.beliefs>img{width:100%;max-width:185px;margin:auto}
.story-divider img{display:block;width:100%;max-width:none}
.stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px clamp(34px,6vw,78px);margin-top:56px}
.stage{position:relative;min-height:165px}
.stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.stage>div{position:relative;z-index:1;display:flex;min-height:165px;flex-direction:column;align-items:center;justify-content:center;padding:14px 22px;color:#29313d;text-align:center}
.stage b{font-family:Georgia,serif;font-size:1.8rem;letter-spacing:.28em}
.stage h3{margin:7px 0 9px;font-size:clamp(1.05rem,1.4vw,1.35rem);letter-spacing:.28em}
.stage p{margin:0;font-size:clamp(.95rem,1.2vw,1.14rem);line-height:1.25}
.closing{margin:58px 0 0;font-size:clamp(1.25rem,2vw,2rem);line-height:1.4;text-align:center}
.story-reveal{opacity:0;transform:translateY(28px);transition:opacity .85s ease,transform .85s ease}
.story-reveal.is-visible{opacity:1;transform:translateY(0)}
body.page-template-page-my-story .site-footer,body.page-template-page-my-story-php .site-footer{background:#393E46;color:#F4F0E8}
body.page-template-page-my-story .site-footer .footer-brand img,body.page-template-page-my-story-php .site-footer .footer-brand img{content:url("../images/footer/footer-logo-light.png")}
@media(max-width:900px){
.story-hero{min-height:auto;padding-top:190px}
.story-hero__grid,.story-grid,.visual-left,.visual-right{grid-template-columns:1fr}
.story-hero__portrait{grid-row:1;width:min(72vw,330px)}
.story-stick{max-width:220px}
.beliefs{grid-template-columns:1fr}
.beliefs>img{grid-row:2}
.stages{grid-template-columns:repeat(2,minmax(0,1fr))}
.story-stick.idea{margin:10px auto 0}
}
@media(max-width:560px){
.story-shell{width:calc(100% - 32px)}
.story-hero{padding-top:150px}
.story-hero__lines{top:82px;width:160%;left:50%;transform:translateX(-50%)}
.story-page h1{font-size:clamp(2rem,9vw,2.7rem)}
.story-page h2{font-size:clamp(1.85rem,8vw,2.5rem)}
.stages{grid-template-columns:1fr}
.belief-column span{padding:10px 18px;font-size:.95rem;letter-spacing:.12em}
}
@media(prefers-reduced-motion:reduce){.story-reveal{opacity:1;transform:none;transition:none}}

.story-list{margin:0 0 28px;padding-left:1.55em;line-height:1.48}.story-list li{margin:0 0 5px;padding-left:.15em}.story-audience{align-items:center}.story-group{max-width:330px}.story-next-step__banner{position:relative;width:100%;margin-bottom:clamp(42px,5vw,62px)}.story-next-step__banner img{display:block;width:100%;min-height:120px;object-fit:fill}.story-next-step__banner h2{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:18px 30px;color:#29313d;text-align:center}.story-next-step__copy{padding-left:clamp(0px,4vw,48px);padding-right:clamp(0px,4vw,48px)}.story-actions{display:grid;grid-template-columns:minmax(220px,315px) minmax(190px,230px) minmax(190px,230px);gap:clamp(20px,3vw,38px);align-items:center;margin-top:clamp(46px,5vw,72px);padding-left:clamp(0px,4vw,48px);padding-right:clamp(0px,4vw,48px)}.story-actions .hg-button{width:100%;min-width:0}.story-home-button{position:relative;justify-self:end;overflow:hidden;box-shadow:0 0 12px rgba(243,220,107,.2),inset 0 0 0 1px rgba(243,220,107,.18);transition:transform .25s ease,box-shadow .25s ease}.story-home-button::after{content:"";position:absolute;top:-35%;left:-52%;width:38%;height:170%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);transform:skewX(-24deg);animation:storyHomeShine 4.8s ease-in-out infinite;pointer-events:none}.story-home-button:hover{transform:translateY(-2px);box-shadow:0 0 20px rgba(243,220,107,.34),0 8px 24px rgba(0,0,0,.22),inset 0 0 0 1px rgba(243,220,107,.34)}@keyframes storyHomeShine{0%,58%{left:-52%;opacity:0}65%{opacity:1}82%{left:122%;opacity:.85}100%{left:122%;opacity:0}}@media(max-width:900px){.story-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.story-home-button{grid-column:1/-1;width:min(100%,230px)!important;justify-self:center}}@media(max-width:560px){.story-next-step__banner img{min-height:94px}.story-actions{grid-template-columns:1fr;padding-left:0;padding-right:0}.story-home-button{grid-column:auto;width:100%!important}}@media(prefers-reduced-motion:reduce){.story-home-button::after{animation:none;display:none}}


/* Korekta położenia grafik i przycisku HOME */
.story-page img[src*="stick-rain.png"] {
    max-width: 306px;
}

.story-page img[src*="stick-mirror.png"] {
    max-width: 360px;
    align-self: end;
    transform: translateX(-82px);
}

.story-page .story-stick.idea {
    margin-left: 17%;
}

.story-page img[src*="stick-crossing.png"] {
    transform: translateX(-105px);
}

.story-page .story-group {
    transform: translateX(-72px);
}

.story-page .story-actions {
    grid-template-columns: minmax(220px, 315px) minmax(190px, 230px) 1fr;
}

.story-page .story-home-button {
    width: 230px !important;
    justify-self: end;
}

@media (max-width: 900px) {
    .story-page img[src*="stick-rain.png"] {
        max-width: 285px;
    }

    .story-page img[src*="stick-mirror.png"],
    .story-page img[src*="stick-crossing.png"],
    .story-page .story-group {
        transform: none;
    }

    .story-page .story-stick.idea {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .story-page img[src*="stick-rain.png"] {
        max-width: 235px;
    }

    .story-page .story-home-button {
        width: 100% !important;
    }
}


/* Dalsza korekta położenia ilustracji */
.story-page img[src*="stick-mirror.png"] {
    max-width: 360px;
    align-self: end;
    transform: translate(-160px, 70px);
}

.story-page img[src*="stick-crossing.png"] {
    max-width: 252px;
    transform: translateX(-150px);
}

.story-page .story-group {
    transform: translate(-110px, -60px);
}

@media (max-width: 900px) {
    .story-page img[src*="stick-mirror.png"],
    .story-page img[src*="stick-crossing.png"],
    .story-page .story-group {
        transform: none;
    }

    .story-page img[src*="stick-crossing.png"] {
        max-width: 230px;
    }
}

@media (max-width: 560px) {
    .story-page img[src*="stick-crossing.png"] {
        max-width: 190px;
    }
}

/* Standard przycisków Hidden Growth — Moja historia */
.story-page .story-actions .hg-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .28s ease, background .28s ease, color .28s ease,
        border-color .28s ease, box-shadow .28s ease;
}

.story-page .story-actions .hg-button::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -55%;
    left: -38%;
    width: 26%;
    height: 210%;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-260%) skewX(-23deg);
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255,255,255,.18) 34%,
        rgba(255,255,255,.68) 50%,
        rgba(255,255,255,.18) 66%,
        transparent 100%);
    filter: blur(3px);
    animation: storyButtonSheen 8.5s ease-in-out infinite;
}

.story-page .story-actions .hg-button > * {
    position: relative;
    z-index: 2;
}

.story-page .story-actions .hg-button--gold {
    color: #23272e;
    border-color: #d0ad42;
    background: linear-gradient(135deg, #f7e77f 0%, #e5c34f 48%, #c99e2f 100%);
    box-shadow: 0 10px 24px rgba(198,161,69,.30), inset 0 1px 0 rgba(255,255,255,.45);
}

.story-page .story-actions .hg-button--gold:hover,
.story-page .story-actions .hg-button--gold:focus-visible {
    color: #f4f0e8;
    border-color: #20242a;
    background: linear-gradient(135deg, #454b54 0%, #2d3239 58%, #20242a 100%);
    box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
}

.story-page .story-actions .story-home-button,
.story-page .story-actions .hg-button--outline-light {
    color: #23272e;
    border: 1.5px solid rgba(57, 62, 70, .18);
    background: linear-gradient(135deg, #fffdf7 0%, #f4f0e8 55%, #e8e1d5 100%);
    box-shadow: 0 8px 20px rgba(57, 62, 70, .14), inset 0 1px 0 rgba(255,255,255,.85);
}

.story-page .story-actions .story-home-button:hover,
.story-page .story-actions .story-home-button:focus-visible,
.story-page .story-actions .hg-button--outline-light:hover,
.story-page .story-actions .hg-button--outline-light:focus-visible {
    color: #23272e;
    border-color: #d0ad42;
    background: linear-gradient(135deg, #f7e77f 0%, #e5c34f 48%, #c99e2f 100%);
    box-shadow: 0 10px 24px rgba(198,161,69,.30), inset 0 1px 0 rgba(255,255,255,.45);
}

/* Wyłącza poprzedni, prostokątny pobłysk przycisku HOME. */
.story-page .story-home-button::after {
    display: none;
}

@keyframes storyButtonSheen {
    0%, 66%, 100% { opacity: 0; transform: translateX(-260%) skewX(-23deg); }
    70% { opacity: .72; }
    84% { opacity: .58; transform: translateX(620%) skewX(-23deg); }
    86% { opacity: 0; }
}

/* Ludzik myślący z żarówką — 100% większy. */
.story-page .story-stick.idea {
    width: 240px;
    max-width: 240px;
}

@media (max-width: 900px) {
    .story-page .story-stick.idea {
        width: min(240px, 70vw);
        max-width: min(240px, 70vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-page .story-actions .hg-button::before {
        display: none;
        animation: none;
    }
}
