:root {
  color-scheme: light;
  --paper: #faf8f4;
  --ink: #202d26;
  --forest: #205b42;
  --muted: #536158;
  --line: #d8ded5;
  --light: #edf4e8;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
html { --header-height: 80px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1px); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #597e24; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(calc(100% - 88px), 1152px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 2; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid #dce0d6; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header-inner { min-height: var(--header-height); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 25px; letter-spacing: -.055em; line-height: 1; color: #183b2b; }
.wordmark img { flex: none; }
.brand-dot { color: #6a8c3a; }
nav { display: flex; gap: 32px; align-items: center; }
.nav-link { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-link:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--forest); color: #fff; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 650; font-size: 14px; transition: background .16s; }
.button:hover { background: #134630; }
.button:disabled { background: #69746a; }
.header-cta { min-height: 42px; padding: 0 17px; }
.header-cta .icon { width: 16px; height: 16px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; padding: 37px 0 39px; }
.eyebrow, .live-label { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--forest); }
.eyebrow { margin: 0 0 14px; }
.eyebrow span { width: 24px; height: 2px; background: var(--forest); }
h1, h2, p, dl { margin: 0; }
h1 { font-size: clamp(58px, 5.4vw, 77px); font-weight: 600; line-height: .98; letter-spacing: -.064em; }
h1 em { display: block; font-family: 'DM Serif Text', Georgia, serif; font-weight: 400; color: var(--forest); letter-spacing: -.052em; }
.intro { margin-top: 18px; max-width: 520px; color: #46544b; font-size: 16px; line-height: 1.57; letter-spacing: -.012em; }
.intro strong { color: #283c2f; font-weight: 650; }
.hero-art { width: min(100%, 460px); height: auto; justify-self: center; mix-blend-mode: darken; }
.workspace { scroll-margin-top: 18px; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); grid-template-areas: "setup estimate" "contact estimate"; column-gap: 24px; align-items: start; }
.form-part { padding: 26px 30px; background: #fff; border: 1px solid var(--line); }
.setup { grid-area: setup; border-radius: 16px 16px 0 0; border-bottom: 0; }
.contact { grid-area: contact; border-radius: 0 0 16px 16px; border-top: 0; padding-top: 0; scroll-margin-top: 16px; }
.section-head { display: flex; gap: 12px; align-items: center; }
.section-head h2, .faq h2 { font-size: 25px; font-weight: 650; letter-spacing: -.042em; line-height: 1.18; }
.icon-tile { width: 38px; height: 38px; display: grid; place-items: center; color: var(--forest); background: var(--light); border-radius: 9px; flex: none; }
.icon-tile .icon { width: 21px; height: 21px; }
.role-field { border: none; padding: 0; margin: 23px 0 19px; min-width: 0; }
legend, .field label, .more label { display: block; padding: 0; font-size: 14px; line-height: 1.45; font-weight: 650; margin-bottom: 8px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.role-tile { display: flex; gap: 9px; align-items: center; min-height: 56px; padding: 12px 13px; height: 100%; border: 1px solid #cfd7ce; border-radius: 8px; font-size: 14px; font-weight: 600; background: #fff; }
.role-icon { width: 21px; height: 21px; color: #506254; }
.radio-mark { display: grid; place-items: center; flex: none; margin-left: auto; border: 1px solid #b8c2b7; width: 14px; height: 14px; border-radius: 50%; }
.radio-mark .icon { width: 11px; height: 11px; display: none; stroke-width: 2.6; }
.role input:checked + .role-tile { color: var(--forest); border-color: var(--forest); box-shadow: inset 0 0 0 .4px var(--forest); background: #eff5ea; }
.role input:checked + .role-tile .role-icon { color: var(--forest); }
.role input:checked + .role-tile .radio-mark { background: var(--forest); border-color: var(--forest); color: white; }
.role input:checked + .role-tile .radio-mark .icon { display: block; }
.role:hover .role-tile { border-color: var(--forest); }
.role input:focus-visible + .role-tile { outline: 3px solid #73913d; outline-offset: 2px; }
.field input, textarea { width: 100%; color: var(--ink); border: 1px solid #cbd3ca; border-radius: 7px; padding: 12px 13px; line-height: 1.4; background: #fff; font-size: 15px; }
input::placeholder, textarea::placeholder { color: #68736a; }
.field input:focus, textarea:focus { outline: 2px solid #547e59; outline-offset: 1px; }
.salary-input { position: relative; }
.salary-input input { padding-right: 39px; font-weight: 600; }
.salary-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #606e62; font-size: 14px; }
.field small { display: block; margin-top: 6px; color: #5c685f; font-size: 12px; line-height: 1.45; }
.estimate { grid-area: estimate; align-self: start; position: sticky; top: calc(var(--header-height) + 19px); min-width: 0; }
.ticket { position: relative; overflow: hidden; padding: 24px 28px 32px; color: #1f4b32; background: #e7f1de; border-top: 3px solid #406d48; border-radius: 13px 13px 0 0; }
.ticket::after { position: absolute; height: 9px; left: 0; right: 0; bottom: -1px; content: ''; background: linear-gradient(135deg, transparent 50%, var(--paper) 50%) 0 0/16px 16px repeat-x, linear-gradient(225deg, transparent 50%, var(--paper) 50%) 0 0/16px 16px repeat-x; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live-label { color: #315b39; font-size: 10px; }
.live-label span { width: 7px; height: 7px; border-radius: 50%; background: #3b7d4b; box-shadow: 0 0 0 4px #d4e6c9; }
.receipt-icon { width: 26px; height: 26px; color: #5d795a; stroke-width: 1.45; transform: rotate(8deg); }
.ticket h2 { font-size: 16px; letter-spacing: -.015em; font-weight: 550; }
#wynik { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .15em; margin: 4px 0; font-size: clamp(29px, 2.55vw, 40px); font-weight: 650; line-height: 1.2; letter-spacing: -.058em; }
#wynik > span { white-space: nowrap; }
#wynik small { font-size: .62em; letter-spacing: -.03em; }
#wynik.empty { font-size: 24px; padding: 5px 0; }
.unit, .breakdown { font-size: 14px; }
.unit { color: #46634a; }
.tear { position: relative; margin: 23px -28px 17px; border-top: 1px dashed #99b397; }
.tear::before, .tear::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); top: -8px; }
.tear::before { left: -8px; }
.tear::after { right: -8px; }
.breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.breakdown > div + div { margin-top: 9px; }
.breakdown dt { color: #47634c; }
dd { margin: 0; font-weight: 650; }
.guarantee { margin: 18px 14px 0; }
.guarantee h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--forest); font-size: 16px; line-height: 1.35; font-weight: 650; letter-spacing: -.015em; }
.guarantee h3 .icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #dfebd6; stroke-width: 2.3; }
.guarantee p { color: var(--muted); font-size: 14px; line-height: 1.52; }
.contact .section-head { padding-top: 22px; margin-bottom: 12px; border-top: 1px solid #e1e5de; }
.contact h2 { font-size: 22px; }
.contact .icon-tile { width: 34px; height: 34px; }
.contact-instructions { color: var(--muted); font-size: 15px; line-height: 1.6; }
.contact-instructions a, .footer-email { color: var(--forest); font-weight: 600; overflow-wrap: anywhere; text-underline-offset: .19em; text-decoration-thickness: 1px; }
.contact-instructions a:hover, .footer-email:hover { text-decoration-thickness: 2px; }
.compose-fields { margin-top: 17px; }
.position-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 15px; }
.contact .button { min-height: 46px; max-width: 100%; padding: 10px 17px; text-align: center; }
.contact .button .icon { width: 17px; height: 17px; }
.mail-preview { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.mail-preview h3 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.035em; }
.mail-to { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; margin: 7px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
#mail-recipient { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.mail-preview .field + .field { margin-top: 13px; }
.mail-preview [readonly] { background: #f6f8f3; border-color: var(--line); color: #344739; }
#mail-body { display: block; min-height: 12em; line-height: 1.55; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.button-secondary { color: var(--forest); background: white; border-color: #aabaaa; }
.button-secondary:hover { background: var(--light); }
.copy-status { display: block; margin-top: 8px; color: var(--forest); font-size: 13px; line-height: 1.5; }
.copy-status:empty { margin: 0; }
.mail-fallback { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.mail-fallback textarea { display: block; margin-top: 6px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.more { margin: 12px 0 0; }
.more summary { display: inline-flex; gap: 6px; align-items: center; color: var(--forest); font-size: 14px; font-weight: 650; }
.more summary span { font-weight: 400; color: var(--muted); }
.more summary .icon { width: 15px; height: 15px; }
.more[open] summary .icon { transform: rotate(45deg); }
.more label { margin-top: 16px; }
textarea { resize: vertical; }
.scope { margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.scope-intro { display: grid; grid-template-columns: .7fr 1fr; gap: 35px; }
.scope h2 { font-size: 30px; letter-spacing: -.042em; line-height: 1.2; font-weight: 650; }
.scope p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 26px; }
.profiles > div { padding: 14px 0 0; border-top: 1px solid var(--line); }
.profiles h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: var(--forest); font-size: 17px; letter-spacing: -.02em; }
.faq { margin: 54px 0 58px; padding-top: 29px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .7fr 1fr; gap: 35px; scroll-margin-top: 20px; }
.faq h2 { max-width: 290px; font-size: 30px; }
.answers details { border-bottom: 1px solid var(--line); }
.answers summary { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 15px 0; font-weight: 600; }
.answers details:first-child summary { padding-top: 3px; }
.answers details[open] .icon { transform: rotate(180deg); }
.answers p { margin: -2px 28px 18px 0; color: var(--muted); line-height: 1.6; font-size: 15px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; padding: 22px 0; color: var(--muted); font-size: 13px; }
.footer-email { max-width: 100%; }
.footer-inner .wordmark { font-size: 19px; gap: 7px; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 60px); }
  .workspace { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); column-gap: 18px; }
  .form-part { padding-inline: 22px; }
  .role-tile { padding-inline: 9px; gap: 6px; font-size: 13px; }
  .role-icon { width: 18px; height: 18px; }
  .hero { gap: 28px; }
}
@media (max-width: 880px) {
  .scope-link { display: none; }
  .role-tile { position: relative; flex-direction: column; justify-content: center; gap: 5px; min-height: 65px; }
  .radio-mark { position: absolute; right: 7px; top: 7px; width: 11px; height: 11px; }
  .ticket { padding-inline: 18px; }
  .tear { margin-inline: -18px; }
  nav { gap: 18px; }
}
@media (max-width: 700px), (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  html { --header-height: 64px; }
  .estimate { position: static; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 8px; }
  .wordmark { min-height: 44px; }
  .header-inner .wordmark { font-size: 19px; gap: 6px; }
  .header-inner .wordmark img { width: 29px; height: 29px; }
  .header-cta { font-size: 13px; gap: 5px; min-height: 44px; padding: 4px 10px; }
  .header-cta .icon { width: 14px; }
  .nav-link { display: none; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 0 8px; padding: 24px 0 20px; }
  .hero-copy { display: contents; }
  .hero h1 { grid-column: 1; grid-row: 2; }
  .hero-art { grid-column: 2; grid-row: 2; justify-self: end; width: 100%; max-width: 190px; }
  h1 { font-size: clamp(42px, 9vw, 61px); }
  .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; font-size: 10px; gap: 7px; }
  .intro { grid-column: 1 / -1; margin-top: 12px; max-width: 510px; font-size: 15px; line-height: 1.5; }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "setup" "estimate" "contact"; gap: 0; }
  .form-part { padding: 19px 17px; border: 1px solid var(--line); border-radius: 12px; }
  .setup { border-radius: 12px 12px 0 0; border-bottom: 0; padding-bottom: 15px; }
  .setup .field { display: grid; }
  .setup .field label { margin-bottom: 0; }
  #pensja-hint { grid-row: 2; margin: 2px 0 7px; }
  .salary-input { grid-row: 3; }
  .section-head { gap: 9px; }
  .section-head h2 { font-size: 22px; }
  .role-field { margin: 18px 0 16px; }
  .roles { gap: 7px; }
  .role-tile { min-height: 59px; }
  .field input, textarea { font-size: 16px; }
  .ticket { padding: 14px 18px 24px; border-width: 1px; border-color: #b5c8ae; border-radius: 0; }
  .ticket-top { position: absolute; top: 14px; right: 18px; margin: 0; }
  .ticket h2 { padding-right: 31px; }
  .ticket .live-label { display: none; }
  .receipt-icon { width: 21px; height: 21px; }
  #wynik { font-size: clamp(32px, 7vw, 41px); }
  .tear { margin: 14px -18px 11px; }
  .guarantee { margin: 14px 9px 0; }
  .contact { margin-top: 18px; }
  .contact .section-head { border: 0; padding-top: 0; }
  .more { margin-top: 4px; }
  .more summary, .answers summary { min-height: 44px; }
  .more summary { width: 100%; }
  .contact .button { flex: 1 1 auto; }
  .footer-inner { row-gap: 8px; }
  .scope { margin-top: 30px; padding-top: 25px; }
  .scope-intro { display: block; }
  .scope h2 { font-size: 25px; margin-bottom: 12px; }
  .profiles { grid-template-columns: 1fr; gap: 15px; margin-top: 18px; }
  .faq { display: block; margin: 30px 0; padding-top: 25px; }
  .faq h2 { max-width: none; font-size: 25px; margin-bottom: 17px; }
}
@media (pointer: coarse) {
  .nav-link, .header-cta, .wordmark, .more summary, .answers summary { min-height: 44px; }
}
@media (max-width: 480px) {
  .mail-actions { flex-direction: column; }
  .contact .button { width: 100%; }
}
@media (max-width: 380px) {
  .header-inner .wordmark { font-size: 16px; }
  .header-inner .wordmark img { width: 24px; height: 24px; }
  .header-cta { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
