/* ==========================================================================
   Sekcje: Przepisy, Porównanie, Wypróbuj wygląd, Bezpieczeństwo, Kalkulator,
   Studia przypadków. Kolory i elementy jak w panelu wtyczki.
   ========================================================================== */

.law-section, .cmp2-section, .pg-section, .safe-section, .calc-section, .cs-section {
    --g-700: #0a7a48; --g-600: #0c9256; --g-300: #a7dfc1; --g-100: #e5f5e9; --g-50: #ebf7f0;
    --ink: #101c19; --muted: #5f6b66; --line: #e1e9e4; --bg: #f7faf8;
    --warn: #9a5b00; --warn-bg: #fff6e5; --bad: #b42318;
    padding: 100px 20px;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    color: var(--ink);
}

.law-head, .cmp2-head, .pg-head, .calc-head { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

/* ---------- Przepisy ---------- */

.law-section { background: #F1F5ED; }
.law-wrap { max-width: 1200px; margin: 0 auto; }
.law-lead { max-width: 600px; }

.law-line { position: relative; margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.law-line::before { content: ""; position: absolute; left: 28px; right: calc((100% - 40px) / 3 - 32px); top: 9px; height: 2px; background: #d3e2d8; }
.law-line::after { content: ""; position: absolute; left: 28px; top: 9px; height: 2px; width: calc(((100% - 40px) * 2 / 3 + 44px) * var(--p, 0)); background: var(--g-600); transition: width 1.6s cubic-bezier(.22, 1, .36, 1); }

.law-item { position: relative; padding: 40px 24px 24px; border-radius: 18px; background: #ffffff; border: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.law-line.is-in .law-item { opacity: 1; transform: none; }
.law-line:not(.is-ready) .law-item { opacity: 1; transform: none; }
.law-dot { position: absolute; left: 22px; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; border: 3px solid var(--g-600); }
.law-item.is-past .law-dot { background: var(--g-600); }
.law-item.is-now { border-color: #bfe3cd; box-shadow: 0 14px 34px rgba(12, 146, 86, .1); }
.law-item.is-now .law-dot { animation: law-ping 2s ease-out infinite; }
@keyframes law-ping { 0% { box-shadow: 0 0 0 0 rgba(12, 146, 86, .45); } 100% { box-shadow: 0 0 0 14px rgba(12, 146, 86, 0); } }
.law-item time { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--g-100); color: var(--g-700); font-size: 12px; font-weight: 600; }
.law-item.is-now time { background: var(--g-600); color: #ffffff; }
.law-item h3 { margin: 14px 0 0; font-size: 19px; line-height: 25px; font-weight: 600; letter-spacing: -.4px; }
.law-item p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: #3f4a46; }
.law-item .law-you { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.law-you b { color: var(--g-700); }

.law-risk { margin-top: 24px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; background: var(--warn-bg); border: 1px solid #f3dfb8; }
.law-risk-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e0a100; color: #ffffff; font-weight: 700; }
.law-risk p { margin: 0; flex: 1; font-size: 14px; line-height: 21px; color: #5c4a28; }
.law-risk p b { color: var(--ink); }
.law-risk-link { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .25s; }
.law-risk-link svg { width: 13px; height: 13px; }
.law-risk-link:hover { background: var(--g-600); }

/* ---------- Porównanie ---------- */

.cmp2-section { background: #ffffff; }
.cmp2-wrap { max-width: 1100px; margin: 0 auto; }
.cmp2-table-wrap { margin-top: 48px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); }
.cmp2-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.cmp2-table th, .cmp2-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp2-table tbody tr:last-child th, .cmp2-table tbody tr:last-child td { border-bottom: 0; }
.cmp2-table thead th { background: var(--bg); font-size: 13px; font-weight: 600; color: var(--muted); }
.cmp2-table thead .cmp2-col-good { background: var(--g-50); color: var(--g-700); }
.cmp2-table thead .cmp2-col-good img { width: 20px; height: 20px; vertical-align: -5px; margin-right: 8px; }
.cmp2-table tbody th { width: 26%; font-weight: 600; }
.cmp2-table td { width: 37%; }
.cmp2-bad { color: var(--muted); }
.cmp2-good { background: #fbfdfb; }
.cmp2-x, .cmp2-v { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; font-size: 12px; font-weight: 700; vertical-align: -4px; }
.cmp2-x { background: #f1f3f2; color: #8a948f; }
.cmp2-v { background: var(--g-600); color: #ffffff; }
.cmp2-table tbody tr { transition: background .2s; }
.cmp2-table tbody tr:hover { background: #fafcfb; }
.cmp2-table tbody tr:hover .cmp2-good { background: var(--g-50); }

/* ---------- Wypróbuj wygląd ---------- */

.pg-section { background: #F1F5ED; }
.pg-wrap { max-width: 1200px; margin: 0 auto; }
.pg-app { margin-top: 48px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
.pg-side { padding: 22px; border-radius: 20px; background: #ffffff; border: 1px solid var(--line); }
.pg-lbl { display: block; margin: 18px 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pg-lbl:first-child { margin-top: 0; }
.pg-lbl b { color: var(--ink); }
.pg-seg { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f5f2; }
.pg-seg button { flex: 1; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.pg-seg button.is-on { background: #ffffff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 28, 25, .1); }
.pg-sw { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-sw button, .pg-custom { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px transparent; transition: box-shadow .2s, transform .2s; }
.pg-sw button.is-on { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--c); transform: scale(1.06); }
.pg-custom { position: relative; overflow: hidden; background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.pg-custom input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.pg-side input[type=range] { width: 100%; accent-color: var(--pg-c, #0c9256); }
.pg-seg button:focus-visible, .pg-sw button:focus-visible { outline: 2px solid var(--g-600); outline-offset: 2px; }
.pg-code { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.pg-code-row { display: flex; gap: 6px; align-items: center; }
.pg-code code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #a8e6c0; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-code button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

.pg-stage { overflow: hidden; border-radius: 20px; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(16, 28, 25, .08); }
.pg-bar { display: flex; align-items: center; gap: 5px; padding: 11px 16px; background: #fafbfa; border-bottom: 1px solid #eef2ef; }
.pg-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.pg-bar i:nth-child(2) { background: #febc2e; }
.pg-bar i:nth-child(3) { background: #28c840; }
.pg-bar span { margin-left: 10px; padding: 2px 12px; border-radius: 6px; background: #f0f3f1; color: var(--muted); font-size: 11px; }

.pg-site { --pc: #0c9256; --pr: 12px; --pf: Inter, sans-serif; position: relative; min-height: 380px; padding: 26px 28px 30px; font-family: var(--pf); font-size: 14px; }
.pg-site-title { margin: 0 0 16px; font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.pg-view { display: none; }
.pg-view.is-on { display: block; animation: pg-in .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes pg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pg-acc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--pr); transition: border-radius .3s, border-color .3s; }
.pg-acc > span { color: var(--muted); font-size: 13px; }
.pg-acc > em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.pg-acc.is-open { border-color: color-mix(in srgb, var(--pc) 40%, #ffffff); }
.pg-st { justify-self: end; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 13%, transparent); color: var(--pc); font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; transition: color .3s, background .3s; }
.pg-st-r { background: #fff3d6; color: #8a5a00; }
.pg-st-u { background: #fdecea; color: var(--bad); }
.pg-more { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pg-more small { display: block; color: var(--muted); font-size: 11px; }
.pg-more b { font-variant-numeric: tabular-nums; }
.pg-btn { margin-left: auto; padding: 8px 14px; border-radius: calc(var(--pr) * .7); background: var(--pc); color: #ffffff; font-size: 13px; font-weight: 600; transition: background .3s, border-radius .3s; }

.pg-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--pr); overflow: hidden; font-variant-numeric: tabular-nums; }
.pg-table th, .pg-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; }
.pg-table th:first-child, .pg-table td:first-child { text-align: left; }
.pg-table thead th { background: #f7faf8; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pg-table td small { display: block; color: var(--muted); font-size: 12px; }
.pg-table tfoot th, .pg-table tfoot td { border-bottom: 0; background: color-mix(in srgb, var(--pc) 9%, #ffffff); font-weight: 700; }

.pg-tl { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; }
.pg-tl::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.pg-tl li { position: relative; display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--pr); background: #f7faf8; font-variant-numeric: tabular-nums; transition: border-radius .3s; }
.pg-tl li i { position: absolute; left: -24px; width: 14px; height: 14px; border-radius: 50%; background: #c3cdc8; border: 3px solid #ffffff; }
.pg-tl li time { color: var(--muted); font-size: 13px; }
.pg-tl li em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--g-700); }
.pg-tl li.is-now { background: color-mix(in srgb, var(--pc) 10%, #ffffff); }
.pg-tl li.is-now i { background: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 20%, transparent); }

/* ---------- Bezpieczeństwo ---------- */

.safe-section { background: #ffffff; }
.safe-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.safe-left { position: sticky; top: 120px; }

.safe-flow { margin-top: 32px; display: flex; flex-direction: column; align-items: stretch; }
.safe-node { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 0 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line); }
.safe-node span { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--g-100); color: var(--g-700); }
.safe-node span svg { width: 20px; height: 20px; }
.safe-node b { font-size: 14px; font-weight: 600; }
.safe-node small { font-size: 12px; color: var(--muted); }
.safe-node-gov span { background: #eef2f6; color: #3b4b5c; }
.safe-pipe { position: relative; height: 28px; margin-left: 33px; width: 2px; background: #d3e2d8; overflow: hidden; }
.safe-pipe i { position: absolute; left: -2px; top: -8px; width: 6px; height: 8px; border-radius: 3px; background: var(--g-600); animation: safe-flow 1.6s linear infinite; }
.safe-pipe-in i { top: auto; bottom: -8px; background: #3b4b5c; animation: safe-flow-up 1.6s linear infinite; animation-delay: .8s; }
@keyframes safe-flow { to { transform: translateY(44px); } }
@keyframes safe-flow-up { to { transform: translateY(-44px); } }

.safe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.safe-card { padding: 22px; border-radius: 18px; background: #f7faf8; border: 1px solid var(--line); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, background .35s; }
.safe-card:hover { transform: translateY(-4px); background: #ffffff; box-shadow: 0 16px 34px rgba(16, 28, 25, .07); }
.safe-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--line); color: var(--g-700); }
.safe-ico svg { width: 20px; height: 20px; }
.safe-card h3 { margin: 16px 0 0; font-size: 17px; line-height: 23px; font-weight: 600; letter-spacing: -.3px; }
.safe-card p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: #4b5552; }

/* ---------- Kalkulator ---------- */

.calc-section { background: #F1F5ED; }
.calc-wrap { max-width: 1100px; margin: 0 auto; }
.calc-app { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.calc-in, .calc-out { padding: 26px; border-radius: 20px; background: #ffffff; border: 1px solid var(--line); }
.calc-field { display: block; margin-bottom: 22px; }
.calc-field span { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.calc-field b { padding: 1px 10px; border-radius: 999px; background: var(--g-100); color: var(--g-700); font-size: 13px; font-variant-numeric: tabular-nums; }
.calc-field input { width: 100%; accent-color: #0c9256; }
.calc-assume { margin-top: 4px; font-size: 13px; color: var(--muted); }
.calc-assume summary { cursor: pointer; font-weight: 500; color: var(--g-700); }
.calc-assume ul { margin: 10px 0 0; padding-left: 18px; line-height: 20px; }

.calc-out { display: flex; flex-direction: column; gap: 22px; }
.calc-bar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 70px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.calc-bar > div { height: 30px; border-radius: 8px; background: #f1f5f2; overflow: hidden; }
.calc-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 8px; transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.calc-bar-bad i { background: #e7b9a8; }
.calc-bar-good i { background: var(--g-600); }
.calc-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.calc-save { padding: 22px; border-radius: 16px; background: var(--ink); color: #ffffff; }
.calc-save > span { display: block; font-size: 13px; color: #a9b8b1; }
.calc-save > b { display: block; margin-top: 4px; font-size: 48px; line-height: 54px; font-weight: 600; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; color: #a8e6c0; }
.calc-save small { font-size: 13px; color: #c9d4cc; }
.calc-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--g-600); color: #ffffff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .25s; }
.calc-cta svg { width: 13px; height: 13px; }
.calc-cta:hover { background: var(--g-700); }

/* ---------- Studia przypadków ---------- */

.cs-section { background: #F1F5ED; }
.cs-wrap { max-width: 1200px; margin: 0 auto; }
.cs-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cs-nav { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-nav b { color: var(--ink); }
.cs-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #ffffff; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s, border-color .25s; }
.cs-nav button svg { width: 15px; height: 15px; }
.cs-nav button:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }

.cs-app { margin-top: 36px; }
.cs-stage { position: relative; display: grid; border-radius: 24px; overflow: hidden; background: #ffffff; border: 1px solid var(--line); }
.cs-pane { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.cs-pane.is-on { opacity: 1; visibility: visible; }
.cs-media { position: relative; min-height: 440px; background: #e8f1ea; overflow: hidden; }
.cs-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-pane .cs-media > * { transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.cs-pane:not(.is-on) .cs-media > .cs-ph, .cs-pane:not(.is-on) .cs-media img { transform: scale(1.06); }

.cs-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #6c8a78; font-size: 12px; font-weight: 500; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .7), transparent 45%), repeating-linear-gradient(135deg, rgba(12, 146, 86, .05) 0 12px, transparent 12px 24px), linear-gradient(160deg, #eef6f0, #dcebe1); }
.cs-ph svg { width: 40px; height: 40px; opacity: .7; }
.cs-ph span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); }

.cs-kicker { position: absolute; left: 18px; top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--g-700); font-size: 12px; font-weight: 600; box-shadow: 0 4px 14px rgba(16, 28, 25, .08); }

.cs-body { display: flex; flex-direction: column; gap: 14px; padding: 34px; }
.cs-pane .cs-body > * { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s cubic-bezier(.22, 1, .36, 1); }
.cs-pane.is-on .cs-body > * { opacity: 1; transform: none; }
.cs-pane.is-on .cs-body > *:nth-child(2) { transition-delay: .05s; }
.cs-pane.is-on .cs-body > *:nth-child(3) { transition-delay: .1s; }
.cs-pane.is-on .cs-body > *:nth-child(4) { transition-delay: .15s; }
.cs-pane.is-on .cs-body > *:nth-child(5) { transition-delay: .2s; }
.cs-pane.is-on .cs-body > *:nth-child(6) { transition-delay: .25s; }
.cs-dev { margin: 0; font-size: 13px; color: var(--muted); }
.cs-name { margin: -8px 0 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.8px; }
.cs-block span { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 6px; background: var(--g-100); color: var(--g-700); font-size: 11.5px; font-weight: 600; }
.cs-block p { margin: 0; font-size: 14.5px; line-height: 22px; color: #3f4a46; }
.cs-stats { display: flex; gap: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.cs-stats b { display: block; font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.cs-stats span { font-size: 12px; color: var(--muted); }
.cs-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .25s; }
.cs-link svg { width: 13px; height: 13px; }
.cs-link:hover { background: var(--g-600); }

.cs-tabs { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-tab { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff; font: inherit; text-align: left; color: var(--ink); cursor: pointer; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.cs-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--g-600); }
.cs-tab.is-on { border-color: #bfe3cd; box-shadow: 0 10px 24px rgba(12, 146, 86, .08); }
.cs-tab.is-on::after { animation: cs-progress var(--cs-t, 7s) linear forwards; }
.cs-app.is-paused .cs-tab.is-on::after { animation-play-state: paused; }
@keyframes cs-progress { to { width: 100%; } }
.cs-thumb { position: relative; grid-row: span 2; width: 64px; height: 48px; border-radius: 10px; overflow: hidden; }
.cs-thumb .cs-ph { gap: 0; }
.cs-thumb .cs-ph svg { width: 18px; height: 18px; }
.cs-thumb .cs-ph span { display: none; }
.cs-tab b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-tab small { font-size: 12px; color: var(--muted); }
.cs-tab:focus-visible { outline: 2px solid var(--g-600); outline-offset: 2px; }

/* ---------- Responsywność ---------- */

@media (max-width: 1024px) {
    .law-line { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .law-line::before, .law-line::after { display: none; }
    .law-item { padding-top: 24px; padding-left: 56px; }
    .law-dot { left: 20px; top: 26px; }
    .pg-app { grid-template-columns: minmax(0, 1fr); }
    .safe-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .safe-left { position: static; }
    .calc-app { grid-template-columns: minmax(0, 1fr); }
    .cs-pane { grid-template-columns: minmax(0, 1fr); }
    .cs-media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
    .law-section, .cmp2-section, .pg-section, .safe-section, .calc-section, .cs-section { padding: 60px 16px; }
    .law-line, .cmp2-table-wrap, .pg-app, .calc-app, .cs-app { margin-top: 32px; }
    .law-risk { flex-direction: column; align-items: flex-start; }
    .pg-site { padding: 18px 16px 22px; min-height: 0; }
    .pg-acc { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .pg-acc > span { display: none; }
    .pg-more { flex-wrap: wrap; gap: 12px 20px; }
    .pg-btn { margin-left: 0; }
    .safe-grid { grid-template-columns: minmax(0, 1fr); }
    .calc-in, .calc-out { padding: 20px; }
    .calc-bar { grid-template-columns: 76px minmax(0, 1fr) 56px; }
    .calc-save > b { font-size: 40px; line-height: 46px; }
    .cs-body { padding: 22px; }
    .cs-name { font-size: 22px; line-height: 28px; }
    .cs-tabs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .cs-nav button { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .law-item, .law-line::after, .calc-bar i, .cs-pane, .cs-pane .cs-body > *, .pg-view.is-on { transition: none !important; animation: none !important; }
    .law-item.is-now .law-dot, .safe-pipe i, .cs-tab.is-on::after { animation: none; }
}

/* Realizacje – 5 zakładek i pasek „Twoja inwestycja może być następna” */
.cs-tabs.cs-tabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cs-tabs-5 .cs-tab { grid-template-columns: 48px minmax(0, 1fr); }
.cs-cta { margin-top: 20px; }
.cs-cta:hover { transform: none; }
@media (max-width: 1100px) {
    .cs-tabs.cs-tabs-5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
    .cs-tabs-5 .cs-tab { scroll-snap-align: start; }
}
@media (max-width: 640px) {
    .cs-tabs.cs-tabs-5 { grid-auto-columns: 74%; gap: 8px; }
}
.cs-tabs-5 .cs-thumb { width: 48px; height: 40px; }

/* Realizacje na stronie głównej – białe tło */
#realizacje.cs-section { background: #ffffff; }
#realizacje .cs-stage { box-shadow: 0 18px 44px rgba(16, 28, 25, .06); border-radius: 24px; }

/* Mniejszy odstęp między Realizacjami a „Działa z tym, czego już używasz” (obie na białym tle) */
@media (min-width: 641px) {
    #zgodnosc.tools-section { padding-top: 0; }
}

/* Liczby bezpośrednio pod „Spółka celowa na każdą inwestycję” – jedno tło, bez nagłówka */
.groups-section.groups-joined { padding-bottom: 32px; }
.metrics-section.metrics-joined { padding-top: 0; }
.metrics-joined .metrics-grid { margin-top: 0; }
.tools-nowp { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #f1f5ed; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; font-size: 14px; line-height: 21px; color: #3f4a46; }
.tools-nowp a { color: #087443; font-weight: 600; }
.cs-tabs.cs-tabs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .cs-tabs.cs-tabs-4 { grid-template-columns: none; } }
/* 6 realizacji: zakładki w 2 rzędach po 3 */
.cs-tabs.cs-tabs-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cs-tabs.cs-tabs-6 { grid-template-columns: none; } }
