:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --alt: #f2f5f3;
  --ink: #142322;
  --muted: #5b6b68;
  --brand: #0f3d3e;
  --brand-2: #17595a;
  --accent: #f29f05;
  --accent-ink: #1d1400;
  --line: #e1e7e4;
  --danger: #b42318;
  --ok: #17663a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 61, 62, .06), 0 8px 24px rgba(15, 61, 62, .07);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1716;
    --surface: #132220;
    --alt: #10201e;
    --ink: #e8f1ee;
    --muted: #9bb2ad;
    --brand: #7fd1c9;
    --brand-2: #5fb9b1;
    --accent: #f5b335;
    --accent-ink: #1d1400;
    --line: #1f3431;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #0c1716;
  --surface: #132220;
  --alt: #10201e;
  --ink: #e8f1ee;
  --muted: #9bb2ad;
  --brand: #7fd1c9;
  --brand-2: #5fb9b1;
  --accent: #f5b335;
  --accent-ink: #1d1400;
  --line: #1f3431;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h2 { margin-bottom: .7em; }
.section-sub { color: var(--muted); margin: -.3em 0 1.6em; max-width: 60ch; }
.section h2 + .grid, .section h2 + .faq { margin-top: 0; }
.section-alt { border-block: 1px solid var(--line); }
.two-col > .prose { min-width: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { color: var(--brand-2); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; }
.eyebrow a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: .85em 1.4em; border-radius: 999px; border: 0; text-decoration: none;
  cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(242, 159, 5, .25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(242, 159, 5, .3); }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.btn-small { padding: .55em 1em; font-size: .92rem; box-shadow: none; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.logo { font-weight: 800; color: var(--brand); text-decoration: none; font-size: 1.15rem; letter-spacing: -.01em; }
.logo span { color: var(--accent); margin-left: 4px; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--brand-2); }
.nav a.btn { color: var(--accent-ink); }
.nav a.btn:hover { color: var(--accent-ink); }

/* Sekcje */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--alt); }
.page-head { padding: clamp(40px, 6vw, 72px) 0 24px; }
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(48px, 6vw, 72px); background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
  var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.proof { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1.6em 0 0; color: var(--muted); font-size: .95rem; }
.proof strong { color: var(--brand); font-size: 1.15rem; display: block; }
.proof li { padding: 0; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.more { margin-top: 1.5em; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Karty */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card, .city-card, .post-card {
  display: flex; flex-direction: column; border-top: 3px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover, .city-card:hover, .post-card:hover {
  border-top-color: var(--accent); box-shadow: 0 14px 34px rgba(15, 61, 62, .12);
}
.service-card h3, .city-card h3, .post-card h3 { color: var(--brand); }
.service-card p, .post-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.service-card .price { color: var(--brand-2); font-weight: 600; font-size: .92rem; margin-top: .6em; }
.post-card time { color: var(--muted); font-size: .85rem; }
.post-card .tag { align-self: flex-start; background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--brand-2); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.answer { background: color-mix(in srgb, var(--brand-2) 8%, var(--surface)); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 20px; margin: 0 0 28px; }
.answer strong { display: block; margin-bottom: 4px; color: var(--brand); }
.answer p { margin: 0; }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.prose details summary { cursor: pointer; font-weight: 600; }
.prose details p { margin: .6em 0 0; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.mt { margin-top: 2em; }
.small { font-size: .9rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.tool-card { display: flex; flex-direction: column; border-top: 3px solid var(--brand-2); }
.tool-card h3 { color: var(--brand); }
.tool-card p { color: var(--muted); flex: 1; font-size: .97rem; }
.tool-card .price { color: var(--brand-2); font-weight: 600; font-size: .92rem; }
.progress { margin-bottom: 20px; }
.bar { height: 8px; background: var(--alt); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--accent)); transition: width .25s ease; }
.checklist { display: grid; gap: 18px; }
.check-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); margin: 0; }
.check-group legend { font-weight: 700; color: var(--brand); padding: 0 8px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 1rem; cursor: pointer; }
.check-item input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.letters a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; }
.letters a:hover { border-color: var(--accent); }
.gloss-group { margin-bottom: 32px; }
.gloss-group h2 { font-size: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.gloss-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.gloss-item dt { font-weight: 700; color: var(--brand); }
.gloss-item dd { margin: 4px 0 0; color: var(--ink); }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-card { display: grid; gap: 10px; }
.offer-card h3 { color: var(--brand); margin-bottom: 4px; }
.offer-card label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--alt); color: var(--brand); }
table.compare tbody th { color: var(--muted); font-weight: 600; width: 30%; }
@media (max-width: 960px) { .offers-grid { grid-template-columns: 1fr; } }
.tabs a { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; }
.tabs a:hover { border-color: var(--brand-2); color: var(--brand-2); }
.tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-card { border-top-color: var(--brand-2); }
.cat-card .price { color: var(--brand-2); }
.source-card h3 { color: var(--brand); }
.source-card .price { color: var(--brand-2); }
.side { font-size: .97rem; }
.side h3 { margin-top: 1em; }
.side h3:first-child { margin-top: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 .5em; }
.plain li { padding: 4px 0; }

/* Hero – kroki */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps span { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* Kalkulator */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.calc { display: grid; gap: 16px; }
.calc label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.calc-result { background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 4px; }
.calc { box-shadow: 0 18px 44px rgba(15, 61, 62, .12); }
.calc-result span { color: var(--muted); font-size: .9rem; }
.calc-result strong { font-size: 1.6rem; color: var(--brand); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-card { display: grid; gap: 10px; }
.calc-card > h2 { margin: 0; font-size: 1.35rem; }
.calc-card > p { margin: 0 0 6px; }
.calc-lines { display: grid; gap: 6px; }
.calc-lines .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.calc-lines .line:last-child { border-bottom: 0; }
.calc-lines .line strong { color: var(--brand); white-space: nowrap; }
.calc-card .calc-result .muted { margin: 0; }
.calc-result small { color: var(--muted); }

/* Formularze */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.form label.check input { margin-top: 5px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .7em .85em; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); outline: 2px solid color-mix(in srgb, var(--brand-2) 30%, transparent); outline-offset: 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.invalid { border-color: var(--danger) !important; }

/* Pytania */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6em 0 0; color: var(--muted); }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; padding: 64px 0;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band .btn { background: var(--accent); }
.cta-inline { margin-top: 2em; }

/* Artykuły */
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul, .prose ol { margin-bottom: 1em; }
.prose li { margin: .3em 0; }
.prose a { font-weight: 600; }

/* Stopka */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid p { color: var(--muted); margin: 0; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--brand-2); text-decoration: underline; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.copy a { color: var(--muted); }

/* Responsywność */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-grid, .calc-layout, .two-col, .calc-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-row { flex-wrap: wrap; padding: 10px 0; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 14px; font-size: .92rem; }
  .field-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .card { padding: 20px; }
}
.news-top { padding: 28px 0; border-bottom: 1px solid var(--line); }
.news-top .news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.news-top .news-head h2 { margin: 0; font-size: 1.4rem; }
.news-top .news-head a { font-weight: 600; }
.news-top .post-card { padding: 18px 20px; }
.news-top .post-card h3 { font-size: 1.05rem; margin-bottom: .3em; }
.news-top .post-card p { margin: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Strona główna: aktualności w centrum, przyklejony panel po prawej ── */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 60px; }
.home-main { min-width: 0; }
.home-intro { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.home-intro h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.home-side { position: sticky; top: 92px; }
.side-card { display: grid; gap: 16px; }
.side-card h2 { font-size: 1.3rem; margin: 0; }
.side-card .steps { margin: 0; }
.side-card .small { margin: 0; }
.news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 28px 0 18px; }
.news-head h2 { margin: 0; }
.news-head a { font-weight: 600; white-space: nowrap; }
.news-list { display: grid; gap: 20px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 61, 62, .12); }
.news-card h2, .news-card h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.news-card h2 a, .news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--brand-2); }
.news-card p { color: var(--muted); margin: 0 0 12px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; }
.news-meta time { color: var(--muted); }
.news-card .read { font-weight: 700; text-decoration: none; color: var(--brand-2); }
.news-card .read:hover { text-decoration: underline; }
.news-page { display: grid; gap: 24px; }
.news-page .news-card.wide { padding: 32px 36px; }
.news-page .news-card.wide h2 { font-size: 1.6rem; }
.sources a { font-weight: 600; }
.answer strong { font-size: .95rem; }
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .news-card, .news-page .news-card.wide { padding: 20px; }
}
