* { 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; }
}

/* ====== Layout wg podglad.png (index) ====== */
.hd { background: linear-gradient(#fdfdfd, #e8eaec); border-bottom: 1px solid #d5d9dd; }
.hd-gora { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px;
  background: linear-gradient(rgba(230,232,234,.0), rgba(200,204,208,.25)); }
.hd-logo { font-size: 34px; font-weight: bold; color: #111; letter-spacing: -1px; }
.hd-logo span { color: #777; }
.hd-logo:hover { text-decoration: none; }
.hd-jakosc { background: linear-gradient(#c8362e, #8e1710); color: #fff; font-weight: bold;
  font-size: 17px; padding: 7px 22px; border-radius: 8px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.hd-mini { text-align: right; margin-top: 6px; }
.hd-mini a { color: #333; font-size: 11px; margin-left: 10px; }

.menu-gl { background: linear-gradient(#d23227, #9c1508); border-top: 1px solid #e56; }
.menu-gl-in { display: flex; align-items: stretch; flex-wrap: wrap; padding: 0; }
.menu-gl a { color: #fff; font-weight: bold; font-size: 14px; padding: 9px 16px;
  border-right: 1px solid rgba(255,255,255,.22); }
.menu-gl a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.menu-power { margin-left: auto; font-size: 16px; }

.hd-pod { display: flex; align-items: center; gap: 14px; padding: 10px 0; flex-wrap: wrap;
  border-bottom: 1px solid #dfe3e7; }
.hd-tytul { font-size: 17px; color: #222; }
.hd-info { font-size: 11px; color: #555; }
.hd-szukaj { margin-left: auto; display: flex; gap: 0; }
.hd-szukaj input { width: 170px; padding: 5px 8px; border: 1px solid #b8bfc7; border-radius: 4px 0 0 4px;
  font-size: 13px; margin: 0; }
.hd-szukaj button { padding: 5px 12px; border: 1px solid #9aa4ae; border-left: 0; border-radius: 0 4px 4px 0;
  background: linear-gradient(#f5f6f7, #d7dbe0); font-size: 13px; cursor: pointer; }

.siatka-gl { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; }
.kol-kat { width: 190px; flex-shrink: 0; }
.kat-poz { display: flex; align-items: center; gap: 8px; background: #eef0f2; border: 1px solid #d9dde1;
  border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; color: #333; font-size: 13px; font-weight: bold; }
.kat-poz:hover { background: #e3e6ea; text-decoration: none; }
.kat-poz.akt { background: #dce2e8; border-color: #b9c2ca; }
.kat-ico { width: 18px; height: 18px; line-height: 18px; text-align: center; background: #6b7c8d; color: #fff;
  border-radius: 4px; font-size: 10px; font-weight: bold; flex-shrink: 0; }
.kat-poz .licz { margin-left: auto; font-weight: normal; color: #888; font-size: 11px; }
.kat-okruszki { font-size: 12px; color: #667; margin-bottom: 8px; }
.kat-okruszki a { font-weight: bold; }

.kol-karty { flex: 1; min-width: 0; }
.karty { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 8px; }
.kafel { background: #fff; border: 1px solid #d9dde1; border-radius: 7px; padding: 8px;
  text-align: center; position: relative; }
.kafel-wyr { border: 1px solid #e08d86; box-shadow: 0 0 0 1px #f3b7b2 inset; }
.k-tytul { display: block; font-weight: bold; color: #222; font-size: 13px; min-height: 34px; line-height: 1.25; }
.k-tytul:hover { color: #b5202a; }
.k-mid { display: flex; gap: 4px; align-items: flex-start; margin: 6px 0 2px; }
.k-ikony { width: 26px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.k-ikony .ik { display: block; font-size: 15px; color: #666; }
.ik-czerw { display: block; background: radial-gradient(#e0453a, #a51708); color: #fff; font-size: 8px;
  font-weight: bold; border-radius: 50%; width: 24px; height: 24px; line-height: 24px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ik-proc { font-size: 7px; }
.k-foto { flex: 1; height: 118px; background: center/contain no-repeat; }
.k-timer { font-size: 21px; font-weight: bold; color: #3a3a3a; letter-spacing: 1px; margin-top: 6px;
  font-family: "Arial Narrow", Arial, sans-serif; }
.k-timer.cap { color: #c0392b; }
.k-cena { margin: 2px 0; }
.k-cena span { display: inline-block; background: linear-gradient(#b6bcc3, #99a1aa); color: #fff;
  font-weight: bold; font-size: 15px; border-radius: 11px; padding: 3px 16px; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.k-cena .cena-start-k { display: block; font-size: 11px; color: #98a2ad; text-decoration: line-through; margin-top: 2px; }
.k-user { font-size: 12px; font-weight: bold; color: #333; margin: 4px 0 6px; }
.k-user img { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; margin-right: 3px; }
.k-podbij { width: 100%; background: linear-gradient(#e0453a, #b01810); color: #fff; border: 0;
  border-radius: 6px; padding: 7px 0; font-size: 16px; font-weight: bold; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.k-podbij:hover { background: linear-gradient(#ee5548, #c01f12); }
.k-podbij:disabled { opacity: .55; cursor: default; }
.k-flagi { position: absolute; top: 6px; right: 6px; }

.kol-news { width: 190px; flex-shrink: 0; }
.news-box { background: #fff; border: 1px solid #d9dde1; border-radius: 7px; padding: 8px; }
.news-box h4 { font-size: 13px; border-bottom: 1px solid #eee; padding-bottom: 6px; margin-bottom: 6px; }
.news-poz { font-size: 11px; color: #333; padding: 4px 0; border-bottom: 1px dashed #eee;
  display: flex; justify-content: space-between; align-items: center; }
.news-c { background: #8fbf5a; color: #fff; border-radius: 4px; font-size: 10px; font-weight: bold;
  padding: 1px 6px; }

.k-kom { font-size: 11px; color: #a00; min-height: 13px; margin-top: 4px; }
#rek-iframe-box { display: none; position: fixed; right: 14px; bottom: 14px; width: 340px; max-width: 92vw;
  background: #fff; border: 1px solid #b9c2ca; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.3);
  z-index: 999; overflow: hidden; }
#rek-iframe-box .rek-top { background: #eef0f2; font-size: 12px; padding: 5px 10px; display: flex;
  justify-content: space-between; align-items: center; }
#rek-iframe-box .rek-top b { color: #444; }
#rek-iframe-box .rek-zamknij { cursor: pointer; font-weight: bold; color: #a00; font-size: 15px; }
#rek-iframe-box iframe { width: 100%; height: 260px; border: 0; display: block; }

@media (max-width: 900px) {
  .siatka-gl { flex-direction: column; }
  .kol-kat, .kol-news { width: 100%; }
  .kol-news { order: 3; }
  .hd-logo { font-size: 26px; }
}

/* ====== plywajacy uklad kafelkow wg podglad.png ====== */
.siatka-gl { width: 985px; margin: 0 auto; padding-top: 12px; }
.siatka-gl:after { content: ""; display: block; clear: both; }
.kol-kat { float: left; width: 188px; margin-right: 10px; }
.kafel { float: left; width: 184px; height: 268px; margin: 0 5px 10px; overflow: hidden; }
.kafel-wyr { border: 1px solid #d23227; }
.k-foto { height: 110px; }
.k-timer { font-size: 22px; margin-top: 4px; }
.k-user { margin: 2px 0 4px; }
.k-podbij { padding: 6px 0; font-size: 15px; }
.kol-news { float: left; width: 184px; margin-left: 5px; }
.banner-slot { float: left; width: 378px; height: 268px; margin: 0 5px 10px; background: #e8eaec;
  border: 1px solid #d5d9dd; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  color: #98a2ad; font-size: 14px; overflow: hidden; }
.banner-slot img { max-width: 100%; max-height: 100%; display: block; }
.kafel .k-kom { min-height: 12px; }

@media (max-width: 990px) {
  .siatka-gl { width: 100%; }
  .kol-kat { width: 100%; margin: 0 0 10px; }
  .banner-slot { width: calc(100% - 10px); }
}

/* szybkie logowanie w naglowku */
.hd-login { display: flex; align-items: center; gap: 5px; margin-top: 6px; justify-content: flex-end; }
.hd-login input { width: 110px; padding: 4px 7px; border: 1px solid #b8bfc7; border-radius: 4px; font-size: 12px; margin: 0; }
.hd-login button { padding: 4px 12px; border: 0; border-radius: 4px; background: linear-gradient(#e0453a, #b01810); color: #fff; font-size: 12px; font-weight: bold; cursor: pointer; }
.hd-login a { font-size: 11px; color: #333; }
.hd-user b { color: #b5202a; }
