/* „Więcej pewności. Mniej pracy.” – ciemna sekcja z kafelkami (układ jak w szablonie AlphaOS) */
.pw-section { padding: 110px 20px; background: #0b1713; color: #ffffff; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; }
.pw-wrap { max-width: 1200px; margin: 0 auto; }
.pw-head { max-width: 760px; margin: 0 auto; text-align: center; }
.pw-title { margin: 0; font-size: 46px; line-height: 52px; font-weight: 500; letter-spacing: -1.8px; color: #ffffff; }
.pw-lead { margin: 16px auto 0; max-width: 520px; font-size: 16px; line-height: 24px; color: #a9b8b1; }

.pw-row { display: grid; gap: 20px; margin-top: 20px; }
.pw-row-3 { margin-top: 56px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pw-row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.pw-card { position: relative; overflow: hidden; min-height: 400px; padding: 30px; border-radius: 20px; background: #16231e; display: flex; flex-direction: column; }
.pw-card h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.3px; color: #ffffff; }
.pw-card p { margin: 10px 0 0; font-size: 14px; line-height: 21px; color: #a9b8b1; }

/* 1. Kafelek z poświatą i stosem powiadomień */
.pw-glow { background: radial-gradient(circle at 0% 100%, #2fbf75 0%, transparent 55%), radial-gradient(circle at 100% 80%, #c6f0b8 0%, transparent 50%), linear-gradient(170deg, #f3f8f2 0%, #dff2e6 55%, #a7dfc1 100%); }
.pw-glow h3 { color: #101c19; }
.pw-glow p { color: #3f4a46; }
.pw-stack { position: relative; margin: 26px -30px -30px 0; flex: 1; min-height: 190px; }
.pw-note { position: absolute; left: 0; right: 0; top: 0; padding: 18px 20px; border-radius: 16px 0 0 0; background: #ffffff; color: #101c19; box-shadow: 0 10px 30px rgba(16, 28, 25, .12); transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .5s; transform: translate(calc(var(--n, 0) * 18px), calc(var(--n, 0) * 16px)) scale(calc(1 - var(--n, 0) * .04)); opacity: calc(1 - var(--n, 0) * .3); z-index: calc(10 - var(--n, 0)); }
.pw-note.is-out { transform: translate(-30px, -24px) scale(.96); opacity: 0; }
.pw-note-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #0a7a48; }
.pw-note b { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; }
.pw-note > span:not(.pw-note-k) { display: block; margin-top: 3px; font-size: 12.5px; color: #5f6b66; }
.pw-note em { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-style: normal; font-size: 11.5px; font-weight: 500; color: #2f3d38; }
.pw-note em i { width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #0c9256; }
.pw-note em i:first-child { margin-left: 0; }

/* 2. Schemat eksportu */
.pw-flowcard { justify-content: space-between; }
.pw-flow { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.pw-flow-t { margin-bottom: 18px; font-size: 14px; font-weight: 600; color: #7d8a85; }
.pw-step { padding: 11px 18px; border-radius: 10px; background: #0b1713; border: 1px solid #24342e; font-size: 13.5px; font-weight: 600; color: #ffffff; transition: border-color .35s, background .35s, box-shadow .35s; }
.pw-step.is-on { border-color: #2fbf75; background: #10261c; box-shadow: 0 0 0 4px rgba(47, 191, 117, .12); }
.pw-step.is-done::after { content: " ✓"; color: #8fd3ae; }
.pw-link { position: relative; width: 2px; height: 22px; background: #24342e; overflow: hidden; }
.pw-link span { position: absolute; left: 0; top: -100%; width: 2px; height: 100%; background: #2fbf75; }
.pw-link.is-on span { animation: pw-down .45s ease forwards; }
@keyframes pw-down { to { top: 0; } }
.pw-txt { margin-top: 24px; }

/* 3. Lista inwestycji */
.pw-list { margin-top: 24px; padding: 14px; border-radius: 14px; background: #1e2c26; display: flex; flex-direction: column; gap: 10px; }
.pw-list-t { padding: 2px 4px 4px; font-size: 13px; font-weight: 600; color: #a9b8b1; }
.pw-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 10px; background: #2a3933; font-size: 14px; color: #e6ece9; transition: background .4s, color .4s; }
.pw-item em { padding: 2px 8px; border-radius: 4px; background: #3a4a43; color: #c9d4cc; font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; transition: background .4s, color .4s; }
.pw-item.is-on { background: #ffffff; color: #101c19; }
.pw-item.is-on em { background: #dcf3e5; color: #0a7a48; }

/* 4. Narzędzia – przewijane kafelki */
.pw-tools { padding: 0; justify-content: space-between; }
.pw-marquee { display: flex; flex-direction: column; gap: 12px; padding-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pw-track { display: flex; gap: 12px; width: max-content; animation: pw-scroll 34s linear infinite; }
.pw-track-rev { animation-direction: reverse; animation-duration: 40s; }
@keyframes pw-scroll { to { transform: translateX(-50%); } }
.pw-tile { flex: none; width: 76px; height: 76px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #24342e; color: #8fd3ae; }
.pw-tile img { width: 34px; height: 34px; }
.pw-tile svg { width: 30px; height: 30px; }
.pw-tile-t { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #c6f0b8; }
.pw-tile.is-txt { font-size: 14px; font-weight: 700; color: #c6f0b8; }
.pw-tools .pw-txt { padding: 0 30px 30px; }

/* 5. Zdjęcie z tekstem */
.pw-photo { padding: 0; justify-content: flex-end; }
.pw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.pw-photo:hover img { transform: scale(1.08); }
.pw-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 15, 0) 25%, rgba(8, 20, 15, .65) 55%, rgba(8, 20, 15, .92) 100%); }
.pw-photo-txt { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 28px; align-items: end; padding: 30px; }
.pw-photo-txt h3 { font-size: 30px; line-height: 34px; font-weight: 500; letter-spacing: -1px; }
.pw-photo-txt p { margin: 0; color: #e6ece9; }
.pw-photo-txt a { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: #a8e6c0; font-size: 14px; font-weight: 500; text-decoration: none; }
.pw-photo-txt a svg { width: 13px; height: 13px; transition: transform .3s; }
.pw-photo-txt a:hover svg { transform: translateX(3px); }

/* Wejście */
.pw-wrap.is-ready .pw-card { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .8s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.pw-wrap.is-in .pw-card { opacity: 1; translate: 0 0; }

@media (max-width: 1024px) {
    .pw-row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pw-row-3 .pw-card:last-child { grid-column: 1 / -1; min-height: 0; }
    .pw-row-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .pw-section { padding: 64px 16px; }
    .pw-title { font-size: 30px; line-height: 35px; letter-spacing: -1px; }
    .pw-row-3 { margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
    .pw-row, .pw-row-3 { gap: 14px; }
    .pw-card { min-height: 0; padding: 24px; }
    .pw-stack { margin: 22px -24px -24px 0; min-height: 180px; }
    .pw-tools .pw-txt { padding: 0 24px 24px; }
    .pw-marquee { padding-top: 30px; }
    .pw-photo { min-height: 380px; }
    .pw-photo-txt { grid-template-columns: minmax(0, 1fr); padding: 24px; }
    .pw-photo-txt a { grid-column: 1; }
    .pw-photo-txt h3 { font-size: 24px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .pw-track { animation: none; }
    .pw-wrap.is-ready .pw-card { opacity: 1; translate: none; transition: none; }
    .pw-note, .pw-step, .pw-item { transition: none; }
}
