/* Podstrony z danymi (seo/build_seo.py). Ładowane po site-a.css albo site-b.css;
   body.seo-a / body.seo-b ustawia kolory motywu, reszta jest wspólna. */
.seo-a { --acc: #1e88e5; --acc-d: #1565c0; --acc-soft: #e8f2fd; --ink: #1b2b40; --mut: #6b7b8c; --ln: #e3e8ee; --soft: #f4f6f9; --hf: "Montserrat", "Helvetica Neue", Arial, sans-serif; }
.seo-b { --acc: #f26a1b; --acc-d: #c4530f; --acc-soft: #fff3e9; --ink: #263238; --mut: #66747b; --ln: #e0e4e7; --soft: #f5f6f7; --hf: "Roboto Slab", Georgia, serif; }

.s-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* nagłówek strony z danymi */
.s-top { padding: 26px 0 30px; }
.seo-a .s-top { background: linear-gradient(120deg, #14202f 0%, #1f3b5c 60%, #235184 100%); color: #d5dfeb; }
.seo-b .s-top { background: #f1f4f6; border-bottom: 1px solid var(--ln); }
.s-crumbs { font-size: 13px; margin: 0 0 18px; }
.s-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.s-crumbs li { display: inline; }
.s-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .55; }
.seo-a .s-crumbs a { color: #b9d6f5; }
.seo-a .s-crumbs, .seo-a .s-crumbs span { color: #9fb3c8; }
.seo-b .s-crumbs, .seo-b .s-crumbs span { color: var(--mut); }
.s-kick { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 10px; }
.seo-a .s-kick { color: #8fc1f2; }
.seo-b .s-kick { background: var(--ink); color: #fff; padding: 4px 10px; }
.s-top h1 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; overflow-wrap: anywhere; }
.seo-a .s-top h1 { color: #fff; font-weight: 800; }
.seo-b .s-top h1 { font-weight: 900; letter-spacing: -.5px; }
.s-lead { max-width: 860px; font-size: 17px; line-height: 1.65; margin: 0 0 22px; }
.seo-b .s-lead { color: #3d4a51; }

/* kafelki z liczbami */
.s-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.s-tile { background: #fff; border: 1px solid var(--ln); border-radius: 3px; padding: 14px 16px 12px; }
.seo-b .s-tile { border-top: 3px solid var(--acc); border-radius: 0; }
.s-tile b { display: block; font-family: var(--hf); font-size: 22px; line-height: 1.2; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tile b.na { font-size: 15px; font-weight: 600; color: var(--mut); padding-top: 5px; }
.s-tile span { display: block; font-size: 13px; line-height: 1.4; color: var(--mut); margin-top: 4px; }

/* sekcje */
.s-sec { padding: 34px 0 6px; }
.s-sec h2 { font-family: var(--hf); font-size: 23px; color: var(--ink); margin: 0 0 6px; }
.s-sec .s-sub { margin: 0 0 16px; color: var(--mut); font-size: 15px; }
.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
.s-empty { background: var(--soft); border: 1px dashed var(--ln); padding: 16px 18px; margin: 0; font-size: 15px; }

/* tabele */
.s-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.s-table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--mut); padding: 8px 10px; border-bottom: 2px solid var(--ln); white-space: nowrap; }
.s-table td { padding: 10px; border-bottom: 1px solid var(--ln); vertical-align: top; color: #3f4b57; }
.s-table td:first-child, .s-table th:first-child { padding-left: 0; }
.s-table .r { text-align: right; white-space: nowrap; }
.s-table .nw { white-space: nowrap; }
.s-table td small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.s-table td a { overflow-wrap: anywhere; }
.s-table .anon { color: var(--mut); font-style: italic; }
.s-table tbody tr:hover td { background: var(--soft); }

/* listy z poziomymi paskami (regiony) */
.s-bars { list-style: none; margin: 0; padding: 0; }
.s-bars li { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 52px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14.5px; }
.s-bars .t { height: 12px; background: var(--soft); border-radius: 0 4px 4px 0; overflow: hidden; }
.s-bars .t i { display: block; height: 100%; background: var(--acc); border-radius: 0 4px 4px 0; min-width: 2px; }
.s-bars .v { text-align: right; color: var(--ink); font-weight: 600; }

/* wykres miesięczny */
.s-chart { margin: 0; }
.s-chart svg { display: block; width: 100%; height: auto; max-width: 860px; }
.s-chart .g { stroke: var(--ln); stroke-width: 1; shape-rendering: crispEdges; }
.s-chart .ax { fill: var(--mut); font-size: 11px; font-family: inherit; }
.s-chart .lab { fill: var(--ink); font-size: 11.5px; font-weight: 700; font-family: inherit; }
.s-chart .bar { fill: var(--acc); }
.s-chart .bar.part { fill: var(--acc); opacity: .4; }
.s-chart .hit { fill: transparent; }
.s-chart g.b:hover .bar { fill: var(--acc-d); opacity: 1; }
.s-chart g.b:hover .hit { fill: rgba(0, 0, 0, .035); }
.s-chart figcaption { font-size: 13.5px; color: var(--mut); margin-top: 8px; max-width: 860px; }
.s-data { margin-top: 10px; font-size: 14px; max-width: 860px; }
.s-data summary { cursor: pointer; color: var(--acc-d); font-weight: 600; }
.s-data table { margin-top: 8px; }

/* przedział cen (kwartyle) */
.s-range { max-width: 760px; margin: 6px 0 0; }
.s-range .track { position: relative; height: 34px; }
.s-range .track::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--ln); }
.s-range .box { position: absolute; top: 6px; height: 22px; background: var(--acc-soft); border: 2px solid var(--acc); border-radius: 4px; }
.s-range .med { position: absolute; top: 2px; width: 3px; height: 30px; background: var(--ink); margin-left: -1px; }
.s-range .lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--mut); margin-top: 6px; flex-wrap: wrap; }
.s-range .lbl b { color: var(--ink); }

/* linki w hubach i pokrewne kategorie */
.s-links { list-style: none; margin: 0 0 8px; padding: 0; columns: 3 260px; column-gap: 32px; }
.s-links li { break-inside: avoid; padding: 4px 0; font-size: 15px; line-height: 1.4; }
.s-links small { color: var(--mut); margin-left: 6px; white-space: nowrap; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.s-chips a { display: inline-block; font-size: 13.5px; padding: 5px 11px; border: 1px solid var(--ln); border-radius: 3px; background: #fff; color: var(--ink); }
.s-chips a:hover { border-color: var(--acc); color: var(--acc-d); text-decoration: none; }
.s-grp { padding: 22px 0 0; }
.s-grp h2 { font-size: 20px; }
.s-grp h2 small { font-size: 13px; color: var(--mut); font-weight: 400; margin-left: 6px; }
.s-more { font-size: 14.5px; margin: 6px 0 0; font-weight: 600; }

/* karta z odnośnikiem do drugiej strony */
.s-xlink { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--ln); border-left: 4px solid var(--acc); background: #fff; padding: 18px 22px; margin: 0; }
.s-xlink p { margin: 0; max-width: 720px; font-size: 15.5px; }
.s-xlink b { color: var(--ink); }

/* formularze (alert, raport NIP) */
.s-box { display: grid; grid-template-columns: 5fr 6fr; gap: 28px 40px; background: var(--soft); border: 1px solid var(--ln); padding: 28px; }
.seo-b .s-box.main { background: var(--ink); border: 0; border-top: 5px solid var(--acc); color: #cfd8dc; }
.seo-b .s-box.main h2, .seo-b .s-box.main h3 { color: #fff; }
.seo-b .s-box.main .s-form label, .seo-b .s-box.main .s-fine { color: #b0bec5; }
.seo-b .s-box.main .s-form a, .seo-b .s-box.main a { color: #ffb07a; }
.s-box h2, .s-box h3 { font-family: var(--hf); color: var(--ink); font-size: 21px; margin: 0 0 8px; }
.s-box p { margin: 0 0 10px; font-size: 15px; }
.s-box ul { margin: 0 0 10px; padding-left: 20px; font-size: 15px; }
.s-form { display: grid; gap: 12px; margin: 0; }
.s-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.s-form input[type=email], .s-form input[type=text]:not(.hp) { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; border: 1px solid #c5ced8; border-radius: 3px; padding: 10px 12px; }
.s-form input[type=email]:focus, .s-form input[type=text]:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(30, 136, 229, .15); }
.seo-b .s-form input[type=email]:focus, .seo-b .s-form input[type=text]:focus { box-shadow: 0 0 0 3px rgba(242, 106, 27, .2); }
.s-form .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 400; line-height: 1.5; margin: 0; cursor: pointer; }
.s-form .chk input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--acc); }
.s-form button { justify-self: start; }
.s-form [data-onyx-msg] { margin: 0; font-size: 14.5px; min-height: 1.3em; }
.s-form [data-onyx-msg].ok { color: #2e9d5b; font-weight: 600; }
.s-form [data-onyx-msg].err { color: #c62828; font-weight: 600; }
.seo-b .s-box.main [data-onyx-msg].ok { color: #81e6a8; }
.seo-b .s-box.main [data-onyx-msg].err { color: #ffab91; }
.s-fine { font-size: 12.5px; line-height: 1.5; color: var(--mut); margin: 0; }
.s-note { font-size: 13.5px; color: var(--mut); }
.s-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; background: var(--acc); color: #fff; padding: 2px 8px; margin-bottom: 10px; }

/* źródło danych */
.s-src { margin: 36px 0 44px; padding: 16px 0 0; border-top: 1px solid var(--ln); font-size: 13.5px; color: var(--mut); }
.s-src p { margin: 0 0 4px; }

/* blok "Przeglądaj" wstawiany do stopki strony głównej */
.s-browse { padding: 18px 0 22px; font-size: 14px; }
.s-browse b { margin-right: 14px; }
.s-browse a { margin-right: 18px; display: inline-block; }

/* listy tytułów przetargów (strony dzienne, województw, miejscowości): same tytuły, miejscowość w nagłówku grupy */
.s-kick a { color: inherit; text-decoration: underline; }
#dostep, #lista, .s-tg > h2[id], .s-grp[id] { scroll-margin-top: 84px; }
.s-topcta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 20px 0 0; }
.s-topcta span { font-size: 14px; }
.s-prose { max-width: 860px; font-size: 16px; line-height: 1.7; margin: 0 0 8px; }
.s-tg > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 20px; margin: 26px 0 2px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.s-tg > h2 small, .s-tg2 h3 small { font-size: 13px; font-weight: 400; color: var(--mut); font-family: inherit; }
.s-tg-link { margin-left: auto; font-size: 13px; font-weight: 600; font-family: inherit; }
.s-tg2 h3 { font-family: var(--hf); font-size: 16px; color: var(--ink); margin: 18px 0 2px; }
.s-tl { list-style: none; margin: 0; padding: 0; }
.s-tl li { position: relative; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--ln); font-size: 15px; line-height: 1.45; color: #34414e; overflow-wrap: anywhere; }
.s-tl li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); opacity: .5; }
.s-tl li.s-tl-cta { padding: 0; border: 0; margin: 10px 0; }
.s-tl li.s-tl-cta::before { content: none; }
.s-tl-cta a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; background: var(--acc-soft); border-left: 4px solid var(--acc); padding: 10px 16px; font-size: 14.5px; color: var(--ink); }
.s-tl-cta a:hover { text-decoration: none; background: #dcebfa; color: var(--ink); }
.s-tl-cta .go { color: var(--acc-d); font-weight: 700; white-space: nowrap; }
.s-tl-cta .go::after { content: " \203A"; }
.s-pager ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 20px 0 0; padding: 0; }
.s-pager a, .s-pager span { display: inline-block; min-width: 38px; text-align: center; padding: 6px 12px; border: 1px solid var(--ln); border-radius: 3px; font-size: 14px; background: #fff; }
.s-pager span[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.s-daynav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; margin: 22px 0 0; }
.s-dlinks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.s-chips a b { font-weight: 600; color: var(--mut); margin-left: 2px; }
.s-rank { columns: 1; }
.s-rank li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ln); padding: 6px 0; }
.s-rank small { flex: none; margin-left: 0; }
/* prośba o dostęp: nagłówek na całą szerokość, pod nim lista (lewa) i formularz (prawa); na telefonie formularz
   stoi zaraz pod nagłówkiem, a lista tego, co pokazuje Radar, pod formularzem */
.s-access { row-gap: 18px; }
.s-access-head { grid-column: 1 / -1; }
.s-access-head p { max-width: 860px; margin: 0; }
.s-access h2 { font-size: 23px; }
.s-access ul { padding-left: 18px; }
.s-access li { margin-bottom: 3px; }
.s-access li b { color: var(--ink); }
.s-form textarea, .s-form input[type=tel] { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; border: 1px solid #c5ced8; border-radius: 3px; padding: 10px 12px; }
.s-form textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.s-form textarea:focus, .s-form input[type=tel]:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(30, 136, 229, .15); }
/* menu podstron A ma 5 pozycji i przycisk: węższe odstępy i rozwijane menu już poniżej 1120 px
   (tak samo jak menu strony głównej, .menu-wide w site-a.css) */
.seo-a .menu { gap: 22px; }
@media (max-width: 1120px) {
  .seo-a .burger { display: block; }
  .seo-a .menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: 0 10px 20px rgba(20, 32, 47, .12); }
  .seo-a .menu.open { display: flex; }
  .seo-a .menu li { border-bottom: 1px solid var(--line); }
  .seo-a .menu a { display: block; padding: 14px 0; }
  .seo-a .menu li:last-child { border: 0; padding-top: 14px; }
  .seo-a .menu a.btn { text-align: center; padding: 12px; }
}

@media (max-width: 900px) {
  .s-two, .s-box { grid-template-columns: 1fr; }
  .s-access form { order: 1; }
  .s-access-info { order: 2; }
}
@media (max-width: 700px) {
  .s-wrap { padding: 0 16px; }
  .s-top h1 { font-size: 26px; }
  .s-lead { font-size: 16px; }
  .s-tiles { grid-template-columns: 1fr 1fr; }
  .s-tile b { font-size: 19px; }
  .s-box { padding: 20px 16px; }
  .s-form .f2 { grid-template-columns: 1fr; }
  .s-bars li { grid-template-columns: 110px 1fr 44px; }
  .s-chart .ax { font-size: 20px; }
  .s-chart .lab { font-size: 20px; }
  /* tabele jako karty */
  .s-table.rs thead { display: none; }
  .s-table.rs tr { display: block; border-bottom: 1px solid var(--ln); padding: 8px 0; }
  .s-table.rs td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; text-align: right; }
  .s-table.rs td::before { content: attr(data-l); color: var(--mut); font-size: 12.5px; text-align: left; flex: none; }
  .s-table.rs td.t { display: block; text-align: left; font-weight: 600; }
  .s-table.rs td.t::before { content: none; }
  .s-table.rs td.r { white-space: normal; }
}
/* iOS Safari powiększa stronę przy polu z tekstem mniejszym niż 16 px */
@media (max-width: 700px) {
  .s-form input[type=email], .s-form input[type=text]:not(.hp), .s-form input[type=tel], .s-form textarea { font-size: 16px; }
}

/* pasek boczny (tpl.with_side): treść w lewej kolumnie, po prawej przyklejona karta z newsletterem i linkiem
   do demo Onyx Radar; poniżej 1000 px karta stoi pod treścią */
.s-layout { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 0 40px; align-items: start; }
.s-layout > .s-main { min-width: 0; }
.s-layout > .s-main .s-wrap { max-width: none; padding: 0; }
.s-side { position: sticky; top: 96px; margin: 34px 0 30px; }
.s-ad { background: var(--soft); border: 1px solid var(--ln); border-top: 4px solid var(--acc); padding: 20px 20px 16px; font-size: 14px; line-height: 1.5; }
.seo-a .s-ad { background: linear-gradient(160deg, #14202f 0%, #1f3b5c 100%); border: 0; border-top: 4px solid var(--acc); color: #d5dfeb; }
.seo-b .s-ad { background: var(--ink); border: 0; border-top: 5px solid var(--acc); color: #cfd8dc; }
.s-ad h3 { font-family: var(--hf); font-size: 19px; line-height: 1.3; color: #fff; margin: 0 0 8px; }
.s-ad p { margin: 0 0 10px; }
.s-ad ul { margin: 0 0 14px; padding-left: 18px; }
.s-ad li { margin-bottom: 2px; }
.s-ad .s-form { gap: 9px; }
.s-ad .s-form label { color: #c3d0dd; font-size: 12.5px; }
.s-ad .s-form input[type=email], .s-ad .s-form input[type=text]:not(.hp) { padding: 8px 10px; font-size: 15px; border-color: transparent; }
.s-ad .s-form button { justify-self: stretch; text-align: center; margin-top: 2px; }
.s-ad .s-form .chk { color: #c3d0dd; font-size: 12.5px; line-height: 1.45; }
.s-ad-demo { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 14px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.s-ad-demo p { margin: 0; }
.s-ad-demo a { font-weight: 700; }
.s-ad .s-fine { font-size: 11.5px; line-height: 1.45; color: #9fb0c0; margin: 0; }
.s-ad a { color: #8fc1f2; }
.seo-b .s-ad a { color: #ffb07a; }
.s-ad [data-onyx-msg].ok { color: #81e6a8; }
.s-ad [data-onyx-msg].err { color: #ffab91; }
@media (max-width: 1000px) {
  .s-layout { grid-template-columns: 1fr; }
  .s-side { position: static; max-width: 560px; }
}
@media (max-width: 700px) {
  .s-layout { padding: 0 16px; }
  .s-ad .s-form input[type=email], .s-ad .s-form input[type=text]:not(.hp) { font-size: 16px; }
}
