/* Uses AMP's shared type, palette, spacing and card language. */
body[data-page="cennik"] .accounting-calculator { padding-block: 56px; }
body[data-page="cennik"] #calculator-title { font-family: var(--sans); font-size: var(--ds-type-section); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; margin: 0 0 20px; }
.accounting-calculator .section-lead { max-width: 760px; }
.calc-shell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 38px; border: 1px solid var(--theme-border); border-radius: 24px; overflow: hidden; background: var(--theme-surface); }
.calc-shell [hidden] { display: none !important; }
.calc-main { min-width: 0; padding: 24px 28px; }
.calc-shell button, .calc-shell input { font-family: inherit; }
.calc-shell button, .calc-shell a, .calc-shell input { -webkit-tap-highlight-color: transparent; }
.calc-shell button { cursor: pointer; }
.calc-shell h3 { font-family: var(--sans); font-size: clamp(26px, 2.2vw, 32px); font-weight: 700; line-height: 1.14; letter-spacing: -.035em; margin: 0; }
.calc-shell :is(h2, h3):focus { outline: none; }
.calc-shell h3 { scroll-margin-top: 110px; }
.calc-progress { display: flex; gap: 18px; list-style: none; margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--theme-border); }
.calc-progress li { display: flex; gap: 8px; align-items: center; color: var(--theme-muted); font-size: 14px; line-height: 1.35; font-weight: 650; }
.calc-progress li > span { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--theme-border); }
.calc-progress [aria-current] { color: var(--theme-text); }
.calc-progress [aria-current] > span { background: var(--theme-text); border-color: var(--theme-text); color: #fff; }
.calc-progress .is-done > span { background: var(--theme-accent-soft); color: var(--theme-text); }
.calc-intro { margin: 8px 0 16px; color: var(--theme-text-soft); font-size: 16px; line-height: 1.55; }
.calc-step > :is(h2, h3) { margin-bottom: 18px; }
.calc-form fieldset { border: 0; min-width: 0; padding: 0; margin: 0 0 16px; }
.calc-form select { width: 100%; font: inherit; font-size: 16px; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--theme-border); background: var(--theme-page); color: var(--theme-text); }
.calc-form select:focus-visible { outline: 3px solid var(--theme-accent); outline-offset: 3px; }
.calc-form legend { padding: 0; margin: 0 0 12px; font-size: 16px; line-height: 1.5; font-weight: 750; color: var(--theme-text); }
.calc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc-options-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-choice { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px; min-height: 64px; border: 1px solid var(--theme-border); border-radius: 14px; background: var(--theme-page); cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.calc-choice:has(input:checked) { background: var(--theme-accent-soft); border-color: var(--theme-text); }
.calc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-choice:has(input:focus-visible) { outline: 3px solid var(--theme-text); outline-offset: 3px; }
.calc-choice strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.calc-choice small { display: block; color: var(--theme-text-soft); font-size: 14px; line-height: 1.4; margin-top: 5px; }
.calc-choice i { border: 1px solid var(--theme-border); border-radius: 50%; width: 18px; height: 18px; flex: 0 0 18px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-style: normal; }
.calc-choice:has(input:checked) i { background: var(--theme-text); color: #fff; border-color: var(--theme-text); }
.calc-choice:has(input:checked) i::before { content: '✓'; }
.calc-choice:has(input[value="przemysl"]) { grid-column: 1 / -1; min-height: 56px; background: transparent; }
.calc-scope, .calc-hint { color: var(--theme-text-soft); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.calc-scope { margin-bottom: 0; }
.calc-number-row { display: flex; align-items: center; gap: 16px; margin: 22px 0 12px; }
.calc-number-row > input { width: 140px; min-width: 0; min-height: 60px; border: 1px solid var(--theme-border); border-radius: 12px; padding: 10px 16px; background: var(--theme-page); color: var(--theme-text); font-size: 28px; font-weight: 750; }
.calc-number-row > span { color: var(--theme-text-soft); font-size: 16px; }
.calc-range { accent-color: var(--theme-text); width: 100%; height: 36px; cursor: pointer; margin: 0; }
.calc-range-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--theme-text-soft); margin: 0 0 16px; }
.calc-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--theme-border); padding-top: 14px; margin-top: 16px; }
.calc-next, .calc-contact { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 50px; border-radius: 999px; padding: 14px 22px; border: 1px solid transparent; background: var(--theme-text); color: #fff; font-size: 16px; line-height: 1.4; font-weight: 700; text-decoration: none; transition: transform 140ms var(--amp-ease-out); }
.calc-next { margin-left: auto; }
.calc-next:disabled { opacity: .5; cursor: not-allowed; }
.calc-back, .calc-edit { background: transparent; color: var(--theme-text); border: 0; padding: 12px 0; min-height: 48px; font-size: 16px; line-height: 1.4; font-weight: 700; }
.calc-shell button:focus-visible, .calc-shell a:focus-visible, .calc-shell input:not([type="radio"]):focus-visible { outline: 3px solid var(--theme-accent); outline-offset: 4px; }
.calc-next:not(:disabled):active, .calc-contact:active { transform: scale(.97); }
.calc-error { color: #8c2823; font-size: 16px; line-height: 1.5; padding: 12px 0; }
.calc-reassurance { display: flex; align-items: flex-start; gap: 12px; background: var(--theme-accent-soft); padding: 20px; border-radius: 14px; margin: 30px 0; }
.calc-reassurance > span { font-size: 20px; }
.calc-reassurance p { margin: 0; font-size: 16px; line-height: 1.5; }
.calc-result { display: flex; flex-direction: column; padding: 28px; background: var(--theme-text); color: #fff; min-width: 0; }
.calc-result-tag { font-size: 14px; color: var(--theme-highlight); text-transform: uppercase; font-weight: 750; letter-spacing: .07em; margin-bottom: 24px; }
.calc-result h3, .calc-result strong { color: #fff; }
.calc-result h3 { font-size: clamp(28px, 2.7vw, 38px); }
.calc-result-content > p { font-size: 16px; line-height: 1.6; color: #dce9e8; margin: 18px 0; }
.calc-result-symbol { display: inline-flex; justify-content: center; align-items: center; width: 46px; height: 46px; border: 1px solid #8da9a8; border-radius: 50%; color: var(--theme-highlight); font-size: 24px; margin-bottom: 24px; }
.calc-benefits { list-style: none; padding: 20px 0 0; margin: 24px 0; border-top: 1px solid #4e7071; }
.calc-benefits li { font-size: 14px; line-height: 1.5; margin: 12px 0; color: #e4eeee; }
.calc-benefits li::before { content: '✓'; color: var(--theme-highlight); margin-right: 10px; }
.calc-discussion { margin: 12px 0; padding: 0; border: 0; }
.calc-discussion li { margin: 8px 0; }
.calc-result-person { display: flex; align-items: center; gap: 12px; border-top: 1px solid #4e7071; padding-top: 24px; margin-top: auto; }
.calc-result-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex-shrink: 0; }
.calc-result-person p { margin: 0; font-size: 14px; line-height: 1.5; }
.calc-result-person span { display: block; color: #dce9e8; margin-top: 4px; }
.calc-result-content { padding-bottom: 16px; }
.calc-result-label { display: block; font-size: 16px; margin: 12px 0 20px; color: #dce9e8; }
.calc-result .calc-price { font-size: clamp(32px, 3vw, 44px); line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.calc-result-content .calc-price-unit { margin-top: 8px; color: #fff; }
.calc-result-content .calc-price-note { font-size: 14px; padding-top: 20px; border-top: 1px solid #4e7071; }
.calc-contact { width: 100%; margin: 16px 0 0; border-radius: 14px; background: var(--theme-highlight); color: var(--theme-text); }
.calc-result-content .calc-transfer-note { font-size: 14px; margin-bottom: 0; }
.calc-success { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--theme-text); margin-bottom: 24px; }
.calc-success > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--theme-accent-soft); }
.calc-complete > p { font-size: 16px; line-height: 1.55; color: var(--theme-text-soft); }
.calc-summary { margin: 18px 0 12px; }
.calc-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--theme-border); font-size: 14px; line-height: 1.5; }
.calc-summary dt { color: var(--theme-text-soft); }
.calc-summary dd { margin: 0; font-weight: 700; text-align: right; }
.calc-footnote { color: var(--theme-text-soft); max-width: 920px; font-size: 14px; line-height: 1.6; margin: 20px 0 0; }
@media (hover: hover) and (pointer: fine) {
  .calc-choice:hover { border-color: var(--theme-accent); }
  .calc-next:not(:disabled):hover, .calc-contact:hover { transform: translateY(-2px); }
  .calc-back:hover, .calc-edit:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 1100px) {
  .calc-shell { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .calc-options-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-options-three .calc-choice { min-height: 54px; }
  .calc-options-three small { display: inline; margin-left: 5px; }
}
@media (max-width: 800px) {
  .calc-shell { grid-template-columns: 1fr; }
  [data-accounting-calculator]:not(.calc-is-finished):not(.calc-is-unsupported) .calc-result { display: none; }
  .calc-is-finished .calc-result, .calc-is-unsupported .calc-result { grid-row: 1; }
  .calc-result-tag { margin-bottom: 24px; }
  .calc-options-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-options-three small { display: block; margin: 5px 0 0; }
}
@media (max-width: 560px) {
  .calc-main, .calc-result { padding: 24px 20px; }
  .calc-progress { gap: 12px; justify-content: space-between; margin-bottom: 28px; }
  .calc-progress li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .calc-options-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-options-three .calc-choice:last-child { grid-column: 1 / -1; }
  .calc-options { gap: 8px; }
  .calc-choice { padding: 12px; }
  .calc-choice small { font-size: 14px; }
  .calc-next { padding-inline: 16px; }
  .calc-number-row > input { width: 120px; }
  .calc-summary > div { gap: 12px; }
}
@media (max-width: 380px) {
  .calc-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-shell *, .calc-shell *::before { transition: none !important; }
  .calc-next:not(:disabled):hover, .calc-next:not(:disabled):active, .calc-contact:hover, .calc-contact:active { transform: none; }
}

/* October 2026 pricing iteration. */
body[data-page="cennik"] .calc-shell {grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);}
.calc-shell :is(h2,h3) {font-family:var(--sans);font-weight:600;line-height:1.25;letter-spacing:-.025em;scroll-margin-top:110px;}
.calc-step>h2,.calc-complete>h2 {font-size:clamp(26px,2.2vw,32px);}
.calc-result-content>h2 {font-size:clamp(30px,3vw,44px);color:#fff;margin:0;}
.calc-main,.calc-result {padding:32px;}
.calc-result-tag {margin-bottom:20px;}
.calc-start-link {border-style:dashed;background:transparent;text-decoration:none;color:var(--theme-text);}
.calc-start-link strong {font-weight:500;}
.calc-start-link small {font-size:14px;}
.calc-next-steps {margin-top:24px;padding:24px;background:var(--theme-page);border:1px solid var(--theme-border);border-radius:14px;}
.calc-next-steps h3 {font-size:14px!important;text-transform:uppercase;letter-spacing:.08em;margin:0 0 16px;font-weight:700;}
.calc-next-steps ol {list-style:none;counter-reset:calc-next;display:grid;gap:16px;padding:0;margin:0;}
.calc-next-steps li {counter-increment:calc-next;display:flex;align-items:flex-start;gap:12px;font-size:16px;line-height:1.5;}
.calc-next-steps li:before {content:counter(calc-next);display:grid;place-items:center;flex:0 0 26px;height:26px;background:var(--theme-text);color:#fff;border-radius:50%;font-size:14px;font-weight:700;}
.calc-next-steps-rail {background:transparent;border:0;border-top:1px solid #4e7071;border-radius:0;padding:24px 0;margin-bottom:24px;}
.calc-next-steps-rail h3 {color:var(--theme-highlight);}
.calc-next-steps-rail li {color:#e4eeee;}
.calc-next-steps-rail li:before {background:#365b55;color:var(--theme-highlight);}
.calc-price-split {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.calc-price-split>div {background:#fff;border-radius:14px;padding:16px;color:var(--theme-text);min-width:0;}
.calc-result .calc-price {font-size:clamp(23px,2vw,30px);color:var(--theme-text);letter-spacing:-.035em;overflow-wrap:normal;line-height:1.3;margin:8px 0;}
.calc-price-split small,.calc-result-content .calc-price-unit {font-size:14px;color:var(--theme-text)!important;line-height:1.5;}
.calc-result-content .calc-price-note {border:0;padding-top:0;font-size:14px;}
.calc-result .amp-field {font-size:14px;}
.calc-result .amp-field :is(input,textarea) {font-size:16px;}
.calc-result .amp-details summary,.calc-result .amp-details summary span,.calc-result .amp-note {font-size:14px;}
.calc-result .calc-transfer-note {font-size:14px;color:#dce9e8;line-height:1.5;margin:12px 0;}
.calc-result .calc-legal-note {font-size:12px;color:#dce9e8;line-height:1.5;margin:12px 0;}
.calc-result .amp-primary {font-size:16px;min-height:48px;}
.amp-pricing {padding-top:24px;}
.amp-pricing :is(h2,h3,h4) {font-family:var(--sans);font-weight:600;letter-spacing:-.02em;line-height:1.25;}
.amp-pricing h2 {font-size:clamp(28px,3vw,40px);margin:0 0 12px;color:var(--theme-text);}
.amp-pricing-lead {font-size:16px;line-height:1.6;color:var(--theme-text-soft);margin:0 0 28px;max-width:900px;}
.amp-pricing-included {background:var(--theme-text);color:#fff;padding:40px;border-radius:24px;margin-bottom:44px;}
.amp-pricing-included>.amp-pricing-eyebrow {color:var(--theme-highlight);font-size:14px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;margin:0 0 12px;}
.amp-pricing-included h3 {color:#fff;font-size:clamp(24px,2.6vw,32px);margin:0 0 12px;}
.amp-pricing-included>p {font-size:16px;line-height:1.6;color:#dce9e8;margin:0 0 24px;}
.amp-pricing-columns,.amp-pricing-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.amp-pricing-included-card {background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:24px;min-width:0;}
.amp-pricing-included-card h4 {color:#fff;font-size:18px;margin:0 0 18px;}
.amp-pricing-included-card ul {padding:0;margin:0;list-style:none;display:grid;gap:14px;}
.amp-pricing-included-card li {display:flex;gap:12px;font-size:16px;line-height:1.5;}
.amp-pricing-included-card li:before {content:'✓';display:grid;place-items:center;background:var(--theme-highlight);color:var(--theme-text);flex:0 0 22px;height:22px;border-radius:50%;font-size:14px;font-weight:700;margin-top:1px;}
.amp-pricing-extra-title {font-size:28px;margin:0 0 10px;color:var(--theme-text);}
.amp-pricing-grid {align-items:start;}
.amp-pricing-card {background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:18px;padding:24px;min-width:0;}
.amp-pricing-card h4 {font-size:14px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--theme-text);margin:0 0 8px;padding-bottom:16px;border-bottom:2px solid var(--theme-highlight);}
.amp-pricing-card dl {margin:0;}
.amp-pricing-card dl>div {display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--theme-border);font-size:16px;line-height:1.5;}
.amp-pricing-card dl>div:last-child {border:0;}
.amp-pricing-card dt {min-width:0;}
.amp-pricing-card dd {margin:0;flex:0 0 auto;max-width:47%;text-align:right;font-weight:700;color:var(--theme-text);}
.amp-pricing-card small {display:block;font-size:14px;color:var(--theme-text-soft);margin-top:4px;}
.amp-pricing-hourly {grid-column:1/-1;}
.amp-pricing-hourly-rate {display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--theme-page);padding:16px;border-radius:12px;font-size:16px;}
.amp-pricing-hourly-rate strong {font-size:24px;color:var(--theme-text);white-space:nowrap;}
.amp-pricing-hourly ul {font-size:16px;line-height:1.5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px;padding-left:22px;margin:20px 0 0;}
.amp-pricing-hourly li::marker {color:var(--theme-accent);}
.amp-pricing-notes {font-size:14px;line-height:1.7;color:var(--theme-text-soft);margin:24px 0 0;}
@media(max-width:1000px){.calc-price-split {grid-template-columns:1fr;}.calc-main,.calc-result {padding:24px;}}
@media(max-width:800px){body[data-page="cennik"] .calc-shell {grid-template-columns:1fr;}.calc-price-split {grid-template-columns:repeat(2,minmax(0,1fr));}.amp-pricing-columns,.amp-pricing-grid {grid-template-columns:1fr;}.amp-pricing-included {padding:28px;}.amp-pricing-hourly ul {grid-template-columns:1fr;}}
@media(max-width:560px){.calc-main,.calc-result {padding:24px 20px;}.calc-result-content>h2 {font-size:30px;}.calc-next-steps {padding:20px;}.calc-next-steps-rail {padding:20px 0;}.amp-pricing-included {padding:24px 20px;}.amp-pricing-card,.amp-pricing-included-card {padding:20px;}.amp-pricing-card dl>div {gap:12px;}.amp-pricing-hourly-rate {align-items:flex-start;flex-direction:column;}.calc-result .calc-price {font-size:24px;}}
@media(max-width:400px){.calc-price-split {grid-template-columns:1fr;}}

/* Keep pricing headings within the approved readable hierarchy. */
html body[data-page="cennik"]:not(#amp-ds) .calc-complete>h2 {font-size:clamp(26px,2.2vw,32px)!important;}
body[data-page="cennik"] .calc-result-content>h2 {font-size:clamp(30px,3.5vw,44px)!important;}
html body[data-page="cennik"]:not(#amp-ds) .amp-pricing h2 {font-size:clamp(28px,3vw,40px)!important;max-width:none;}

.amp-pricing-scope-note {font-size:14px;line-height:1.6;color:#dce9e8;margin:20px 0 0;}
.amp-pricing-scope-note.own {color:#fff;margin-top:12px;}
.amp-pricing-scope-note.own b {color:var(--theme-highlight);}
