/* Te same tokeny co pełna strona (app/assets/css/main.css, DESIGN.md). */
:root {
  --surface: #ffffff;
  --surface-alt: #f4f6f1;
  --line: #dfe3da;
  --ink: #1d211b;
  --ink-soft: #4a5246;
  --red: #db0007;
  --red-dark: #b00006;
  --green: #37631b;
  --green-dark: #24421a;
  --green-mist: #c9d8bf;
  --yellow: #ffbc0d;
  --yellow-pale: #fff3cc;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--green); font-weight: 700; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.tabular { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 62rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 0.625rem;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -8px rgb(176 0 6 / 0.55); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { color: var(--green-dark); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Strona główna */
.hero { padding-block: 3.5rem 3rem; text-align: center; }
.hero img { width: 132px; height: 132px; }
.brand { margin-top: 1.25rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.brand span { color: var(--green); }
.badge {
  display: inline-block; margin-top: 2rem; padding: 0.5rem 1rem;
  border-radius: 999px; background: var(--yellow-pale); color: var(--ink);
  font-size: 0.95rem; font-weight: 700;
}
.hero h1 { margin: 1rem auto 0; max-width: 20ch; font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
.lead { margin: 1.25rem auto 0; max-width: 54ch; font-size: 1.2rem; color: var(--ink-soft); }
.hero .actions { justify-content: center; }

.support { border-block: 1px solid var(--line); background: var(--yellow-pale); padding-block: 2.5rem; }
.support .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.support h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.support p { margin-top: 0.4rem; }

.contact { padding-block: 3rem 3.5rem; }
.contact h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.contact-grid { margin-top: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 0.875rem; background: #fff; }
.card h3 { font-size: 1rem; color: var(--ink-soft); font-weight: 700; letter-spacing: 0; }
.card p { margin-top: 0.4rem; }
.card .small { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Podstrona 1,5% */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.home { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); font-weight: 800; text-decoration: none; }
.home:hover { color: var(--ink); }
.home img { width: 48px; height: 48px; }
.home span span { color: var(--green); }

.tax-head { background: var(--yellow-pale); border-bottom: 1px solid var(--line); padding-block: 3rem; }
.tax-head h1 { max-width: 22ch; font-size: clamp(2rem, 4.8vw, 3.1rem); }
.tax-head h1 em { font-style: normal; color: var(--red); }
.tax-head .intro { margin-top: 1rem; max-width: 60ch; font-size: 1.15rem; }
.krs {
  margin-top: 1.75rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 1rem 1.25rem; border: 2px solid var(--yellow); border-radius: 0.75rem; background: #fff;
}
.krs-label { font-weight: 700; color: var(--ink-soft); }
.krs-num { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: 0.04em; }
.copy {
  min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 0.4rem;
  background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: background-color 160ms;
}
.copy:hover { background: var(--green-dark); }

.howto { padding-block: 3rem 3.5rem; }
.howto h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.steps { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.5rem; max-width: 44rem; }
.steps li { display: flex; gap: 1rem; }
.num {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 1.1rem; font-weight: 800;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 0.3rem; color: var(--ink-soft); }

footer { background: var(--green-dark); color: var(--green-mist); padding-block: 1.5rem; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
footer :focus-visible { outline-color: var(--yellow); }
