/* Betoniarz.pl - wyglad wedlug projektu (design\podglad-aplikacji.png): krem, granat, pomarancz. */
:root {
  --krem: #fef5e4;
  --krem-2: #fbeed6;
  --karta: #ffffff;
  --granat: #0f2a66;
  --granat-2: #1c3a80;
  --pom: #fb5d02;
  --pom-jasny: #ffeedd;
  --pom-2: #fead4c;
  --tekst: #13213f;
  --szary: #66708a;
  --linia: #eee3cf;
  --zielony: #138a4b;
  --czerwony: #c62828;
  --cien: 0 2px 10px rgba(15, 42, 102, .07);
  --cien-2: 0 8px 28px rgba(15, 42, 102, .14);
  --r: 16px;
  --dol: env(safe-area-inset-bottom, 0px);
  --gora: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tekst);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--krem); min-height: 100%; }
body { overscroll-behavior-y: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { display: block; }
.ukryte { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
svg.i.m { width: 16px; height: 16px; }
svg.i.xs { width: 14px; height: 14px; }

.startowy { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--granat);
  font-weight: 800; font-size: 22px; gap: 8px; }
.startowy img { margin: 0 auto; }

/* --- uklad --- */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative;
  padding: calc(var(--gora) + 10px) 16px calc(var(--dol) + 92px); }
.naglowek { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 6px; }
.marka { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marka img { width: 52px; height: auto; }
.marka b { font-size: 24px; font-weight: 800; color: var(--granat); letter-spacing: -.3px; }
.marka b span { color: var(--pom); }
.ikonka { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--granat); }
.ikonka:active { background: var(--krem-2); }
h1.tytul { font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--granat); margin: 8px 0 16px;
  letter-spacing: -.4px; }
h1.tytul .podkr { position: relative; white-space: nowrap; }
h1.tytul .podkr::after { content: ""; position: absolute; left: -2px; right: 6px; bottom: -6px; height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 50 1 98 5' stroke='%23fb5d02' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
h2 { font-size: 20px; font-weight: 800; color: var(--granat); margin: 6px 0 12px; }

/* --- szukajka i chipy --- */
.szukajka { display: flex; align-items: center; gap: 10px; background: var(--karta); border: 1.5px solid var(--linia);
  border-radius: 14px; padding: 0 14px; height: 50px; box-shadow: var(--cien); }
.szukajka:focus-within { border-color: var(--granat); }
.szukajka input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; height: 100%; }
.szukajka input::placeholder { color: #8d93a5; }
.szukajka .czysc { color: var(--szary); }
.chipy { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; margin: 0 -16px; padding-left: 16px;
  padding-right: 16px; scrollbar-width: none; }
.chipy::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 999px; background: var(--karta); border: 1.5px solid var(--linia); font-weight: 650;
  font-size: 14px; color: var(--granat); box-shadow: var(--cien); }
.chip.wl { background: var(--pom); border-color: var(--pom); color: #fff; }
.chip img { width: 26px; height: auto; }
.pasek { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 12px; }
.pasek .licz { font-weight: 750; color: var(--granat); font-size: 15px; }
.pasek .licz small { display: block; color: var(--szary); font-weight: 500; font-size: 12px; }
.pasek .prawo { display: flex; gap: 8px; align-items: center; }
.przycisk-maly { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 10px; background: var(--karta); border: 1.5px solid var(--linia); font-weight: 650;
  font-size: 14px; color: var(--granat); }
.przycisk-maly.kw { width: 36px; padding: 0; justify-content: center; }
.znaczek { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--pom); color: #fff; font-size: 12px; font-weight: 800; }

/* --- karty ogloszen --- */
.lista { display: grid; gap: 12px; }
.karta { display: flex; gap: 12px; background: var(--karta); border-radius: var(--r); padding: 10px;
  box-shadow: var(--cien); text-decoration: none; position: relative; min-height: 132px; }
.karta:active { transform: scale(.995); }
.karta .foto { width: 42%; max-width: 170px; flex: none; border-radius: 12px; overflow: hidden;
  background: var(--krem-2); position: relative; aspect-ratio: 4 / 3; align-self: flex-start; }
.karta .foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .brak { width: 100%; height: 100%; display: grid; place-items: center; color: #c9b99c; }
.foto .etykieta { position: absolute; left: 6px; top: 6px; background: rgba(15, 42, 102, .88); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.foto .etykieta.pom { background: var(--pom); }
.karta .tresc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.karta .gora { display: flex; gap: 6px; align-items: flex-start; }
.karta .nazwa { flex: 1; font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--granat);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.serce { width: 30px; height: 30px; margin: -4px -4px 0 0; display: grid; place-items: center; color: var(--granat);
  flex: none; border-radius: 50%; }
.serce.tak { color: var(--pom); }
.serce.tak svg { fill: var(--pom); }
.cena { align-self: flex-start; background: var(--pom-jasny); color: #e85400; font-weight: 800; font-size: 16px;
  padding: 3px 10px; border-radius: 8px; white-space: nowrap; }
.cena.brak { color: var(--szary); background: var(--krem); font-weight: 650; font-size: 13px; }
.cena-org { font-size: 12px; color: var(--szary); margin-top: -3px; }
.fakty { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #3e4864; }
.fakty span { display: flex; gap: 6px; align-items: center; min-width: 0; }
.fakty span em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fakty svg { color: var(--granat); }
.zrodla { margin-top: auto; border-top: 1px solid var(--linia); padding-top: 6px; display: flex; align-items: center;
  justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--szary); }
.zrodla .portale { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zrodla .portale b { color: var(--granat); font-weight: 700; }
.plakietka { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 750;
  padding: 2px 7px; border-radius: 999px; background: #e9eefb; color: var(--granat); white-space: nowrap; }
.plakietka.pom { background: var(--pom-jasny); color: #d24d00; }
.plakietka.ziel { background: #e2f5ea; color: var(--zielony); }
.plakietka.szara { background: #eef0f4; color: var(--szary); }
.wiecej { display: block; width: 100%; margin: 16px 0 0; height: 48px; border-radius: 14px; background: var(--karta);
  border: 1.5px solid var(--linia); font-weight: 750; color: var(--granat); }
.pusto { text-align: center; color: var(--szary); padding: 40px 10px; line-height: 1.5; }
.pusto svg { width: 46px; height: 46px; color: #c9b99c; margin: 0 auto 10px; display: block; }
.szkielet { background: linear-gradient(90deg, #fff 0%, #f8f0e2 50%, #fff 100%); background-size: 200% 100%;
  animation: szkielet 1.2s infinite; border-radius: var(--r); height: 132px; }
@keyframes szkielet { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --- dolna nawigacja --- */
.nawigacja { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dol) + 10px);
  width: min(528px, calc(100% - 24px)); background: var(--karta); border-radius: 20px; box-shadow: var(--cien-2);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; gap: 4px; z-index: 30; }
.nawigacja a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px;
  border-radius: 14px; text-decoration: none; font-size: 11.5px; font-weight: 650; color: var(--granat); position: relative; }
.nawigacja a.wl { background: var(--granat); color: #fff; }
.nawigacja .kropka { position: absolute; top: 4px; right: calc(50% - 18px); background: var(--pom); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center;
  padding: 0 4px; }

/* --- panel filtrow --- */
.zaslona { position: fixed; inset: 0; background: rgba(15, 25, 50, .35); z-index: 40; animation: pojaw .15s; }
.panel { position: fixed; z-index: 41; inset: 0; background: var(--krem); display: flex; flex-direction: column;
  animation: wjazd .2s ease-out; }
@media (min-width: 640px) {
  .panel { inset: 16px 16px 16px auto; width: 420px; border-radius: 22px; box-shadow: var(--cien-2); overflow: hidden; }
}
@keyframes wjazd { from { transform: translateY(20px); opacity: .4; } }
@keyframes pojaw { from { opacity: 0; } }
.panel-gora { display: grid; grid-template-columns: 48px 1fr auto; align-items: center;
  padding: calc(var(--gora) + 8px) 12px 8px; border-bottom: 1px solid var(--linia); background: var(--karta); }
.panel-gora h3 { margin: 0; text-align: center; font-size: 18px; font-weight: 800; color: var(--granat); }
.panel-gora .wyczysc { color: var(--pom); font-weight: 750; padding: 8px 6px; }
.panel-srodek { flex: 1; overflow-y: auto; padding: 14px 16px 24px; -webkit-overflow-scrolling: touch; }
.panel-dol { padding: 12px 16px calc(var(--dol) + 12px); background: var(--karta); border-top: 1px solid var(--linia); }
.pole { margin-bottom: 16px; }
.pole > label, .pole > .etyk { display: block; font-weight: 750; font-size: 14px; color: var(--granat); margin-bottom: 7px; }
.wybor, .wpis { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--linia); background: var(--karta);
  padding: 0 14px; font-size: 16px; outline: 0; appearance: none; -webkit-appearance: none; color: var(--tekst); }
.wybor { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f2a66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.wybor:focus, .wpis:focus { border-color: var(--granat); }
.dwa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zaznaczki { display: flex; flex-wrap: wrap; gap: 8px; }
.zaznaczka { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 10px;
  background: var(--karta); border: 1.5px solid var(--linia); font-weight: 650; font-size: 14px; color: var(--granat); }
.zaznaczka .pud { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #d3c4a8;
  display: grid; place-items: center; background: #fff; }
.zaznaczka.tak { background: var(--pom-jasny); border-color: #ffd0a8; }
.zaznaczka.tak .pud { background: var(--pom); border-color: var(--pom); color: #fff; }
.zaznaczka .pud svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.zaznaczka.tak .pud svg { opacity: 1; }
.zaznaczka small { color: var(--szary); font-weight: 500; }
.duzy { width: 100%; height: 54px; border-radius: 14px; background: var(--granat); color: #fff; font-weight: 800;
  font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.duzy:active { background: var(--granat-2); }
.duzy.pom { background: var(--pom); }
.duzy.jasny { background: var(--karta); color: var(--granat); border: 1.5px solid var(--linia); }
.duzy[disabled] { opacity: .6; }

/* --- szczegoly auta --- */
.galeria { margin: 0 -16px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 0 16px;
  scrollbar-width: none; }
.galeria::-webkit-scrollbar { display: none; }
.galeria .zdj { flex: none; width: 88%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; scroll-snap-align: center;
  background: var(--krem-2); }
.galeria .zdj:only-child { width: 100%; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.licznik-zdj { text-align: center; font-size: 12px; color: var(--szary); margin-top: 6px; }
.szcz-gora { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 8px; }
.szcz-gora h2 { flex: 1; margin: 0; font-size: 21px; line-height: 1.25; }
.szcz-cena { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.szcz-cena .cena { font-size: 22px; padding: 5px 12px; border-radius: 10px; }
.siatka { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.fakt { background: var(--karta); border-radius: 12px; padding: 10px 12px; box-shadow: var(--cien); min-width: 0; }
.fakt small { display: block; color: var(--szary); font-size: 12px; margin-bottom: 2px; }
.fakt b { color: var(--granat); font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; }
.sekcja { background: var(--karta); border-radius: var(--r); padding: 14px; box-shadow: var(--cien); margin-bottom: 14px; }
.sekcja h3 { margin: 0 0 10px; font-size: 16px; color: var(--granat); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.portal-wiersz { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linia); text-decoration: none; }
.portal-wiersz:first-of-type { border-top: 0; padding-top: 2px; }
.portal-wiersz .kto { flex: 1; min-width: 0; }
.portal-wiersz .kto b { color: var(--granat); display: block; }
.portal-wiersz .kto small { color: var(--szary); }
.portal-wiersz .ile { font-weight: 800; color: var(--granat); text-align: right; white-space: nowrap; }
.portal-wiersz .ile small { display: block; font-weight: 500; color: var(--szary); font-size: 11.5px; }
.historia { font-size: 13.5px; color: #3e4864; display: grid; gap: 4px; }
.historia div { display: flex; justify-content: space-between; gap: 10px; }
.opis { font-size: 14px; line-height: 1.5; color: #3e4864; white-space: pre-line; word-break: break-word; }
.akcje { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 6px 0 16px; }
.akcje .duzy.kw { width: 54px; }
.powrot { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--granat); padding: 8px 4px 8px 0;
  text-decoration: none; }

/* --- logowanie, profil, alerty --- */
.logowanie { min-height: calc(100vh - 120px); display: flex; flex-direction: column; justify-content: center; }
.logowanie .marka { justify-content: center; margin-bottom: 8px; }
.logowanie .marka img { width: 84px; }
.logowanie .marka b { font-size: 30px; }
.logowanie p.pod { text-align: center; color: var(--szary); margin: 0 0 24px; }
.blad { background: #fdecec; color: var(--czerwony); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.ok { background: #e2f5ea; color: var(--zielony); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.alert-wiersz { display: flex; align-items: center; gap: 10px; background: var(--karta); border-radius: var(--r);
  padding: 12px 14px; box-shadow: var(--cien); margin-bottom: 10px; text-decoration: none; }
.alert-wiersz .kto { flex: 1; min-width: 0; }
.alert-wiersz b { color: var(--granat); display: block; }
.alert-wiersz small { color: var(--szary); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drobne { font-size: 13px; color: var(--szary); line-height: 1.5; }
.drobne code { background: var(--krem-2); padding: 1px 5px; border-radius: 5px; }
.statystyki { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.statystyki .fakt b { font-size: 20px; }
.dymek { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dol) + 96px); background: var(--granat);
  color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 650; font-size: 14px; z-index: 60; box-shadow: var(--cien-2);
  animation: pojaw .2s; max-width: calc(100% - 32px); text-align: center; }

/* --- komputer: dwie kolumny kart --- */
@media (min-width: 900px) {
  .app { max-width: 1120px; padding-left: 24px; padding-right: 24px; }
  .app.szukaj-widok .lista { grid-template-columns: 1fr 1fr; }
  .szukaj-gora { max-width: 720px; }
  .szczegoly-widok { max-width: 760px; margin: 0 auto; }
  .galeria .zdj { width: 70%; }
}
@media (max-width: 370px) {
  h1.tytul { font-size: 24px; }
  .karta .foto { width: 40%; }
  .karta .nazwa { font-size: 14px; }
  .cena { font-size: 15px; }
  .chip { padding: 0 12px; }
}
@media (hover: hover) {
  .karta:hover { box-shadow: var(--cien-2); }
  .chip:hover, .przycisk-maly:hover { border-color: #d9c9ab; }
}

/* --- poprawki 2026-11-13: netto/brutto, dodane dzis, ukrywanie, zle zdjecia --- */
.cena .vat { font-size: 11px; font-weight: 700; margin-left: 5px; opacity: .8; text-transform: none; }
.cena .vat.nie { color: var(--szary); }
.szcz-cena .cena .vat { font-size: 13px; }
.dzis-pasek { display: flex; align-items: center; gap: 8px; width: 100%; margin: 12px 0 0; padding: 10px 14px;
  border-radius: 14px; border: 1.5px dashed #f5b68c; background: var(--pom-jasny); color: #c84a00;
  font-weight: 750; font-size: 14px; text-align: left; }
.dzis-pasek b { margin-left: auto; background: var(--pom); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 13px; }
.dzis-pasek.wl { border-style: solid; border-color: var(--pom); background: var(--pom); color: #fff; }
.dzis-pasek.wl b { background: #fff; color: var(--pom); }
.dzis-pasek.szary { border-color: var(--linia); background: #eef0f4; color: var(--granat); }
.galeria .zdj { position: relative; }
.galeria .zle { position: absolute; right: 8px; bottom: 8px; height: 30px; padding: 0 10px; border-radius: 999px;
  background: rgba(15, 42, 102, .72); color: #fff; font-size: 12px; font-weight: 700; border: 0; }
.przyciski-dol { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.przyciski-dol button { flex: 1; min-width: 140px; }
.wybor-waluty { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wybor-waluty button { height: 46px; border-radius: 12px; border: 1.5px solid var(--linia); background: var(--karta);
  font-weight: 800; color: var(--granat); font-size: 16px; }
.wybor-waluty button.wl { background: var(--granat); border-color: var(--granat); color: #fff; }
