:root {
  --orange: #ff702c;
  --orange-deep: #eb5b1e;
  --orange-pale: #fff0e6;
  --ink: #1b232d;
  --ink-soft: #46515c;
  --paper: #fffefd;
  --surface: #fff;
  --soft: #faf7f4;
  --line: #ebe7e3;
  --muted: #727984;
  --radius: 22px;
  --shadow: 0 18px 56px rgba(27,35,45,.055);
  --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #ec5a12; outline-offset: 5px; border-radius: 4px; }
::selection { background: #ffccac; color: var(--ink); }
.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 20px; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.top-note { background: var(--ink); color: #f8ebe5; font-size: 12px; font-weight: 650; letter-spacing: .075em; }
.top-note__inner { min-height: 34px; display: flex; align-items: center; gap: 10px; }
.pixel-dot { width: 8px; height: 8px; background: var(--orange); box-shadow: 5px -5px 0 -2px #fff2eb; flex: 0 0 auto; }
.top-note__divider { color: #73808d; padding: 0 2px; }
.top-note__spark { margin-left: auto; color: var(--orange); font-size: 18px; }
.site-header { position: relative; z-index: 5; background: rgba(255,254,253,.97); border-bottom: 1px solid #f0ece9; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 91px; }
.brand { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.brand img { width: 62px; height: 52px; object-fit: contain; object-position: center; }
.brand__name { font-size: clamp(23px, 2vw, 28px); font-weight: 850; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.brand__name > span:first-child { color: var(--orange); }
.brand__dot { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: clamp(16px,3vw,40px); margin-left: auto; padding-right: clamp(6px,2vw,20px); }
.site-nav a { font-size: 14px; font-weight: 700; color: #59616a; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange-deep); }
.header-discord { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13px; font-weight: 750; white-space: nowrap; transition: transform .2s, background .2s; }
.header-discord:hover { background: #303b47; transform: translateY(-2px); }
.header-discord span { color: var(--orange); font-size: 16px; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; color: var(--orange-deep); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow__dash { width: 21px; height: 4px; border-radius: 2px; background: var(--orange); flex: 0 0 auto; }
.eyebrow--light { color: #ffc29f; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -.052em; line-height: 1.13; }
h2 { font-size: clamp(30px, 3.7vw, 48px); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 51px; padding: 12px 21px; border-radius: 11px; border: 1px solid transparent; font-size: 13px; font-weight: 800; letter-spacing: -.005em; line-height: 1.25; transition: transform .2s, background .2s, border-color .2s; }
.button:hover:not(.button--disabled) { transform: translateY(-3px); }
.button span { font-size: 17px; font-weight: 600; }
.button--primary { background: var(--orange); color: #fff; box-shadow: 0 9px 22px rgba(255,112,44,.20); }
.button--primary:hover { background: var(--orange-deep); }
.button--ghost { border-color: #ddd6d0; background: white; color: var(--ink); }
.button--ghost:hover { border-color: var(--orange); }
.button--light { background: white; color: var(--ink); }
.button--light:hover { background: #fff0e6; }
/* Baner jest integralnym tłem całej sekcji: pełna szerokość okna, bez ramki,
   narożników ani cienia. Łagodne przejście u dołu wtapia go w treść strony. */
.hero {
  --hero-art-height: clamp(190px, 40vw, 850px);
  padding-top: var(--hero-art-height);
  background-color: var(--paper);
  background-image: none;
}
.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) 295px; align-items: end; gap: 45px; padding: 10px 40px 72px; }
.hero h1 { font-size: clamp(36px, 4.65vw, 63px); max-width: 850px; margin-bottom: 20px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero__lead { max-width: 660px; font-size: 16px; color: var(--ink-soft); margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__mini-card { position: relative; min-height: 218px; display: flex; flex-direction: column; gap: 11px; padding: 27px 28px; background: var(--orange-pale); border-radius: 17px; overflow: hidden; }
.hero__mini-icon { font-size: 24px; color: var(--orange); line-height: 1; }
.hero__mini-card strong { position: relative; z-index: 1; font-size: 20px; letter-spacing: -.045em; line-height: 1.25; }
.hero__mini-card > span:nth-last-child(2) { position: relative; z-index: 1; color: #6d5b52; font-size: 12px; line-height: 1.55; }
.hero__mini-pixels { position: absolute; right: -7px; bottom: -5px; display: grid; grid-template-columns: repeat(2, 30px); gap: 5px; transform: rotate(-12deg); opacity: .55; }
.hero__mini-pixels i { width: 30px; height: 30px; border-radius: 5px; background: #ffa274; }
.hero__mini-pixels i:nth-child(2), .hero__mini-pixels i:nth-child(3) { background: #ffd4be; }
.section { padding-top: 70px; padding-bottom: 82px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 8vw, 140px); border-top: 1px solid var(--line); }
.about h2 { margin-bottom: 0; }
.about h2 span, .section-heading h2 span { color: var(--orange); }
.about__body { padding-top: 6px; }
.about__body p { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.text-link { display: inline-flex; gap: 17px; align-items: center; color: var(--orange-deep); font-weight: 800; font-size: 13px; border-bottom: 2px solid #ffb88d; padding: 6px 0 4px; }
.text-link:hover { color: var(--ink); }
.projects-section { background: var(--soft); padding: 82px 0 92px; border-block: 1px solid #f1ece8; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p:last-child { margin-bottom: 0; font-size: 15px; color: var(--ink-soft); }
.project-count { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 4px; padding: 9px 15px; border: 1px solid #f2dfd2; background: #fff; border-radius: 999px; font-size: 12px; font-weight: 800; }
.project-count span { color: var(--orange); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid #ebe5df; border-radius: 19px; box-shadow: 0 5px 18px rgba(27,35,45,.025); transition: box-shadow .2s, transform .2s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.project-card__art { position: relative; display: block; overflow: hidden; background: var(--ink); }
.project-card__art img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; transition: transform .35s; }
.project-card:hover .project-card__art img { transform: scale(1.045); }
.project-card__art-corner { position: absolute; top: 13px; right: 14px; display: grid; place-items: center; width: 31px; height: 31px; background: #fff; border-radius: 8px; font-weight: 850; }
.project-card__body { display: flex; flex-direction: column; flex: 1; padding: 23px 22px 21px; }
.project-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 15px; }
.project-card__meta > span:first-child { font-size: 11px; color: var(--muted); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 9px; border-radius: 5px; font-size: 10px; font-weight: 850; letter-spacing: .005em; line-height: 1.4; }
.status span { font-size: 8px; }
.status--ready { color: #17704b; background: #eaf8ef; }
.status--in-progress { color: #9e521c; background: #fff1e5; }
.status--planned { color: #596375; background: #eef0f3; }
.project-card h3 { margin-bottom: 10px; font-size: clamp(22px, 2vw, 27px); }
.project-card h3 a:hover { color: var(--orange-deep); }
.project-card__body > p { min-height: 72px; margin-bottom: 17px; color: #65707a; font-size: 13px; line-height: 1.7; }
.project-card__progress-row, .project-hero__progress-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); font-weight: 700; }
.project-card__progress-row strong { color: var(--ink); font-size: 13px; }
.progress { height: 7px; margin-top: 9px; background: #f0edea; border-radius: 100px; overflow: hidden; }
.progress > span { display: block; width: var(--progress); height: 100%; background: linear-gradient(90deg,#ff9c5d,var(--orange)); border-radius: inherit; }
.project-card__link { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #f0ece9; font-size: 12px; font-weight: 850; color: var(--ink); }
.project-card__link span { font-size: 17px; color: var(--orange); }
.project-card__link:hover { color: var(--orange-deep); }
.demo-notice { margin: 21px 0 0; font-size: 12px; color: #6d6b69; }
.demo-notice strong { color: var(--ink); }
.community { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; min-height: 298px; margin-top: 78px; margin-bottom: 78px; padding: 55px 65px; overflow: hidden; background: var(--ink); color: #fff; border-radius: 23px; }
.community > div:nth-child(2) { max-width: 680px; position: relative; z-index: 1; }
.community h2 { margin-bottom: 12px; }
.community h2 em { font-style: normal; color: var(--orange); }
.community p:not(.eyebrow) { margin: 0; max-width: 550px; color: #c0c5cb; font-size: 14px; }
.community > .button { flex: 0 0 auto; position: relative; z-index: 1; }
.community__pixels { position: absolute; top: -10px; right: 20%; display: grid; grid-template-columns: repeat(2, 50px); gap: 7px; transform: rotate(18deg); opacity: .17; }
.community__pixels span { height: 50px; background: var(--orange); border-radius: 8px; }
.community__pixels span:nth-child(2),.community__pixels span:nth-child(3) { background: #fff; }
.site-footer { background: #f8f6f4; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-block: 58px 49px; }
.footer-brand p { margin: 15px 0 0; color: #68717b; font-size: 13px; }
.footer-social h2 { margin-bottom: 13px; font-size: 13px; letter-spacing: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; }
.social-links a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e7e1dc; background: white; border-radius: 9px; font-size: 12px; font-weight: 750; }
.social-links a:hover { color: var(--orange-deep); border-color: var(--orange); }
.social-links span { color: var(--orange); }
.footer-bottom { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding-block: 18px 26px; border-top: 1px solid #e9e3de; color: #78808a; font-size: 11px; }
.footer-bottom a { font-weight: 750; color: var(--ink); }
.footer-bottom a:hover { color: var(--orange-deep); }
/* Project detail */
.project-page { padding-top: 26px; padding-bottom: 74px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #8c9199; font-size: 12px; margin-bottom: 35px; }
.breadcrumbs a { color: #636b74; font-weight: 700; }
.breadcrumbs a:hover { color: var(--orange-deep); }
.breadcrumbs span:last-child { color: var(--ink); }
.project-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(30px, 5vw, 80px); }
.project-hero__label { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 19px; font-size: 11px; text-transform: uppercase; font-weight: 850; letter-spacing: .13em; color: var(--orange-deep); }
.project-hero__label span { color: #acafb4; font-size: 9px; }
.project-hero h1 { font-size: clamp(45px, 5.8vw, 76px); margin-bottom: 20px; }
.project-hero__period { color: var(--orange); }
.project-hero__description { color: var(--ink-soft); font-size: 15px; max-width: 490px; margin-bottom: 23px; }
.project-hero__progress-head { margin-top: 40px; font-size: 12px; }
.project-hero__progress-head strong { color: var(--orange-deep); font-size: 23px; letter-spacing: -.05em; }
.progress--large { height: 11px; margin-top: 10px; }
.project-hero__hint { margin: 10px 0 0; font-size: 11px; color: #8a9098; }
.project-hero__art { position: relative; overflow: hidden; background: #262b35; border-radius: 19px; box-shadow: 0 22px 60px rgba(22,30,40,.13); }
.project-hero__art img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.project-hero__art-label { position: absolute; right: 19px; bottom: 15px; padding: 6px 10px; background: rgba(22,27,36,.84); color: #fff; border: 1px solid #ffffff45; border-radius: 5px; font-size: 10px; letter-spacing: .14em; font-weight: 750; }
.project-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 48px; background: var(--soft); border: 1px solid #f0ebe7; border-radius: 15px; }
.project-facts > div { display: flex; flex-direction: column; gap: 4px; position: relative; padding: 25px 29px 27px 68px; }
.project-facts > div + div { border-left: 1px solid #eae5e1; }
.project-facts__icon { position: absolute; top: 25px; left: 29px; color: var(--orange); font-size: 22px; line-height: 1; }
.project-facts__label { color: var(--muted); font-size: 11px; font-weight: 700; }
.project-facts strong { line-height: 1.4; font-size: 13px; }
.project-gallery { padding-bottom: 58px; }
.section-heading--tight { margin-bottom: 26px; }
.section-heading__small-note { font-size: 11px; color: #8a9098; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gallery-item { margin: 0; overflow: hidden; background: #fff; border: 1px solid #eee8e2; border-radius: 13px; }
.gallery-item a { display: block; overflow: hidden; background: #242a35; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; transition: transform .25s; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption { display: flex; justify-content: space-between; padding: 12px 15px; font-size: 12px; font-weight: 750; }
.gallery-item figcaption span { color: var(--orange); }
.project-bottom { display: grid; grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr); gap: 22px; }
.download-panel, .installation-panel { border-radius: 19px; padding: clamp(27px,3.5vw,42px); }
.download-panel { background: var(--ink); color: #fff; }
.download-panel h2 { margin-bottom: 12px; font-size: clamp(30px,3vw,40px); }
.download-panel h2 span { color: var(--orange); }
.download-panel > p:not(.eyebrow) { max-width: 390px; margin-bottom: 22px; font-size: 13px; color: #cbd0d7; }
.button--download { display: flex; max-width: 330px; margin-bottom: 10px; }
.button--disabled { background: #48505b; color: #d7d9dc; cursor: not-allowed; }
.download-panel__note { display: block; font-size: 11px; color: #c2c8cf; }
.download-panel p.download-panel__disclaimer { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #ffffff22; color: #b3bac4; font-size: 11px; }
.installation-panel { background: var(--soft); border: 1px solid #f1e8e2; }
.installation-panel h2 { font-size: clamp(28px,3vw,38px); margin-bottom: 20px; }
.install-steps { padding: 0; margin: 0 0 20px; list-style: none; counter-reset: install; }
.install-steps li { position: relative; padding: 2px 0 16px 43px; min-height: 39px; counter-increment: install; color: var(--ink-soft); font-size: 13px; }
.install-steps li::before { content: counter(install, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--orange-pale); color: var(--orange-deep); font-size: 11px; font-weight: 850; }
.install-tip { margin: 0; border-top: 1px solid #ebe0d8; padding-top: 16px; font-size: 11px; color: #676d75; }
.install-tip span { color: var(--orange); font-size: 17px; margin-right: 4px; }
.back-link { display: inline-flex; gap: 13px; margin-top: 31px; align-items: center; font-size: 13px; font-weight: 800; }
.back-link span { color: var(--orange); font-size: 21px; }
.back-link:hover { color: var(--orange-deep); }
.not-found { display: flex; flex-direction: column; align-items: flex-start; min-height: 58vh; padding-top: 90px; padding-bottom: 110px; }
.not-found__icon { color: var(--orange); font-size: 55px; }
.not-found h1 { font-size: clamp(35px,5vw,60px); margin: 3px 0 14px; }
.not-found > p:not(.eyebrow) { max-width: 530px; color: var(--ink-soft); margin-bottom: 25px; }
@media (max-width: 1020px) {
  .hero__bottom { padding-inline: 10px; }
  .project-grid { gap: 13px; }
  .project-card__body { padding: 18px 15px; }
  .project-card__meta { align-items: start; flex-direction: column; }
  .project-card__body > p { min-height: 93px; }
  .project-facts > div { padding: 22px 16px 22px 50px; }
  .project-facts__icon { left: 17px; top: 24px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .container { width: min(100% - 36px, var(--container)); }
  .header-inner { min-height: 77px; flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .brand img { width: 49px; height: 41px; }
  .brand__name { font-size: 24px; }
  .site-nav { order: 3; justify-content: center; margin-left: 0; padding-right: 0; width: 100%; gap: 24px; }
  .site-nav a { padding: 6px 0 3px; font-size: 12px; }
  .header-discord { margin-left: auto; padding: 8px 10px; font-size: 11px; gap: 5px; }
  .top-note { font-size: 10px; }
  .top-note__divider { display: none; }
  .top-note__divider + * { display: none; }
  .hero__bottom { padding: 12px 0 45px; grid-template-columns: 1fr; gap: 23px; }
  .hero h1 { font-size: clamp(34px,7vw,50px); }
  .hero__lead { font-size: 14px; }
  .hero__mini-card { min-height: auto; gap: 6px; padding: 20px; }
  .hero__mini-card strong { font-size: 17px; }
  .section { padding-block: 48px 55px; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about h2, .section-heading h2 { font-size: clamp(31px,7vw,43px); }
  .projects-section { padding-block: 56px 63px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .project-card__body > p { min-height: 105px; }
  .section-heading { align-items: flex-start; }
  .project-count { margin-top: 20px; }
  .community { margin-block: 54px; padding: 36px 27px; flex-direction: column; align-items: flex-start; min-height: 0; gap: 25px; }
  .community h2 { font-size: 35px; }
  .footer-inner { padding-block: 40px; }
  .footer-bottom { flex-wrap: wrap; gap: 8px 20px; }
  .footer-bottom > span:nth-child(2) { order: 3; width: 100%; }
  .project-page { padding-top: 20px; }
  .breadcrumbs { margin-bottom: 25px; }
  .project-hero { grid-template-columns: 1fr; gap: 30px; }
  .project-hero h1 { font-size: clamp(45px,9vw,65px); }
  .project-hero__progress-head { margin-top: 25px; }
  .project-hero__art { order: -1; }
  .project-hero__art img { aspect-ratio: 16/6; }
  .project-facts { margin-top: 34px; }
  .project-facts > div { padding: 18px 11px; }
  .project-facts__icon { position: static; }
  .project-facts strong { font-size: 12px; overflow-wrap: anywhere; }
  .gallery-grid { gap: 10px; }
  .gallery-item figcaption { font-size: 10px; padding: 9px 8px; }
  .project-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .top-note__inner { font-size: 9px; }
  .top-note__spark { display: none; }
  .header-discord { font-size: 0; width: 40px; height: 40px; }
  .header-discord span { font-size: 21px; }
  .hero { --hero-art-height: clamp(180px, 49vw, 230px); }
  .hero__bottom { padding-top: 6px; }
  .hero h1 { font-size: 36px; }
  .hero__actions { align-items: stretch; }
  .hero__actions .button { flex: 1 1 160px; font-size: 12px; padding-inline: 12px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .section-heading { display: block; }
  .project-count { margin-top: 14px; }
  .project-grid, .gallery-grid { grid-template-columns: 1fr; }
  .project-card__art img { aspect-ratio: 16/6; }
  .project-card__body { padding: 20px; }
  .project-card__meta { flex-direction: row; }
  .project-card__body > p { min-height: 0; }
  .project-card h3 { font-size: 26px; }
  .footer-inner { flex-direction: column; gap: 31px; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts > div { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 3px 8px; padding: 14px 18px; }
  .project-facts > div + div { border-left: 0; border-top: 1px solid #eae5e1; }
  .project-facts__icon { grid-row: span 2; }
  .gallery-grid { gap: 14px; }
  .gallery-item figcaption { font-size: 12px; padding: 11px 14px; }
  .project-gallery { padding-bottom: 42px; }
  .section-heading__small-note { display: block; margin-top: 13px; }
  .community h2 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================================================================
   NOWY UKŁAD BANERA: ilustracja jest elementem tła, a nie osobną
   prostokątną sekcją. Styl inspirowany przesłanym podglądem.
   ================================================================ */
.home-page { overflow-x: clip; }
.home-page .top-note { display: none; }
.home-page .site-header {
  border-bottom: 0;
  background: transparent;
}
.home-page .header-inner { min-height: 96px; }
.home-page .brand img { object-fit: contain; mix-blend-mode: normal; }
.home-page .site-nav a { color: #fff; text-shadow: 0 1px 4px rgba(81,37,15,.18); }
.home-page .site-nav a:hover,
.home-page .site-nav a[aria-current="page"] { color: #fff1e9; text-decoration: underline; text-underline-offset: 5px; }
.home-page .header-discord { box-shadow: 0 6px 18px rgba(27,35,45,.15); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: 510px;
  padding: 0;
  background: none;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -96px;
  right: 0;
  width: min(78vw, 1080px);
  height: min(51vw, 660px);
  background: url("../images/hero-splash.svg") no-repeat right top / contain;
  pointer-events: none;
}
.hero__bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .49fr) minmax(0, .51fr);
  align-items: center;
  gap: 0;
  min-height: 508px;
  padding: 46px 0 66px;
}
.hero__content { position: relative; z-index: 2; max-width: 600px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 620px; margin-bottom: 18px; font-size: clamp(42px, 4.65vw, 65px); line-height: 1.09; }
.hero h1 em { color: #e46a27; }
.hero__lead { max-width: 510px; margin-bottom: 23px; font-size: 15px; color: var(--ink-soft); }
.hero__visual { position: relative; align-self: stretch; min-height: 380px; pointer-events: none; }
.hero__mascot {
  position: absolute;
  right: clamp(115px, 11vw, 165px);
  bottom: -80px;
  width: clamp(410px, 46vw, 620px);
  max-width: none;
  height: auto;
  z-index: 1;
  /* Subtelna poświata, bez dużej białej plamy za całym logotypem. */
  filter: drop-shadow(0 0 9px rgba(255,255,255,.85))
          drop-shadow(0 0 24px rgba(255,255,255,.48))
          drop-shadow(0 10px 12px rgba(38,26,18,.08));
}
.hero__visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(47vw, 500px);
  aspect-ratio: 1;
  right: clamp(80px, 9vw, 130px);
  bottom: -35px;
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,.54) 0%,
    rgba(255,255,255,.25) 38%,
    rgba(255,255,255,0) 74%);
  pointer-events: none;
}

.hero__motto {
  position: absolute;
  top: 63px;
  right: 1px;
  margin: 0;
  color: #20252d;
  font: italic 700 clamp(18px, 2.2vw, 30px)/1.27 "Comic Neue", "Segoe Print", "Comic Sans MS", cursive;
  letter-spacing: -.04em;
  transform: rotate(-8deg);
  white-space: nowrap;
}
.hero__motto::after {
  content: "";
  display: block;
  width: 78%; height: 3px;
  margin: 8px 0 0 11px;
  border-radius: 2px;
  background: #20252d;
  transform: rotate(-8deg);
}
.hero__motto-heart { position: absolute; left: 50%; right: auto; bottom: -38px; font-size: 42px; font-style: normal; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; }
.hero__pixels, .about__pixels { position: absolute; display: grid; grid-template-columns: repeat(3, 24px); grid-auto-rows: 24px; gap: 5px; pointer-events: none; }
.hero__pixels i, .about__pixels i { display: block; border-radius: 3px; background: var(--orange); box-shadow: 0 2px 0 rgba(164,70,31,.05); }
.hero__pixels i:nth-child(2), .about__pixels i:nth-child(2) { background: var(--ink); }
.hero__pixels i:nth-child(1), .about__pixels i:nth-child(1) { grid-column: 2; }
.hero__pixels i:nth-child(3), .about__pixels i:nth-child(3) { grid-column: 3; }
.hero__pixels i:nth-child(4), .about__pixels i:nth-child(4) { grid-column: 1; }
.hero__pixels--left { left: max(13px, calc((100vw - var(--container))/2 - 95px)); top: 25px; transform: rotate(-6deg) scale(.75); opacity: .75; }
.hero__pixels--middle { left: 39%; bottom: 46px; transform: rotate(7deg); }
.about {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  align-items: center;
  padding-block: 76px 84px;
  border-top: 1px solid var(--line);
}
.about::before, .about::after { content: ""; position: absolute; z-index: -1; pointer-events: none; background-image: radial-gradient(#d47a43 1.2px, transparent 1.5px); background-size: 7px 7px; }
.about::before { width: 230px; height: 170px; left: -145px; bottom: -72px; mask-image: radial-gradient(ellipse at left bottom, #000 4%, transparent 73%); opacity: .55; }
.about::after { width: 230px; height: 155px; right: -155px; top: -78px; mask-image: radial-gradient(ellipse at right top, #000 4%, transparent 74%); opacity: .4; }
.about__pixels--left { left: -97px; top: 58px; transform: rotate(-7deg) scale(.8); }
.about__pixels--center { top: -25px; right: 44%; transform: rotate(9deg) scale(.9); }
.about__intro, .about__body { position: relative; z-index: 1; }

@media (max-width: 1100px) {
  .hero__bottom { grid-template-columns: minmax(0, .50fr) minmax(0, .50fr); min-height: 470px; }
  .hero__mascot { right: clamp(85px, 9vw, 125px); width: clamp(350px, 42vw, 500px); bottom: -67px; }
  .hero__visual::before { right: 4%; width: min(43vw, 430px); }
  .hero__motto { top: 68px; right: 0; font-size: clamp(17px,2.3vw,25px); }
  .hero h1 { font-size: clamp(40px, 4.6vw, 55px); }
  .hero::before { width: min(84vw, 900px); height: 550px; }
  .about__pixels--left { left: -35px; }
}
@media (max-width: 760px) {
  .home-page .header-inner { min-height: 76px; }
  .home-page .site-nav a { color: var(--ink); text-shadow: none; }
  .home-page .site-nav a:hover, .home-page .site-nav a[aria-current="page"] { color: var(--orange-deep); }
  .hero { min-height: 0; }
  .hero::before { top: -132px; width: 78vw; height: 465px; }
  .hero__bottom { grid-template-columns: 1fr; min-height: 0; gap: 12px; padding: 58px 0 55px; }
  .hero__content { max-width: 600px; }
  .hero h1 { font-size: clamp(38px, 6.2vw, 51px); max-width: 570px; }
  .hero__lead { max-width: 510px; }
  .hero__visual { min-height: 330px; max-width: 580px; width: 100%; justify-self: center; }
  .hero__mascot { width: clamp(320px, 75vw, 480px); right: 15%; bottom: -65px; }
  .hero__visual::before { width: min(78vw, 440px); right: 8%; bottom: -30px; }
  .hero__motto { top: 28px; right: 3%; font-size: clamp(20px, 3.5vw, 27px); }
  .hero__pixels--left { top: 245px; left: auto; right: 12%; }
  .hero__pixels--middle { left: 6%; bottom: 50px; transform: scale(.7); }
  .about { min-height: 0; padding-block: 58px; }
  .about__pixels--left { display: none; }
  .about__pixels--center { right: 7%; }
}
@media (max-width: 520px) {
  .home-page .header-inner { min-height: 71px; }
  .hero::before { top: -117px; right: -80px; width: 450px; height: 300px; opacity: .88; }
  .hero__bottom { padding-top: 76px; padding-bottom: 41px; gap: 0; }
  .hero h1 { font-size: clamp(35px, 9vw, 43px); }
  .hero__lead { max-width: 420px; font-size: 14px; }
  .hero__visual { min-height: 264px; }
  .hero__mascot { width: min(98vw, 420px); right: 12%; bottom: -61px; }
  .hero__visual::before { width: min(93vw, 400px); right: 5%; bottom: -30px; }
  .hero__motto { top: 24px; right: 0; font-size: clamp(16px, 4.4vw, 22px); }
  .hero__motto::after { height: 2px; margin-top: 4px; }
  .hero__motto-heart { font-size: 29px; bottom: -30px; }
  .hero__pixels--left { display: none; }
  .hero__pixels--middle { bottom: 38px; left: 0; }
  .about::before, .about::after { display: none; }
  .about__pixels--center { transform: scale(.65); top: -38px; right: 0; }
}


/* Logo pochodzi z przesłanego pliku SVG — nie zastępujemy go tekstem ani bitmapą. */
.brand .brand__logo { width: 116px; height: 116px; display: block; flex: 0 0 auto; object-fit: contain; }
.footer-brand .brand__logo { width: 124px; height: 124px; }

/* Dobrowolne wsparcie społeczności PixelTale. */
.support-section { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr); gap: clamp(28px, 6vw, 90px); align-items: center; overflow: hidden; margin-top: 80px; padding: clamp(32px, 5vw, 65px); border: 1px solid #f7d9c8; border-radius: 24px; background: linear-gradient(112deg, #fffdfa 8%, #fff0e5 100%); }
.support-section__copy { position: relative; z-index: 1; max-width: 690px; }
.support-section h2 { margin-bottom: 16px; font-size: clamp(31px, 3.5vw, 48px); }
.support-section h2 span { color: var(--orange-deep); }
.support-section__copy > p:not(.eyebrow) { max-width: 630px; margin-bottom: 25px; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.support-section__button { gap: 20px; }
.support-section__illustration { position: relative; width: min(100%, 265px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; background: #ffe0ca; border-radius: 28%; transform: rotate(-6deg); }
.support-section__heart { color: var(--orange); font-size: clamp(90px, 11vw, 164px); line-height: 1; text-shadow: 6px 7px 0 #fff6f0; transform: rotate(6deg); }
.support-section__sparkle { position: absolute; color: var(--orange-deep); font-size: 36px; line-height: 1; }
.support-section__sparkle--one { top: 9%; left: 13%; }
.support-section__sparkle--two { right: 10%; bottom: 10%; font-size: 23px; }
.support-section__pixel { position: absolute; width: 22px; height: 22px; border-radius: 4px; background: var(--ink); }
.support-section__pixel--one { left: -19px; bottom: 26%; }
.support-section__pixel--two { left: -43px; bottom: 17%; width: 13px; height: 13px; background: var(--orange); }
.support-section__pixel--three { top: 12%; right: -15px; background: var(--orange); }
@media (max-width: 760px) {
  .brand .brand__logo { width: 94px; height: 94px; }
  .footer-brand .brand__logo { width: 112px; height: 112px; }
  .support-section { grid-template-columns: minmax(0,1fr); margin-top: 52px; padding: 32px 26px; }
  .support-section__illustration { width: 160px; }
  .support-section__heart { font-size: 100px; }
}
@media (max-width: 390px) {
  .brand .brand__logo { width: 83px; height: 83px; }
  .header-discord { font-size: 10px; }
  .site-nav { gap: 13px; }
}

/* Jeden przesłany SVG w nagłówku, banerze i stopce. Kadrowanie przycina
   tylko przezroczyste marginesy logo, bez obcinania grafiki ani napisu. */
.brand .brand__logo { width: 138px; height: 95px; object-fit: cover; }
.footer-brand .brand__logo { width: 150px; height: 105px; }
.home-page .header-inner { min-height: 102px; }
@media (max-width: 760px) {
  .brand .brand__logo { width: 110px; height: 77px; }
  .footer-brand .brand__logo { width: 135px; height: 95px; }
  .home-page .header-inner { min-height: 86px; }
}
@media (max-width: 520px) {
  .brand .brand__logo { width: 96px; height: 67px; }
  .home-page .header-inner { min-height: 76px; }
}

/* Zwarta podstrona projektu — nie zmienia wielkości strony głównej. */
.project-page.container { max-width: 980px; padding-top: 14px; padding-bottom: 48px; }
.project-page .breadcrumbs { margin-bottom: 18px; }
.project-page .project-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .52fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.project-page .project-hero h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 10px; }
.project-page .project-hero__label { margin-bottom: 10px; }
.project-page .project-hero__description { font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
.project-page .project-hero__progress-head { margin-top: 18px; }
.project-page .project-hero__art { justify-self: end; width: 100%; max-width: 620px; }
.project-page .project-hero__art img { height: auto; aspect-ratio: 4 / 3; }
.project-page .project-facts { margin-top: 24px; }
.project-page .project-facts > div { padding-top: 19px; padding-bottom: 19px; }
.project-page .project-facts__icon { top: 20px; }
.project-page .project-facts__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.project-page .project-facts__chips span { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; background: #f7eee5; border: 1px solid rgba(224, 133, 61, .24); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; }
.project-page .project-gallery { padding-top: 40px; padding-bottom: 36px; }
.project-page .section-heading--tight { margin-bottom: 21px; }
.project-page .project-bottom { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 16px; }
.project-bottom__aside { display: grid; gap: 18px; min-width: 0; }
.project-page .download-panel, .project-page .installation-panel { padding: clamp(24px, 3vw, 33px); }
.project-page .download-panel h2 { font-size: clamp(28px, 2.8vw, 35px); }
.project-page .installation-panel h2 { font-size: clamp(27px, 2.8vw, 34px); }

/* Wpłaty pod instrukcją instalacji: bez formularza i zbierania danych na stronie. */
.project-support {
  position: relative;
  display: flex;
  gap: 20px;
  padding: clamp(23px, 3vw, 31px);
  background: linear-gradient(112deg, #fff9f4 0%, #ffebdd 100%);
  border: 1px solid #f6d7c2;
  border-radius: 19px;
  overflow: hidden;
}
.project-support__mark {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  align-self: flex-start;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #ffddc8;
  color: var(--orange-deep);
  font-size: 27px;
  line-height: 1;
}
.project-support__copy { min-width: 0; }
.project-support .eyebrow { margin-bottom: 9px; font-size: 10px; }
.project-support h2 { font-size: clamp(22px, 2.5vw, 28px); margin-bottom: 10px; }
.project-support p:not(.eyebrow) { max-width: 460px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; margin-bottom: 17px; }
.project-support .button { min-height: 43px; padding: 10px 16px; }

@media (max-width: 760px) {
  .project-page.container { padding-top: 13px; padding-bottom: 44px; }
  .project-page .project-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .project-page .project-hero__art img { aspect-ratio: 16 / 6; }
  .project-page .project-bottom { grid-template-columns: minmax(0, 1fr); }
  .project-page .project-gallery { padding-top: 30px; padding-bottom: 30px; }
}
@media (max-width: 520px) {
  /* Na małym ekranie widoczny napis Discord zamiast urwanego tekstu. */
  .header-discord { flex: 0 0 auto; width: auto; height: auto; min-height: 40px; padding: 8px 10px; gap: 5px; font-size: 11px; }
  .header-discord span { font-size: 16px; }
  .home-page .hero::before { right: 0; width: min(100vw, 450px); }
  .home-page .hero__mascot { width: min(96vw, 400px); right: 1%; }
  .project-page .project-hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .project-page .project-facts > div { padding-block: 14px; }
  .project-page .project-facts__icon { top: 15px; }
  .project-support { gap: 13px; padding: 20px; }
  .project-support__mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 22px; }
}


/* Aktualizacja: niskie, poziome miniatury na stronie głównej i w projekcie.
   Wysokość jest ograniczona na kontenerze i samym <img>, niezależnie od
   oryginalnych rozmiarów lub proporcji wgrywanego obrazu SVG/PNG/JPG. */
.project-card__art { height: 132px; }
.project-card__art > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
.project-page .project-hero__art { height: 344px; min-height: 0; }
.project-page .project-hero__art > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
.project-page .gallery-item > a { display: block; height: 156px; overflow: hidden; }
.project-page .gallery-item > a > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
/* Karta wpłat jest teraz osobnym, pełnoszerokim elementem POD dwoma panelami. */
.project-page > .project-support {
  width: 100%;
  margin-top: 20px;
  padding: clamp(22px, 3vw, 32px);
  align-items: center;
}
.project-page > .project-support .project-support__copy { flex: 1; }
.project-page > .project-support .project-support__copy p:not(.eyebrow) { max-width: 800px; }
@media (max-width: 760px) {
  .project-card__art { height: 122px; }
  .project-page .project-hero__art { height: 272px; }
  .project-page .gallery-item > a { height: 146px; }
}
@media (max-width: 520px) {
  .project-card__art { height: 143px; }
  .project-page .project-hero__art { height: 228px; }
  .project-page .gallery-item > a { height: 152px; }
  .project-page > .project-support { margin-top: 16px; align-items: flex-start; }
}

/* v6 — jeden nagłówek, bez dekoracyjnego górnego paska.
   Na stronie głównej markę prezentuje już duże logo w hero. */
.site-header .header-inner { min-height: 84px; }
.home-page .site-header .header-inner { min-height: 84px; }
.project-page-body .site-header .header-inner { min-height: 82px; }
.project-page-body .site-header .brand { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 0; }
.project-page-body .site-header .brand .brand__logo {
  display: block;
  width: 96px;
  height: 80px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.project-hero__download { min-height: 42px; padding: 9px 18px; gap: 32px; }
.project-page #pobieranie { scroll-margin-top: 24px; }
@media (max-width: 760px) {
  .site-header .header-inner,
  .home-page .site-header .header-inner,
  .project-page-body .site-header .header-inner { min-height: 72px; }
  .project-page-body .site-header .brand .brand__logo { width: 76px; height: 65px; }
}
@media (max-width: 520px) {
  .site-header .header-inner,
  .home-page .site-header .header-inner,
  .project-page-body .site-header .header-inner { min-height: 68px; }
  .project-page-body .site-header .brand .brand__logo { width: 64px; height: 56px; }
  .project-hero__download { min-height: 41px; }
}


/* v7: nagłówek we wspólnej osi z projektem, galeria dialog i Newsy. */
.project-page-body .site-header .header-inner { max-width: 1060px; }
.site-header .site-nav { gap: clamp(12px, 2.1vw, 27px); }

.news-feature { padding-top: 24px; padding-bottom: 80px; }
.news-feature__heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.news-feature__heading h2 { margin: 0; }
.news-feature__heading h2 span, .news-page__heading h1 span { color: var(--orange); }
.news-feature__heading .text-link { white-space: nowrap; }
.news-feature__card { display: flex; align-items: center; gap: 25px; padding: 29px 32px; border: 1px solid #f2d9c6; border-radius: 20px; background: linear-gradient(110deg, #fff9f4, #fff1e6); }
.news-feature__icon { flex: 0 0 66px; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 17px; color: var(--orange); background: #ffdfca; font-size: 35px; }
.news-feature__copy { flex: 1; min-width: 0; }
.news-date { margin: 0 0 7px; color: var(--orange-deep); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.news-date span { color: var(--muted); font-weight: 650; }
.news-feature__card h3 { font-size: clamp(20px, 2.5vw, 29px); margin: 0 0 7px; }
.news-feature__card h3 a:hover, .news-list__item h2 a:hover { color: var(--orange-deep); }
.news-feature__card .news-feature__copy > p:last-child { color: var(--ink-soft); font-size: 14px; margin: 0; }
.news-feature__button { flex: 0 0 auto; }
.news-feature__empty { margin: 0; padding: 32px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; color: var(--ink-soft); }
.news-page.container { max-width: 1060px; padding-block: 26px 85px; }
.news-page__heading { padding: 16px 0 32px; }
.news-page__heading h1 { font-size: clamp(38px, 5vw, 62px); margin: 0 0 11px; }
.news-page__heading > p:last-child { color: var(--ink-soft); }
.news-list { display: grid; gap: 18px; }
.news-list__item { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.news-list__item h2 { margin: 0 0 9px; font-size: clamp(23px, 3vw, 32px); }
.news-list__item > p:not(.news-date) { margin: 0 0 13px; color: var(--ink-soft); font-size: 14px; }
.news-article { max-width: 790px; padding: 22px 0 45px; }
.news-article h1 { font-size: clamp(35px, 5vw, 59px); margin: 0 0 15px; line-height: 1.13; }
.news-article > p:not(.eyebrow):not(.news-date) { color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.news-article .news-article__lead { font-size: 19px !important; color: var(--ink) !important; font-weight: 550; margin-bottom: 30px; }
.news-article .back-link { margin-top: 36px; }

.gallery-lightbox { position: fixed; inset: 0; width: min(980px, calc(100vw - 36px)); max-width: 980px; max-height: calc(100dvh - 36px); margin: auto; padding: 0; overflow: visible; border: 0; border-radius: 19px; color: var(--ink); background: #fff; box-shadow: 0 25px 90px #0005; }
.gallery-lightbox::backdrop { background: rgba(11, 17, 25, .84); backdrop-filter: blur(5px); }
.gallery-lightbox__panel { position: relative; padding: clamp(14px, 2vw, 23px); }
.gallery-lightbox__close { position: absolute; z-index: 2; right: 15px; top: 15px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; color: #fff; background: rgba(27, 35, 45, .85); font-size: 17px; cursor: pointer; }
.gallery-lightbox__close:hover { background: var(--orange-deep); }
.gallery-lightbox__figure { margin: 0; }
.gallery-lightbox__figure img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 188px); min-height: 70px; object-fit: contain; border-radius: 10px; background: var(--ink); }
.gallery-lightbox__figure figcaption { margin: 10px 0; color: var(--ink-soft); font-size: 13px; }
.gallery-lightbox__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery-lightbox__controls button { min-height: 38px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); color: var(--ink); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.gallery-lightbox__controls button:hover { background: var(--orange-pale); border-color: var(--orange); }
.gallery-lightbox__counter { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .site-header .site-nav { gap: clamp(10px, 2.5vw, 20px); }
  .news-feature { padding-top: 5px; padding-bottom: 55px; }
  .news-feature__card { flex-wrap: wrap; gap: 12px 17px; padding: 23px; }
  .news-feature__icon { flex-basis: 48px; width: 48px; height: 48px; font-size: 25px; }
  .news-feature__button { margin-left: 65px; }
  .gallery-lightbox { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); border-radius: 12px; }
  .gallery-lightbox__figure img { max-height: calc(100dvh - 170px); }
}
@media (max-width: 520px) {
  .site-header .site-nav { gap: 12px; }
  .site-header .site-nav a { font-size: 11px; }
  .news-feature__heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .news-feature__heading h2 { font-size: clamp(28px, 8vw, 38px); }
  .news-feature__icon { display: none; }
  .news-feature__button { margin-left: 0; }
  .gallery-lightbox__controls button span { display: none; }
  .gallery-lightbox__controls button { min-width: 45px; font-size: 18px; }
}

/* v8 — pełna treść najnowszego newsa bez komentarzy na stronie głównej. */
.news-feature__card { align-items: stretch; padding: clamp(22px, 4vw, 42px); }
.news-feature__copy { width: 100%; }
.news-feature__copy .news-feature__lead { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.75; margin: 12px 0 16px; }
.news-feature__body { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.news-feature__body p { margin: 0 0 15px; overflow-wrap: anywhere; }
.news-feature__copy .news-feature__button { display: inline-flex; margin: 9px 0 0; }
/* Komentarze widoczne tylko na podstronie konkretnego newsa. */
.news-comments { max-width: 790px; margin: 5px 0 35px; padding: clamp(22px, 3.7vw, 36px); background: #fff9f4; border: 1px solid #f0d9c9; border-radius: 20px; scroll-margin-top: 110px; }
.news-comments__header h2 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 37px); }
.news-comments__header h2 span { color: var(--orange); }
.news-comments__header > p:last-child { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.news-comments .giscus { min-height: 190px; }
@media (max-width: 760px) {
  .news-feature__copy .news-feature__button { margin-left: 0; }
}


/* v9: bardziej zwarta strona główna, z pełnym newsem tuż za hero.
   Zmiany celowo ograniczone do .home-page; podstrony projektów i newsów
   zachowują swoje rozmiary. */
.home-page .site-header .header-inner { min-height: 70px; }
.home-page .hero { min-height: 0; }
.home-page .hero::before {
  top: -70px;
  width: min(70vw, 950px);
  height: min(47vw, 560px);
}
.home-page .hero__bottom {
  min-height: 395px;
  padding-top: 27px;
  padding-bottom: 41px;
}
.home-page .hero .eyebrow { margin-bottom: 12px; }
.home-page .hero h1 {
  font-size: clamp(38px, 4.15vw, 56px);
  margin-bottom: 12px;
  line-height: 1.08;
}
.home-page .hero__lead { font-size: 14px; margin-bottom: 16px; }
.home-page .hero__visual { min-height: 315px; }
.home-page .hero__mascot {
  width: clamp(345px, 40vw, 520px);
  right: clamp(100px, 10vw, 142px);
  bottom: -62px;
}
.home-page .hero__visual::before {
  width: min(39vw, 420px);
  right: clamp(90px, 9vw, 126px);
  bottom: -28px;
}
.home-page .hero__motto {
  top: 44px;
  right: 0;
  font-size: clamp(17px, 2vw, 26px);
}
.home-page .hero__pixels--middle { bottom: 20px; }

.home-page .news-feature { padding-top: 24px; padding-bottom: 44px; }
.home-page .news-feature__heading { margin-bottom: 16px; }
.home-page .news-feature__heading h2 { font-size: clamp(28px, 3vw, 40px); }
.home-page .news-feature__card { padding: clamp(20px, 2.5vw, 30px); }
.home-page .news-feature__card h3 { font-size: clamp(21px, 2.4vw, 27px); }
.home-page .news-feature__copy .news-feature__lead { margin: 7px 0 10px; font-size: 14px; }
.home-page .news-feature__body { font-size: 14px; line-height: 1.65; }
.home-page .news-feature__body p { margin-bottom: 9px; }
.home-page .news-feature__copy .news-feature__button { margin-top: 5px; }
.home-page .about { min-height: 0; padding-block: 47px 52px; gap: clamp(24px, 6vw, 100px); }
.home-page .about__body p { margin-bottom: 11px; font-size: 14px; }
.home-page .about__pixels--center { top: -18px; }
.home-page .projects-section { padding-block: 50px 58px; }
.home-page .section-heading { margin-bottom: 23px; }
.home-page .section-heading h2 { font-size: clamp(28px, 3.4vw, 44px); }
.home-page .project-card__art { height: 110px; }
.home-page .project-card__body { padding: 18px 18px 17px; }
.home-page .project-card__meta { margin-bottom: 10px; }
.home-page .project-card h3 { font-size: clamp(21px, 1.9vw, 25px); margin-bottom: 7px; }
.home-page .project-card__body > p { min-height: 57px; margin-bottom: 11px; line-height: 1.55; }
.home-page .project-card__link { margin-top: 14px; padding-top: 11px; }
.home-page .support-section { margin-top: 49px; padding: clamp(27px, 3.5vw, 43px); gap: clamp(25px, 4vw, 50px); }
.home-page .support-section h2 { font-size: clamp(27px, 3.2vw, 40px); }
.home-page .support-section__copy > p:not(.eyebrow) { margin-bottom: 15px; font-size: 14px; line-height: 1.65; }
.home-page .support-section__illustration { width: min(100%, 190px); }
.home-page .support-section__heart { font-size: clamp(85px, 9vw, 125px); }
.home-page .community { min-height: 0; margin-block: 52px; padding: 36px 45px; gap: 24px; }
.home-page .community h2 { font-size: clamp(29px, 3.2vw, 41px); }

@media (max-width: 1100px) and (min-width: 761px) {
  .home-page .hero__bottom { min-height: 355px; }
  .home-page .hero__mascot { width: clamp(320px, 40vw, 445px); right: clamp(75px, 8vw, 108px); bottom: -52px; }
  .home-page .hero__motto { top: 42px; right: 0; font-size: clamp(16px, 2vw, 22px); }
}
@media (max-width: 760px) {
  .home-page .site-header .header-inner { min-height: 70px; }
  .home-page .hero::before { top: -115px; width: 82vw; height: 430px; }
  .home-page .hero__bottom { min-height: 0; padding: 32px 0 29px; gap: 0; }
  .home-page .hero h1 { font-size: clamp(34px, 6vw, 46px); }
  .home-page .hero__visual { min-height: 260px; }
  .home-page .hero__mascot { width: clamp(295px, 70vw, 420px); right: 11%; bottom: -47px; }
  .home-page .hero__visual::before { width: min(75vw, 375px); right: 7%; bottom: -20px; }
  .home-page .hero__motto { top: 20px; right: 2%; font-size: clamp(17px, 3vw, 23px); }
  .home-page .hero__pixels--middle { bottom: 5px; }
  .home-page .news-feature { padding-top: 22px; padding-bottom: 37px; }
  .home-page .news-feature__card { padding: 23px; }
  .home-page .about { padding-block: 39px 45px; gap: 16px; }
  .home-page .projects-section { padding-block: 42px 49px; }
  .home-page .project-card__body > p { min-height: 65px; }
  .home-page .support-section { margin-top: 38px; padding: 27px; }
  .home-page .support-section__illustration { width: 135px; }
  .home-page .community { margin-block: 42px; padding: 28px; }
}
@media (max-width: 520px) {
  .home-page .site-header .header-inner { min-height: 68px; }
  .home-page .hero::before { top: -103px; width: 430px; height: 285px; }
  .home-page .hero__bottom { padding-top: 46px; padding-bottom: 20px; }
  .home-page .hero h1 { font-size: clamp(33px, 8.5vw, 40px); }
  .home-page .hero__visual { min-height: 216px; }
  .home-page .hero__mascot { width: min(92vw, 365px); right: 8%; bottom: -40px; }
  .home-page .hero__visual::before { width: min(90vw, 350px); right: 5%; bottom: -18px; }
  .home-page .hero__motto { top: 12px; right: 0; font-size: clamp(15px, 4vw, 19px); }
  .home-page .news-feature { padding-top: 20px; padding-bottom: 35px; }
  .home-page .news-feature__heading { gap: 7px; margin-bottom: 14px; }
  .home-page .news-feature__card { padding: 20px; }
  .home-page .project-card__art { height: 116px; }
  .home-page .project-card__body > p { min-height: 0; }
  .home-page .support-section__illustration { width: 120px; }
  .home-page .community { margin-block: 35px; }
}

/* v10: spójny nagłówek, spokojny hero na telefonie i stopka w osi projektu. */
.project-page-body .site-footer .footer-inner,
.project-page-body .site-footer .footer-bottom {
  max-width: 1060px;
}
.project-page-body .site-header .header-inner { max-width: 1060px; }
.project-page-body .site-header .site-nav { padding-right: 0; }
.project-page-body .site-footer .brand--footer { line-height: 0; }

@media (max-width: 760px) {
  /* Logo i pięć odnośników w jednym wierszu; bez przycisku Discord. */
  .project-page-body .site-header .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 10px;
    padding-block: 7px;
  }
  .project-page-body .site-header .brand { flex: 0 0 67px; width: 67px; }
  .project-page-body .site-header .brand .brand__logo {
    display: block;
    width: 67px;
    height: 55px;
    object-fit: contain;
  }
  .project-page-body .site-header .site-nav {
    display: flex;
    flex: 0 1 auto;
    order: initial;
    width: auto;
    max-width: calc(100% - 77px);
    margin-left: auto;
    padding: 0;
    gap: clamp(7px, 1.8vw, 14px);
    justify-content: flex-end;
    white-space: nowrap;
  }
  .project-page-body .site-header .site-nav a { padding-block: 7px; font-size: clamp(10px, 2.7vw, 12px); }

  /* Logo w stopce, opis i social media wyrównane do tej samej osi co treść. */
  .project-page-body .site-footer .footer-inner,
  .project-page-body .site-footer .footer-bottom {
    width: min(calc(100% - 36px), 1060px);
    margin-inline: auto;
  }
  .project-page-body .site-footer .footer-inner { gap: 20px; padding-block: 26px 22px; }
  .project-page-body .site-footer .footer-brand .brand__logo {
    width: 98px;
    height: 74px;
    object-fit: contain;
  }
  .project-page-body .site-footer .footer-brand p { margin-top: 7px; }
  .project-page-body .site-footer .footer-bottom { justify-content: flex-start; padding-top: 14px; padding-bottom: 22px; }
}

@media (max-width: 760px) {
  /* W hero tło orange tylko za ilustracją, nie pod menu i treścią. */
  .home-page .site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
  .home-page .site-header .header-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    min-height: 50px;
    padding-block: 7px;
  }
  .home-page .site-header .header-discord { display: none; }
  .home-page .site-header .site-nav {
    display: flex;
    order: initial;
    flex: 0 0 auto;
    width: auto;
    margin-inline: auto;
    padding: 0;
    gap: clamp(13px, 3.2vw, 19px);
    white-space: nowrap;
  }
  .home-page .site-header .site-nav a { padding: 5px 0; color: var(--ink); text-shadow: none; font-size: clamp(11px, 3vw, 13px); }
  .home-page .site-header .site-nav a:hover,
  .home-page .site-header .site-nav a[aria-current="page"] { color: var(--orange-deep); }
  .home-page .hero::before { display: none; }
  .home-page .hero { isolation: isolate; overflow: hidden; }
  .home-page .hero__bottom { display: flex; flex-direction: column; align-items: stretch; gap: 17px; padding-block: 30px 14px; }
  .home-page .hero__content { width: 100%; max-width: none; }
  .home-page .hero .eyebrow { margin-bottom: 12px; }
  .home-page .hero h1 { font-size: clamp(32px, 8.2vw, 40px); line-height: 1.13; margin-bottom: 12px; }
  .home-page .hero__lead { margin-bottom: 15px; font-size: 13px; line-height: 1.58; }
  .home-page .hero__actions { gap: 8px; }
  .home-page .hero__actions .button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 9px 12px; font-size: 11px; gap: 5px; }
  .home-page .hero__visual {
    position: relative;
    width: 100%;
    max-width: 400px;
    align-self: center;
    height: 266px;
    min-height: 0;
    margin: 0;
    overflow: visible;
  }
  .home-page .hero__visual::before {
    content: "";
    position: absolute;
    top: 30px;
    right: -14px;
    bottom: auto;
    left: auto;
    width: 75%;
    height: 196px;
    aspect-ratio: auto;
    border-radius: 40% 62% 32% 51% / 49% 33% 66% 48%;
    transform: rotate(-7deg);
    background: linear-gradient(140deg, #ff9d64, #ff702c);
    opacity: .90;
  }
  .home-page .hero__mascot {
    position: absolute;
    top: -39px;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(94vw, 340px);
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 8px rgba(255,255,255,.83));
  }
  .home-page .hero__motto { top: 54px; right: -2px; font-size: clamp(13px, 3.3vw, 16px); }
  .home-page .hero__motto-heart { font-size: 25px; bottom: -25px; }
  .home-page .hero__pixels--left { display: none; }
  .home-page .hero__pixels--middle { left: 0; bottom: 30px; transform: scale(.62); }
  .home-page .news-feature { padding-top: 19px; }

  .project-page-body .site-header .header-inner { min-height: 64px; }
  .project-page-body .site-header .brand { flex-basis: 62px; width: 62px; }
  .project-page-body .site-header .brand .brand__logo { width: 62px; height: 52px; }
  .project-page-body .site-header .site-nav { max-width: calc(100% - 70px); gap: clamp(6px, 2vw, 10px); }
  .project-page-body .site-header .site-nav a { font-size: clamp(10px, 2.65vw, 12px); }
  .project-page-body .site-footer .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .project-page-body .site-footer .social-links a { min-width: 0; justify-content: space-between; }
}
@media (max-width: 350px) {
  .project-page-body .site-header .header-inner { flex-wrap: wrap; justify-content: center; }
  .project-page-body .site-header .site-nav { justify-content: center; width: 100%; max-width: 100%; }
  .home-page .site-header .site-nav { gap: 9px; }
  .home-page .hero__motto { right: 0; }
}


/* v11 — mobilne wyśrodkowanie + hero w stylu przesłanego podglądu.
   Reguły poniżej nadpisują historyczne ustawienia mobilne bez ingerencji w desktop. */
@media (max-width: 760px) {
  /* Stopka: ten sam centralny układ na stronie głównej, projektach i newsach. */
  .site-footer .footer-inner,
  .project-page-body .site-footer .footer-inner {
    width: min(calc(100% - 36px), 520px);
    max-width: 520px;
    margin-inline: auto;
    padding: 32px 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
  }
  .site-footer .footer-brand,
  .site-footer .footer-social { width: 100%; min-width: 0; text-align: center; }
  .site-footer .footer-brand .brand--footer { display: flex; justify-content: center; width: fit-content; margin-inline: auto; }
  .site-footer .footer-brand .brand__logo,
  .project-page-body .site-footer .footer-brand .brand__logo {
    display: block;
    width: 104px;
    height: 90px;
    object-fit: contain;
  }
  .site-footer .footer-brand p,
  .project-page-body .site-footer .footer-brand p { margin: 9px auto 0; max-width: 310px; }
  .site-footer .footer-social h2 { margin-bottom: 13px; text-align: center; }
  .site-footer .social-links,
  .project-page-body .site-footer .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: min(100%, 360px);
    margin-inline: auto;
  }
  .site-footer .social-links a,
  .project-page-body .site-footer .social-links a { justify-content: center; min-width: 0; min-height: 43px; }
  .site-footer .footer-bottom,
  .project-page-body .site-footer .footer-bottom {
    width: min(calc(100% - 36px), 520px);
    max-width: 520px;
    margin-inline: auto;
    padding: 20px 0 29px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
    text-align: center;
  }
  .site-footer .footer-bottom > *,
  .site-footer .footer-bottom > span:nth-child(2) { order: initial; width: auto; }
  .site-footer .footer-bottom a { padding: 5px 0; }

  /* Podstrona projektu: logo centralnie nad czytelną nawigacją. */
  .project-page-body .site-header .header-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-block: 7px 9px;
    min-height: 0;
  }
  .project-page-body .site-header .brand {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 67px;
    margin-inline: auto;
  }
  .project-page-body .site-header .brand .brand__logo {
    width: 90px;
    height: 67px;
    object-fit: contain;
  }
  .project-page-body .site-header .site-nav {
    display: flex;
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: clamp(10px, 3vw, 23px);
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
  }
  .project-page-body .site-header .site-nav a { font-size: clamp(11px, 3vw, 13px); padding: 4px 0; }

  /* Home: wizualnie wycentrowany wstęp i pełnowymiarowe przyciski. */
  .home-page .hero { min-height: 0; overflow: hidden; }
  .home-page .hero__bottom.container {
    width: min(calc(100% - 36px), 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 0;
    padding: 33px 0 13px;
  }
  .home-page .hero__content { width: 100%; max-width: 520px; text-align: center; }
  .home-page .hero .eyebrow { display: flex; justify-content: center; gap: 9px; margin: 0 auto 16px; }
  .home-page .hero .eyebrow__dash { flex: 0 0 auto; }
  .home-page .hero h1 { max-width: 520px; margin: 0 auto 14px; font-size: clamp(28px, 7.5vw, 38px); line-height: 1.16; }
  .home-page .hero__desktop-break { display: none; }
  .home-page .hero__lead { max-width: 460px; margin: 0 auto 20px; font-size: clamp(13px, 3.6vw, 15px); line-height: 1.65; }
  .home-page .hero__actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .home-page .hero__actions .button {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 47px;
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
  }
  .home-page .hero__visual {
    position: relative;
    align-self: center;
    width: 100%;
    max-width: 490px;
    height: clamp(288px, 92vw, 415px);
    min-height: 0;
    margin: 12px auto 0;
    overflow: visible;
  }
  .home-page .hero__visual::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 27px;
    left: 18%;
    right: auto;
    bottom: auto;
    width: 86%;
    height: 56%;
    max-height: 245px;
    border-radius: 46% 54% 43% 54% / 51% 42% 56% 47%;
    background: linear-gradient(123deg, #ffc2a1 0%, #ff955d 43%, #ff702c 100%);
    transform: rotate(-7deg);
    opacity: 1;
    box-shadow: none;
    filter: none;
  }
  .home-page .hero__visual::after { display: none; }
  .home-page .hero__mascot {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    display: block;
    width: min(calc(100vw - 26px), 475px);
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 5px rgba(255,255,255,.78));
  }
  .home-page .hero__motto {
    position: absolute;
    z-index: 2;
    top: 19%;
    right: 0;
    margin: 0;
    font-size: clamp(13px, 3.6vw, 19px);
    line-height: 1.3;
    white-space: nowrap;
  }
  .home-page .hero__motto-heart { bottom: -27px; font-size: 25px; }
  .home-page .hero__pixels { display: none; }
  .home-page .news-feature { padding-top: 20px; }
}
@media (max-width: 380px) {
  .home-page .hero__bottom.container { padding-top: 26px; }
  .home-page .hero h1 { font-size: clamp(26px, 7.6vw, 30px); }
  .home-page .hero__visual { height: clamp(285px, 95vw, 342px); }
  .home-page .hero__motto { right: 0; font-size: 12px; }
  .project-page-body .site-header .site-nav { gap: 9px; }
  .project-page-body .site-header .site-nav a { font-size: 11px; }
}
@media (min-width: 381px) and (max-width: 760px) {
  .home-page .hero h1 { font-size: clamp(30px, 8.15vw, 38px); }
}


/* Zespół spolszczenia: przy wielu osobach kompaktowy skrót i osobna lista. */
.project-facts__people{display:flex;flex-direction:column;align-items:start;gap:3px;min-width:0;overflow-wrap:anywhere}
.project-facts__people strong{font-size:13px}
.project-facts__people a{font-size:11px;font-weight:750;color:var(--orange-deep);text-decoration:underline;text-underline-offset:3px}
.project-facts__people small{font-size:11px;color:var(--muted)}
.project-team{margin-top:26px;padding:24px;border:1px solid #f0e6df;background:#fffaf6;border-radius:16px;scroll-margin-top:100px}
.project-team__heading{margin-bottom:16px}
.project-team__heading .eyebrow{margin-bottom:4px;font-size:10px}
.project-team__heading h2{font-size:clamp(22px,2.4vw,29px);line-height:1.2;margin:0}
.project-team__heading h2 span{color:var(--orange)}
.project-team__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.project-team__list li{display:flex;gap:10px;align-items:start;min-width:0;background:white;border:1px solid #f0e5dc;border-radius:10px;padding:12px}
.project-team__list li div{display:flex;flex-direction:column;gap:3px;min-width:0}
.project-team__list li strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.project-team__list li div span{font-size:11px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.project-team__symbol{color:var(--orange);font-size:15px;line-height:1.2}
@media(max-width:850px){.project-team__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.project-facts__people{grid-column:2}.project-team{padding:17px;margin-top:19px}.project-team__list{grid-template-columns:1fr}}


.admin-platforms__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 14px;
}
.admin-platforms__choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 34, 46, 0.14);
  border-radius: 12px;
  background: #fff;
}
.admin-platforms__choice input { margin: 0; }

/* PixelTale: 4 informacje o spolszczeniu w jednym rzędzie na desktopie.
   Trzy stare informacje pozostają równo rozmieszczone, gdy nie wybrano platform. */
@media (min-width: 761px) {
  .project-page .project-facts > div {
    min-width: 0;
    padding: 19px 10px 19px 38px;
  }
  .project-page .project-facts__icon { left: 13px; top: 21px; font-size: 18px; }
  .project-page .project-facts__label { font-size: 10px; }
  .project-page .project-facts strong { font-size: 12px; overflow-wrap: anywhere; }
  .project-page .project-facts__chips { gap: 5px; margin-top: 5px; }
  .project-page .project-facts__chips span {
    min-height: 25px;
    padding: 4px 7px;
    font-size: 10px;
  }
}
@media (min-width: 761px) {
  .project-page .project-facts:has(> :nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .project-page .project-facts:not(:has(> :nth-child(4))) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Na tablecie dwie kolumny zamiast ściskania czterech elementów. */
@media (min-width: 521px) and (max-width: 760px) {
  .project-page .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-page .project-facts > div { border-top: 0; border-left: 0; min-width: 0; }
  .project-page .project-facts > div:nth-child(even) { border-left: 1px solid #eae5e1; }
  .project-page .project-facts > div:nth-child(n+3) { border-top: 1px solid #eae5e1; }
}
@media (max-width: 520px) {
  .project-page .project-hero__art { justify-self: stretch; }
  .project-page .project-facts { grid-template-columns: minmax(0, 1fr); }
}


/* Instrukcja instalacji: bloki w obrębie jednego numerowanego kroku. */
.install-steps > li { min-width: 0; }
.install-content__paragraph { margin: 0 0 10px; line-height: 1.65; overflow-wrap: anywhere; }
.install-content__paragraph:last-child { margin-bottom: 0; }
.install-content__title { margin: 13px 0 7px; color: var(--ink); font-size: 1.04em; line-height: 1.35; font-weight: 850; }
.install-content__title:first-child { margin-top: 0; }
.install-content__bullets { display: grid; gap: 6px; margin: 6px 0 12px; }
.install-content__bullet { position: relative; padding-left: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.install-content__bullet::before { content: '•'; position: absolute; left: 0; color: var(--orange-deep); font-weight: 800; }
.install-content__path { margin: 10px 0 14px; padding: 12px 13px; background: #202732; color: #fff; border-radius: 9px; min-width: 0; }
.install-content__path code { display: block; overflow-wrap: anywhere; white-space: pre-wrap; font: 600 .87em/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.install-content__notice { margin: 13px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid #f4cba9; background: #fff0e4; color: #6b391f; line-height: 1.6; overflow-wrap: anywhere; }
.install-content__notice--info { border-color: #cddfe8; background: #eef6fa; color: #284555; }
.install-content__notice-label { display: block; margin-bottom: 4px; font-size: .84em; text-transform: uppercase; letter-spacing: .06em; }
.install-steps > li .install-content__notice a { color: inherit; text-decoration: underline; }
.install-steps > li code { overflow-wrap: anywhere; }


/* Studio PixelTale — pierwszy rząd zespołu i przycisk rozwijania.
   Bez JavaScript pozostaje widoczna pełna lista współtwórców. */
.project-team__list-frame { position: relative; min-width: 0; }
.project-team--collapsed .project-team__list {
  max-height: var(--team-preview-height);
  overflow: hidden;
}
.project-team--collapsed .project-team__list-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,250,246,0), rgba(255,250,246,.83) 75%, #fffaf6);
  pointer-events: none;
}
.project-team__toggle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  min-height: 38px;
  margin: 12px auto 0;
  padding: 7px 16px;
  border: 1px solid #f5cfb9;
  border-radius: 999px;
  background: #fff;
  color: var(--orange-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(27,35,45,.035);
}
.project-team--collapsed .project-team__toggle { margin-top: -9px; }
.project-team__toggle:hover { background: #fff1e8; }
.project-team__toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.project-team__toggle[hidden] { display: none; }
.project-team__toggle[aria-expanded="true"] .project-team__toggle-icon { transform: rotate(180deg); }

/* Historia aktualizacji projektu; zespół jest bezpośrednio nad historią. */
.project-page .project-changelog {
  margin-top: 26px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #f0e5de;
  border-radius: 16px;
  background: #fff;
}
.project-changelog__heading { margin-bottom: 17px; }
.project-changelog__heading .eyebrow { margin-bottom: 6px; }
.project-changelog__heading h2 { margin: 0; font-size: clamp(23px, 3vw, 33px); line-height: 1.15; }
.project-changelog__entries { display: grid; gap: 13px; }
.project-changelog__entry { padding: 16px 18px; border: 1px solid #f0e5de; border-radius: 12px; background: #fffaf7; }
.project-changelog__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 14px; margin-bottom: 9px; }
.project-changelog__meta h3 { margin: 0; color: var(--ink); font-size: clamp(16px, 2vw, 19px); }
.project-changelog__meta time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.project-changelog__entry ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.project-changelog__entry li { color: var(--ink-soft); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.project-changelog__entry li::marker { color: var(--orange-deep); }
.project-page .project-team { margin-top: 24px; margin-bottom: 0; }
@media(max-width:520px) {
  .project-page .project-changelog { padding: 16px; }
  .project-changelog__entry { padding: 13px; }
}

/* Historia zmian: pokazuj pierwszą aktualizację z gradientem. Bez JS całość pozostaje widoczna. */
.project-changelog__frame { position: relative; min-width: 0; }
.project-changelog--collapsed .project-changelog__entries { max-height: var(--changelog-preview-height, 180px); overflow: hidden; }
.project-changelog--collapsed .project-changelog__frame::after {
  content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.88) 77%, #fff);
  pointer-events: none;
}
.project-changelog__toggle {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 9px;
  width: max-content; max-width: 100%; min-height: 39px; margin: 14px auto 0;
  padding: 7px 17px; border: 1px solid #f5cfb9; border-radius: 999px;
  background: #fff; color: var(--orange-deep); font: inherit; font-size: 12px;
  font-weight: 800; cursor: pointer;
}
.project-changelog--collapsed .project-changelog__toggle { margin-top: -9px; }
.project-changelog__toggle[hidden] { display: none; }
.project-changelog__toggle:hover { background: #fff1e8; }
.project-changelog__toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.project-changelog__toggle[aria-expanded="true"] .project-changelog__toggle-icon { transform: rotate(180deg); }


/* PixelTale: ciemna karta pobierania, pomarańczowy przycisk. */
.project-page .download-panel { background: var(--ink); color: #fff; }
.project-page .download-panel .eyebrow--light { color: #ffc29f; }
.project-page .download-panel .eyebrow__dash { background: var(--orange); }
.project-page .download-panel h2 span { color: var(--orange); }
.project-page .download-panel > p:not(.eyebrow),
.project-page .download-panel .download-panel__note { color: #cbd0d7; }
.project-page .download-panel p.download-panel__disclaimer { color: #b3bac4; border-top-color: #ffffff22; }
.project-page .download-panel .button--light { background: var(--orange); color: #fff; }
.project-page .download-panel .button--light:hover { background: var(--orange-deep); }

/* Dwa przyciski pod opisem projektu: pobieranie i Ko-fi. */
.project-page .project-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.project-page .project-hero__coffee { min-height: 42px; padding: 9px 17px; gap: 16px; border-color: #e2d7cd; color: var(--ink); }
.project-page .project-hero__coffee:hover { border-color: var(--orange); color: var(--orange-deep); }

/* Odnośnik pod datą ostatniej aktualizacji — analogiczny do łącza autorów. */
.project-page .project-facts__changelog-link {
  width: fit-content; max-width: 100%; font-size: 11px; line-height: 1.4;
  font-weight: 750; color: var(--orange-deep); text-decoration: underline;
  text-underline-offset: 3px; overflow-wrap: anywhere;
}
.project-page .project-facts__changelog-link:hover { color: #a7390c; }
.project-page .project-facts__changelog-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.project-page .project-team, .project-page .project-changelog { scroll-margin-top: 100px; }

/* PixelTale — Ko-fi obok pobierania, skrót do zgłaszania oraz komentarze pod historią. */
.project-page .project-hero__coffee {
  min-height: 44px; padding: 9px 16px; gap: 9px; border: 1.5px solid #ffad79;
  background: #ffffff; color: #a63a0c; box-shadow: none;
}
.project-page .project-hero__coffee svg { flex: 0 0 18px; color: #dc571c; }
.project-page .project-hero__coffee span { margin-left: 7px; }
.project-page .project-hero__coffee:hover { background: #ffe0ca; color: #862f0b; border-color: var(--orange); }
.project-page .project-hero__report { min-height: 44px; padding: 9px 15px; gap: 9px; }
.project-page .project-hero__report:hover { color: var(--orange-deep); border-color: var(--orange); background: #fffaf6; }
.project-page .project-comments.news-comments {
  max-width: none; width: 100%; margin: 24px 0 0;
  padding: clamp(20px,3vw,30px); background: #fffaf6; border-color: #f0e5de;
}
.project-comments .news-comments__header > p:last-child { margin-bottom: 12px; }
.project-comments #disqus_thread { min-height: 220px; }
.project-report {
  display: flex; gap: 17px; align-items: flex-start; margin: 24px 0 0;
  padding: clamp(20px,3vw,31px); background: #f5f7f8;
  border: 1px solid #e1e6e9; border-radius: 19px; scroll-margin-top: 100px;
}
.project-report__icon { display:grid; place-items:center; flex:0 0 42px; height:42px;
  background: #ffe5d2; border-radius: 12px; color: #a43c11; font-size: 24px; font-weight: 850; }
.project-report__body { min-width:0; }
.project-report .eyebrow { margin-bottom:8px; font-size: 10px; }
.project-report h2 { margin:0 0 12px; font-size: clamp(23px,2.8vw,31px); }
.project-report p:not(.eyebrow) { max-width: 850px; margin:0 0 16px; color:var(--ink-soft); font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.project-report__link { min-height: 43px; gap: 16px; }
@media(max-width:520px) {
  .project-page .project-hero__coffee, .project-page .project-hero__report { width: 100%; justify-content: center; }
  .project-report { gap: 12px; padding: 19px 15px; }
  .project-report__icon { flex-basis: 34px; height: 34px; font-size: 20px; }
}

/* Karty na stronie głównej: grafika o 20% wyższa niż przed poprawką.
   Oddzielna grafika jest wgrywana w panelu projektu jako "Grafika karty na stronie głównej". */
.home-page .project-card__art { height: 132px; }
.home-page .project-card__art > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 520px) { .home-page .project-card__art { height: 139px; } }

/* Strona główna: tylko zajawka newsa i dyskretny odnośnik do pełnej treści. */
.news-feature .news-feature__copy .news-feature__lead {
    font-weight: 400;
    color: var(--ink-soft);
    line-height: 1.65;
}
.news-feature .news-feature__copy .news-feature__button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 11px;
    gap: 6px;
    margin: 4px 0 0;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 650;
    box-shadow: none;
}
.news-feature .news-feature__copy .news-feature__button span {
    font-size: 12px;
    font-weight: 600;
}

/* PixelTale: podpis autora newsa — bez niezamierzonego pogrubienia. */
.news-date .news-byline { color: var(--muted); font-weight: 400; letter-spacing: normal; }

/* Serce jako grafika wektorowa, idealnie na środku kafelka niezależnie od czcionki. */
.support-section__illustration > .support-section__heart,
.home-page .support-section__illustration > .support-section__heart {
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    width: 68%;
    height: 68%;
    font-size: 0;
    line-height: 0;
    text-shadow: none;
    transform: rotate(6deg);
}
.support-section__illustration > .support-section__heart::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url('../images/heart.svg') center / contain no-repeat;
    filter: drop-shadow(6px 7px 0 #fff6f0);
}
.project-support__mark { font-size: 0; }
.project-support__mark::before {
    content: "";
    display: block;
    width: 62%;
    height: 62%;
    background: url('../images/heart.svg') center / contain no-repeat;
}

/* Serce pod linia motta: blisko podkreslenia, na jego srodku. */
.home-page .hero__motto-heart {
  left: calc(50% - 25px);
  bottom: -53px;
  line-height: 1;
}
@media (max-width: 760px) {
  .home-page .hero__motto-heart {
    left: calc(50% - 16px);
    bottom: -42px;
  }
}


/* PixelTale: stabilne centrowanie serca. Linia i serce są jednym układem,
   bez niezależnych przesunięć left/bottom zależnych od szerokości napisu. */
.home-page .hero__motto::after { content: none; display: none; }
.home-page .hero__motto .hero__motto-decor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 78%;
  margin: 8px 0 0 11px;
  transform: rotate(-8deg);
}
.home-page .hero__motto .hero__motto-line {
  display: block;
  flex: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.home-page .hero__motto .hero__motto-decor > .hero__motto-heart {
  display: block;
  position: static;
  flex: none;
  width: 34px;
  height: 34px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: normal;
  transform: rotate(16deg);
  color: inherit;
}
@media (max-width: 760px) {
  .home-page .hero__motto .hero__motto-decor { gap: 5px; margin-top: 5px; }
  .home-page .hero__motto .hero__motto-line { height: 2px; }
  .home-page .hero__motto .hero__motto-decor > .hero__motto-heart { width: 26px; height: 26px; }
}


/* WARIANT TESTOWY: logo z kotem bardziej po prawej, bez napisu obok.
   Zmiany wyłącznie dla strony głównej; na telefonach brak wychodzenia poza ekran. */
@media (min-width: 761px) {
  .home-page .hero__mascot { right: 0; }
}
@media (max-width: 760px) {
  .home-page .hero__mascot { left: calc(50% + 14px); }
}

/* Wariant testowy bez motta: zwężony cały obszar treści strony głównej.
   Podstrony newsów i projektów pozostają bez zmian. Na małych ekranach
   szerokość nadal dopasowuje się do dostępnego miejsca. */
.home-page { --container: 1060px; }


/* Aktualności: cały przycisk nad dekoracją hero, bez prześwitujących kropek. */
.home-page .news-feature {
  position: relative;
  z-index: 2;
}
.home-page .news-feature__heading .text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 17px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .home-page .news-feature__heading .text-link {
    padding: 10px 13px;
  }
}

/* PixelTale — telefon: przycisk Pobierz zajmuje cala szerokosc; link do historii
   pozostaje w kolumnie z tekstem (a nie w 25-pikselowej kolumnie ikony). */
@media (max-width: 520px) {
  .project-page .project-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-page .project-hero__actions > .project-hero__download {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .project-page .project-facts .project-facts__changelog-link {
    grid-column: 2;
    justify-self: start;
    width: auto;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
  }
}

/* Telefon: tekst pierwszego przycisku jest rzeczywiście na środku,
   a strzałka pozostaje przy prawej krawędzi przycisku. */
@media (max-width: 520px) {
  .project-page .project-hero__actions > .project-hero__download {
    position: relative;
    justify-content: center;
    text-align: center;
    padding-left: 48px;
    padding-right: 48px;
  }

  .project-page .project-hero__actions > .project-hero__download > span[aria-hidden="true"] {
    position: absolute;
    right: 21px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
  }
}

/* Telefon: Pobierz – napis i strzałka jako jedna wyśrodkowana grupa,
   analogicznie do przycisków Postaw kawę oraz Znalazłeś błąd?. */
@media (max-width: 520px) {
  .project-page .project-hero__actions > .project-hero__download {
    justify-content: center;
    gap: 12px;
    padding-inline: 21px;
    text-align: center;
  }
  .project-page .project-hero__actions > .project-hero__download > span[aria-hidden="true"] {
    position: static;
    inset: auto;
    transform: none;
    flex: 0 0 auto;
    line-height: 1;
  }
}

/* Wariant mobilny banera strony głównej: układ jak na makiecie.
   Wyłącznie .home-page, desktop i podstrony projektów pozostają bez zmian. */
@media (max-width: 760px) {
  .home-page .hero {
    min-height: 0;
    overflow: hidden;
    padding-top: 0;
  }
  .home-page .hero__bottom.container {
    width: min(calc(100% - 36px), 520px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 30px 0 2px;
  }
  .home-page .hero__content {
    width: 100%;
    max-width: none;
    text-align: left;
  }
  .home-page .hero .eyebrow {
    justify-content: flex-start;
    width: 100%;
    margin: 0 0 18px;
    font-size: clamp(10px, 2.7vw, 12px);
    letter-spacing: .14em;
  }
  .home-page .hero h1 {
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.1;
    letter-spacing: -.055em;
    text-align: left;
  }
  .home-page .hero h1 span { display: block; }
  .home-page .hero__lead {
    width: 100%;
    max-width: 510px;
    margin: 0 0 23px;
    color: var(--ink-soft);
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.55;
    text-align: left;
  }
  .home-page .hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .home-page .hero__actions .button {
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 57px;
    padding: 12px 16px;
    border-radius: 13px;
    font-size: 15px;
    text-align: center;
  }
  .home-page .hero__visual {
    position: relative;
    align-self: center;
    width: 100%;
    max-width: 520px;
    height: clamp(225px, 63vw, 320px);
    min-height: 0;
    margin: 17px auto 0;
    overflow: visible;
  }
  .home-page .hero__visual::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 28px;
    left: 3%;
    right: auto;
    bottom: auto;
    width: 94%;
    height: 75%;
    max-height: none;
    aspect-ratio: auto;
    background: linear-gradient(132deg, #ffe1d0 0%, #ffc09d 48%, #ff9b69 100%);
    /* Zaokraglony, asymetryczny ksztalt bez kanciastych bokow. */
    border-radius: 61% 39% 54% 46% / 45% 38% 62% 55%;
    clip-path: none;
    opacity: 1;
    transform: rotate(-7deg);
    box-shadow: none;
  }
  /* SVG logo zawiera też napis PixelTale — na telefonie pokazujemy samą
     górną część z kotem, bez zmiany pliku logo używanego na desktopie. */
  .home-page .hero__mascot {
    position: absolute;
    z-index: 1;
    top: clamp(-77px, -16vw, -48px);
    left: 50%;
    right: auto;
    bottom: auto;
    display: block;
    width: min(113vw, 570px);
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    clip-path: inset(0 0 32% 0);
    filter: drop-shadow(0 0 5px rgba(255,255,255,.7));
  }
  .home-page .hero__pixels--left {
    display: grid;
    top: 17px;
    right: 14px;
    left: auto;
    bottom: auto;
    transform: rotate(-7deg) scale(.73);
    transform-origin: top right;
    opacity: .85;
  }
  .home-page .hero__pixels--middle { display: none; }
}
@media (max-width: 380px) {
  .home-page .hero__bottom.container { padding-top: 28px; }
  .home-page .hero h1 { font-size: clamp(31px, 9vw, 35px); }
  .home-page .hero__visual { height: clamp(220px, 63vw, 250px); }
}


/* PixelTale: komentarze gości z lokalną CAPTCHA i moderacją. */
.pt-comments { scroll-margin-top: 100px; }
.pt-comments__list { list-style: none; display: grid; gap: 12px; margin: 15px 0 26px; padding: 0; }
.pt-comments__item { border: 1px solid #ead9cc; border-radius: 13px; background: #fff; padding: 17px 19px; overflow-wrap: anywhere; }
.pt-comments__meta { display: flex; align-items: center; gap: 7px 14px; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; }
.pt-comments__meta strong { color: var(--ink); font-size: 14px; }
.pt-comments__guest, .pt-comments__meta time, .pt-comments__empty, .pt-comments__help { color: var(--ink-soft); font-size: 12px; }
.pt-comments__item p { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: 14px; }
.pt-comments__form { display: grid; gap: 9px; margin-top: 20px; max-width: 690px; }
.pt-comments__form > label, .pt-comments__captcha label { font-size: 13px; font-weight: 750; color: var(--ink); }
.pt-comments__optional { color: var(--muted); font-weight: 400; }
.pt-comments__form input:not([type=hidden]), .pt-comments__form textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; border: 1px solid #dfd1c5; border-radius: 9px; background: #fff; padding: 11px 13px; color: var(--ink); font: inherit; font-size: 14px; }
.pt-comments__form textarea { min-height: 125px; resize: vertical; }
.pt-comments__form input:focus-visible, .pt-comments__form textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.pt-comments__captcha { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0; }
.pt-comments__captcha input { width: 85px !important; text-align: center; }
.pt-comments__submit { justify-content: center; justify-self: start; min-width: 220px; }
.pt-comments__help { margin: 3px 0 0; line-height: 1.5; }
.pt-comments__notice { padding: 12px 15px; background: #edfff1; color: #175828; border: 1px solid #bfe3c6; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.pt-comments__notice--error { background: #fff3ef; color: #9d321e; border-color: #f0b7a5; }
.pt-comments__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 760px) {
  .pt-comments { padding: 20px 16px; }
  .pt-comments__submit { justify-self: stretch; width: 100%; }
  .pt-comments__item { padding: 14px; }
}
