.bimb-ebook {
    --ebook-ink: #1f2226;
    --ebook-graphite: #2b2e31;
    --ebook-copy: #3c4147;
    --ebook-muted: #7d848b;
    --ebook-gray-50: #f6f7f8;
    --ebook-gray-100: #eeeff1;
    --ebook-gray-150: #e7e9eb;
    --ebook-gray-200: #dcdfe2;
    --ebook-radius: 18px;
    --ebook-radius-l: 26px;
    --ebook-radius-xl: 32px;
    --ebook-shadow: 0 18px 46px rgba(120, 126, 133, .16);
    color: var(--ebook-copy);
    font: 400 13px/1.75 var(--bimb-ui-font-body, Questrial, sans-serif);
    letter-spacing: .012em;
}

.bimb-ebook * { box-sizing: border-box; }
.bimb-ebook img { display: block; max-width: 100%; }
:where(.bimb-ebook) :is(figure,p,h1,h2,h3) { margin: 0; }
:where(.bimb-ebook) a { color: inherit; }
.bimb-ebook-wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: clamp(24px,3.6vw,64px); }
.bimb-ebook-section { padding-block: clamp(58px,8vw,110px); }
.bimb-ebook-eyebrow { color: var(--ebook-muted); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; }
.bimb-ebook h2 { margin-top: 12px; color: var(--ebook-ink); font-family: var(--bimb-ui-font-heading, Montserrat, sans-serif); font-size: clamp(23px,3.2vw,42px); font-weight: 500; line-height: 1.08; letter-spacing: .015em; text-transform: uppercase; }
.bimb-ebook-center { text-align: center; }
.bimb-ebook-heading { max-width: 720px; margin: 0 auto clamp(30px,3.6vw,48px); }
.bimb-ebook-heading > p { margin-top: 15px; color: var(--ebook-muted); font-size: 15px; line-height: 1.8; }

.bimb-ebook-hero { padding: clamp(26px,3vw,44px) 0 clamp(48px,6vw,86px); background: var(--ebook-gray-50); }
.bimb-ebook-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px,2.4vw,30px); color: var(--ebook-muted); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.bimb-ebook-crumbs a { text-decoration: none; transition: color .3s; }
.bimb-ebook-crumbs a:hover { color: var(--ebook-ink); }
.bimb-ebook-hero-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(26px,4vw,70px); align-items: center; }
.bimb-ebook-tag { display: inline-flex; align-items: center; gap: 9px; padding: 10px 19px; border-radius: 100px; background: var(--ebook-ink); box-shadow: 0 12px 30px rgba(31,34,38,.26); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.bimb-ebook-tag svg { width: 14px; height: 14px; fill: #fff; stroke: none; }
.bimb-ebook-hero h1 { margin-top: clamp(16px,1.8vw,24px); color: var(--ebook-ink); font-family: var(--bimb-ui-font-heading, Montserrat, sans-serif); font-size: clamp(34px,4.6vw,66px); font-weight: 500; line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; }
.bimb-ebook-hero h2 { max-width: 500px; margin-top: 14px; font-size: clamp(15px,1.5vw,19px); font-weight: 600; line-height: 1.55; text-transform: none; }
.bimb-ebook-hero h2 u { text-decoration: none; box-shadow: inset 0 -9px 0 var(--ebook-gray-100); }
.bimb-ebook-highlight { padding: 0 .06em; background-image: linear-gradient(120deg,var(--ebook-gray-200),var(--ebook-gray-100)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 34%; }
.bimb-ebook-lead { max-width: 480px; margin-top: 16px; color: var(--ebook-muted); font-size: 15px; line-height: 1.8; }
.bimb-ebook-lead p { margin-bottom: .7em; }
.bimb-ebook-mini { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.bimb-ebook-mini span { display: inline-flex; align-items: center; gap: 8px; color: var(--ebook-copy); font-size: 13px; }
.bimb-ebook-mini svg { width: 16px; height: 16px; fill: none; stroke: var(--ebook-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.bimb-ebook-cover { position: relative; aspect-ratio: 5 / 7; overflow: hidden; }
.bimb-ebook-cover .bimb-ebook-cover-image { position: absolute; top: 50%; left: 50%; width: 226%; max-width: none; height: auto; object-fit: contain; transform: translate(-50%,-50%); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.bimb-ebook-cover:hover .bimb-ebook-cover-image { transform: translate(-50%,-50%) scale(1.035); }

.bimb-ebook-buy { margin-top: clamp(24px,2.8vw,34px); padding-top: clamp(22px,2.4vw,30px); border-top: 1px solid var(--ebook-gray-200); }
.bimb-ebook-purchase { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px,2vw,28px); }
.bimb-ebook-price { display: flex; align-items: baseline; gap: 10px; }
.bimb-ebook-price b { color: var(--ebook-ink); font-size: clamp(34px,3.6vw,46px); font-weight: 600; line-height: 1; }
.bimb-ebook-price b .woocommerce-Price-amount { color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.bimb-ebook-price b .woocommerce-Price-currencySymbol { font-size: 1em; }
.bimb-ebook-price > span { color: var(--ebook-muted); font-size: 12.5px; }
.bimb-ebook-cart { margin: 0; }
.bimb-ebook .bimb-ebook-cta,
body.woocommerce .bimb-ebook .bimb-ebook-cta.button.alt { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 18px 34px; border: 1px solid var(--ebook-ink); border-radius: 6px; background: var(--ebook-ink); background-color: var(--ebook-ink); color: #fff; box-shadow: none; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; line-height: 1; text-transform: uppercase; transition: background-color .45s ease,border-color .45s ease,transform .4s ease; }
.bimb-ebook .bimb-ebook-cta svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.bimb-ebook .bimb-ebook-cta:hover,
body.woocommerce .bimb-ebook .bimb-ebook-cta.button.alt:hover { border-color: var(--ebook-graphite); background: var(--ebook-graphite); background-color: var(--ebook-graphite); color: #fff; }
.bimb-ebook-purchase--unavailable { color: var(--ebook-muted); }
.bimb-ebook-fine { width: 100%; margin-top: 12px; color: var(--ebook-muted); font-size: 12px; line-height: 1.6; }

.bimb-ebook-flow,.bimb-ebook-peek,.bimb-ebook-faq { background: #fff; }
.bimb-ebook-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.8vw,24px); }
.bimb-ebook-step { position: relative; padding: clamp(26px,3vw,38px) clamp(22px,2.4vw,32px); border: 1px solid var(--ebook-gray-150); border-radius: var(--ebook-radius-l); background: var(--ebook-gray-50); }
.bimb-ebook-step b { display: block; color: var(--ebook-gray-200); font-size: clamp(34px,4vw,54px); font-weight: 500; line-height: 1; }
.bimb-ebook-step h3 { margin: 16px 0 9px; color: var(--ebook-ink); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bimb-ebook-step p { color: var(--ebook-muted); font-size: 13.5px; line-height: 1.75; }
.bimb-ebook-step > svg { position: absolute; z-index: 2; top: 50%; right: calc(-1 * clamp(14px,1.8vw,24px) / 2 - 9px); width: 18px; height: 18px; fill: none; stroke: var(--ebook-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transform: translateY(-50%); }
.bimb-ebook-clock { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(26px,3vw,40px); color: var(--ebook-copy); font-size: 13.5px; }
.bimb-ebook-clock svg { width: 18px; height: 18px; fill: none; stroke: var(--ebook-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.bimb-ebook-peek-grid,.bimb-ebook-author-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px,4vw,64px); align-items: center; }
.bimb-ebook-editorial-image { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ebook-radius-xl); box-shadow: var(--ebook-shadow); background: var(--ebook-gray-100); }
.bimb-ebook-editorial-image img { width: 100%; height: 100%; object-fit: cover; }
.bimb-ebook-intro { max-width: 560px; margin-top: 14px; color: var(--ebook-muted); font-size: 15px; line-height: 1.8; }
.bimb-ebook-list { display: grid; gap: 10px; margin: clamp(22px,2.6vw,32px) 0 0; padding: 0; list-style: none; }
.bimb-ebook-list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border: 1px solid var(--ebook-gray-150); border-radius: var(--ebook-radius); background: var(--ebook-gray-50); }
.bimb-ebook-list svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--ebook-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.bimb-ebook-list b,.bimb-ebook-list span { display: block; }
.bimb-ebook-list b { margin-bottom: 4px; color: var(--ebook-ink); font-size: 14px; }
.bimb-ebook-list span { color: var(--ebook-muted); font-size: 13.5px; line-height: 1.7; }

.bimb-ebook-for,.bimb-ebook-author,.bimb-ebook-end { background: var(--ebook-gray-50); }
.bimb-ebook-for > .bimb-ebook-wrap > h2 { max-width: 720px; }
.bimb-ebook-for-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.8vw,24px); margin-top: clamp(26px,3vw,40px); }
.bimb-ebook-card { padding: clamp(26px,3vw,38px) clamp(22px,2.4vw,30px); border: 1px solid var(--ebook-gray-150); border-radius: var(--ebook-radius-l); background: #fff; box-shadow: 0 10px 26px rgba(120,126,133,.08); transition: transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s; }
.bimb-ebook-card:hover { box-shadow: var(--ebook-shadow); transform: translateY(-6px); }
.bimb-ebook-card h3 { margin-bottom: 10px; color: var(--ebook-ink); font-size: clamp(15px,1.5vw,18px); line-height: 1.3; }
.bimb-ebook-card p { font-size: 13.5px; line-height: 1.75; }

.bimb-ebook-band { background: #fff; }
.bimb-ebook-band-grid { display: grid; grid-template-columns: repeat(4,1fr); padding-inline: clamp(24px,3.6vw,64px); border-block: 1px solid var(--ebook-gray-150); }
.bimb-ebook-band-grid > div { padding: clamp(28px,3.2vw,44px) clamp(14px,1.6vw,24px); border-left: 1px solid var(--ebook-gray-150); text-align: center; }
.bimb-ebook-band-grid > div:first-child { border-left: 0; }
.bimb-ebook-band svg { display: block; width: 26px; height: 26px; margin: 0 auto 14px; fill: none; stroke: var(--ebook-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.bimb-ebook-band h3 { margin-bottom: 8px; color: var(--ebook-ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bimb-ebook-band p { color: var(--ebook-muted); font-size: 13.5px; line-height: 1.7; }

.bimb-ebook-author-grid { grid-template-columns: .8fr 1.2fr; }
.bimb-ebook-author p { max-width: 620px; margin-top: 16px; font-size: 15px; line-height: 1.85; }
.bimb-ebook-signature { display: block; margin-top: 20px; color: var(--ebook-ink); font: 400 30px/1 var(--bimb-ui-font-hand, Caveat, cursive); }
.bimb-ebook-faq-inner { max-width: 988px; }
.bimb-ebook-question { border-bottom: 1px solid var(--ebook-gray-150); }
.bimb-ebook-question summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; color: var(--ebook-ink); font-size: 15px; font-weight: 600; letter-spacing: .02em; cursor: pointer; list-style: none; }
.bimb-ebook-question summary::-webkit-details-marker { display: none; }
.bimb-ebook-question summary i { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ebook-gray-150); border-radius: 50%; background: var(--ebook-gray-50); font-size: 18px; font-style: normal; transition: transform .4s,background .3s; }
.bimb-ebook-question[open] summary i { background: var(--ebook-gray-100); transform: rotate(45deg); }
.bimb-ebook-question p { padding: 0 4px 22px; color: var(--ebook-muted); font-size: 14px; line-height: 1.85; }

.bimb-ebook-end-box { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(22px,3vw,48px); align-items: center; padding: clamp(26px,3vw,44px) clamp(24px,3vw,48px); border: 1px solid var(--ebook-gray-150); border-radius: var(--ebook-radius-xl); background: #fff; box-shadow: var(--ebook-shadow); }
.bimb-ebook-end-box figure { width: clamp(150px,18vw,260px); aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--ebook-gray-150); border-radius: var(--ebook-radius-l); }
.bimb-ebook-end-box figure img { width: 100%; height: 100%; object-fit: cover; }
.bimb-ebook-end-box p { max-width: 520px; margin-top: 12px; color: var(--ebook-muted); font-size: 14.5px; line-height: 1.75; }
.bimb-ebook-end-buy { min-width: min(100%,330px); }
.bimb-ebook-end-buy .bimb-ebook-purchase { justify-content: center; }
.bimb-ebook-end-buy .bimb-ebook-price { justify-content: center; width: 100%; }
.bimb-ebook-end-buy .bimb-ebook-price b { font-size: clamp(40px,4.6vw,64px); }
.bimb-ebook-end-buy .bimb-ebook-cart,.bimb-ebook-end-buy .bimb-ebook-cta { width: 100%; }
.bimb-ebook-payments { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.bimb-ebook-payments .plogo-box { display: flex; align-items: center; justify-content: center; width: 74px; height: 34px; padding: 5px 8px; border: 1px solid var(--ebook-gray-150); border-radius: 5px; background: #fff; }
.bimb-ebook-payments .plogo { display: block; width: auto; max-width: 100%; height: auto; max-height: 23px; object-fit: contain; }

.bimb-ebook-more { background: var(--ebook-gray-50); }
.bimb-ebook-more-grid { display: grid; grid-template-columns: repeat(2,minmax(0,380px)); gap: clamp(14px,1.8vw,24px); margin-top: clamp(26px,3vw,40px); }
/* Cala okladka jak w sklepie: kadr 4:5 zdjecia produktu, bez powiekszania. */
.bimb-ebook-more .pcard-ph { aspect-ratio: 4 / 5; padding: 0; background: #fff; }
.bimb-ebook-more .pcard-ph img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; }
.bimb-ebook-more .pcard:hover .pcard-ph img { transform: scale(1.025); }
.bimb-ebook-more-card { display: grid; grid-template-columns: clamp(160px,19vw,260px) 1fr; gap: clamp(18px,2.4vw,32px); align-items: center; padding: clamp(20px,2.4vw,30px); border: 1px solid var(--ebook-gray-150); border-radius: var(--ebook-radius-l); background: #fff; box-shadow: 0 10px 26px rgba(120,126,133,.08); transition: transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s; }
.bimb-ebook-more-card:hover { box-shadow: var(--ebook-shadow); transform: translateY(-6px); }
.bimb-ebook-more-image { position: relative; display: block; aspect-ratio: 5 / 7; overflow: hidden; }
.bimb-ebook-more-image img { position: absolute; top: 50%; left: 50%; width: 210%; max-width: none; height: auto; transform: translate(-50%,-50%); }
.bimb-ebook-more-card h3 { color: var(--ebook-ink); font-size: 16px; letter-spacing: .03em; text-transform: uppercase; }
.bimb-ebook-more-excerpt { margin-top: 8px; color: var(--ebook-muted); font-size: 13px; line-height: 1.7; }
.bimb-ebook-more-price { margin-top: 18px; color: var(--ebook-ink); font-size: 20px; font-weight: 600; }
.bimb-ebook-more-price del { color: var(--ebook-muted); font-size: 13px; font-weight: 400; }
.bimb-ebook-more-price ins { text-decoration: none; }
.bimb-ebook-more-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; padding: 14px 22px; border: 1px solid var(--ebook-ink); border-radius: 6px; background: var(--ebook-ink); color: #fff; font-size: 11.5px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .3s; }
.bimb-ebook-more-link:hover { background: var(--ebook-graphite); color: #fff; }

.bimb-ebook-sticky { position: fixed; z-index: 120; right: 0; bottom: 0; left: 0; border-top: 1px solid var(--ebook-gray-150); background: rgba(255,255,255,.97); box-shadow: 0 -12px 30px rgba(31,34,38,.1); opacity: 0; pointer-events: none; transform: translateY(110%); transition: opacity .35s,transform .35s; }
.bimb-ebook-sticky.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.bimb-ebook-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1560px; margin-inline: auto; padding: 12px clamp(16px,3.6vw,64px); }
.bimb-ebook-sticky-inner > div { min-width: 0; }
.bimb-ebook-sticky-inner b { display: block; overflow: hidden; color: var(--ebook-ink); font-size: 13px; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.bimb-ebook-sticky-inner > div > span { display: block; margin-top: 3px; color: var(--ebook-ink); font-size: 17px; font-weight: 600; }
.bimb-ebook-sticky-inner > div > span del { color: var(--ebook-muted); font-size: 12px; font-weight: 400; }
.bimb-ebook-sticky-inner > div > span ins { text-decoration: none; }
.bimb-ebook-sticky-inner > a { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border-radius: 6px; background: var(--ebook-ink); color: #fff; font-size: 12px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }

.bimb-ebook-reveal { opacity: 1; transform: none; }
.bimb-ebook.has-reveal .bimb-ebook-reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1); }
.bimb-ebook.has-reveal .bimb-ebook-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .bimb-ebook-hero-grid,.bimb-ebook-peek-grid,.bimb-ebook-author-grid { grid-template-columns: 1fr; }
    .bimb-ebook-editorial-image { max-width: 420px; }
    .bimb-ebook-steps,.bimb-ebook-for-grid { grid-template-columns: 1fr; }
    .bimb-ebook-step > svg { display: none; }
    .bimb-ebook-band-grid { grid-template-columns: repeat(2,1fr); }
    .bimb-ebook-end-box { grid-template-columns: 1fr; text-align: center; }
    .bimb-ebook-end-box figure { margin-inline: auto; }
    .bimb-ebook-end-box p { margin-inline: auto; }
    .bimb-ebook-more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .bimb-ebook-wrap { padding-inline: 20px; }
    .bimb-ebook-band-grid { grid-template-columns: 1fr; padding-inline: 20px; }
    .bimb-ebook-band-grid > div { border-left: 0; border-top: 1px solid var(--ebook-gray-150); }
    .bimb-ebook-band-grid > div:first-child { border-top: 0; }
    .bimb-ebook-purchase { width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
    .bimb-ebook-price { justify-content: center; }
    .bimb-ebook-cart,.bimb-ebook .bimb-ebook-cta { width: 100%; }
    .bimb-ebook-clock { align-items: flex-start; }
    .bimb-ebook-more-card { grid-template-columns: 1fr; text-align: center; }
    .bimb-ebook-more-image { width: min(100%,280px); margin-inline: auto; }
    .bimb-ebook-sticky-inner > a { padding-inline: 18px; }
    .bimb-ebook-sticky { bottom: 62px; }
}

@media (prefers-reduced-motion: reduce) {
    .bimb-ebook-reveal { opacity: 1; transform: none; transition: none; }
    .bimb-ebook-cover .bimb-ebook-cover-image,.bimb-ebook-card,.bimb-ebook .bimb-ebook-cta { transition: none; }
}
