/* Monitor Paliw — style.css */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --amber: #d97706;
  --green: #059669;
  --red: #dc2626;
  --navy: #0f172a;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nagłówek ---------- */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logoimg { width: 40px; height: 40px; display: block; border-radius: 10px; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: .3px; }
.brand .tag { color: #94a3b8; font-size: 12.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #1e293b; color: #cbd5e1; border: 1px solid #334155; }
.chip.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.chip.soon { background: #422006; border-color: #92400e; color: #fbbf24; }
.chip.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.chip.off::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.chip.edition { background: #1e3a8a; border-color: #1d4ed8; color: #bfdbfe; }

/* ---------- status / karty ---------- */
.status { margin-top: 22px; }
.status-box { border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.status-box.status-ok { background: #f0fdf4; border-color: #bbf7d0; }
.status-box.status-soon { background: #fffbeb; border-color: #fde68a; }
.status-box.status-off { background: #f8fafc; }
.status-box .lead { font-size: 20px; font-weight: 700; }
.status-box .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.fuel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.fuel-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--fc); }
.fuel-name { color: var(--muted); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.fuel-price { font-size: 36px; font-weight: 800; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.fuel-price .unit { font-size: 15px; font-weight: 600; color: var(--muted); }
.netto { color: var(--muted); font-size: 13px; margin-top: 2px; }
.delta { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.delta.up { background: #fef2f2; color: var(--red); }
.delta.down { background: #f0fdf4; color: var(--green); }
.hero-note { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.next-note { margin-top: 14px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 12px; padding: 11px 16px; font-size: 15px; color: #1e293b; }
.next-note b { font-variant-numeric: tabular-nums; }
.next-note .nn-unit { color: var(--muted); font-size: 13px; }

/* ---------- sekcje ---------- */
section.wrap { margin-top: 34px; }
h2 { font-size: 21px; margin: 0 0 12px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* ---------- wykres ---------- */
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.chartbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; box-shadow: var(--shadow); position: relative; }
.chartbox svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chartbox .hit { cursor: crosshair; }
.chartbox .cross { stroke: rgba(15, 23, 42, .45); stroke-width: 1.2; stroke-dasharray: 3 3; }
.tip { position: absolute; z-index: 5; background: #0f172a; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 8px 11px; border-radius: 9px; pointer-events: none; width: max-content; max-width: 270px; box-shadow: 0 8px 20px rgba(15, 23, 42, .3); }
.chartbox .grid { stroke: #e5e7eb; stroke-width: 1; }
.chartbox .ylab { fill: #64748b; font-size: 11.5px; text-anchor: end; }
.chartbox .xlab { fill: #64748b; font-size: 11.5px; text-anchor: middle; }
.chartbox .band { fill: #94a3b8; font-size: 11.5px; text-anchor: middle; font-weight: 600; letter-spacing: .5px; }
.chartbox .todayline { stroke: rgba(15, 23, 42, .35); stroke-width: 1.4; stroke-dasharray: 4 4; }
.chartbox .todaylab { fill: rgba(15, 23, 42, .55); font-size: 11.5px; font-weight: 600; }

/* ---------- kalkulator ---------- */
.calc { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; font-size: 15px; }
.calc label { display: inline-flex; align-items: center; gap: 8px; }
.calc input[type="number"] { width: 90px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; }
.calc select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; background: #fff; }
.calc-out { font-size: 16px; }
.calc-out b { font-size: 22px; color: var(--green); }
.calc .hint { flex-basis: 100%; margin: 0; }

/* ---------- tabela ---------- */
.tablebox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; -webkit-overflow-scrolling: touch; max-height: 720px; }
table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
tbody td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
tbody tr:hover { background: #fafbfc; }
tr.group td { background: #f1f5f9; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: #475569; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num b { font-size: 15px; }
td.num .muted, td .muted { color: var(--muted); font-size: 12px; }
td.num .delta { margin-top: 4px; font-size: 11.5px; padding: 2px 7px; }
td.srcs { font-size: 12.5px; white-space: nowrap; }
.src { color: var(--muted); }
.src:hover { color: var(--blue); }
td.per { min-width: 150px; }

/* ---------- o programie / stopka ---------- */
.about p { margin: 0 0 10px; }
.faq h3 { font-size: 16px; margin: 16px 0 4px; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin: 0 0 10px; color: #334155; }
.srcs-big { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-weight: 600; }
.foot { background: var(--navy); color: #cbd5e1; margin-top: 44px; padding: 22px 0; font-size: 13px; }
.foot .muted { color: #64748b; margin-top: 4px; }

/* ---------- podstrony ---------- */
.subnav { background: #0b1223; }
.subnav .wrap { display: flex; gap: 18px; flex-wrap: wrap; padding: 9px 20px; font-size: 14px; }
.subnav a { color: #94a3b8; font-weight: 600; }
.subnav a:hover { color: #fff; text-decoration: none; }
.subnav a.active { color: #fbbf24; }
.crumbs { color: #64748b; font-size: 13px; margin: 20px 0 6px; }
.crumbs a { color: #64748b; }
.page { margin-top: 6px; }
.page h1 { font-size: 26px; margin: 4px 0 14px; }
.page .lead-p { color: #334155; font-size: 15.5px; margin: 0 0 6px; }
.page section { margin-top: 30px; }
.art p { margin: 0 0 12px; }
.art h2 { font-size: 19px; margin: 24px 0 8px; }
.art ul, .art ol { margin: 0 0 12px; padding-left: 22px; }
.art li { margin: 3px 0; }
.curline { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px; padding: 10px 14px; font-size: 15px; margin: 0 0 14px; }
.art-cta { margin-top: 20px; }
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; padding: 11px 18px; border-radius: 10px; }
.btn:hover { background: #1d4ed8; text-decoration: none; }
.stats-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stats-tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.stats-tbl th, .stats-tbl td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: top; }
.stats-tbl th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.stats-tbl td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-tbl tr:last-child td { border-bottom: none; }
.lgd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
.foot a { color: #93c5fd; }

/* ---------- responsywność ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .fuel-price { font-size: 30px; }
  .tablebox { max-height: none; }
  td.srcs { white-space: normal; }
  thead th, tbody td { padding: 9px 11px; }
  td.per { min-width: 130px; }
}
