/* Czcionki (własny hosting, bez Google Fonts) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2-variations");
  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: "Bricolage Grotesque";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations");
  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;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  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: "Plus Jakarta Sans";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2-variations");
  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;
}

/* Kolory marki: garażowy czarny, ciepła benzyna, najlepsza cena, olejowy oranż, jasny krem */
:root {
  --bg: #FFFDF7;
  --bg-alt: #FFF4D6;
  --card: #FFFFFF;
  --ink: #17140F;
  --muted: #5F584B;
  --line: #E9E0C9;
  --brand: #FFC83D;
  --brand-ink: #17140F;
  --orange: #F97316;
  --good: #10B981;
  --good-text: #047857;
  --edge: #17140F;
  --radius: 18px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130F;
    --bg-alt: #1D1A14;
    --card: #24201A;
    --ink: #F7F1E3;
    --muted: #B6AD9A;
    --line: #363026;
    --good-text: #34D399;
    --edge: #EDE4CF;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, .logo-text, .bubble, .btn, .search button, .foot-brand { font-family: var(--display); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nagłówek */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 62px; height: auto; color: var(--ink); flex: none; }
.logo-text { font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pill-link, .btn {
  display: inline-block; text-decoration: none !important; font-weight: 800;
  background: var(--brand); color: var(--brand-ink);
  border: 2.5px solid var(--edge); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--edge);
  transition: transform .1s, box-shadow .1s;
}
.pill-link { padding: 8px 18px; }
.btn { padding: 14px 26px; font-size: 18px; white-space: nowrap; }
.pill-link:hover, .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--edge); }
.pill-link:active, .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
h1 {
  font-size: clamp(42px, 7vw, 76px); font-weight: 800;
  line-height: 1; letter-spacing: -0.035em; margin: 0 0 18px;
}
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.lead.small { font-size: 18px; }

.search {
  display: flex; align-items: center; max-width: 560px;
  background: var(--card); border: 2.5px solid var(--edge); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--edge); padding: 5px;
}
.search:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.search input {
  flex: 1; min-width: 0; padding: 12px 18px; font: inherit; color: var(--ink);
  background: transparent; border: 0; outline: 0;
}
.search input::placeholder { color: var(--muted); }
.search button {
  padding: 12px 24px; font-size: 19px; font-weight: 800; cursor: pointer; white-space: nowrap;
  background: var(--brand); color: var(--brand-ink); border: 2.5px solid var(--edge); border-radius: 999px;
}
.search button:hover { filter: brightness(1.05); }
.search-msg { min-height: 1.6em; margin: 12px 0 0 8px; color: var(--muted); font-size: 15px; }

.soon {
  display: inline-flex; gap: 8px; align-items: center; margin: 8px 0 0;
  padding: 8px 18px; border: 2px solid var(--edge); border-radius: 999px;
  background: var(--bg-alt); font-weight: 600; font-size: 15px;
}

/* Karta z przykładem */
.hero-visual { position: relative; padding-right: 150px; }
.card {
  margin: 0; max-width: 360px; background: var(--card);
  border: 3px solid var(--edge); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--edge); padding: 22px 0 8px; transform: rotate(4deg);
}
.card-head { display: grid; gap: 2px; padding: 0 22px 10px; }
.card-head strong { font-family: var(--display); font-size: 22px; line-height: 1.15; }
.card-label {
  margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 800;
}
.offers { list-style: none; margin: 0; padding: 0; }
.offers li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 22px; border-top: 1.5px solid var(--line); font-size: 18px;
}
.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.offers .best {
  background: var(--good); color: #0B1F17; border-top-color: var(--edge);
  border-bottom: 2.5px solid var(--edge); border-top: 2.5px solid var(--edge); font-weight: 800;
}
.tag {
  font-style: normal; font-size: 12px; font-weight: 800; margin-left: 6px;
  padding: 2px 8px; border-radius: 999px; background: #FFFFFF; color: #0B1F17; border: 2px solid #0B1F17;
}
.bubble {
  position: absolute; right: -8px; top: 46%; margin: 0;
  background: #17140F; color: #FFFDF7; text-align: center; border: 2.5px solid var(--edge);
  padding: 14px 22px; border-radius: 999px; font-size: 18px; line-height: 1.1;
  transform: rotate(8deg); box-shadow: 4px 4px 0 var(--brand);
}
.bubble b { font-size: 32px; color: var(--brand); }
.arrow { position: absolute; right: 40px; top: 74%; width: 80px; color: var(--ink); }

/* Sekcje */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 20px; }
h3 { margin: 10px 0 6px; font-size: 21px; font-weight: 700; }

.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tiles li {
  display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 14px 22px;
  background: var(--card); border: 2.5px solid var(--edge); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--edge); font-family: var(--display); font-weight: 700; font-size: 19px;
  transition: transform .15s;
}
.tiles li:hover { transform: translateY(-3px) rotate(-1deg); }
.tiles svg { width: 86px; height: 86px; color: var(--ink); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.chart-box {
  background: var(--card); border: 2.5px solid var(--edge); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--edge); padding: 24px;
}
.chart-box h2 { margin-bottom: 6px; font-size: 28px; }
.chart-box .muted { margin: 0 0 12px; font-size: 15px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1.5; }
.chart .axis text { fill: var(--muted); font-size: 11px; text-anchor: end; font-family: var(--body); }
.chart .area { fill: var(--brand); opacity: .35; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.chart .dot { fill: var(--good); stroke: var(--ink); stroke-width: 3; }
.chart .val { fill: var(--good-text); font-weight: 800; font-size: 15px; text-anchor: middle; font-family: var(--display); }

.stickers { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stickers li {
  padding: 10px 18px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 17px;
  background: var(--ink); color: var(--bg); transform: rotate(-3deg);
}
.stickers li:nth-child(2) { transform: rotate(2deg); }
.stickers li.y { background: var(--brand); color: var(--brand-ink); border: 2.5px solid var(--edge); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  background: var(--card); border: 2.5px solid var(--edge); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--edge); padding: 22px;
}
.steps p { margin: 0; color: var(--muted); }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); border: 2.5px solid var(--edge);
  font-family: var(--display); font-weight: 800; font-size: 19px;
}

.ticks { margin: 0; padding-left: 20px; }
.ticks li { margin-bottom: 10px; }
.ticks li::marker { color: var(--orange); }
.note {
  background: var(--card); border: 2.5px solid var(--edge); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--edge); padding: 26px;
}
.note h2 { font-size: 26px; }
.note p { margin: 0; }

.shops { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.shops .lead { margin: 0; }
.center { text-align: center; }
.center a { font-weight: 700; }

/* Stopka */
.foot { background: #17140F; color: #F7F1E3; padding: 28px 0; font-size: 15px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-brand { font-weight: 800; font-size: 20px; color: #FFC83D; }

/* Strony tekstowe */
.page { padding: 40px 16px 64px; max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page h2 { font-size: 24px; margin-top: 32px; }

/* Telefon i tablet */
@media (max-width: 900px) {
  .hero { padding: 16px 0 56px; }
  .hero-in, .two { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .shops { flex-direction: column; align-items: flex-start; }
  .nav a:not(.pill-link) { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo-mark { width: 50px; }
  .logo-text { font-size: 18px; }
  .search input { padding: 10px 12px; }
  .search button { padding: 10px 16px; font-size: 17px; }
  .card { max-width: 300px; transform: rotate(2deg); }
  .offers li { padding: 9px 16px; font-size: 16px; }
  .card-head { padding: 0 16px 8px; }
  .bubble { font-size: 15px; padding: 10px 16px; }
  .bubble b { font-size: 24px; }
  .arrow { display: none; }
  .hero-visual { padding: 0 0 66px; }
  .bubble { top: auto; bottom: 0; right: 4px; }
  .tiles li { font-size: 16px; padding: 18px 10px 16px; }
  .tiles svg { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
