:root, :root[data-theme="dark"] {
  --bg: #0a0d0e;
  --bg-alt: #10171a;
  --surface: #151e21;
  --text: #eef4f4;
  --muted: #a3b4b7;
  --line: #243236;
  --accent: #3cc8b9;       /* turkus z logo */
  --accent-ink: #06201d;
  --accent2: #f2b35a;      /* bursztyn: drugi kolor */
  --accent-soft: #12302f;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f1f6f6;
  --surface: #ffffff;
  --text: #14242a;
  --muted: #4c6168;
  --line: #d6e2e3;
  --accent: #22776e;
  --accent-ink: #ffffff;
  --accent2: #b45f06;
  --accent-soft: #e0efed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background .2s, color .2s;
}
html[data-lang="pl"] .en, html[data-lang="en"] .pl { display: none !important; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { height: 36px; width: auto; }
.tools { display: flex; gap: 10px; align-items: center; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button, .theme { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button { padding: 6px 14px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.theme { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--accent2); }
.theme:hover { border-color: var(--accent2); }

.hero { display: grid; gap: 40px; padding: 64px 20px 64px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; padding-top: 80px; padding-bottom: 80px; } }
.eyebrow { color: var(--accent2); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 0 0 20px; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); margin: 0 0 32px; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); }

.art { width: 100%; max-width: 480px; justify-self: center; }
.art svg { display: block; width: 100%; height: auto; }
.art .panel { fill: var(--surface); stroke: var(--line); }
.art .dot { fill: var(--line); }
.art .block { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: .5; }
.art .route { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.art .node { fill: var(--bg); stroke: var(--accent); stroke-width: 4; }
.art .goal { fill: var(--accent2); }
.art .goal-ring { fill: none; stroke: var(--accent2); stroke-opacity: .45; stroke-width: 3; }
.art .chip { fill: var(--bg); stroke: var(--accent2); }
.art .chip-t { fill: var(--accent2); font: 700 13px system-ui, sans-serif; text-anchor: middle; }
.art .truck-body { fill: var(--accent); }
.art .truck-cab { fill: var(--accent2); }
.art .truck-wheel { fill: var(--bg); stroke: var(--text); stroke-width: 3; }
.art .base { stroke: var(--line); stroke-width: 2; }

section { padding: 64px 0; }
section.alt, footer.alt { background: var(--bg-alt); }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 28px; letter-spacing: -.01em; }
h2::after { content: ""; display: block; width: 42px; height: 4px; border-radius: 2px; background: var(--accent2); margin-top: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.motto { text-align: center; }
.motto strong { display: block; font-size: clamp(24px, 4vw, 34px); color: var(--accent); letter-spacing: -.01em; margin-bottom: 10px; }
.motto .by { display: block; font-size: 12px; color: var(--muted); letter-spacing: .02em; margin: -2px 0 14px; }
.motto p { margin: 0 auto; max-width: 60ch; color: var(--muted); }

.about { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .about { grid-template-columns: 300px 1fr; } }
.photo { margin: 0; width: 100%; max-width: 300px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 12px 12px 0 var(--accent-soft); }
.photo img { display: block; width: 100%; height: auto; }
.about-text h2 { margin-top: 0; }
.about-text p { margin: 0 0 14px; }
.about-text strong { color: var(--accent); }

.kahneman { margin: 26px 0 0; padding: 20px 22px; background: var(--accent-soft); border-left: 5px solid var(--accent2); border-radius: 0 14px 14px 0; }
.kahneman p { margin: 0 0 8px; font-size: 19px; font-style: italic; }
.kahneman footer, .kahneman cite { font-size: 14px; color: var(--muted); font-style: normal; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a { text-decoration: none; display: flex; gap: 14px; align-items: baseline; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-list a:hover { border-color: var(--accent2); }
.contact-list .k { color: var(--accent2); font-size: 14px; font-weight: 600; min-width: 76px; }
.contact-list .v { font-weight: 600; word-break: break-word; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
footer.site .foot-info { display: grid; gap: 6px; }
footer.site .foot-logo { height: 110px; width: auto; margin-left: auto; }
footer.site .name { color: var(--text); font-weight: 600; }
footer.site a { color: var(--accent); }

/* podstrona z polityką prywatności */
.doc { padding: 48px 0 72px; max-width: 760px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 12px; }
.doc h2::after { display: none; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); }
.doc .back { display: inline-block; margin-bottom: 20px; font-size: 15px; }
