/* Wspólna oprawa poradników, informacji i stron spraw. */
.subpage,.subpage *{box-sizing:border-box}.subpage{margin:0;background:#f3efe6;color:#262d30;font:16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}.subpage .subpage-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,220px);align-items:center;gap:clamp(20px,5vw,48px);width:calc(100% - 32px);max-width:1050px;margin:20px auto 0;padding:clamp(22px,4vw,38px);background:radial-gradient(ellipse at 85% 30%,rgba(187,145,76,.16),transparent 55%),linear-gradient(125deg,#202a31,#343229);border:1px solid #b79558;border-radius:18px;box-shadow:0 8px 22px rgba(53,42,29,.13);color:#f8f2e4}.subpage .subpage-heading{min-width:0}.subpage .subpage-header h1{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:clamp(1.8rem,3.8vw,2.7rem);font-weight:750;letter-spacing:-.03em;line-height:1.16;color:#fff5e0;margin:22px 0 0;overflow-wrap:anywhere}.subpage .subpage-nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.subpage .subpage-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 20px;border:1px solid #a8751e;border-radius:10px;background:linear-gradient(145deg,#f6dc94,#dba948);color:#30220d;font-weight:750;text-decoration:none;box-shadow:0 3px 0 #9e772c}.subpage .subpage-back:hover,.subpage .subpage-back:focus-visible{background:linear-gradient(145deg,#ffe9b0,#e7b756);color:#2d210f}.subpage .subpage-secondary{color:#f2d495;font-weight:700;text-decoration:underline;text-underline-offset:3px}.subpage .subpage-brand{display:block;min-width:0}.subpage .subpage-brand img{display:block;width:100%;height:auto;border:1px solid #b79558;border-radius:12px;box-shadow:0 8px 18px #0004}.subpage main,.subpage footer{width:calc(100% - 32px);max-width:1050px;margin:0 auto;padding:24px 0}.subpage main{min-width:0;text-align:left;overflow-wrap:anywhere}.subpage main article,.subpage main .info{background:#f9f6ef;border:1px solid #d8c9ae;border-radius:14px;box-shadow:0 5px 18px rgba(70,58,38,.06);padding:clamp(20px,3vw,34px)}.subpage main h2,.subpage main h3{text-align:left;color:#30302a;line-height:1.3}.subpage main p,.subpage main li,.subpage main dd{text-align:left;line-height:1.65}.subpage a:focus-visible{outline:3px solid #c58c26;outline-offset:3px}.subpage main img{max-width:100%;height:auto}.subpage footer{border-top:1px solid #dac9a7;color:#514738}.subpage footer a{color:#6a4a14}@media(max-width:600px){.subpage .subpage-header{width:calc(100% - 24px);margin-top:12px;grid-template-columns:1fr;padding:22px;gap:20px}.subpage .subpage-header h1{font-size:clamp(1.65rem,7vw,2.15rem);margin-top:20px}.subpage .subpage-brand{max-width:205px}.subpage main,.subpage footer{width:calc(100% - 24px);padding:18px 0}.subpage main article,.subpage main .info{padding:20px}.subpage .list{columns:1}}

.case-page .subpage-header{background:transparent;border:0;box-shadow:none;color:#30271d}.case-page .subpage-header h1{color:#30271d}.case-page .subpage-secondary{color:#795019}.case-page .subpage-brand img{border:0;border-radius:0;box-shadow:none;background:transparent}@media(max-width:600px){.case-page .subpage-brand{justify-self:center;width:min(205px,70%)}.case-page .subpage-header{gap:12px}}

/* Wspólny jasny nagłówek podstron, zgodny ze stronami spraw. */
.subpage .subpage-header{background:transparent;border:0;box-shadow:none;color:#30271d}
.subpage .subpage-header h1{color:#30271d}
.subpage .subpage-secondary{color:#795019}
.subpage .subpage-brand img{border:0;border-radius:0;box-shadow:none;background:transparent;filter:drop-shadow(0 2px 3px rgba(120,75,18,.12))}
@media(max-width:600px){.subpage .subpage-header{gap:12px}.subpage .subpage-brand{justify-self:center;width:min(205px,70%)}}

/* Odnośnik do pracowni zajmuje miejsce znaku po prawej stronie nagłówka sprawy. */
.case-page .subpage-header{grid-template-columns:minmax(0,1fr) minmax(190px,260px)}
.case-page .subpage-brand{display:flex;align-items:center;justify-content:flex-end;gap:12px;position:relative}
.case-page .subpage-brand-logo{display:flex;align-items:center;justify-content:center;flex:0 0 132px;min-height:78px;padding:7px 9px;border:1px solid rgba(148,113,58,.42);border-radius:13px;background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(210,180,119,.12));text-decoration:none}
.case-page .subpage-brand-logo img{display:block;width:100%;height:auto;max-height:62px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(120,75,18,.12))}
.case-page .subpage-brand-hint{position:relative;min-width:0}
.case-page .subpage-brand-hint summary{display:inline-flex;align-items:center;gap:6px;list-style:none;cursor:pointer;color:#6c4b14;font-size:.82rem;font-weight:750;border-bottom:1px solid #ad813c;padding:7px 2px}
.case-page .subpage-brand-hint summary::-webkit-details-marker{display:none}
.case-page .subpage-brand-hint summary::after{content:"?";display:grid;place-items:center;width:18px;height:18px;border:1px solid #aa7d31;border-radius:50%;font-size:.72rem}
.case-page .subpage-brand-popup{position:absolute;z-index:5;top:calc(100% + 8px);right:0;width:min(245px,calc(100vw - 36px));padding:12px 14px;border:1px solid #b98d49;border-radius:7px 14px 8px 12px;background:linear-gradient(rgba(255,249,233,.94),rgba(255,249,233,.94)),url("pergamin-faktura.jpg") center/430px auto;box-shadow:0 8px 20px #3f2b1938;color:#332619;font-size:.82rem;line-height:1.4}
.case-page .subpage-brand-popup strong{display:block;color:#54350e}
.case-page .subpage-brand-popup p{margin:5px 0 0;color:#332619}
@media(max-width:600px){.case-page .subpage-header{grid-template-columns:minmax(0,1fr) 112px;align-items:start;padding:18px 16px;gap:10px}.case-page .subpage-heading{display:contents}.case-page .subpage-header h1{grid-column:1/-1;grid-row:2;margin-top:12px}.case-page .subpage-nav{grid-column:1;grid-row:1;gap:7px}.case-page .subpage-back{padding:8px 13px}.case-page .subpage-brand{grid-column:2;grid-row:1;flex-direction:column;align-items:flex-end;gap:2px;width:112px;max-width:none;justify-self:end}.case-page .subpage-brand-logo{flex-basis:auto;width:92px;min-height:52px;padding:5px 6px;border-radius:10px}.case-page .subpage-brand-logo img{max-height:40px}.case-page .subpage-brand-hint summary{font-size:.72rem;padding:4px 2px}.case-page .subpage-brand-popup{right:0}}

.case-page .subpage-brand-logo{background:transparent;border-color:transparent;box-shadow:none}.case-page .subpage-brand-logo img{background:transparent;filter:drop-shadow(0 1px 1px rgba(0,0,0,.85)) drop-shadow(0 2px 2px rgba(0,0,0,.4))}

/* Pola formularzy */
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0;color:#342819;background:linear-gradient(150deg,#fbf7ed,#f1e5ce);border:1px solid #bda77e;border-radius:9px;box-shadow:inset 0 1px 2px rgba(99,71,30,.06);transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea):hover{border-color:#9b742f}
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea):focus{outline:2px solid #95670e;outline-offset:2px;border-color:#95670e;box-shadow:0 0 0 4px rgba(181,132,43,.14),inset 0 1px 2px rgba(99,71,30,.06)}
body :is(input,textarea)::placeholder{color:#766b5b;opacity:1}
@media(max-width:600px){body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea){font-size:16px;max-width:100%}}
@media(prefers-reduced-motion:reduce){body :is(input,select,textarea){transition:none}}
