/* paliwodiesel.pl - system wizualny przeniesiony z projektu Claude Design
   (RefSpace Design System). Ciemny motyw, akcent #46CF73, krój Inter.
   Bez frameworka, bez zasobów z CDN. */

/* Inter, hostowany lokalnie. Polskie znaki diakrytyczne leżą w latin-ext,
   więc strona pobiera oba podzbiory; font-display:swap sprawia, że tekst jest
   widoczny od razu, zanim krój dojedzie. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Powierzchnie */
  --bg: #212326;
  --bg-card: #2A2C30;
  --bg-deep: #1f2225;
  --bg-hero-top: #262A2C;
  --bg-input: #212326;
  --bg-active: #37393D;

  /* Linie */
  --line: #37393D;
  --line-strong: #4B4D52;

  /* Tekst */
  --txt: #EBEBEB;
  --txt-bright: #FFFFFF;
  --txt-muted: #A0A1A3;
  --txt-dim: #898B8F;
  --txt-faint: #696B70;

  /* Akcent */
  --accent: #46CF73;
  --accent-light: #86F0A9;
  --accent-dark: #2DBA5B;
  --accent-ink: #145429;
  --accent-glow: rgba(70, 207, 115, .18);

  /* Miary */
  --wrap: 1560px;
  --pad: 28px;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 16px;
  --head-h: 62px;
}

/* ---- reset ---- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
::-webkit-scrollbar-track { background: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap--text { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- nagłówek ---- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(33, 35, 38, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--txt-bright);
  white-space: nowrap;
}
.brand:hover { color: var(--txt-bright); }
.brand__mark {
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.brand__accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-muted);
}
.nav a:hover { color: var(--txt-bright); background: rgba(255, 255, 255, .04); }
.nav a[aria-current] { background: var(--bg-active); color: var(--txt-bright); }

.site-head__aside {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pulse {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--txt-dim); white-space: nowrap;
}
.pulse::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---- przyciski ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--txt);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--txt-bright); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #10231a;
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: #10231a; }

.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* ---- typografia ---- */

h1, h2, h3, h4 { color: var(--txt-bright); margin: 0; font-weight: 700; }

.h-hero {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; margin-top: 2.4rem; }
h3 { font-size: 16px; margin-top: 1.8rem; }

p { margin: 0 0 1.05rem; }
.lead { font-size: 16px; line-height: 1.6; color: var(--txt-muted); text-wrap: pretty; }

.kicker {
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--txt-faint);
  font-weight: 600;
}

/* ---- pigułka ---- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 12px;
  color: var(--txt-muted);
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--accent);
}
.pill--plain::before { display: none; }

/* ---- sekcje ---- */

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg) 100%);
}
.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--pad) 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.hero__main { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

.section { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--pad); }
.section--tight { padding-top: 8px; }
.section--last { padding-bottom: 64px; }

/* ---- karty ---- */

.card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 16px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.panel__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.panel__title { font-size: 13px; font-weight: 600; color: var(--txt-bright); }
.panel__note { font-size: 11px; color: var(--txt-dim); }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

.tile {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: block;
  color: inherit;
}
a.tile:hover { border-color: var(--accent); color: inherit; }
.tile__label { font-size: 12px; color: var(--txt-dim); }
.tile__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--txt-bright);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin: 2px 0;
}
.tile__sub { font-size: 12px; color: var(--txt-faint); }

.topic {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 18px;
  color: inherit;
}
.topic:hover { border-color: var(--accent); color: inherit; }
.topic__title { font-size: 16px; font-weight: 600; color: var(--txt-bright); letter-spacing: -.01em; }
.topic__body { font-size: 13px; color: var(--txt-muted); }
.topic__cta { font-size: 13px; color: var(--accent); margin-top: 4px; }

/* ---- formularze ---- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; color: var(--txt-dim); }

.input, .select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--txt);
  font: inherit;
  font-size: 14px;
}
.select { cursor: pointer; }
.input::placeholder { color: var(--txt-faint); }

.searchbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100%;
  max-width: 720px;
}
.searchbar .field { flex: 1 1 220px; }
.searchbar .select { flex: 0 1 190px; width: auto; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  font-size: 13px;
  color: var(--txt);
  cursor: pointer;
}
.check input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.check__count { margin-left: auto; font-size: 11px; color: var(--txt-faint); font-variant-numeric: tabular-nums; }

/* ---- tabele ---- */

.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }

th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--txt-faint);
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  white-space: nowrap;
}
td { padding: 13px 16px; vertical-align: middle; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }

td.num, th.num { text-align: right; }
.t-strong { font-weight: 600; color: var(--txt-bright); }
.t-muted { color: var(--txt-muted); font-size: 13px; }
.t-dim { color: var(--txt-dim); font-size: 13px; }
.t-accent { color: var(--accent); font-weight: 600; }

/* ---- znaczniki paliw ---- */

.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  color: var(--txt-dim);
  white-space: nowrap;
}
.tag--on { color: var(--accent); border-color: var(--accent-dark); }
.tag--only { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent-light); }

/* ---- notatka ---- */

.note {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--txt-muted);
  margin: 20px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--txt-bright); }

/* ---- treść artykułu ---- */

.prose { font-size: 15px; line-height: 1.7; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; color: var(--txt); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose h2 { margin: 2.4rem 0 .7rem; }
.prose h3 { margin: 1.8rem 0 .5rem; }
.prose .scroll { margin: 1.2rem 0 1.8rem; border: 1px solid var(--line); border-radius: var(--r-lg); }
.prose em { color: var(--txt-muted); }

.crumbs { font-size: 12px; color: var(--txt-dim); margin: 0 0 14px; }
.crumbs a { color: var(--txt-dim); }
.crumbs a:hover { color: var(--txt); }

.meta { font-size: 12px; color: var(--txt-faint); margin: 0 0 24px; }

/* ---- rozwijane FAQ ---- */

.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-card); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-bright);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq__body { padding: 0 18px 16px; font-size: 13px; color: var(--txt-muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---- stopka ---- */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-deep); }
.site-foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--txt-dim);
}
.site-foot a { color: var(--txt-muted); }
.site-foot a:hover { color: var(--accent); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- od tabletu ---- */

@media (min-width: 48rem) {
  body { font-size: 14px; }
  .h-hero { font-size: 44px; }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  .lead { font-size: 17px; }
  .hero__inner { padding: 56px var(--pad) 46px; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .section { padding: 34px var(--pad); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 64rem) {
  .h-hero { font-size: 52px; letter-spacing: -.035em; }
  .hero__inner { padding: 64px var(--pad) 52px; gap: 64px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .layout-side {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  /* Odwrotnie: szeroka treść, wąski panel z boku. Dla stron artykułów. */
  .layout-side--rev { grid-template-columns: minmax(0, 1fr) 300px; }
  .sticky-side { position: sticky; top: calc(var(--head-h) + 22px); }
}

/* Ciasne cele dopiero tam, gdzie jest mysz. */
@media (hover: hover) and (min-width: 48rem) {
  .nav a { min-height: 34px; }
  .btn { min-height: 34px; }
  .input, .select { min-height: 40px; }
  .check { min-height: 26px; }
}
