/* KnitLab — dodatki do nowej treści strony (wersja Claude, 26-10-2026). Korzysta z kolorów i fontów site.css. */
.what-text { max-width: 46em; margin: 0 0 40px; }
.intent .capability:last-child { border-bottom: 1px solid var(--line); }
.how { padding: 96px 0 40px; background: var(--paper); border-block: 1px solid var(--line); }
.how .process-head { margin-bottom: 24px; }
.how-step { padding: 48px 0; border-top: 1px solid var(--line); }
.how-step:first-of-type { border-top: 0; }
.how-title { font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 18px; font-weight: 400; }
.tools-grid article { display: flex; flex-direction: column; }
.tools-grid article p { flex: 1; }
.tool-link { margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--gold); text-decoration: none; }
.tools-grid article:nth-child(2) .tool-link, .tools-grid article:nth-child(3) .tool-link,
.tools-grid article:nth-child(5) .tool-link, .tools-grid article:nth-child(6) .tool-link { color: var(--gold-soft); }
.tool-link:hover { text-decoration: underline; }
.tools-more { margin: 0; padding-bottom: 8px; text-align: center; }
.plan-badge { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border: 1px solid var(--gold); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--paper); }
.plan-badge--premium { background: var(--plum); border-color: var(--plum); color: #f6e9d8; }
.plan-note { font-size: 14px; color: var(--muted); max-width: 36em; }
.feature-toc { padding-top: 56px; }
.feature-chapter { border-top: 1px solid var(--line); }
#faq { scroll-margin-top: calc(var(--header) + 16px); }
#how, #what, #tools, .feature-chapter, .how-step { scroll-margin-top: calc(var(--header) + 16px); }
@media (max-width: 760px) {
  .how { padding: 64px 0 24px; }
  .how-step { padding: 36px 0; }
}
/* v2: 5 kroków na stronie głównej, karty poradników, strony poradników */
.process.how { background: transparent; border: 0; }
.process-steps.five-steps { grid-template-columns: repeat(5, 1fr); }
.process-head .lead { margin-top: 18px; }
.how .tools-more { margin-top: 56px; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-cards article { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); padding: 0 0 28px; }
.guide-cards figure { margin: 0 0 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-deep); }
.guide-cards figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-cards h2, .guide-cards h3 { font-family: var(--font-serif), Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; margin: 0 26px 12px; }
.guide-cards h2 a, .guide-cards h3 a { color: inherit; text-decoration: none; }
.guide-cards h2 a:hover, .guide-cards h3 a:hover { color: var(--gold); }
.guide-cards p { margin: 0 26px; color: var(--muted); flex: 1; }
.guide-cards .tool-link, .guide-cards .guide-meta { margin-left: 26px; margin-right: 26px; }
.guide-meta { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.guides-index { padding: 24px 0 96px; }
.guides-index > .kicker { display: block; margin-bottom: 28px; }
.guide-back { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--gold); text-decoration: none; }
.guide-title { font-size: clamp(40px, 5vw, 72px) !important; max-width: 16em; }
.guide-hero { margin: 0 auto 8px; max-width: 920px; }
.guide-hero img { width: 100%; height: auto; max-height: 460px; object-fit: cover; display: block; border: 1px solid var(--line); }
.guide-body { max-width: 760px; padding-top: 32px; padding-bottom: 88px; }
.guide-body h2 { font-family: var(--font-serif), Georgia, serif; font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); margin: 48px 0 16px; }
.guide-body p { font-size: 18px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; }
.guide-body strong { color: var(--ink); }
@media (max-width: 1100px) { .process-steps.five-steps { grid-template-columns: 1fr 1fr; } .guide-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .process-steps.five-steps, .guide-cards { grid-template-columns: 1fr; } }
.guide-article .letter-hero .wrap, .guide-body { max-width: 920px; margin-left: auto; margin-right: auto; }
.guide-body > * { max-width: 760px; }

/* ═════════ v3 (26-10-2026, noc): hero równo z napisami, animacje, blog bez zdjęć ═════════ */

/* Hero: panel ze zdjęciem zaczyna się na wysokości napisów i towarzyszy tekstowi przy przewijaniu */
@media (min-width: 1101px) {
  .hero { align-items: start; min-height: 0; }
  .hero-copy { justify-content: flex-start; padding-top: 72px; }
  .hero-visual { align-self: start; position: sticky; top: calc(var(--header) + 24px); margin: 72px 0;
    min-height: 0; aspect-ratio: 1448 / 1086; max-height: calc(100vh - var(--header) - 48px); }
}
.hero-sym { position: absolute; z-index: 0; width: 28px; height: 28px; fill: none; stroke: var(--gold);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0;
  animation: heroSym var(--t) var(--d) ease-in-out infinite; }
@keyframes heroSym {
  0% { opacity: 0; transform: translateY(14px) rotate(0); }
  20%, 80% { opacity: .6; }
  50% { transform: translateY(-16px) rotate(var(--r)); }
  100% { opacity: 0; transform: translateY(14px) rotate(0); }
}

/* Wstęga: płynnie przesuwający się napis */
.ribbon { overflow: hidden; justify-content: flex-start; padding-left: 0; padding-right: 0; }
.ribbon-track { display: flex; flex: none; white-space: nowrap; animation: ribbonMove 42s linear infinite; }
.ribbon-track span { flex: none; padding-right: 72px; }
@keyframes ribbonMove { to { transform: translateX(-50%); } }

/* Liczby studia */
.home-stats { margin: 0; }
.home-stats strong { font-variant-numeric: tabular-nums; }

/* Czym jest KnitLab: złota linia rysuje się nad każdym wierszem */
.intent .capability { position: relative; }
.intent .capability::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.16,.84,.28,1) .15s; }
.intent .capability.is-visible::before { transform: scaleX(1); }
.intent .capability b { transition: transform .5s ease, color .5s ease; display: inline-block; }
.intent .capability:hover b { transform: translateX(6px); color: var(--teal); }

/* Pięć kroków: animowany motyw i pulsujący numer */
.step-art { width: 92px; height: 92px; margin: -6px 0 18px; padding: 10px; background: #f3e8d6; border-radius: 50%; }
.process-steps article > span::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.process-steps article.is-visible > span::after { animation: stepPing 3.2s ease-out infinite; }
.process-steps article:nth-child(2).is-visible > span::after { animation-delay: .4s; }
.process-steps article:nth-child(3).is-visible > span::after { animation-delay: .8s; }
.process-steps article:nth-child(4).is-visible > span::after { animation-delay: 1.2s; }
.process-steps article:nth-child(5).is-visible > span::after { animation-delay: 1.6s; }
@keyframes stepPing { 0% { opacity: .8; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(1.6); } }

/* Karty poradników: animowany motyw zamiast zdjęcia */
.guide-cards .g-art { margin: 0 0 22px; aspect-ratio: 16 / 10; display: grid; place-items: center; background:
  radial-gradient(circle at 50% 55%, #f7eedf 0 38%, transparent 39%), var(--paper-deep); overflow: hidden; position: relative; transition: background-color .5s ease; }
.guide-cards .g-art::after { content: ""; position: absolute; inset: 14px; pointer-events: none; background:
  linear-gradient(var(--gold), var(--gold)) top left / 26px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) top left / 1px 26px no-repeat,
  linear-gradient(var(--gold), var(--gold)) bottom right / 26px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom right / 1px 26px no-repeat; }
.guide-cards .g-art .mo { width: 46%; transition: transform .6s cubic-bezier(.16,.84,.28,1); }
.guide-cards article { transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.guide-cards article:hover { transform: translateY(-4px); box-shadow: 0 16px 40px #17342f14; border-color: var(--gold); }
.guide-cards article:hover .g-art .mo { transform: scale(1.06); }
.guide-cards .guide-meta { margin-top: 2px; }

/* Motywy SVG */
.mo { display: block; width: 100%; height: auto; overflow: visible; }
.mo .ml { stroke: var(--teal); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mo .mg { stroke: var(--gold); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mo .mt { stroke: #cdb999; stroke-width: 1; fill: none; }
.mo .fg { fill: var(--gold); } .mo .ft { fill: var(--teal); } .mo .fp { fill: var(--plum); }
.mo .fs { fill: #efe2cc; } .mo .fpaper { fill: var(--paper); } .mo .fo { fill: #cf9f57; } .mo .mo-sky { fill: #e9d6b4; }
.mo .mo-wrap { stroke: #ffffffa6; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.mo-yarn .mo-wrap { stroke: var(--gold); }
.mo .mo-hatch { stroke: #d8c7af; stroke-width: 1; fill: none; }
.mo .mo-dash { stroke: var(--muted); stroke-dasharray: 4 4; fill: none; stroke-width: 1.4; opacity: .7; }
.mo .mo-rope { stroke: var(--teal); stroke-width: 10; fill: none; stroke-linecap: round; }
.mo .mo-rope-g { stroke: var(--gold); stroke-width: 10; fill: none; stroke-linecap: round; }
.mo .mo-float-g { stroke: var(--gold); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.mo .mo-float-t { stroke: var(--teal); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.mo .mo-dashed-c { stroke-dasharray: 3 4; }

.mo .md { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.mo .mp { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-visible .mo .md, .mo-live .mo .md { animation: moDraw 7s var(--d, 0s) cubic-bezier(.45,.05,.3,1) infinite both; }
.is-visible .mo .mp, .mo-live .mo .mp { animation: moPop 7s var(--d, 0s) cubic-bezier(.2,.8,.3,1.2) infinite both; }
.mo .md.mo-dashed { stroke-dasharray: 4 4; stroke-dashoffset: 0; opacity: 0; }
.is-visible .mo .md.mo-dashed, .mo-live .mo .md.mo-dashed { animation-name: moFade; }
@keyframes moDraw { 0% { stroke-dashoffset: 1; opacity: 1; } 30% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes moPop { 0% { opacity: 0; transform: scale(.3); } 8% { opacity: 1; transform: scale(1); } 86% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes moFade { 0% { opacity: 0; } 15%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }

.mo .mo-slide { animation: moSlide 3.2s ease-in-out infinite alternate; }
@keyframes moSlide { to { transform: translateX(84px); } }
.mo .mo-tape { transform-box: fill-box; transform-origin: left center; animation: moTape 4s ease-in-out infinite alternate; }
@keyframes moTape { from { transform: scaleX(.18); } to { transform: scaleX(1); } }
.mo .mo-breathe { transform-origin: 60px 64px; animation: moBreathe 3.6s ease-in-out infinite; }
@keyframes moBreathe { 50% { transform: scale(.93); } }
.mo .mo-hl { animation: moRows 7s steps(6) infinite; }
@keyframes moRows { to { transform: translateY(-84px); } }
.mo .mo-dot { animation: moDot 1.1666s linear infinite; }
@keyframes moDot { to { transform: translateX(-80px); } }
.mo .mo-rock { transform-origin: 60px 60px; animation: moRock 3s ease-in-out infinite alternate; }
@keyframes moRock { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.mo .mo-bob { animation: moBob 1.4s ease-in-out infinite alternate; }
@keyframes moBob { to { transform: translateY(7px); } }
.mo .mo-sl-l { animation: moSlL 2.6s ease-in-out infinite alternate; }
.mo .mo-sl-r { animation: moSlR 2.6s ease-in-out infinite alternate; }
@keyframes moSlL { to { transform: translateX(-7px); } }
@keyframes moSlR { to { transform: translateX(7px); } }
.mo .mo-wave { animation: moBob 2s ease-in-out infinite alternate; }
.mo .mo-grey { animation: moGrey 5s ease-in-out infinite; }
@keyframes moGrey { 0%, 35% { filter: grayscale(0); } 50%, 85% { filter: grayscale(1); } 100% { filter: grayscale(0); } }
.mo .mo-scan { animation: moScan 3.5s ease-in-out infinite alternate; }
@keyframes moScan { from { transform: translateX(0); } to { transform: translateX(48px); } }
.mo .mo-wavecell { transform-box: fill-box; transform-origin: center; animation: moWaveCell 3.2s var(--d) ease-in-out infinite; }
@keyframes moWaveCell { 50% { opacity: .45; transform: scale(.82); } }
.mo .mo-spin { transform-origin: 50px 56px; animation: moSpin 26s linear infinite; }
@keyframes moSpin { to { transform: rotate(360deg); } }
.mo .mo-needle { transform-origin: 60px 96px; animation: moNeedle 4s ease-in-out infinite; }
@keyframes moNeedle { 0%, 15% { transform: rotate(-70deg); } 35%, 85% { transform: rotate(40deg); } 100% { transform: rotate(-70deg); } }
.mo .mo-drop { animation: moDrop 4s ease-in-out infinite; }
@keyframes moDrop { 0% { opacity: 0; transform: translateY(-26px); } 22% { opacity: 1; transform: translateY(0); } 28% { transform: translateY(-4px); } 34%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
.mo .mo-blink { animation: moBlink 2.4s ease-in-out infinite; }
@keyframes moBlink { 50% { fill: #e2bd78; } }

/* Blog — strona główna bloga */
.blog-intro { max-width: 46em; margin: 0 0 40px; }
.guides-index .guide-cards { grid-template-columns: repeat(3, 1fr); }
.glossary { padding: 96px 0; background: var(--paper); border-top: 1px solid var(--line); }
.glossary h2 { font-size: clamp(36px, 4.5vw, 58px); margin: 12px 0 16px; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.glossary-grid dl { margin: 0; padding: 30px 30px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background .4s ease; }
.glossary-grid dl::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.16,.84,.28,1); }
.glossary-grid dl:hover { background: #f6ecdc; }
.glossary-grid dl:hover::before { transform: scaleX(1); }
.glossary-grid dt { font-family: var(--font-serif), Georgia, serif; font-size: 28px; color: var(--teal); margin: 0 0 10px; }
.glossary-grid dt i { display: block; font-style: normal; font-family: inherit; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.glossary-grid dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Poradnik — układ bez zdjęć */
.guide-article .letter-hero { min-height: 0; padding: 72px 0 40px; }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding-top: 24px; padding-bottom: 72px; }
.guide-toc { position: sticky; top: calc(var(--header) + 28px); align-self: start; }
.guide-toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.45; transition: color .3s, border-color .3s; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--gold); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.guide-toc a:hover, .guide-toc a.is-current { color: var(--teal); border-left-color: var(--gold); }
.guide-keys { position: relative; background: var(--teal); color: #f4e6d0; padding: 34px 40px 30px; margin: 0 0 24px; overflow: hidden; }
.guide-keys::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid #d4b06a55; animation: keysRing 9s ease-in-out infinite; }
@keyframes keysRing { 50% { transform: scale(1.25) translate(-10px, 10px); } }
.guide-keys .kicker { color: var(--gold-soft); }
.guide-keys ul { list-style: none; margin: 16px 0 0; padding: 0; }
.guide-keys li { position: relative; padding: 0 0 12px 28px; line-height: 1.6; font-size: 16px; }
.guide-keys li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border: 1.5px solid var(--gold-soft); transform: rotate(45deg); }
.g-sec { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 44px; padding: 52px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 16px); }
.guide-keys + .g-sec { border-top: 0; }
.g-ico { position: sticky; top: calc(var(--header) + 32px); align-self: start; width: 148px; height: 148px; padding: 16px; background: #f3e8d6; border-radius: 50%; box-shadow: inset 0 0 0 1px #e3d2b6; }
.g-num { display: block; font-family: var(--font-serif), Georgia, serif; font-size: 18px; color: var(--gold); margin-bottom: 6px; }
.g-txt h2 { font-family: var(--font-serif), Georgia, serif; font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; margin: 0 0 18px; }
.g-txt p, .g-txt li { font-size: 18px; line-height: 1.8; color: var(--muted); }
.g-txt p { margin: 0 0 16px; }
.g-txt ul { margin: 0 0 18px; padding-left: 1.2em; }
.g-txt li { margin-bottom: 6px; }
.g-txt li::marker { color: var(--gold); }
.g-txt strong { color: var(--ink); }
.g-faq { padding: 52px 0 0; border-top: 1px solid var(--line); }
.g-faq h2 { margin-top: 10px; }
.guide-related { padding: 24px 0 96px; }
.guide-related > .kicker { display: block; margin-bottom: 24px; }

@media (max-width: 1100px) {
  .guides-index .guide-cards, .glossary-grid { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-toc { position: static; margin-bottom: 32px; }
}
@media (max-width: 700px) {
  .guides-index .guide-cards, .glossary-grid { grid-template-columns: 1fr; }
  .g-sec { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .g-ico { position: static; width: 104px; height: 104px; padding: 12px; }
  .guide-keys { padding: 28px 24px 22px; }
  .g-txt p, .g-txt li { font-size: 17px; }
  .glossary { padding: 64px 0; }
  .step-art { width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .mo *, .hero-sym, .ribbon-track, .guide-keys::after, .process-steps article > span::after { animation: none !important; }
  .mo .md { stroke-dashoffset: 0; } .mo .mp, .mo .md.mo-dashed { opacity: 1; }
  .hero-sym { opacity: .4; }
}
.guide-article .letter-hero .wrap { max-width: none; }

/* v5: wyróżniona sekcja — baza raportów i automatyczne rozmieszczanie */
.lib-spot { position: relative; padding: 104px 0; background: var(--teal); color: #f4e6d0; overflow: hidden; }
.lib-spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: linear-gradient(#d4b06a 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, #d4b06a 1px, transparent 1px) 0 0 / 28px 28px;
  animation: libGrid 30s linear infinite; }
@keyframes libGrid { to { background-position: 0 280px, 280px 0; } }
.lib-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.lib-spot .kicker { color: var(--gold-soft); }
.lib-spot h2 { font-size: clamp(36px, 4.4vw, 58px); color: #fbf3e4; margin: 12px 0 20px; }
.lib-spot .lead { color: #e9dcc5; max-width: 34em; }
.lib-list { list-style: none; counter-reset: lib; margin: 28px 0 22px; padding: 0; }
.lib-list li { counter-increment: lib; position: relative; padding: 0 0 16px 50px; line-height: 1.6; color: #f4e6d0; }
.lib-list li::before { content: counter(lib); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--gold-soft); color: var(--gold-soft); font-family: var(--font-serif), Georgia, serif; font-size: 16px; }
.lib-copy.is-visible .lib-list li { animation: libItem .7s cubic-bezier(.16,.84,.28,1) both; }
.lib-copy.is-visible .lib-list li:nth-child(2) { animation-delay: .15s; }
.lib-copy.is-visible .lib-list li:nth-child(3) { animation-delay: .3s; }
.lib-copy.is-visible .lib-list li:nth-child(4) { animation-delay: .45s; }
@keyframes libItem { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.lib-plans { font-size: 13px; letter-spacing: .04em; color: var(--gold-soft); margin: 0 0 26px; }
.lib-shot { position: relative; margin: 0; padding: 14px; background: #fbf5ea; box-shadow: 0 30px 80px #00000040; overflow: hidden; }
.lib-shot::after { content: ""; position: absolute; inset: 6px; pointer-events: none; background:
  linear-gradient(var(--gold), var(--gold)) top left / 34px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) top left / 1px 34px no-repeat,
  linear-gradient(var(--gold), var(--gold)) bottom right / 34px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom right / 1px 34px no-repeat; }
.lib-shot img { display: block; width: 100%; height: auto; }
.lib-scan { position: absolute; left: 14px; right: 14px; top: 14px; height: 22%; pointer-events: none;
  background: linear-gradient(180deg, transparent, #bd8f4526 70%, #bd8f4566); border-bottom: 2px solid var(--gold); opacity: 0; }
.lib-shot.is-visible .lib-scan { animation: libScan 5.5s cubic-bezier(.45,.05,.3,1) 0.6s infinite; }
@keyframes libScan { 0% { opacity: 0; transform: translateY(330%); } 12% { opacity: 1; } 70% { opacity: 1; transform: translateY(0); } 85%, 100% { opacity: 0; transform: translateY(0); } }
@media (max-width: 1000px) { .lib-grid { grid-template-columns: 1fr; gap: 40px; } .lib-spot { padding: 72px 0; } }
@media (prefers-reduced-motion: reduce) { .lib-spot::before, .lib-scan, .lib-list li { animation: none !important; } .lib-list li { opacity: 1; } }
@media (min-width: 1001px) { .lib-grid { align-items: start; } .lib-shot { position: sticky; top: calc(var(--header) + 32px); margin-top: 34px; } }

/* v6 SEO: nowe bloki treści */
.fw-more h2 { font-size: clamp(34px, 4vw, 52px); margin: 12px 0 36px; }
.fw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fw-grid article { padding: 34px 32px 36px 0; border-bottom: 1px solid var(--line); }
.fw-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.fw-grid article:nth-child(even) { padding-left: 32px; }
.fw-grid h3 { font-family: var(--font-serif), Georgia, serif; font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.fw-grid p { color: var(--muted); margin: 0 0 14px; }
.gal-more h2 { font-size: clamp(34px, 4vw, 52px); margin: 12px 0 18px; max-width: 16em; }
.gal-more .lead { max-width: 46em; }
.gal-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.ct-faq { padding-top: 40px; }
.g-feat { margin-top: 22px; }
@media (max-width: 760px) { .fw-grid { grid-template-columns: 1fr; } .fw-grid article { padding: 28px 0 !important; border-right: 0 !important; } }

/* v6: kontrast napisów (dostępność) */
.kicker { color: #8b6328; }
.newsletter .kicker, .lib-spot .kicker, .guide-keys .kicker, .page-cta .kicker { color: var(--gold-soft); }
.language-switch button { color: #6f6456; }
.footer-meta small { opacity: .9; }
.feature-toc b, .letter-toc b, .letter-chapter > b { color: #8b6328; }
.field span, .gallery-intro-note > span, .gallery-editorial figcaption > span, .collection-lookbook figcaption > span { color: #8b6328; }
.tool-link, .plan-tag { color: #8b6328; }
.lib-spot .tool-link, .tools-grid article:nth-child(n) .tool-link { color: #8b6328; }
.plan.is-featured .plan-tag { color: var(--gold-soft); }

/* ═════════ v7: motywy w stylu rysunku technicznego — ciemnozielone kafle, cienka złota i kremowa kreska ═════════ */
.step-art, .guide-cards .g-art, .g-ico { --ink-c: #f1e5cf; --gold-c: #d9b46c; --grid-c: rgba(217,180,108,.22);
  background: #234f3d radial-gradient(120% 90% at 50% 0%, #2d5e4a 0%, #234f3d 55%, #1b4033 100%); }
.step-art { width: 112px; height: 112px; border-radius: 2px; padding: 8px; margin: -4px 0 20px; position: relative;
  box-shadow: 0 10px 26px #234f3d33; }
.step-art::after, .g-ico::after { content: ""; position: absolute; inset: 5px; pointer-events: none; background:
  linear-gradient(var(--gold-c), var(--gold-c)) top left / 12px 1px no-repeat, linear-gradient(var(--gold-c), var(--gold-c)) top left / 1px 12px no-repeat,
  linear-gradient(var(--gold-c), var(--gold-c)) bottom right / 12px 1px no-repeat, linear-gradient(var(--gold-c), var(--gold-c)) bottom right / 1px 12px no-repeat; }
.guide-cards .g-art { background-image: radial-gradient(120% 90% at 50% 0%, #2d5e4a 0%, #234f3d 55%, #1b4033 100%); }
.guide-cards .g-art::before { content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background: linear-gradient(#d9b46c 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, #d9b46c 1px, transparent 1px) 0 0 / 18px 18px; }
.guide-cards .g-art::after { background:
  linear-gradient(#d9b46c, #d9b46c) top left / 26px 1px no-repeat, linear-gradient(#d9b46c, #d9b46c) top left / 1px 26px no-repeat,
  linear-gradient(#d9b46c, #d9b46c) bottom right / 26px 1px no-repeat, linear-gradient(#d9b46c, #d9b46c) bottom right / 1px 26px no-repeat; }
.guide-cards .g-art .mo { width: 52%; position: relative; }
.g-ico { position: sticky; border-radius: 2px; box-shadow: 0 14px 34px #234f3d30; }
@media (max-width: 700px) { .g-ico { position: relative; } }
.g-ico { overflow: hidden; }

.step-art .mo .ml, .g-art .mo .ml, .g-ico .mo .ml { stroke: var(--ink-c); stroke-width: 1.25; }
.step-art .mo .mg, .g-art .mo .mg, .g-ico .mo .mg { stroke: var(--gold-c); stroke-width: 1.35; }
.step-art .mo .mt, .g-art .mo .mt, .g-ico .mo .mt { stroke: var(--grid-c); stroke-width: .7; }
.step-art .mo .fg, .g-art .mo .fg, .g-ico .mo .fg { fill: var(--gold-c); }
.step-art .mo .ft, .g-art .mo .ft, .g-ico .mo .ft { fill: var(--ink-c); }
.step-art .mo .fp, .g-art .mo .fp, .g-ico .mo .fp { fill: #c99bb8; }
.step-art .mo .fs, .g-art .mo .fs, .g-ico .mo .fs { fill: rgba(241,229,207,.07); }
.step-art .mo .fpaper, .g-art .mo .fpaper, .g-ico .mo .fpaper { fill: #1f4838; }
.step-art .mo .mo-sky, .g-art .mo .mo-sky, .g-ico .mo .mo-sky { fill: rgba(241,229,207,.16); }
.step-art .mo .fo, .g-art .mo .fo, .g-ico .mo .fo { fill: #e8c98a; }
.step-art .mo .mo-rope, .g-art .mo .mo-rope, .g-ico .mo .mo-rope { stroke: var(--ink-c); stroke-width: 5; }
.step-art .mo .mo-rope-g, .g-art .mo .mo-rope-g, .g-ico .mo .mo-rope-g { stroke: var(--gold-c); stroke-width: 5; }
.step-art .mo .mo-wrap, .g-art .mo .mo-wrap, .g-ico .mo .mo-wrap { stroke: rgba(4,58,49,.7); stroke-width: 1; }
.step-art .mo .mo-hatch, .g-art .mo .mo-hatch, .g-ico .mo .mo-hatch { stroke: rgba(217,180,108,.3); }
.step-art .mo .mo-dash, .g-art .mo .mo-dash, .g-ico .mo .mo-dash { stroke: rgba(241,229,207,.5); }
.step-art .mo .mo-float-t, .g-art .mo .mo-float-t, .g-ico .mo .mo-float-t { stroke: var(--ink-c); stroke-width: 1.4; }
.step-art .mo .mo-float-g, .g-art .mo .mo-float-g, .g-ico .mo .mo-float-g { stroke: var(--gold-c); stroke-width: 1.4; }
.mo .mk { stroke: var(--ink-c, #17342f); stroke-width: .75; fill: none; opacity: .55; stroke-linecap: round; stroke-linejoin: round; }
.mo .mx { fill: var(--gold-c, #8b6328); font-family: var(--font-serif), Georgia, serif; font-size: 6.4px; letter-spacing: .04em; }
.mo .mhl { fill: var(--gold-c, #bd8f45); opacity: .2; }
.mo .mfaint { opacity: .35; fill: none; }
.mo .mpage { fill: #1f4838; }
.mo .fcream { fill: var(--ink-c, #17342f); }
.mo .mo-hl12 { animation: moRows12 7s steps(6) infinite; }
@keyframes moRows12 { to { transform: translateY(-72px); } }
.mo .mo-spin2 { transform-origin: 52px 54px; animation: moSpin 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mo .mo-hl12, .mo .mo-spin2 { animation: none !important; } }

/* v8: kolory jak w aplikacji — ciemna zieleń #234f3d, szałwiowe przyciski #526f5e, tło #faf7f0 */
.btn-primary { background: #526f5e; color: #fffaf0; border-color: #526f5e; }
.btn-primary:hover { background: #234f3d; border-color: #234f3d; color: #fffaf0; }
.guide-keys { background: #234f3d; }

/* ═════════ v9: bez zdjęcia w hero i bez małych ilustracji — animowane nagłówki ═════════ */
.hero { grid-template-columns: 1fr; min-height: 0; }
@media (min-width: 1101px) { .hero-copy { padding: 120px 8vw 110px; max-width: 1400px; } }
.hero h1 { font-size: clamp(60px, 8.4vw, 136px); max-width: 12.5em; line-height: .98; }
.hero .lead { max-width: 44em; font-size: 19px; }
.hero::after { content: ""; display: block; height: 1px; margin: 0 8vw; background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0); transform-origin: left; animation: lineDraw 1.6s 1.1s cubic-bezier(.16,.84,.28,1) both; }

/* Litery wjeżdżają spod niewidocznej krawędzi, słowo po słowie */
.headline-word { overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.headline-char { opacity: 1; filter: none; transform: translateY(108%) rotate(4deg); transform-origin: 0 100%;
  transition: transform .9s cubic-bezier(.19,1,.22,1); transition-delay: calc(var(--char-index) * 22ms); }
.letter-heading.is-visible .headline-char, h1.letter-heading .headline-char { transform: none; }
h1.letter-heading .headline-char { animation: charUp 1s cubic-bezier(.19,1,.22,1) both; animation-delay: calc(var(--char-index) * 26ms + .1s); transition: none; }
@keyframes charUp { from { transform: translateY(108%) rotate(4deg); } to { transform: none; } }
/* Złota fala na kursywie w nagłówku głównym */
.hero h1 em .headline-char { animation: charUp 1s cubic-bezier(.19,1,.22,1) both, goldWave 5s ease-in-out infinite;
  animation-delay: calc(var(--char-index) * 26ms + .1s), calc(var(--char-index) * 70ms + 2s); }
@keyframes goldWave { 0%, 100% { color: var(--gold); } 45% { color: #ecd393; text-shadow: 0 0 18px #ecd39355; } 60% { color: var(--gold); } }
/* Złota linia rysuje się pod nagłówkami sekcji */
h2.display.letter-heading::after { content: ""; display: block; width: 72px; height: 1px; margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.19,1,.22,1) .45s; }
h2.display.letter-heading.is-visible::after { transform: scaleX(1); }
.lib-spot h2.display.letter-heading::after, .newsletter h2.display::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.newsletter h2.display.letter-heading::after { margin-left: auto; margin-right: auto; }

/* Karty poradników: numer zamiast obrazka */
.guide-cards article { padding-top: 30px; border-top: 2px solid var(--teal); }
.g-no { display: block; margin: 0 26px 18px; font-family: var(--font-serif), Georgia, serif; font-size: 64px; line-height: 1; color: var(--gold);
  font-style: italic; transition: transform .6s cubic-bezier(.19,1,.22,1), color .4s; }
.guide-cards article:hover .g-no { transform: translateX(8px); color: var(--teal); }

/* Sekcje poradnika: duży numer zamiast rysunku */
.g-sec { grid-template-columns: 120px minmax(0, 1fr); }
.g-big { position: sticky; top: calc(var(--header) + 32px); align-self: start; font-family: var(--font-serif), Georgia, serif; font-style: italic;
  font-size: 88px; line-height: .9; color: var(--gold); opacity: .9; }
.g-txt h2.display { font-size: clamp(32px, 3.4vw, 46px); margin: 0 0 20px; }
@media (max-width: 700px) { .g-sec { grid-template-columns: 1fr; } .g-big { position: static; font-size: 56px; } }

@media (prefers-reduced-motion: reduce) {
  .headline-char, h1.letter-heading .headline-char, .hero h1 em .headline-char { transform: none !important; animation: none !important; }
  .hero::after, h2.display.letter-heading::after { transform: none !important; animation: none !important; }
}

/* v11: mockup aplikacji (Studio PDF) pod nagłówkiem — okno bez paska adresu, przechylone, prostuje się przy przewijaniu */
.hero-shot { padding: 0 8vw 110px; perspective: 1800px; }
.mock { margin: 0 auto; max-width: 1500px; border-radius: 14px; overflow: hidden; background: #234f3d;
  box-shadow: 0 50px 120px -30px #17342f66, 0 18px 40px -20px #17342f55, 0 0 0 1px #234f3d;
  transform: rotateX(var(--tilt, 14deg)) translateY(var(--lift, 30px)); transform-origin: 50% 0;
  transition: transform .15s linear; animation: mockIn 1.4s cubic-bezier(.19,1,.22,1) .9s both; }
@keyframes mockIn { from { opacity: 0; } to { opacity: 1; } }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; background: #1b4033; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #faf7f033; }
.mock-bar i:first-child { background: #d9b46c; }
.mock-bar span { margin-left: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #cfc6b6; }
.mock img { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .hero-shot { padding: 0 18px 72px; } .mock { border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { .mock { transform: none !important; animation: none; } }

/* v12: mockup obok nagłówka (po prawej), nagłówek pojawia się litera po literze */
@media (min-width: 1101px) {
  .hero { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; column-gap: 3vw; }
  .hero-copy { padding: 96px 0 96px 7vw; max-width: none; }
  .hero h1 { font-size: clamp(50px, 5.2vw, 92px); max-width: none; }
  .hero .lead { font-size: 17px; }
  .hero-shot { padding: 150px 0 96px 0; margin-right: -2vw; perspective: 1600px; }
  .mock { transform: rotateY(var(--tilt, -12deg)) rotateX(3deg); transform-origin: 0 50%; border-radius: 12px 0 0 12px; }
  .hero::after { grid-column: 1 / -1; }
}
/* litera po literze: każda litera pojawia się po kolei, jak pisana */
.hero h1.letter-heading .headline-char { transform: none; opacity: 0; filter: blur(4px);
  animation: charType .5s ease forwards; animation-delay: calc(var(--char-index) * 65ms + .25s); }
.hero h1 em .headline-char { animation: charType .5s ease forwards, goldWave 5s ease-in-out infinite;
  animation-delay: calc(var(--char-index) * 65ms + .25s), calc(var(--char-index) * 70ms + 4s); }
@keyframes charType { from { opacity: 0; filter: blur(4px); transform: translateY(.12em); } to { opacity: 1; filter: none; transform: none; } }
.hero h1 .headline-word { overflow: visible; }
.hero h1.display { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero h1 .headline-char { opacity: 1 !important; filter: none !important; animation: none !important; } }

/* v16: notka pod przyciskiem testu */
.plan .trial-note { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: #5f6560; }

/* v18: media społecznościowe w stopce */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-grid .footer-social a { display: inline-block; margin: 0; padding: 8px 16px; border: 1px solid rgba(212,176,106,.55); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #f1e6d3; }
.footer-grid .footer-social a:hover, .footer-grid .footer-social a:focus-visible { border-color: var(--gold-soft); color: var(--gold-soft); }
