/* Przelewy.co.uk – arkusz stylów. Bez zewnętrznych fontów i skryptów. */
:root {
  --ink: #17212b;
  --ink-soft: #364552;
  --muted: #56636f;
  --primary: #0b5563;
  --primary-strong: #083f4a;
  --primary-tint: #e9f3f4;
  --primary-tint-2: #d5e8ea;
  --accent: #e0a526;
  --accent-soft: #fbf0d6;
  --accent-ink: #6f4b00;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --line: #d9e1e3;
  --line-strong: #b9c7cb;
  --focus: #b4530a;
  --footer: #0b2f36;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 40, 48, .06), 0 6px 18px rgba(15, 40, 48, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --wrap: 74rem;
  --measure: 45rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: anywhere;
}
@media (max-width: 40rem) { .prose p, .prose li, .lead, .need-text, .fact-note, .tips p { hyphens: auto; } }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--primary-strong); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.012em; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); }
h3, .h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
code { font-size: .92em; background: var(--primary-tint); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.narrow { max-width: calc(var(--measure) + 4rem); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- nagłówek ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4.25rem; padding-block: .4rem; }
.brand { display: inline-flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.18rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 2.2rem; height: 2.2rem; color: var(--primary); flex: none; }
.brand-tld { color: var(--primary); font-weight: 650; }
.main-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem .7rem; border-radius: var(--radius-sm); color: var(--ink-soft); text-decoration: none; font-weight: 560; font-size: .97rem; }
.main-nav a:hover { background: var(--primary-tint); color: var(--primary-strong); }
.main-nav a[aria-current="page"] { color: var(--primary-strong); background: var(--primary-tint); box-shadow: inset 0 -2px 0 var(--primary); }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--ink); background: var(--surface); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.mobile-nav[open] .burger { background: transparent; }
.mobile-nav[open] .burger::before { top: 0; transform: rotate(45deg); }
.mobile-nav[open] .burger::after { top: 0; transform: rotate(-45deg); }
.mobile-nav nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; }
.mobile-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); }
.mobile-nav li a { display: block; padding: .8rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 560; }
.mobile-nav li a[aria-current="page"] { color: var(--primary); }
.mobile-nav li.sep { margin-top: .5rem; }
@media (max-width: 74.99rem) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- strona główna ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: .8rem; }
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(224, 165, 38, .18), transparent 60%), linear-gradient(180deg, var(--primary-tint), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-inner h1 { max-width: 48rem; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; max-width: 46rem; }
.notice { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.15rem; max-width: 46rem; margin-top: 1.5rem; box-shadow: var(--shadow); }
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 46rem; margin-bottom: 1.6rem; }
.needs, .tips, .related-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.needs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.need-card { display: flex; flex-direction: column; gap: .45rem; height: 100%; padding: 1.35rem 1.35rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.need-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--ink); }
.need-card-alt { background: var(--primary-tint); border-color: var(--primary-tint-2); box-shadow: none; }
.need-card-alt .icon { background: var(--surface); }
.need-card .icon { width: 2.6rem; height: 2.6rem; padding: .5rem; border-radius: 12px; background: var(--primary-tint); color: var(--primary); margin-bottom: .35rem; }
.need-want { font-weight: 720; font-size: 1.15rem; line-height: 1.3; }
.need-text { color: var(--ink-soft); font-size: .98rem; }
.need-more { margin-top: auto; padding-top: .6rem; color: var(--primary); font-weight: 600; font-size: .94rem; }
.tips { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); counter-reset: tip; }
.tips li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; position: relative; counter-increment: tip; }
.tips li::before { content: counter(tip); position: absolute; top: 1.1rem; right: 1.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 750; font-size: .9rem; display: grid; place-items: center; }
.tips h3 { font-size: 1.08rem; padding-right: 2.4rem; margin-bottom: .45rem; }
.tips p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin: 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.fact dt { font-weight: 620; color: var(--muted); font-size: .92rem; }
.fact dd { margin: .3rem 0 0; }
.fact-value { display: block; font-size: 1.45rem; font-weight: 760; color: var(--primary-strong); letter-spacing: -.01em; line-height: 1.25; margin-bottom: .35rem; }
.fact-note { display: block; color: var(--ink-soft); font-size: .95rem; }
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.two-col > * { min-width: 0; }
@media (min-width: 56rem) { .two-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .5rem; }
.card-cta { background: var(--primary-tint); border: 1px solid var(--primary-tint-2); border-radius: var(--radius); padding: 1.5rem; }
.button-link { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 650; padding: .7rem 1.15rem; border-radius: 999px; }
.button-link:hover { background: var(--primary-strong); color: #fff; }

/* ---------- artykuł ---------- */
.article-hero, .page-hero { background: linear-gradient(180deg, var(--primary-tint), var(--bg)); border-bottom: 1px solid var(--line); padding-block: 1.25rem clamp(1.75rem, 4vw, 2.75rem); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 1.4rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.article-hero h1, .page-hero h1 { max-width: 52rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin: 1.5rem 0 0; font-size: .92rem; }
.article-meta div { display: flex; flex-direction: column; }
.article-meta dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.article-meta dd { margin: 0; font-weight: 600; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2rem 1rem; }
@media (min-width: 64rem) {
  .article-layout { grid-template-columns: 15.5rem minmax(0, var(--measure)); gap: 3rem; justify-content: start; }
  .toc { position: sticky; top: 1.25rem; align-self: start; max-height: calc(100vh - 2.5rem); overflow: auto; }
}
.toc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.toc ol { margin: .7rem 0 0; padding-left: 1.2rem; font-size: .93rem; line-height: 1.45; }
.toc li { margin-bottom: .45rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

.prose { max-width: var(--measure); min-width: 0; }
.prose h2 { margin-top: 2.6rem; padding-top: .4rem; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.9rem; scroll-margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45rem; }
.prose li > ul, .prose li > ol { margin-top: .45rem; }
.prose a.ext::after { content: "↗" / ""; font-size: .8em; margin-left: .15em; text-decoration: none; display: inline-block; }
.summary { background: var(--primary-tint); border: 1px solid var(--primary-tint-2); border-left: 5px solid var(--primary); border-radius: var(--radius); padding: 1.15rem 1.35rem .4rem; margin: 0 0 2rem; }
.summary > p:first-child { font-weight: 700; color: var(--primary-strong); margin-bottom: .5rem; }
.summary ul { padding-left: 1.2rem; }
.callout { background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem .2rem; margin: 1.4rem 0; }

.table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--primary-tint); color: var(--primary-strong); font-weight: 700; }
tbody th { font-weight: 620; background: #fbfcfb; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 47.99rem) { table.wide { min-width: 34rem; } th, td { padding: .6rem .65rem; } }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { margin-bottom: .2rem; }
.checklist label { min-width: 0; display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .7rem; border-radius: var(--radius-sm); cursor: pointer; }
.checklist label:hover { background: var(--primary-tint); }
.checklist input { flex: none; width: 1.2rem; height: 1.2rem; margin: .22rem 0 0; accent-color: var(--primary); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.print-hint { font-size: .92rem; color: var(--muted); margin-top: -.2rem; }
.faq-item { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.faq-item h3 { font-size: 1.08rem; margin: 0 0 .45rem; }
.sources { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.3rem .6rem; margin-top: 2.6rem; font-size: .95rem; }
.sources h2 { font-size: 1.25rem; margin-top: .8rem; }
.article-note { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; font-style: italic; }
.related { padding-block: 1rem 3.5rem; }
.related h2 { font-size: 1.35rem; }
.related-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.related-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.related-card:hover { border-color: var(--primary); color: var(--ink); }
.related-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.related-title { font-weight: 620; line-height: 1.35; }

/* ---------- strony informacyjne ---------- */
.page-info .prose { padding-block: 2rem 3.5rem; }
.print-block { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: .4rem 1.3rem 1rem; margin-bottom: 1.5rem; }
.print-block h2 { margin-top: 1rem; }
.print-source { font-size: .92rem; color: var(--muted); }

/* ---------- stopka ---------- */
.site-footer { background: var(--footer); color: #d8e6e8; margin-top: 0; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.brand-footer { color: #fff; margin-bottom: .8rem; }
.brand-footer:hover { color: #fff; }
.brand-footer .logo-mark { color: #1d7f8f; }
.brand-footer .brand-tld { color: #9fd3da; }
.footer-about p { max-width: 32rem; font-size: .96rem; }
.footer-notice { border-left: 3px solid var(--accent); padding-left: .9rem; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1.2rem 2rem; font-size: .88rem; color: #b9cdd0; }
.footer-bottom p { margin: 0 0 .4rem; }

/* ---------- druk ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .site-header, .site-footer, .toc, .related, .skip-link, .print-hint, .breadcrumbs, .hero .notice { display: none !important; }
  .article-hero, .page-hero, .hero { background: none; border: 0; padding: 0 0 8pt; }
  .article-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: none; }
  .prose a.ext::after { content: ""; }
  .table-wrap { overflow: visible; border: 1px solid #999; }
  table { min-width: 0 !important; font-size: 9.5pt; }
  .summary, .callout, .sources, .print-block, .fact, .need-card, .tips li { box-shadow: none; background: #fff; border-color: #999; }
  .checklist label { padding: 2pt 0; }
  .checklist input { -webkit-appearance: none; appearance: none; border: 1.2pt solid #000; border-radius: 2pt; width: 10pt; height: 10pt; margin-top: 3pt; }
  h2, h3 { break-after: avoid; }
  .print-block, .faq-item, tr, .fact { break-inside: avoid; }
}
