/* VEditor – strona. Tokeny z projektu (Brand.dc.html); ciemny motyw: data-theme="dark" albo ustawienie systemu. */

:root {
    --bg: #ffffff;
    --bg2: #f5f7fa;
    --bg3: #eaeff5;
    --line: #dce2ea;
    --field: #8a94a3;
    --text: #222222;
    --muted: #566070;
    --link: #1f5fc4;
    --link-h: #174a9a;
    --btn: #2a6fdb;
    --btn-h: #1f5fc4;
    --soft: #e9f0fc;
    --soft-ink: #1b4f9f;
    --warn: #b3261e;
    --warn-soft: #fbeceb;
    --ok: #1b6e3f;
    --ok-soft: #e5f3ea;
    --code: #0f1724;
    --code-2: #1c2738;
    --code-line: #222c3b;
    --focus: #2a6fdb;
    --shadow: 0 12px 32px rgba(15, 23, 36, 0.12);
    --radius: 12px;
    --font: 'IBM Plex Sans', 'Noto Sans Georgian', 'Noto Sans Armenian', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0e1217;
    --bg2: #141a22;
    --bg3: #1b232d;
    --line: #2a3441;
    --field: #6f7d8f;
    --text: #e6eaf0;
    --muted: #a1acbb;
    --link: #7aa9f2;
    --link-h: #a3c3f7;
    --btn: #2a6fdb;
    --btn-h: #3a7ce3;
    --soft: #15233a;
    --soft-ink: #a9c6f5;
    --warn: #f08a80;
    --warn-soft: #3a1715;
    --ok: #7fd3a0;
    --ok-soft: #12291c;
    --code: #080b10;
    --code-2: #1a2230;
    --code-line: #1f2836;
    --focus: #7aa9f2;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e1217;
        --bg2: #141a22;
        --bg3: #1b232d;
        --line: #2a3441;
        --field: #6f7d8f;
        --text: #e6eaf0;
        --muted: #a1acbb;
        --link: #7aa9f2;
        --link-h: #a3c3f7;
        --btn: #2a6fdb;
        --btn-h: #3a7ce3;
        --soft: #15233a;
        --soft-ink: #a9c6f5;
        --warn: #f08a80;
        --warn-soft: #3a1715;
        --ok: #7fd3a0;
        --ok-soft: #12291c;
        --code: #080b10;
        --code-2: #1a2230;
        --code-line: #1f2836;
        --focus: #7aa9f2;
        --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

/* Podstawy */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(27px, 3.4vw, 36px); }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--link-h); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

code, pre, .mono { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
:not(pre) > code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--bg3); white-space: nowrap; }

img, svg { vertical-align: middle; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: 8px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--focus);
    border-radius: 6px;
}
.skip-link:focus { left: 16px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }

.stack-sm > * + * { margin-top: 16px; }
.stack-md > * + * { margin-top: 32px; }
.stack-lg > * + * { margin-top: 40px; }
.stack-xl > * + * { margin-top: 88px; }

/* Przyciski i znaczniki */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { font-size: 14px; padding: 0 12px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--btn); color: #ffffff; }
.btn-primary:hover { background: var(--btn-h); color: #ffffff; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg3); color: var(--text); }
.btn-ghost-dark { color: #ffffff; border-color: #44536a; }
.btn-ghost-dark:hover { background: #1c2738; color: #ffffff; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.icon-btn:hover { background: var(--bg3); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trial-row { align-items: center; }
.trial-row p { flex: 1 1 320px; color: var(--muted); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-soft { background: var(--soft); color: var(--soft-ink); }
.badge-outline { color: var(--soft-ink); border: 1px solid var(--soft-ink); }

.text-link { font-weight: 600; }
.text-link.with-icon { display: inline-flex; align-items: center; gap: 6px; }

.lead { font-size: 18px; color: var(--muted); }
.fine-print { font-size: 13px; color: var(--muted); }

.eyebrow {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--soft);
    color: var(--soft-ink);
    font-size: 13px;
}
.eyebrow-plain { font-size: 13px; color: var(--soft-ink); }

.label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.label-row.spread { justify-content: space-between; }

/* Podpowiedź języka */

.langbar { background: var(--soft); color: var(--text); border-bottom: 1px solid var(--line); }
.langbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.langbar-text { flex: 1 1 240px; font-size: 15px; }
.langbar .icon-btn { background: transparent; border-color: transparent; }

/* Nagłówek */

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
/* Logo VEditor.eu: wersja jasna albo ciemna według motywu (helper logo()). */
.logo { display: block; width: auto; height: 40px; }
.logo-footer { height: 34px; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.main-nav { flex: 1 1 auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 2px; padding: 0; list-style: none; }
.main-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.main-nav a:hover { background: var(--bg2); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--soft-ink); background: var(--soft); }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.menu-toggle { display: none; margin-left: auto; }

.theme-icon-light { display: none; }
.theme-toggle[aria-pressed="true"] .theme-icon-dark { display: none; }
.theme-toggle[aria-pressed="true"] .theme-icon-light { display: inline; }

@media (max-width: 1080px) {
    .js .menu-toggle { display: inline-flex; }
    .js .main-nav { display: none; flex-basis: 100%; order: 3; }
    .js .main-nav.open { display: block; }
    .js .main-nav ul { flex-direction: column; padding: 4px 0 8px; }
    .js .main-nav a { padding: 12px; }
    .js .header-actions { flex-basis: 100%; order: 4; }
    .js .header-actions .btn-buy { margin-left: auto; }
}

/* Przełącznik języka */

.lang-switcher { position: relative; }
.lang-button { gap: 6px; }

.js .lang-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    display: none;
    width: min(380px, calc(100vw - 32px));
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.js .lang-panel.open { display: flex; flex-direction: column; }
.site-footer .lang-panel { top: auto; bottom: calc(100% + 6px); }

.lang-search { padding: 12px; border-bottom: 1px solid var(--line); }
.lang-search input, .field-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--field);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
.lang-list { max-height: min(360px, 60vh); overflow-y: auto; padding: 6px; }
.lang-group-name {
    margin: 10px 10px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lang-list ul { padding: 0; list-style: none; }
.lang-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
}
.lang-list a:hover { background: var(--bg2); color: var(--text); }
.lang-list a[aria-current="true"] { background: var(--soft); color: var(--soft-ink); font-weight: 600; }
.lang-code { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lang-empty { padding: 16px 10px; color: var(--muted); font-size: 14px; }

/* Bez JS: w nagłówku przełącznika nie ma, w stopce jest zwykła lista języków. */
.no-js .site-header .lang-switcher, .no-js .lang-button, .no-js .lang-search, .no-js .theme-toggle { display: none; }
.no-js .lang-list { max-height: none; padding: 0; }

/* Sekcje */

.section { padding: 96px 0; background: var(--bg); }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .section, .section + .section-alt { border-top-color: var(--line); }
.section-tight { padding: 32px 0; border-top: 0; }
.section-head { max-width: 720px; }
.section-head > * + * { margin-top: 12px; }

.overline {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Hero */

.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-text .lead { font-size: 19px; max-width: 560px; }
.hero-figure { flex: 1 1 560px; min-width: 0; margin: 0; }

.check-list { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.check-list li { display: flex; align-items: center; gap: 6px; }
.check-list svg { color: var(--ok); stroke-width: 2.4; }

/* Pasek integracji */

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
.chip:hover { border-color: var(--btn); color: var(--text); }

/* Karty */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.card p { color: var(--muted); }
.card-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--soft); color: var(--soft-ink); }
.card-icon svg { stroke-width: 1.8; }

/* Funkcje w akcji */

.feature-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.feature-text h3 { font-size: clamp(23px, 2.6vw, 28px); }
.feature-text ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; }
.feature-lead { font-size: 17px; color: var(--muted); }
.feature-media { flex: 1 1 520px; min-width: 0; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }

/* Bezpieczeństwo */

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-aside { flex: 1 1 340px; min-width: 0; }
.fact-list {
    flex: 2 1 560px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.fact-list li { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.fact-list span { color: var(--muted); }

/* Bloki kodu z zakładkami */

.code-tabs { background: var(--code); border: 1px solid var(--code-line); border-radius: var(--radius); overflow: hidden; color: #e6edf6; }
.code-tablist { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--code-line); }
.code-tablist [role="tab"] {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #b9c4d3;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.code-tablist [role="tab"]:hover { color: #ffffff; }
.code-tablist [role="tab"][aria-selected="true"] { background: var(--code-2); color: #ffffff; border-color: #3a4a60; }
.code-tabs :focus-visible { outline-color: #7aa9f2; }
.code-panel + .code-panel { border-top: 1px solid var(--code-line); }
.js .code-panel + .code-panel { border-top: 0; }
.code-panel-title { padding: 16px 24px 0; font-size: 15px; color: #ffffff; }
.js .code-panel-title { display: none; }
.code-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--code-line); }
.code-step { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--code); }
.code-step-title { color: #8d9db2; font-size: 13px; font-weight: 600; }
.code-step p { font-size: 14px; }
.code-step pre { margin: 0; overflow-x: auto; font-size: 13px; line-height: 1.7; white-space: pre; scrollbar-color: #3a4a60 transparent; }
.code-step pre code { padding: 0; background: none; font-size: inherit; }
.c-k { color: #8fb8ff; }
.c-s { color: #a6dcae; }
.c-c { color: #8d9db2; }
.c-a { color: #f0c27e; }

.copy-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #3a4a60;
    border-radius: 6px;
    background: var(--code-2);
    color: #c9d3e0;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.copy-btn:hover { color: #ffffff; }

/* Cennik */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.price-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.price-card > p:not(.price) { color: var(--muted); }
.price-card h3 { font-size: 22px; }
.price-card.featured { padding: 31px; border: 2px solid var(--btn); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: auto; }
.price span { color: var(--muted); }
.price strong { font-size: 40px; letter-spacing: -0.02em; }

/* FAQ */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; }
.faq-item button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 44px;
    padding: 20px 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-sign { flex: none; color: var(--muted); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-sign::before { content: '−'; }
.faq-item button[aria-expanded="false"] .faq-sign::before { content: '+'; }
.faq-answer { padding-bottom: 20px; max-width: 720px; color: var(--muted); }
.faq-answer[hidden] { display: none; }

/* CTA */

.cta-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: 16px;
    background: #0f1724;
}
.cta-box .stack-sm { flex: 1 1 420px; }
.cta-box h2 { color: #ffffff; font-size: clamp(26px, 3.2vw, 34px); }
.cta-box p { color: #c3cdda; font-size: 18px; }

.section:not(.section-alt) + .section-cta { padding-top: 0; }

/* Podstrony: nagłówek, menu boczne, grupy funkcji */

.page-lead { max-width: 760px; }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.badge-check { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.badge-plain { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }

.with-sidenav { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.sidenav { position: sticky; top: 24px; }
.sidenav-title { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sidenav ul { display: flex; flex-direction: column; gap: 2px; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.sidenav a { display: block; margin-left: -2px; padding: 8px 12px; border-left: 2px solid transparent; color: var(--text); font-size: 15px; text-decoration: none; }
.sidenav a:hover { color: var(--link); }
.sidenav a[aria-current] { border-left-color: var(--btn); color: var(--soft-ink); font-weight: 600; }
.sidenav-content > * + * { margin-top: 80px; }

@media (max-width: 960px) {
    .with-sidenav { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
    .sidenav { position: static; }
    .sidenav ul { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: 0; }
    .sidenav a { margin-left: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
    .sidenav a[aria-current] { border-color: var(--btn); }
    .sidenav-content > * + * { margin-top: 64px; }
}

.feature-group { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; scroll-margin-top: 16px; }
.feature-group > .feature-lead { max-width: 760px; }
.feature-group > .shot-placeholder, .feature-group > .mini-grid, .feature-group > .table-wrap, .feature-group > .check-columns { align-self: stretch; }

.check-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 32px; padding: 0; list-style: none; }
.check-columns li { display: flex; gap: 10px; align-items: flex-start; }
.check-columns svg { flex: none; margin-top: 4px; color: var(--ok); stroke-width: 2.4; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mini-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.mini-card h3 { font-size: 17px; }
.mini-card p { color: var(--muted); font-size: 15px; }

.shot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg2);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}
.shot-placeholder.dark { background: #1b2230; border-color: #2c3647; color: #9fb0c6; }

.section-tight-top { padding-top: 48px; }

/* Cennik */

.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; background: var(--bg2); }
.segmented button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.segmented button:hover { background: var(--bg3); }
.segmented button[aria-pressed="true"] { background: var(--btn); color: #ffffff; }
.js .segmented[hidden] { display: inline-flex; }
.js [data-switch-panel]:not(.active) { display: none; }
.tier-price { display: flex; flex-direction: column; gap: 12px; }
.no-js .tier-price + .tier-price { padding-top: 16px; border-top: 1px solid var(--line); }
.price-note { color: var(--muted); font-size: 14px; }
.btn-disabled { opacity: 0.6; cursor: not-allowed; }
.check-list-vertical { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.check-list-vertical li { display: flex; gap: 10px; align-items: flex-start; }
.check-list-vertical svg { flex: none; margin-top: 4px; color: var(--ok); stroke-width: 2.4; }
.card-title { font-size: 20px; }
.card .price { margin-top: 0; }
.card .price strong { font-size: 32px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-list dt { font-weight: 600; font-size: 17px; }
.faq-list dd { margin: 6px 0 0; color: var(--muted); }

/* AI: suwak przed/po, kroki, komunikaty */

.compare-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.compare { display: flex; flex-direction: column; gap: 12px; }
.compare-figure { width: 100%; max-width: 900px; }
.compare-figure.ai-shot { max-width: none; }
.compare-stage { position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.compare-before, .compare-after { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; }
.compare-after { justify-content: flex-end; clip-path: inset(0 0 0 50%); }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-tag { position: relative; padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.65); color: #ffffff; font-size: 12px; font-weight: 600; }
.compare-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); pointer-events: none; }
.compare-range { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.compare-range input { width: 100%; min-height: 32px; accent-color: var(--btn); }
.compare-figure figcaption { color: var(--muted); font-size: 14px; }
/* Usunięte tło: szachownica pokazuje przezroczystość zdjęcia „po”. */
.ex-background.compare-after { background: repeating-conic-gradient(#e5e7eb 0 25%, #ffffff 0 50%) 0 0 / 24px 24px; }

.numbered-steps { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 0; list-style: none; }
.numbered-steps li { display: flex; gap: 16px; }
.numbered-steps p { color: var(--muted); }

.notice { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.notice-warn { border-color: var(--warn); background: var(--warn-soft); }
.notice-warn strong { color: var(--warn); }
.notice-ok { border-color: var(--ok); background: var(--ok-soft); }

.buy-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 2px solid var(--btn); border-radius: var(--radius); }
.buy-strip-title { font-size: 22px; }
.buy-strip p { color: var(--muted); }

/* Integracje */

.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.integration-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); text-decoration: none; }
.integration-card:hover { border-color: var(--btn); color: var(--text); }
.integration-card[aria-current="page"] { border-color: var(--btn); background: var(--soft); }
.integration-card-name { font-size: 18px; }
.integration-card-type { color: var(--muted); font-size: 14px; }
.integration-card-version { color: var(--muted); font-size: 12px; }
.integration-card-type + .integration-card-version { margin-top: 6px; }

.install-steps { display: flex; flex-direction: column; gap: 24px; padding: 0; list-style: none; }
.install-step { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.install-step-text { display: flex; gap: 16px; }
.install-step-text h3 { font-size: 19px; margin-bottom: 6px; }
.install-step-text p { color: var(--muted); }
.install-step-number { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: #ffffff; font-weight: 700; }
@media (max-width: 860px) {
    .install-step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.code-block { position: relative; min-width: 0; border: 1px solid var(--code-line); border-radius: 10px; background: var(--code); color: #e6edf6; overflow: hidden; }
.code-block-head { padding: 12px 96px 12px 16px; border-bottom: 1px solid var(--code-line); color: #8d9db2; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.7; scrollbar-color: #3a4a60 transparent; }
.code-block pre code { padding: 0; background: none; white-space: pre; font-size: inherit; }
.code-block .copy-btn { top: 6px; right: 8px; }

/* Tabele danych */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--bg2); font-size: 14px; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-weight: 500; }
.data-table td { text-align: center; width: 90px; }
.data-table .yes { color: var(--ok); }
.data-table .yes svg { stroke-width: 2.6; }
.data-table .no { color: var(--muted); }

.data-table-text td { width: auto; text-align: left; }
.data-table-text tbody th { font-weight: 600; }
.plain-list { padding: 0; list-style: none; }
kbd { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: 13px; white-space: nowrap; }

.definition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-self: stretch; }
.definition-grid > div { padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.definition-grid dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.definition-grid dd { margin: 4px 0 0; font-weight: 600; }

.statement { flex: 2 1 520px; min-width: 0; margin: 0; padding: 24px 28px; border-left: 4px solid var(--btn); border-radius: 0 10px 10px 0; background: var(--bg2); font-size: 17px; }

/* Demo */

.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.demo-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.demo-frame-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); font-size: 14px; }
.demo-frame iframe { display: block; width: 100%; height: min(720px, 80vh); border: 0; }
.demo-placeholder { min-height: 480px; border: 0; border-radius: 0; }
.demo-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.try-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; }
.demo-ai { padding-top: 16px; border-top: 1px solid var(--line); }
.demo-ai p { color: var(--muted); font-size: 15px; }
.demo-ai strong { color: var(--text); }
@media (max-width: 960px) {
    .demo-layout { grid-template-columns: minmax(0, 1fr); }
    .demo-aside { position: static; }
}

/* Karty linków (wsparcie, dokumentacja) */

.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); text-decoration: none; }
a.link-card:hover { border-color: var(--btn); color: var(--text); }
.link-card span { color: var(--muted); font-size: 15px; }
.link-card .badge { color: var(--soft-ink); margin-top: auto; }
.link-card.is-soon { background: var(--bg2); }
.license-where { flex: 2 1 520px; min-width: 0; }
.license-where h3 { font-size: 20px; }

/* Wersje */

.release { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.release-head time { color: var(--muted); }
.release-section + .release-section { margin-top: 16px; }
.release-section ul { margin-top: 8px; padding-left: 20px; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

/* Porównanie: na telefonie tabela jako karty */

.compare-table .highlight { background: var(--soft); }
@media (max-width: 760px) {
    .compare-table-wrap { border: 0; overflow: visible; }
    .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
    .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .compare-table tr { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
    .compare-table tbody th { background: var(--bg2); }
    .compare-table td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
    .compare-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; }
    .compare-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
    .compare-table tr > :last-child { border-bottom: 0; }
}

/* Dokumentacja: menu z lewej, treść, spis treści z prawej */

.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 200px; gap: 48px; align-items: start; padding-top: 32px; padding-bottom: 96px; }
.docs-layout:not(:has(.docs-toc)) { grid-template-columns: 260px minmax(0, 1fr); }
.docs-nav-toggle { display: none; }
.docs-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 4px 8px 16px 4px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.docs-nav-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding-right: 12px; }
.docs-nav-head input { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.docs-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 6px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; }
.docs-group summary::-webkit-details-marker { display: none; }
.docs-group summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.docs-group[open] summary::after { transform: rotate(45deg); }
.docs-group summary:hover { background: var(--bg2); color: var(--text); }
.docs-group ul { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 10px; padding: 0; list-style: none; }
.docs-group a { display: block; padding: 7px 10px 7px 16px; border-radius: 6px; color: var(--text); font-size: 15px; line-height: 1.35; text-decoration: none; }
.docs-group a:hover { background: var(--bg2); color: var(--link); }
.docs-group a[aria-current="page"] { background: var(--soft); color: var(--soft-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--btn); }
.docs-nav-empty { padding: 8px 10px; color: var(--muted); font-size: 14px; }

.docs-content { min-width: 0; max-width: 780px; }
.docs-content > * + * { margin-top: 20px; }
.docs-content h1 { font-size: clamp(30px, 4vw, 40px); }
.docs-prose { font-size: 17px; }
.docs-prose h2 { scroll-margin-top: 16px; }
.docs-prose .table-wrap { margin: 1.2em 0; }

.callout { display: flex; flex-direction: column; gap: 4px; margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--btn); border-radius: 0 10px 10px 0; background: var(--soft); }
.callout > strong { color: var(--soft-ink); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.callout > p { margin: 0; }
.callout-tip { border-left-color: var(--ok); background: var(--ok-soft); }
.callout-tip > strong { color: var(--ok); }
.callout-warning { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-warning > strong { color: var(--warn); }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 32px; }
.docs-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.docs-pager a:hover { border-color: var(--btn); }
.docs-pager span { color: var(--muted); font-size: 13px; }
.docs-pager-next { grid-column: 2; text-align: right; }

.docs-toc { position: sticky; top: 16px; font-size: 14px; }
.docs-toc ul { display: flex; flex-direction: column; gap: 2px; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.docs-toc a { display: block; margin-left: -2px; padding: 6px 10px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.docs-toc a:hover { color: var(--link); }
.docs-toc a[aria-current] { border-left-color: var(--btn); color: var(--soft-ink); font-weight: 600; }

@media (max-width: 1200px) {
    .docs-layout, .docs-layout:not(:has(.docs-toc)) { grid-template-columns: 240px minmax(0, 1fr); }
    .docs-toc { display: none; }
}
@media (max-width: 860px) {
    .docs-layout, .docs-layout:not(:has(.docs-toc)) { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
    .docs-nav-toggle { display: block; }
    .docs-nav-toggle summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; cursor: pointer; list-style: none; }
    .docs-nav-toggle summary::-webkit-details-marker { display: none; }
    .docs-nav { display: none; position: static; max-height: none; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
    .docs-nav-toggle[open] + .docs-nav { display: block; }
    .docs-pager { grid-template-columns: 1fr; }
    .docs-pager-next { grid-column: 1; }
}

/* Blog */

.section-page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.section-blog { padding-top: 48px; }
.breadcrumb-back { font-size: 14px; font-weight: 600; }
.blog-categories { padding-top: 8px; }
.chip-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.chip[aria-current="page"] { background: var(--soft); border-color: var(--btn); color: var(--soft-ink); }
.chip-count { margin-left: 6px; color: var(--muted); font-weight: 400; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.post-card:hover { border-color: var(--btn); }
.post-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.post-card-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg3); }
.post-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.post-card-category { color: var(--soft-ink); font-size: 13px; font-weight: 600; }
.post-card-title { font-size: 20px; line-height: 1.3; }
.post-card-title a { color: var(--text); text-decoration: none; }
/* Cała karta klikalna, ale w drzewie dostępności jest jeden link (tytuł). */
.post-card-title a::after { content: ''; position: absolute; inset: 0; }
.post-card-title a:focus-visible { outline: none; }
.post-card-excerpt { color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; color: var(--muted); font-size: 14px; }

.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
.pagination a:hover { background: var(--bg2); }
.pagination a[aria-current="page"] { background: var(--btn); border-color: var(--btn); color: #ffffff; }

.container-text { max-width: 808px; }
.container-wide { max-width: 1040px; }
.post-header { padding: 48px 0 32px; }
.post-header h1 { font-size: clamp(30px, 4.2vw, 44px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; list-style: none; font-size: 14px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 4px; color: var(--muted); }
.post-meta time { color: inherit; }
.post-languages { color: var(--muted); font-size: 14px; }
.post-languages a { margin-left: 4px; font-weight: 600; }
.post-cover { display: block; width: 100%; height: auto; margin-bottom: 40px; border-radius: var(--radius); }
.post-layout { padding-bottom: 72px; }
.post-layout > * + * { margin-top: 40px; }

.post-toc { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.post-toc-title { margin-bottom: 8px; font-weight: 700; }
.post-toc ol { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; }

.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(24px, 3vw, 30px); scroll-margin-top: 16px; }
.prose h3 { margin-top: 1.6em; font-size: 22px; }
.prose h4 { margin-top: 1.4em; font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--btn); color: var(--muted); }
.prose pre { margin: 1.4em 0; padding: 18px 20px; overflow-x: auto; border-radius: 10px; background: var(--code); color: #e6edf6; font-size: 14px; line-height: 1.7; }
.prose pre code { padding: 0; background: none; white-space: pre; font-size: inherit; }
.prose :not(pre) > code { white-space: normal; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg2); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.post-tags-title { margin-bottom: 10px; font-weight: 700; }

/* Stopka */

.site-footer { background: var(--bg2); border-top: 1px solid var(--line); }
.footer-inner { padding-top: 64px; padding-bottom: 32px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-about { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }
.footer-about p { max-width: 280px; color: var(--muted); font-size: 14px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-nav { flex: 1 1 150px; }
.footer-heading { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.footer-nav ul { display: flex; flex-direction: column; gap: 4px; padding: 0; list-style: none; font-size: 14px; }
.footer-nav a { display: inline-block; padding: 2px 0; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.no-js .footer-bottom .lang-switcher { flex-basis: 100%; }
.no-js .footer-bottom .lang-list ul { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Telefon */

@media (max-width: 720px) {
    .section { padding: 64px 0; }
    .section-tight { padding: 28px 0; }
    .container { padding: 0 16px; }
    .hero-inner { gap: 40px; padding-top: 48px; padding-bottom: 56px; }
    .stack-xl > * + * { margin-top: 64px; }
    .feature-row, .split { gap: 32px; }
    .feature-media { height: 260px; }
    .card { padding: 24px; }
    .price-card { padding: 24px; }
    .price-card.featured { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Przycisk „Kopiuj” przy blokach kodu w dokumentacji */
.docs-prose pre { position: relative; padding-right: 88px; }

/* Zrzuty ekranu (partials/shot.php) */
.shot { margin: 0; }
.feature-group > .shot { align-self: stretch; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.docs-content .shot img { border: 1px solid var(--line); }
.shot-zoom { display: block; cursor: zoom-in; border-radius: var(--radius); }
.shot-zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.feature-media.feature-shot { height: auto; display: flex; align-items: center; border: 0; background: none; overflow: visible; }
.feature-shot .shot, .hero-figure .shot { width: 100%; }
.feature-shot .shot img, .hero-figure .shot img { border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(15, 23, 42, .10); }

/* Zgłoszenia (/feedback) */
.feedback-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field .required { color: var(--muted); font-size: 13px; font-weight: 400; }
textarea.field-input { min-height: 0; resize: vertical; line-height: 1.5; }
.field-input[aria-invalid="true"] { border-color: var(--warn); }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; }
.field-error { margin: 0; color: var(--warn); font-size: 14px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--btn); }
.field-check label { flex: 1; font-weight: 400; }
.field-check .field-error { flex-basis: 100%; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-group { margin-left: 0; margin-right: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.field-group[hidden] { display: none; }
.field-group legend { padding: 0 6px; font-weight: 600; }
/* Cloudflare Turnstile: miejsce na widżet zarezerwowane, żeby przycisk nie skakał po jego narysowaniu. */
.turnstile { min-height: 65px; }

/* Rozmowa ze zgłaszającym (/feedback/reply/{token}): zgłoszenie i wiadomości, odpowiedzi zespołu na tle --soft. */
.thread { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.thread-item { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow-wrap: anywhere; }
.thread-item-staff { background: var(--soft); border-color: var(--soft); }
.thread-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); font-size: 14px; }
.thread-author { color: var(--text); font-weight: 600; }
.thread-item-staff .thread-author { color: var(--soft-ink); }
.thread-title { margin: 0; font-size: 17px; }
.thread-body { margin: 0; line-height: 1.6; }
.notice-error { border-color: var(--warn); background: var(--warn-soft); }
.muted { color: var(--muted); }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.roadmap-column { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.roadmap-column h3 { font-size: 16px; }
.roadmap-count { color: var(--muted); font-weight: 400; }
.roadmap-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.roadmap-item + .roadmap-item { margin-top: 10px; }
.roadmap-empty { font-size: 14px; }

/* Zgoda na pliki cookie (partials/cookie-banner.php, js/consent.js) */
.footer-link-button { display: inline-block; padding: 2px 0; border: 0; background: none; color: var(--link); font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.footer-link-button:hover { color: var(--link-h); }
.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 1000;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    margin-left: auto;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 8px; font-size: 18px; }
.cookie-banner h2:focus { outline: none; }
.cookie-banner > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.cookie-option-name { display: block; margin: 0; font-size: 15px; font-weight: 600; }
.cookie-option-text { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.cookie-always { flex: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.cookie-switch {
    flex: none;
    position: relative;
    width: 44px;
    height: 24px;
    margin: 0;
    border: 1px solid var(--muted);
    border-radius: 12px;
    background: var(--line);
    cursor: pointer;
    appearance: none;
    transition: background .2s;
}
.cookie-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: left .2s;
}
.cookie-switch:checked { border-color: var(--btn); background: var(--btn); }
.cookie-switch:checked::after { left: 22px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-buttons .btn { flex: 1 1 140px; }
/* „Zapisz wybór” (zapisuje stan przełącznika) jako link pod równorzędnymi „Akceptuj” i „Odrzuć”; cel ≥ 44 px. */
.cookie-save { margin: 8px 0 0; text-align: center; }
.cookie-save-link { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--link); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.cookie-save-link:hover { color: var(--link-h); }
@media (prefers-reduced-motion: reduce) {
    .cookie-switch, .cookie-switch::after { transition: none; }
}
.cookie-settings-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.cookie-settings-box p { flex: 1 1 280px; margin: 0; }
