/* Wspólne dla /kalkulator-vat/ i /vat-calculator/ (PL i EN). */
    :root {
      --vat-accent: var(--brand);
      --vat-accent-dark: var(--brand-dark);
      --vat-muted: #667085;
      --vat-line: #e3e8f0;
    }
    body { background: #f7f8fc; }
    .tool-header { border-bottom: 1px solid #edecf2; background: #fff; }
    .contact-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .tool-brand img { display: block; width: 145px; height: 64px; object-fit: cover; mix-blend-mode: multiply; }
    .back-link { color: #5e55c8; font-size: 13px; font-weight: 700; }
    @media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--brand-dark); } }
    .vat-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 60px; }
    .vat-eyebrow { margin: 0 0 10px; color: var(--vat-accent-dark); font-size: 12px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
    .vat-shell h1 { margin: 0; color: #222438; font-size: clamp(30px, 5vw, 42px); letter-spacing: -.045em; line-height: 1.15; }
    .vat-intro { max-width: 780px; margin: 12px 0 26px; color: var(--vat-muted); font-size: 15px; line-height: 1.7; }
    .vat-card, .results-card, .vat-seo-card, .vat-faq, .vat-related { border: 1px solid var(--vat-line); border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgb(16 24 40 / 4%); }
    .vat-card { padding: 21px; }
    .vat-card h2, .results-card h2 { margin: 0; color: #292b40; font-size: 19px; letter-spacing: -.025em; }
    .card-description { margin: 6px 0 17px; color: var(--vat-muted); font-size: 12px; line-height: 1.6; }
    .rate-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #45485a; font-size: 12px; font-weight: 750; }
    .rate-heading small { color: #626777; font-size: 12px; font-weight: 500; }
    .rate-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
    .rate-button { min-height: 42px; border: 1px solid var(--vat-line); border-radius: 9px; color: #45485a; background: #fbfcfe; cursor: pointer; font-size: 13px; font-weight: 750; transition: border-color .15s, background .15s, color .15s, scale .16s var(--ease-out); }
    .rate-button[aria-pressed="true"] { border-color: #a5a6f6; color: var(--vat-accent-dark); background: #f4f3ff; }
@media (hover: hover) and (pointer: fine) { .rate-button:hover { border-color: #a5a6f6; color: var(--vat-accent-dark); background: #f4f3ff; } }
    .rate-button:focus-visible, .vat-button:focus-visible, .vat-input:focus-visible, .vat-select:focus-visible { outline: 3px solid rgb(var(--brand-rgb) / 22%); outline-offset: 2px; }
    .custom-rate-row { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
    .custom-rate-row .rate-button { min-width: 150px; padding: 0 13px; }
    .custom-rate-field { display: flex; align-items: center; gap: 7px; color: #667085; font-size: 12px; }
    .custom-rate-field[hidden] { display: none; }
    .custom-rate-field input { width: 100px; }
    .accounting-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 16px; padding: 15px; border: 1px solid #e8e9f2; border-radius: 11px; background: #fafaff; }
    .accounting-setting { position: relative; display: grid; align-content: start; gap: 9px; }
    .accounting-setting legend { display: flex; align-items: center; gap: 7px; color: #383b50; font-size: 12px; font-weight: 750; }
    .accounting-choice-row { display: flex; align-items: center; justify-content: flex-start; gap: 7px; }
    .accounting-choice { display: flex; align-items: flex-start; gap: 8px; color: #555b70; font-size: 12px; font-weight: 550; line-height: 1.45; cursor: pointer; }
    .accounting-choice { flex: 0 1 max-content; }
    .accounting-choice input { flex: 0 0 15px; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--vat-accent); }
    .help-tooltip { position: relative; flex: 0 0 auto; }
    .help-tooltip summary { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c9c9ed; border-radius: 50%; color: #5c56c5; background: #fff; cursor: pointer; font-size: 12px; font-weight: 750; line-height: 1; list-style: none; }
    .help-tooltip summary::-webkit-details-marker { display: none; }
    .help-tooltip summary:focus-visible { outline: 3px solid rgb(var(--brand-rgb) / 22%); outline-offset: 2px; }
    .help-tooltip-content { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 48px)); box-sizing: border-box; display: none; padding: 11px 13px; border: 1px solid #e1e2f2; border-radius: 9px; color: #45485a; background: #fff; box-shadow: 0 8px 24px rgb(16 24 40 / 14%); font-size: 13px; font-weight: 500; line-height: 1.6; }
    .help-tooltip:focus-within .help-tooltip-content, .help-tooltip[open] .help-tooltip-content { display: block; }
    /* Dymek wyrasta z ikonki "?" (prawy górny róg), zamiast pojawiać się znikąd. */
    .help-tooltip-content { transform-origin: top right; transition: opacity .125s var(--ease-out), transform .125s var(--ease-out); }
    @starting-style { .help-tooltip[open] .help-tooltip-content { opacity: 0; transform: scale(.97); } }
@media (hover: hover) and (pointer: fine) { .help-tooltip:hover .help-tooltip-content { display: block; } }
    .vat-input, .vat-select { min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #d7deea; border-radius: 9px; outline: none; color: #292b40; background: #fdfdff; font: inherit; font-size: 14px; }
    .vat-input:focus, .vat-select:focus { border-color: #a5a6f6; box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 12%); }
    .position-grid .vat-input { background: #fff; }
    .position-grid .vat-input:read-only { color: #667085; background: #f8fafc; cursor: default; }
    .field-note-auto[hidden] { display: none; }
    .field-note-auto { color: #626777; font-size: 12px; font-weight: 500; }
    .amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
    .field { display: grid; gap: 7px; color: #45485a; font-size: 12px; font-weight: 750; }
    .field-note { color: #667085; font-size: 12px; font-weight: 500; }
    .vat-settings { display: flex; align-items: end; margin-top: 18px; padding-top: 17px; border-top: 1px solid #eceef4; }
    .currency-field { max-width: 300px; }
    .position-list { display: grid; gap: 12px; }
    .position-card { min-width: 0; padding: 15px; border: 1px solid #e6e9f1; border-radius: 12px; background: #fcfcff; }
    .position-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .position-title { margin: 0; color: #383b50; font-size: 13px; font-weight: 750; }
    .position-remove { min-height: 30px; padding: 0 9px; border: 1px solid #e6e9f1; border-radius: 7px; color: #74788a; background: #fff; cursor: pointer; font-size: 12px; }
    @media (hover: hover) and (pointer: fine) { .position-remove:hover { border-color: #f1b9b9; color: #b42318; background: #fff8f8; } }
    .position-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .position-grid .vat-input { width: 100%; }
    .position-grid .vat-select { width: 100%; }
    .position-rate-custom { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: #667085; font-size: 12px; }
    .position-rate-custom[hidden] { display: none; }
    .position-rate-custom .vat-input { width: 110px; }
    .position-total { display: grid; grid-template-columns: minmax(130px, 1fr) repeat(3, minmax(0, 1fr)); gap: 9px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 9px; background: #f0f1ff; }
    .position-total-label { color: #4d4b76; font-size: 12px; font-weight: 700; }
    .position-total-value { display: grid; gap: 3px; color: #34364d; font-size: 12px; font-weight: 750; }
    .position-total-value small { color: #777b90; font-size: 11px; font-weight: 600; }
    .add-position { margin-top: 12px; border-style: dashed; color: var(--vat-accent-dark); background: #f8f7ff; }
    @media (hover: hover) and (pointer: fine) { .add-position:hover { border-color: #aaa0f3; background: #f1efff; } }
    .format-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--vat-accent); }
    .status { min-height: 19px; margin: 10px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
    .status.error { color: #b42318; }
    .status.success { color: #18794e; }
    .results-card { margin-top: 20px; overflow: hidden; }
    .results-heading { padding: 20px 21px 14px; border-bottom: 1px solid var(--vat-line); }
    .results-heading p { margin: 5px 0 0; color: var(--vat-muted); font-size: 12px; line-height: 1.5; }
    .results-table { width: 100%; border-collapse: collapse; }
    .results-table th, .results-table td { padding: 13px 21px; border-bottom: 1px solid #eef0f5; text-align: left; font-size: 13px; }
    .results-table th { width: 40%; color: #667085; font-weight: 600; }
    .results-table td { color: #292b40; font-weight: 750; }
    .results-table tr:last-child th, .results-table tr:last-child td { border-bottom: 0; }
    .rate-table-wrap { padding: 4px 21px 17px; overflow-x: auto; }
    .rate-table { width: 100%; border-collapse: collapse; }
    .rate-table th, .rate-table td { padding: 9px 10px; border: 1px solid #eceef4; font-size: 12px; text-align: right; white-space: nowrap; }
    .rate-table thead th { color: #62677a; background: #f7f8fc; font-weight: 700; }
    .rate-table th:first-child, .rate-table td:first-child { text-align: left; }
    .rate-table tfoot th, .rate-table tfoot td { color: #292b40; background: #f5f4ff; font-weight: 800; }
    .rounding-notice { margin: 0 21px 16px; padding: 10px 12px; border: 1px solid #e9e4c7; border-radius: 9px; color: #6e5a1d; background: #fffdf2; font-size: 12px; line-height: 1.55; }
    .rounding-notice[hidden] { display: none; }
    .words-cell { color: #4840a7 !important; font-weight: 600 !important; line-height: 1.65; }
    .format-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin: 0 21px 16px; padding-top: 14px; border-top: 1px solid #eef0f5; }
    .format-label { color: #667085; font-size: 12px; font-weight: 700; }
    .format-option { display: inline-flex; align-items: center; gap: 6px; color: #45485a; font-size: 12px; cursor: pointer; }
    .results-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 21px 20px; }
    .vat-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid var(--vat-line); border-radius: 9px; color: #344054; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .15s var(--ease-out), border-color .15s var(--ease-out), scale .16s var(--ease-out); }
    @media (hover: hover) and (pointer: fine) { .vat-button:hover { border-color: #c8c8fa; background: #f8f7ff; } }
    .vat-button-primary { border-color: var(--vat-accent); color: #fff; background: var(--vat-accent); }
    @media (hover: hover) and (pointer: fine) { .vat-button-primary:hover { border-color: var(--vat-accent-dark); color: #fff; background: var(--vat-accent-dark); } }
    .copy-status { min-height: 18px; margin: -12px 21px 17px; color: #18794e; font-size: 12px; }
    .copy-status.error { color: #b42318; }
    .support-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 14px 16px; border: 1px solid #e5e0ff; border-radius: 12px; color: #4e477f; background: #f8f7ff; font-size: 13px; line-height: 1.5; }
    .support-banner p { margin: 0; }
    .support-banner a { min-height: 38px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 14px; border-radius: 8px; color: #fff; background: var(--vat-accent-dark); font-size: 12px; font-weight: 700; }
    @media (hover: hover) and (pointer: fine) { .support-banner a:hover { background: #3930b4; } }
    .vat-seo { margin-top: 26px; padding-top: 12px; }
    .vat-seo-intro { margin-bottom: 18px; }
    .vat-seo h2 { margin: 0 0 12px; color: #292b40; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.25; }
    .vat-seo h3 { margin: 0 0 10px; color: #292b40; font-size: 18px; letter-spacing: -.02em; }
    .vat-seo p, .vat-seo li, .vat-faq-item p { color: #4b5565; font-size: 14px; line-height: 1.8; }
    .vat-seo-intro p { margin: 0; font-size: 15px; }
    .vat-seo-intro p + p { margin-top: 10px; }
    .vat-seo-card, .vat-faq, .vat-related { margin-top: 16px; padding: 20px 22px; }
    .vat-seo-card ul { margin: 12px 0 0; padding-left: 20px; }
    .vat-seo-card li + li { margin-top: 8px; }
    .vat-faq > h3, .vat-related > h3 { margin-bottom: 16px; font-size: 21px; }
    .vat-faq-item { padding: 0 0 14px; border-bottom: 1px solid #edf0f4; }
    .vat-faq-item + .vat-faq-item { padding-top: 14px; }
    .vat-faq-item:last-child { padding-bottom: 0; border-bottom: 0; }
    .vat-faq-item summary { position: relative; padding-left: 28px; color: #292b40; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
    .vat-faq-item summary::-webkit-details-marker { display: none; }
    .vat-faq-item summary::after { position: absolute; top: 9px; left: 7px; width: 7px; height: 7px; border-right: 2px solid #635bdf; border-bottom: 2px solid #635bdf; content: ""; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
    .vat-faq-item[open] summary::after { transform: rotate(225deg); }
    .vat-faq-item summary:focus-visible { outline: 3px solid rgb(var(--brand-rgb) / 24%); outline-offset: 3px; }
    .vat-faq-item p { margin: 10px 0 0; }
    .vat-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .vat-related-card { min-height: 175px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid #eaebf1; border-radius: 13px; color: #292b40; background: #fff; text-decoration: none; box-shadow: 0 3px 10px rgb(28 33 66 / 2%); transition: transform .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), scale .16s var(--ease-out); }
    @media (hover: hover) and (pointer: fine) { .vat-related-card:hover { transform: translateY(-3px); border-color: #d9d3ff; box-shadow: 0 10px 24px rgb(54 45 112 / 8%); } }
    .vat-related-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 11px; font-size: 15px; font-weight: 750; }
    .vat-related-icon.violet { color: #695ade; background: #f0edff; }
    .vat-related-icon.blue { color: #4384d9; background: #eaf3ff; }
    .vat-related-icon.mint { color: #299d7b; background: #e9f8f2; }
    .vat-related-category { margin-bottom: 7px; color: #667085; font-size: 12px; font-weight: 700; }
    .vat-related-card strong { margin-bottom: 6px; font-size: 14px; line-height: 1.4; }
    .vat-related-description { color: #5f6475; font-size: 13px; line-height: 1.6; }
    .vat-legal-notice { margin-top: 16px; padding: 15px 18px; border: 1px solid #f3d27a; border-radius: 12px; color: #704f0b; background: #fff8df; font-size: 13px; line-height: 1.7; }
    .vat-back-to-tool { position: fixed; z-index: 10; right: max(20px, calc((100vw - 820px) / 2)); bottom: 22px; padding: 12px 16px; border: 1px solid var(--brand); border-radius: 999px; color: #fff; background: var(--brand); box-shadow: 0 6px 20px rgb(40 35 100 / 22%); font-size: 13px; font-weight: 700; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), background .2s var(--ease-out), scale .16s var(--ease-out); }
    .vat-back-to-tool.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
    @media (hover: hover) and (pointer: fine) { .vat-back-to-tool:hover { color: #fff; background: var(--brand-dark); } }
    .vat-footer { margin-top: 0; padding: 22px 20px 26px; }
    .vat-footer .site-footer-inner { width: min(100%, 1120px); display: grid; justify-items: center; gap: 12px; margin: 0 auto; }
    .vat-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
    .vat-footer .footer-links a { color: #777a89; font-size: 12px; font-weight: 650; }
    @media (hover: hover) and (pointer: fine) { .vat-footer .footer-links a:hover { color: var(--vat-accent-dark); } }
    .vat-footer .footer-legal-note { max-width: 900px; margin: 0; color: #626777; font-size: 12px; line-height: 1.6; text-align: center; }
    @media (max-width: 680px) {
      .vat-shell { width: min(100% - 30px, 520px); padding-top: 33px; }
      .contact-header-inner { width: min(100% - 30px, 520px); min-height: 68px; }
      .tool-brand img { width: 120px; height: 54px; }
      .back-link { font-size: 12px; }
      .currency-field { max-width: none; }
      .rate-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .accounting-settings { grid-template-columns: 1fr; }
      .position-total { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .position-total-label { grid-column: 1 / -1; }
      .results-table th, .results-table td { padding: 12px 14px; }
      .format-controls { margin-right: 14px; margin-left: 14px; }
      .results-actions { padding-right: 14px; padding-left: 14px; }
      .copy-status { margin-right: 14px; margin-left: 14px; }
    }
    @media (max-width: 420px) {
      .contact-header-inner { width: min(100% - 30px, 440px); }
      .tool-brand img { width: 108px; height: 50px; }
      .custom-rate-row { align-items: flex-start; flex-direction: column; }
      .custom-rate-field input { width: 110px; }
      .support-banner { align-items: flex-start; flex-direction: column; }
      .vat-footer .footer-links { gap: 12px; }
      .vat-footer { padding: 20px 16px 22px; }
      .vat-related-grid { grid-template-columns: 1fr; gap: 10px; }
      .vat-related-card { min-height: 0; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
      .vat-related-icon { grid-row: span 3; margin: 0; }
      .vat-related-category, .vat-related-card strong { margin: 0; }
      .vat-back-to-tool { right: 15px; bottom: 15px; }
    }
