#projekty-pfron .project-card{scroll-margin-top:160px;transition:box-shadow .2s,outline-color .2s}
#projekty-pfron .project-is-open{outline:3px solid #5274aa;outline-offset:4px;box-shadow:0 8px 24px #20325024}
.project-expansion{grid-column:1/-1;position:relative;margin-top:18px;padding:32px;border:1px solid #b6c9e5;border-radius:24px;background:#f3f6fb;color:#203250;box-shadow:0 8px 24px #2032500d;scroll-margin-top:155px;min-width:0}
.project-expansion[hidden]{display:none}
.project-expansion::before{content:'';position:absolute;left:var(--project-pointer,50%);top:-11px;width:20px;height:20px;background:#f3f6fb;border-top:1px solid #b6c9e5;border-left:1px solid #b6c9e5;transform:translateX(-50%) rotate(45deg)}
.project-expansion-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:1px solid #ccd9ee;padding-bottom:22px;margin-bottom:24px}
.project-expansion-heading h2{font-size:clamp(22px,3vw,30px);font-weight:800;line-height:1.3;margin:0;outline:none}
.project-expansion-close{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;min-height:46px;padding:10px 18px;background:#e5ecf6;border:1px solid #b6c9e5;color:#203250;border-radius:14px;font-weight:700;cursor:pointer}
.project-expansion-close:hover{background:#d5e1f2}.project-expansion-close:focus-visible{outline:3px solid #456398;outline-offset:3px}
.project-expansion-bottom{margin-top:24px}.project-expansion-body{max-width:900px;overflow-wrap:anywhere;line-height:1.8}.project-expansion-body img,.project-expansion-body iframe{max-width:100%;height:auto}.project-expansion-body a{text-decoration:underline;text-underline-offset:3px}.project-expansion-body a:focus-visible{outline:2px solid #456398;outline-offset:3px}
@media(max-width:639px){.project-expansion{padding:22px 18px;border-radius:20px;scroll-margin-top:125px}.project-expansion-heading{flex-direction:column;gap:16px}.project-expansion-close{min-height:48px}.project-expansion-bottom{width:100%}#projekty-pfron .project-card{scroll-margin-top:125px}}
