:root {
  --ink: #132b35;
  --ink-2: #29424c;
  --paper: #f4f2ec;
  --surface: #ffffff;
  --line: #d9ddd9;
  --muted: #63747a;
  --accent: #d86632;
  --accent-dark: #ad4520;
  --mist: #e8eeeb;
  --success: #1e6b50;
  --shadow: 0 18px 48px rgba(19, 43, 53, .1);
  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(216, 102, 50, .4); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--surface); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 760px); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.eyebrow { margin: 0 0 .9rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 740; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1rem; }
.lead { max-width: 62ch; color: var(--ink-2); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.section--ink .lead { color: #c9d5d8; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(19, 43, 53, .12); background: rgba(244, 242, 236, .94); backdrop-filter: blur(12px); }
.nav { min-height: 76px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 31px; height: 31px; border: 2px solid var(--ink); display: grid; place-items: center; color: var(--accent); font-size: .77rem; }
.brand small { display: block; color: var(--muted); font-size: .62rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; list-style: none; padding: 0; }
.nav-links a { font-size: .91rem; font-weight: 680; text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: transparent; padding: .65rem .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 3px; background: var(--accent); color: #fff; font-weight: 780; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { color: #fff; background: var(--accent-dark); transform: translateY(-1px); }
.button--dark { background: var(--ink); }
.button--ghost { border-color: rgba(255,255,255,.38); background: transparent; }
.button--small { min-height: 42px; padding: .55rem .9rem; font-size: .88rem; }
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 8vw, 7.5rem) 0; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin: 1.5rem 0 1.8rem; color: #cbd7da; }
.hero-points { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 1.5rem; color: #eaf0f1; font-size: .88rem; }
.hero-points span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .55rem; background: var(--accent); }
.quote-panel { position: relative; padding: clamp(1.4rem, 3vw, 2.1rem); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.quote-panel::before { content: "01 / ZGŁOSZENIE"; display: block; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.form-kicker { margin: 1.2rem 0 -.75rem; color: var(--accent-dark) !important; font-size: .72rem !important; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.quote-panel h2 { margin-top: 1.35rem; font-size: 1.55rem; letter-spacing: -.025em; }
.quote-panel p { color: var(--muted); font-size: .91rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field { display: grid; gap: .34rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid #ccd3d1; border-radius: 2px; background: #fff; color: var(--ink); padding: .72rem .8rem; }
.field textarea { min-height: 92px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 2px rgba(180, 35, 24, .08); }
.field-error { min-height: 1.05rem; color: #b42318; font-size: .7rem; line-height: 1.3; }
.consent { grid-template-columns: 20px 1fr; column-gap: .65rem; align-items: start; }
.consent input { width: 18px; min-height: 18px; margin: .2rem 0 0; accent-color: var(--accent-dark); }
.consent label { font-weight: 550; line-height: 1.45; }
.consent .field-error { grid-column: 2; }
.form-note { margin: .85rem 0 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.form-success { display: none; margin-top: .8rem; color: var(--success); font-weight: 700; }
.form-success[aria-hidden="false"] { display: block; }
.form-success[aria-hidden="false"] { padding: .85rem 1rem; border-left: 3px solid var(--success); background: #edf7f2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: solid var(--line); border-width: 0 1px 1px 0; }
.stat { min-height: 150px; padding: 1.5rem; border: solid var(--line); border-width: 1px 0 0 1px; background: rgba(255,255,255,.45); }
.stat strong { display: block; margin-bottom: .55rem; color: var(--accent-dark); font-size: 1.8rem; letter-spacing: -.04em; }
.stat span { color: var(--ink-2); font-size: .9rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-head > div { max-width: 720px; }
.section-head .lead { margin-top: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: solid var(--line); border-width: 1px 0 0 1px; }
.service-card { position: relative; min-height: 280px; padding: 1.65rem; border: solid var(--line); border-width: 0 1px 1px 0; background: var(--surface); text-decoration: none; }
.service-card:hover { color: var(--ink); background: var(--mist); }
.service-card .index { display: block; margin-bottom: 3.2rem; color: var(--accent-dark); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.service-card p { color: var(--muted); font-size: .92rem; }
.service-card .arrow { position: absolute; right: 1.5rem; bottom: 1.25rem; font-size: 1.35rem; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process-step { position: relative; padding: 1.4rem 1.4rem 1.4rem 2.2rem; border-left: 1px solid rgba(255,255,255,.22); }
.process-step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 2.2rem; color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.process-step p { margin-top: .8rem; color: #bdcbcf; font-size: .9rem; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin: 3.3rem 0 1.1rem; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.prose h3 { margin: 2.2rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.prose table { width: 100%; margin: 1.6rem 0; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
.prose th, .prose td { padding: .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.callout { margin: 2rem 0; padding: 1.4rem 1.5rem; border-left: 4px solid var(--accent); background: var(--mist); }
.callout strong { display: block; margin-bottom: .35rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: .8rem 0 .8rem 1.65rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 850; }
.side-nav { position: sticky; top: 104px; padding: 1.4rem; border-top: 3px solid var(--accent); background: var(--surface); }
.side-nav strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.side-nav ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.side-nav a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .86rem; text-decoration: none; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 1.25rem 3rem 1.25rem 0; font-weight: 760; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .5rem; top: 1.05rem; color: var(--accent-dark); font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 72ch; color: var(--muted); }
.breadcrumbs { padding: 1rem 0; color: var(--muted); font-size: .78rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; }
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--ink); color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; }
.page-hero-grid:has(.quote-panel) { align-items: center; }
.page-hero .quote-panel { align-self: center; }
.hero-subheading { margin-top: 1.5rem; color: #fff; font-size: 1.2rem; letter-spacing: -.015em; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 1.4rem; color: #cbd7da; }
.page-meta { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.25); }
.page-meta dt { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.page-meta dd { margin: .2rem 0 1rem; color: #e3ebed; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related a { padding: 1.4rem; border-top: 3px solid var(--accent); background: var(--surface); text-decoration: none; }
.related span { display: block; margin-top: .7rem; color: var(--muted); font-size: .84rem; }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); background: var(--accent); color: #fff; }
.cta-band h2 { max-width: 16ch; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.cta-band p { margin: .8rem 0 0; color: #fff2ea; }
.footer { padding: 4.5rem 0 2rem; background: #0d222b; color: #d9e3e5; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.footer h2, .footer h3 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin: .48rem 0; }
.footer a { color: #c0ced1; font-size: .88rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); color: #91a5aa; font-size: .75rem; }
.hub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hub-item { padding: 1.35rem; border: 1px solid var(--line); background: var(--surface); }
.hub-item a { font-weight: 780; text-decoration: none; }
.hub-item p { margin: .5rem 0 0; color: var(--muted); font-size: .86rem; }
.topic-photo { margin: 2rem 0; }
.topic-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.topic-photo figcaption { margin-top: .55rem; color: var(--muted); font-size: .76rem; }
.legal { color: var(--muted); font-size: .92rem; }
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 76px; margin: 0; padding: 1rem; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links .button { width: 100%; }
  .hero-grid, .page-hero-grid, .split { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .stats, .process { grid-template-columns: 1fr 1fr; }
  .service-grid, .related { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side-nav { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .section { padding: 3.5rem 0; }
  .hero-grid { padding: 3.4rem 0; }
  .hero-points { display: grid; }
  .form-grid, .stats, .service-grid, .process, .related, .footer-grid, .hub-list { grid-template-columns: 1fr; }
  .section-head, .cta-band, .footer-bottom { align-items: stretch; flex-direction: column; display: flex; }
  .service-card { min-height: 220px; }
  .service-card .index { margin-bottom: 2rem; }
  .mobile-cta { position: fixed; left: .65rem; right: .65rem; bottom: .65rem; z-index: 30; display: flex; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
  .footer { padding-bottom: 6.5rem; }
}

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

@media print {
  .site-header, .quote-panel, .mobile-cta, .footer { display: none; }
  body { background: #fff; }
  .section, .page-hero { padding: 2rem 0; }
  .page-hero { color: #000; background: #fff; }
}
