/* Strona overtimepolska.pl — jeden arkusz dla wszystkich podstron. Bez zależności zewnętrznych. */
:root {
  --bg: #08090d;
  --bg-2: #101219;
  --card: #13151d;
  --line: #23262f;
  --text: #f4f5f7;
  --text-dim: #b7bac4;
  --text-muted: #868a96;
  --accent: #ff2d55;
  --accent-2: #ff8a5c;
  --ojciec: #38bdf8;
  --matka: #e879f9;
  --radius: 14px;
  --max: 1080px;
  --prose: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #ffb08f; }

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

/* Nagłówek */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 13, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .06em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { color: var(--text-dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Start */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px;
  background: radial-gradient(closest-side, rgba(255, 45, 85, .22), transparent 70%),
              radial-gradient(closest-side at 70% 40%, rgba(255, 138, 92, .16), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero img { width: 132px; height: 132px; filter: drop-shadow(0 10px 40px rgba(255, 45, 85, .35)); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 22px 0 14px; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 620px; margin: 0 auto; color: var(--text-dim); font-size: 18px; }

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 26px; margin: 0 0 8px; }
.section > .wrap > p { color: var(--text-dim); margin: 0 0 28px; max-width: 680px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.card .role { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 18px; color: var(--text-dim); }
.card li + li { margin-top: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ojciec { background: var(--ojciec); box-shadow: 0 0 12px var(--ojciec); }
.dot.matka { background: var(--matka); box-shadow: 0 0 12px var(--matka); }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.link-card { display: block; text-decoration: none; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .15s, transform .15s; }
.link-card:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.link-card strong { display: block; }
.link-card span { color: var(--text-muted); font-size: 14px; }

/* Dokumenty */
.doc { max-width: var(--prose); margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 6px; }
.doc .meta { color: var(--text-muted); font-size: 14px; margin: 0 0 32px; }
.doc .lang { float: right; font-size: 14px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 8px; }
.doc p, .doc li { color: var(--text-dim); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 20px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-2); color: var(--text); font-weight: 600; }
td { color: var(--text-dim); }
tr:last-child td { border-bottom: 0; }
.note { background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; color: var(--text-dim); }

/* Stopka */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav { gap: 12px; font-size: 13px; }
  .brand span { display: none; }
  .hero { padding: 56px 0 48px; }
  .doc .lang { float: none; display: block; margin-bottom: 12px; }
}
.tag { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--text-dim); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* Tabela danych na telefonie: każdy wiersz jako karta z podpisami pól. */
@media (max-width: 640px) {
  .table { border: 0; overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  tr { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; margin-bottom: 12px; }
  td { display: block; border: 0; padding: 6px 16px; }
  td::before { display: block; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
  td:nth-child(1) { color: var(--text); font-weight: 600; }
  :lang(pl) td:nth-child(2)::before { content: "Po co"; }
  :lang(pl) td:nth-child(3)::before { content: "Jak długo"; }
  :lang(en) td:nth-child(2)::before { content: "Purpose"; }
  :lang(en) td:nth-child(3)::before { content: "Retention"; }
}
