/* 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 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 > 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; }
}
