/* =========================================================================
   Odwołanie od kary za brak OC — arkusz stylów
   Estetyka: redakcyjny minimalizm, papier + głęboka zieleń + bursztyn.
   ========================================================================= */

:root {
  /* Kolory */
  --paper:        #F6F2E9;
  --paper-2:      #FBF9F3;
  --paper-3:      #EFE9DB;
  --ink:          #16201A;
  --ink-soft:     #46514A;
  --ink-muted:    #727C75;
  --brand:        #14503C;
  --brand-700:    #0E3A2B;
  --brand-300:    #2E7D5C;
  --accent:       #C9821F;
  --accent-soft:  #F4E3C4;
  --alert:        #B23A2E;
  --line:         rgba(22, 32, 26, 0.12);
  --line-strong:  rgba(22, 32, 26, 0.22);

  /* Typografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Układ */
  --maxw: 1120px;
  --readw: 720px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22,32,26,.05), 0 14px 40px -22px rgba(22,32,26,.32);
  --shadow-lg: 0 2px 4px rgba(22,32,26,.06), 0 36px 70px -34px rgba(22,32,26,.42);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(46,125,92,.10), transparent 60%),
    radial-gradient(760px 480px at -6% 4%, rgba(201,130,31,.08), transparent 58%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration-color: rgba(20,80,60,.35); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); text-decoration-color: var(--accent); }

::selection { background: var(--accent-soft); color: var(--brand-700); }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.22rem, 1.05rem + .7vw, 1.5rem); }
p  { text-wrap: pretty; }

.kicker {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-300);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Pomocnicze ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.muted { color: var(--ink-muted); }
.lead { font-size: clamp(1.12rem, 1rem + .55vw, 1.4rem); color: var(--ink-soft); line-height: 1.6; }
.center { text-align: center; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Pasek reklamowy (na górze) ---------- */
.ad-ribbon {
  background: var(--brand-700);
  color: #F3EAD7;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ad-ribbon .container {
  display: flex; align-items: center; justify-content: center;
  gap: .35rem 1rem; flex-wrap: wrap;
  padding-block: 9px; text-align: center;
}
.ad-ribbon strong { color: #fff; font-weight: 700; }
.ad-ribbon .tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: #2a1a05;
  padding: 2px 9px; border-radius: 999px;
}
.ad-ribbon a { color: var(--accent-soft); font-weight: 700; text-decoration-thickness: 1.5px; }
.ad-ribbon a:hover { color: #fff; }

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,233,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), var(--shadow);
}
.brand .mark span { transform: translateY(-.5px); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-size: .96rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  padding: .5rem .7rem; border-radius: 8px; transition: background .18s, color .18s;
}
.nav a:hover { color: var(--ink); background: rgba(22,32,26,.05); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.3rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); background: rgba(20,80,60,.06); color: var(--brand-700); }
.btn-accent { background: var(--accent); color: #2a1a05; box-shadow: var(--shadow); }
.btn-accent:hover { background: #b3711a; color: #2a1a05; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(36px, 5vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 1rem; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .28em;
  background: var(--accent-soft); z-index: -1; border-radius: 3px;
}
.hero .lead { margin-top: 1.35rem; max-width: 38ch; }
.hero-cta { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-muted); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { color: var(--brand-300); flex: none; }

/* Karta z danymi w hero */
.fact-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 30px);
  position: relative;
}
.fact-card::before {
  content: "2026"; position: absolute; top: -13px; right: 22px;
  font-family: var(--font-body); font-weight: 800; font-size: .7rem; letter-spacing: .14em;
  background: var(--accent); color: #2a1a05; padding: 4px 11px; border-radius: 999px;
}
.fact-card h2 { font-size: 1.18rem; font-weight: 600; }
.fact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .15rem; }
.fact-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px dashed var(--line); }
.fact-list li:first-child { border-top: 0; }
.fact-list .k { color: var(--ink-soft); font-size: .96rem; }
.fact-list .v { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--ink); white-space: nowrap; }
.fact-list .v.alert { color: var(--alert); }

/* ---------- Statystyki ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px); }
.stat { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1; color: var(--brand); }
.stat .num.alert { color: var(--alert); }
.stat .lbl { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Slot reklamowy ---------- */
.ad-slot {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(201,130,31,.05) 0 14px, transparent 14px 28px),
    var(--paper-2);
  padding: clamp(22px, 3.5vw, 34px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.2rem;
}
.ad-slot .badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .5rem;
}
.ad-slot .badge::before { content: "◆"; font-size: .7em; }
.ad-slot h3 { margin-top: .5rem; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); }
.ad-slot p { margin-top: .4rem; color: var(--ink-soft); max-width: 56ch; }
.ad-slot--inline { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.ad-slot--inline p { margin-inline: auto; }

/* ---------- Sekcje treści ---------- */
.section-head { max-width: 60ch; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: .8rem; }
.section-head p { margin-top: .9rem; }

/* Tabela kar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
table.rates { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 1rem; }
table.rates caption { text-align: left; padding: 1rem 1.2rem .2rem; color: var(--ink-muted); font-size: .9rem; }
table.rates th, table.rates td { padding: .95rem 1.2rem; text-align: left; border-top: 1px solid var(--line); }
table.rates thead th { background: var(--brand); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .9rem; letter-spacing: .02em; border: 0; }
table.rates thead th:first-child { border-top-left-radius: 0; }
table.rates tbody tr:hover { background: rgba(20,80,60,.04); }
table.rates td.fig { font-family: var(--font-display); font-weight: 600; color: var(--ink); white-space: nowrap; }
table.rates td.fig.max { color: var(--alert); }
table.rates th[scope="row"] { font-weight: 700; color: var(--ink); }

/* Karty tematów / podstaw */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 24px); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.t-card {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  position: relative; min-height: 100%;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: inherit; }
.t-card .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--brand-700); margin-bottom: 1rem; flex: none;
}
.t-card h3 { font-size: 1.2rem; }
.t-card p { margin-top: .5rem; font-size: .97rem; color: var(--ink-soft); }
.t-card .more { margin-top: auto; padding-top: 1rem; font-weight: 700; font-size: .92rem; color: var(--brand); display: inline-flex; align-items: center; gap: .4rem; }
.t-card:hover .more { color: var(--brand-700); }
.t-card:hover .more .arrow { transform: translateX(4px); }
.t-card .more .arrow { transition: transform .18s; }

/* Kroki */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--brand); background: var(--accent-soft);
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
}
.step h3 { font-size: 1.12rem; }
.step p { margin-top: .45rem; font-size: .96rem; color: var(--ink-soft); }
.step a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin-inline: auto; display: grid; gap: .7rem; margin-top: 2.4rem; }
.faq-item {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 560; font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem);
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-ico {
  margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  transition: transform .25s ease, background .2s, border-color .2s, color .2s; color: var(--brand);
}
.faq-item summary .q-ico::before { content: "+"; font-size: 1.1rem; line-height: 1; font-family: var(--font-body); font-weight: 600; }
.faq-item[open] summary .q-ico { transform: rotate(45deg); background: var(--brand); color: #fff; border-color: var(--brand); }
.faq-body { padding: 0 1.4rem 1.3rem; }
.faq-body p { color: var(--ink-soft); }
.faq-body .more { margin-top: .9rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .94rem; }
.faq-body .more .arrow { transition: transform .18s; }
.faq-body .more:hover .arrow { transform: translateX(4px); }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--brand); background: var(--paper-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.4rem; margin: 1.8rem 0;
}
.callout.accent { border-left-color: var(--accent); background: linear-gradient(0deg, rgba(201,130,31,.05), rgba(201,130,31,.05)), var(--paper-2); }
.callout.alert { border-left-color: var(--alert); }
.callout h3 { font-size: 1.15rem; }
.callout p { margin-top: .4rem; color: var(--ink-soft); }
.callout p + p { margin-top: .6rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: 1.6rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; font-size: .9rem; color: var(--ink-muted); }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* ---------- Artykuł (podstrony) ---------- */
.article { padding-block: clamp(28px, 4vw, 52px) clamp(40px, 6vw, 80px); }
.article-head { max-width: var(--readw); }
.article-head .tag-pill {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-300); margin-bottom: 1rem;
}
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.article-head .lead { margin-top: 1.2rem; }
.prose { max-width: var(--readw); margin-top: 2.4rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p { margin-top: 1rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin-top: 1rem; padding-left: 1.3rem; color: var(--ink-soft); }
.prose li { margin-top: .5rem; }
.prose li::marker { color: var(--brand-300); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { font-weight: 600; }
.prose .table-wrap { margin-top: 1.6rem; }

/* Spis treści / related w artykule */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 1.3rem; }
.related-grid a { display: block; padding: 1.1rem 1.2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; transition: transform .16s, box-shadow .2s, border-color .2s; }
.related-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.related-grid a span { display: block; margin-top: .35rem; font-weight: 400; font-size: .9rem; color: var(--ink-muted); }

/* Powrót do strony głównej */
.back-home {
  margin-top: 2.6rem; background: var(--brand); color: #F1EAD9; border-radius: var(--radius);
  padding: clamp(20px,3vw,30px); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.back-home h3 { color: #fff; font-size: 1.3rem; }
.back-home p { color: rgba(255,255,255,.78); margin-top: .35rem; max-width: 52ch; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--brand-700); color: #D9D2C2; margin-top: clamp(40px, 6vw, 90px); }
.site-footer a { color: #EBE4D3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 5vw, 64px); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .mark { background: var(--accent); color: #2a1a05; }
.footer-brand p { margin-top: 1rem; color: #B9B3A3; font-size: .95rem; max-width: 38ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #A9A293; }
.footer-disclaimer { padding-bottom: 1.6rem; font-size: .82rem; color: #968F80; max-width: 80ch; line-height: 1.6; }

/* ---------- Animacje wejścia ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal[style*="--d"] { animation-delay: var(--d); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Responsywność ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .fact-card { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper-2); border-bottom: 1px solid var(--line); padding: .6rem; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 44px; height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper-2); cursor: pointer; gap: 4px; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .ad-slot { grid-template-columns: 1fr; text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.cols-2, .related-grid, .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .back-home { flex-direction: column; align-items: flex-start; }
}
