* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; background: #f4f5f7; color: #222; font-size: 15px; }
a { color: #1a5fb4; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.top { background: #16324f; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; }
.logo { font-size: 22px; font-weight: bold; color: #fff; }
.logo span { color: #ffd23f; }
.top nav a { color: #dfe9f3; margin-left: 14px; font-size: 14px; }
main.wrap { padding: 18px 14px 40px; }
.stopka { background: #16324f; color: #a9bdd0; font-size: 12px; padding: 16px 0; }
.stopka .wrap { padding: 0 14px; }

.uklad { display: flex; gap: 20px; align-items: flex-start; }
.kol-lewa { width: 260px; flex-shrink: 0; }
.kol-prawa { flex: 1; min-width: 0; }
.panel { background: #fff; border: 1px solid #e2e5ea; border-radius: 8px; padding: 14px; margin-bottom: 16px; }
.panel h3 { font-size: 15px; margin-bottom: 10px; }

.kat-lista, .kat-lista ul { list-style: none; }
.kat-lista ul { padding-left: 14px; }
.kat-lista a { display: inline-block; padding: 3px 0; }
.kat-lista .licz { color: #888; font-size: 12px; }
.kat-lista .akt > a { font-weight: bold; color: #16324f; }

.filtry label { display: block; padding: 3px 0; font-size: 14px; }
.filtry input[type=checkbox] { margin-right: 6px; }
.pasek-narzedzi { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.pasek-narzedzi input[type=text] { flex: 1; min-width: 160px; padding: 8px 10px; border: 1px solid #ccd2d9; border-radius: 6px; }
.pasek-narzedzi select { padding: 8px; border: 1px solid #ccd2d9; border-radius: 6px; }

.siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.karta { background: #fff; border: 1px solid #e2e5ea; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.karta.wyrozniona { background: #fff8d6; border-color: #ecdc7d; }
.karta .foto { display: block; height: 150px; background: #eceff2 center/cover no-repeat; }
.karta .tresc { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.karta .tytul { font-weight: bold; font-size: 14px; color: #16324f; }
.karta .cena { font-size: 18px; font-weight: bold; color: #c0392b; }
.karta .meta { font-size: 12px; color: #777; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #eef2f6; color: #445; margin-right: 4px; }
.badge.premium { background: #ffd23f; color: #5a4a00; }
.badge.koniec { background: #ffe1e1; color: #a00; }

.paginacja { margin-top: 18px; display: flex; gap: 5px; flex-wrap: wrap; }
.paginacja .strona { padding: 6px 11px; background: #fff; border: 1px solid #d5dae0; border-radius: 5px; }
.paginacja .strona.akt { background: #16324f; color: #fff; border-color: #16324f; }

.btn { display: inline-block; padding: 10px 18px; border: none; border-radius: 7px; cursor: pointer; font-size: 15px; }
.btn-podbij { background: #c0392b; color: #fff; font-size: 18px; font-weight: bold; width: 100%; padding: 14px; }
.btn-kup { background: #27ae60; color: #fff; font-size: 18px; font-weight: bold; width: 100%; padding: 14px; }
.btn-szary { background: #4a6076; color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], textarea, select {
  width: 100%; padding: 8px 10px; border: 1px solid #ccd2d9; border-radius: 6px; font-size: 14px; margin-bottom: 10px;
}
textarea { min-height: 140px; }
form.wiersz label { display: block; font-size: 13px; margin-bottom: 2px; }
.kom-ok { background: #e6f7e9; border: 1px solid #9ad4a5; padding: 10px; border-radius: 6px; margin-bottom: 12px; }
.kom-blad { background: #fdecea; border: 1px solid #e8a29a; padding: 10px; border-radius: 6px; margin-bottom: 12px; }

.cena-duza { font-size: 40px; font-weight: bold; color: #c0392b; text-align: center; }
.cena-start { text-align: center; color: #888; text-decoration: line-through; }
.timer { text-align: center; font-size: 14px; color: #555; margin: 6px 0 12px; }
.galeria { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.galeria img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.galeria img.akt { border-color: #16324f; }
.hist { list-style: none; font-size: 13px; }
.hist li { padding: 4px 0; border-bottom: 1px dashed #e2e5ea; }

.tabela { width: 100%; border-collapse: collapse; background: #fff; }
.tabela th, .tabela td { padding: 8px 10px; border-bottom: 1px solid #e8ebef; text-align: left; font-size: 14px; }
.tabela th { background: #f0f3f6; }
.flaga { color: #c0392b; font-weight: bold; }

.obrazki-ed { display: flex; flex-wrap: wrap; gap: 10px; }
.obr-box { width: 110px; height: 110px; border: 2px dashed #b9c4cf; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #8fa1b3; cursor: pointer; background: #f7f9fb; position: relative; overflow: hidden; }
.obr-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.obr-box .usun { position: absolute; top: 3px; right: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%;
  width: 20px; height: 20px; font-size: 12px; line-height: 20px; text-align: center; z-index: 2; }
.obr-box .avatar-etyk { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(22,50,79,.8); color: #fff;
  font-size: 10px; text-align: center; z-index: 2; padding: 2px 0; }

@media (max-width: 800px) {
  .uklad { flex-direction: column; }
  .kol-lewa { width: 100%; }
  .btn-podbij, .btn-kup { font-size: 20px; padding: 16px; }
}
