:root {
  --ink: #0d1b16; --ink-2: #3d4b45; --muted: #6a7771; --line: #dfe5e1; --bg: #f7f8f5; --card: #ffffff;
  --brand: #0f5132; --brand-2: #157347; --brand-soft: #e3f1e8; --accent: #c2410c; --accent-soft: #fdeee6;
  --error: #b42318; --radius: 12px; --shadow: 0 1px 2px rgba(13,27,22,.06), 0 8px 24px rgba(13,27,22,.06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--brand-2); }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* nagłówek */
.top { position: sticky; top: 0; z-index: 10; background: rgba(247,248,245,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; align-items: center; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.top nav a.btn { color: #fff; }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 20px; font: 700 1rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-2); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn:disabled { opacity: .6; cursor: progress; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 36px; } }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; margin: 16px 0; }
h1 mark { background: linear-gradient(transparent 62%, #ffd9c2 62%); color: inherit; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.live { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.live div { min-width: 120px; }
.live b { display: block; font-size: 1.8rem; letter-spacing: -.02em; }
.live span { color: var(--muted); font-size: .85rem; }

/* atrapa maila */
.mail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mail-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.mail-head b { color: var(--ink); display: block; font-size: 1rem; }
.mail-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mail-item:last-child { border: 0; }
.mail-item small { color: var(--muted); display: block; }
.mail-item strong { color: #1d4ed8; display: block; line-height: 1.35; }
.mail-item .due { color: var(--accent); font-size: .9rem; }

section { padding: 56px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.015em; margin: 0 0 8px; line-height: 1.2; }
.sub { color: var(--ink-2); margin: 0 0 32px; max-width: 680px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
section.alt .step { background: var(--bg); }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 8px; }
.step h3 { margin: 4px 0; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-2); }

/* podgląd na żywo */
.tryit { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
@media (max-width: 860px) { .tryit { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.result-count { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.examples { list-style: none; padding: 0; margin: 16px 0 0; }
.examples li { padding: 10px 0; border-top: 1px solid var(--line); }
.examples a { font-weight: 600; text-decoration: none; }
.examples small { color: var(--muted); display: block; }

/* formularze */
label, .label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 11px 12px; font: 1rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand-2); }
textarea { min-height: 70px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; user-select: none; }
.chips input { accent-color: var(--brand); margin: 0; }
.chips label:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.field-error { color: var(--error); font-size: .85rem; margin-top: 4px; min-height: 0; }
.invalid input, .invalid .chips label { border-color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
@media (max-width: 640px) { .form-card { padding: 18px; } }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 800; font-size: 1.05rem; margin-top: 18px; padding: 0; }
.alert { border-radius: 10px; padding: 14px 16px; margin-top: 16px; }
.alert.ok { background: var(--brand-soft); color: var(--brand); }
.alert.err { background: #fdecea; color: var(--error); }

/* cennik */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: 'Najczęściej wybierany'; position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.plan h3 { margin: 0; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 20px; color: var(--ink-2); flex: 1; }
.plan-radio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .plan-radio { grid-template-columns: 1fr; } }
.plan-radio label { margin: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.plan-radio label:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.plan-radio input { accent-color: var(--brand); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--ink-2); margin: 10px 0 0; }

.industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.industries li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .95rem; }

/* dokumenty prawne / proste strony */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.25rem; margin-top: 28px; }
.doc li { margin: 4px 0; }
.center-card { max-width: 560px; margin: 64px auto; text-align: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.mt { margin-top: 14px; }
.full { width: 100%; }
#f-provinces { margin-top: 8px; }
[hidden] { display: none !important; }
