:root {
  --ink: #15171a;
  --dim: #5e6268;
  --hair: #d8d6cf;
  --paper: #ffffff;
  --paper-2: #f6f4ee;
  --signal: #1f5eff;
  --signal-dark: #1644b7;
  --mark: #fff0a8;
  --danger: #8d2626;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 1.18rem; line-height: 1.62; }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 44px, 43rem); margin-inline: auto; }
.wide { width: min(100% - 44px, 64rem); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 10px 14px; background: var(--ink); color: #fff; font: 700 .9rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.skip-link:focus { top: 12px; }

.topbar { border-bottom: 1px solid var(--hair); background: rgba(255,255,255,.98); }
.topbar-in { width: min(100% - 44px, 64rem); min-height: 66px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); text-decoration: none; font: 800 1.02rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; letter-spacing: -.01em; }
.back { color: var(--dim); font: 500 .84rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }

h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 16px 0 22px; font-size: clamp(2.1rem, 5.2vw, 3.25rem); }
h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 4vw, 2.25rem); }
h3 { margin: 0 0 8px; font-size: 1.12rem; }
p { margin: 0 0 20px; }
a { color: var(--signal-dark); }
a:hover { color: var(--ink); }
strong { font-weight: 700; }
.prehead { display: inline-block; color: var(--dim); font: 800 .78rem/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.small { font-size: .96rem; }
.dim { color: var(--dim); }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%); }
section { padding: 58px 0; }
.sep { max-width: 43rem; margin: 0 auto; border: 0; border-top: 1px solid var(--hair); }

.hero { padding: 46px 0 42px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px, 1fr); gap: 38px; align-items: start; }
.hero-grid h1 { font-size: clamp(2rem, 4.5vw, 2.65rem); }
.hero-photo { width: 100%; max-width: 300px; margin: 6px 0 0; justify-self: end; }
.hero-photo img, .author-photo img { display: block; width: 100%; border: 1px solid var(--hair); border-radius: 7px; }
.hero-photo figcaption { margin-top: 9px; color: var(--dim); font: 400 .82rem/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.hero-stats span { padding-top: 10px; border-top: 2px solid var(--ink); color: var(--dim); font: 400 .88rem/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.hero-stats b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.48rem; line-height: 1; }
.authority { padding: 18px 0; border-block: 1px solid var(--hair); background: var(--paper-2); }
.authority-in { display: flex; flex-wrap: wrap; gap: 7px 26px; color: var(--dim); font: 400 .88rem/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.authority strong { color: var(--ink); }

.btn { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 14px 27px; border: 0; border-radius: 7px; background: var(--signal); color: #fff; font: 800 1.02rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 var(--signal-dark); }
.btn:hover { background: var(--signal-dark); color: #fff; }
.btn-small { min-height: 44px; padding: 9px 15px; font-size: .84rem; box-shadow: none; }
.cta-block { margin-top: 28px; }
.cta-note { margin-top: 10px; color: var(--dim); font: 400 .89rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }

.check-list { margin: 26px 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.check-list li { position: relative; padding: 11px 4px 11px 30px; border-bottom: 1px solid var(--hair); }
.check-list li::before { content: '→'; position: absolute; left: 2px; top: 12px; color: var(--signal); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-weight: 800; }
.offer-list { border-top: 2px solid var(--ink); }
.offer-part { padding: 23px 0 5px; border-bottom: 1px solid var(--hair); }
.offer-part p { color: var(--dim); }
.offer-close { margin-top: 26px; padding: 18px 20px; border-left: 4px solid var(--signal); background: var(--paper-2); }
.author-intro { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; margin: 28px 0 22px; }
.author-photo { margin: 0; }
blockquote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--signal); font-size: 1.25rem; font-style: italic; line-height: 1.48; }
details { border-bottom: 1px solid var(--hair); }
summary { padding: 17px 0; font: 750 1rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; cursor: pointer; }
details p { padding-bottom: 18px; color: var(--dim); font-size: 1.04rem; }
.closing { background: var(--paper-2); border-top: 1px solid var(--hair); }

/* Order dziedziczy tę samą typografię, szerokość i rytm. */
.order-intro { padding: 42px 0 44px; }
.order-intro h1 { max-width: 42rem; font-size: clamp(2rem, 4.6vw, 2.7rem); }
.order-intro .lead { font-size: 1.17rem; line-height: 1.58; }
.price-reveal { margin-top: 26px; padding-top: 22px; border-top: 2px solid var(--ink); }
.price { margin: 0 0 8px; font: 800 clamp(3rem, 9vw, 4.2rem)/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; letter-spacing: -.045em; }
.price small { font-size: 1rem; letter-spacing: 0; }
.price-terms { color: var(--dim); font-size: 1rem; }
.purchase-section { border-block: 1px solid var(--hair); background: var(--paper-2); }
.payment-box { margin-top: 26px; padding: 26px 24px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; }
.payment-box-first { margin-top: 24px; }
.payment-heading { margin-bottom: 16px; font-size: 1.1rem; }
.payment-total { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--hair); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.payment-total strong:last-child { font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.purchase-consent { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin: 20px 0 14px; padding: 14px; border: 1px solid var(--hair); font: 400 .82rem/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.purchase-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--signal); }
.btn-pay { width: 100%; }
.btn-pay[aria-disabled='true'] { background: #d7d8da; color: #555; box-shadow: none; cursor: not-allowed; }
.pay-status { min-height: 1.5em; margin: 10px 0 0; color: var(--dim); font: 400 .82rem/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.payment-method { margin: 14px 0 25px; color: var(--dim); font-size: .96rem; }
.after-payment { margin: 14px 0 0; padding-left: 24px; }
.after-payment li { margin-bottom: 8px; }

footer { padding: 28px 0 105px; border-top: 1px solid var(--hair); color: var(--dim); font: 400 .86rem/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer a { color: var(--dim); }
.stickybar { position: fixed; inset: auto 0 0; z-index: 50; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); background: rgba(255,255,255,.98); }
.sb-price { font: 800 .96rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.sb-price small { display: block; color: var(--dim); font-size: .74rem; font-weight: 400; }

[id] { scroll-margin-top: 24px; }
.anchor-alias { display: block; height: 0; }
a, button, summary, .purchase-consent { touch-action: manipulation; -webkit-tap-highlight-color: rgba(31,94,255,.18); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; scroll-margin-bottom: 96px; }
p, li, summary { overflow-wrap: break-word; }

@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 1.08rem; }
  .wrap, .wide, .topbar-in { width: min(100% - 36px, 43rem); }
  section { padding: 48px 0; }
  .hero { padding: 34px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { max-width: 230px; justify-self: start; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats span:last-child { grid-column: 1 / -1; }
  .authority-in { display: grid; gap: 4px; }
  .author-intro { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .stickybar.is-visible { display: flex; }
  .order-intro { padding: 25px 0 34px; }
  .order-intro h1 { margin: 10px 0 14px; font-size: 2rem; }
  .order-intro .lead { font-size: 1rem; line-height: 1.48; }
  .payment-box-first { margin-top: 18px; padding: 20px 18px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .btn:not(.btn-small) { width: 100%; }
  .topbar-in { min-height: 60px; }
  .author-intro { display: block; }
  .author-photo { width: 170px; margin: 0 0 20px; }
  .payment-total { align-items: flex-start; flex-direction: column; gap: 4px; }
  blockquote { font-size: 1.12rem; }
}

@media (max-width: 350px) {
  .wrap, .wide, .topbar-in { width: min(100% - 28px, 43rem); }
  .stickybar { padding-inline: 10px; }
  .stickybar .btn { padding-inline: 12px; }
}

@media (min-width: 761px) { footer { padding-bottom: 36px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
