/* Puls Kościerzyny – portal internetowy */
:root {
  --ink: #0F1B2A; --ink2: #26343F; --muted: #5B6B7A; --line: #E3E9EF; --line2: #D0DAE3; --soft: #F5F7F9; --tint: #EEF4F9;
  --accent: #0A5C8F; --accentD: #08496F; --navy: #0D2436; --green: #1E9E57; --greenD: #178048; --red: #C62828; --amber: #FFF4DC;
  --gold: #D99A00; --goldBg: #FFF8E6; --goldLine: #E8C35A; --dark: #1E2B38; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover h3, a:hover b, h3 a:hover, h1 a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { letter-spacing: -.012em; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp { flex: 1; }
.meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.small { font-size: 14px; color: var(--muted); }
.src { display: block; font-size: 12px; color: var(--muted); }
:focus-visible { outline: 3px solid #7DB6E0; outline-offset: 2px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #A9BccB; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.big { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.full { width: 100%; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pri:hover { background: var(--accentD); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.add { border-color: var(--accent); color: var(--accent); }
.btn.add:hover { background: var(--tint); }
.btn.dl { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(30,158,87,.28); }
.btn.dl:hover { background: var(--greenD); border-color: var(--greenD); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 800; cursor: pointer; text-decoration: underline; }

/* ---------- górny pasek ---------- */
.topbar { background: var(--navy); color: #C9D6E1; font-size: 13px; font-weight: 600; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 36px; }
.topbar .tw { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { text-decoration: underline; }

/* ---------- nagłówek ---------- */
.masthead { background: #fff; }
.masthead .wrap { display: flex; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo i { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.logo b { display: block; font-size: 23px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.logo small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hsearch { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.hsearch input { width: 100%; height: 48px; border: 1.5px solid var(--line2); border-radius: 12px; padding: 0 52px 0 16px; background: var(--soft); font-weight: 500; outline: none; }
.hsearch input:focus { border-color: var(--accent); background: #fff; }
.hsearch button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.masthead .btn { height: 48px; }
.masthead .btn.dl { height: 56px; padding: 0 26px; font-size: 17.5px; border-radius: 14px; }

/* ---------- menu działów ---------- */
.mainnav { border-top: 1.5px solid var(--line); border-bottom: 3px solid var(--accent); background: #fff; position: sticky; top: 0; z-index: 30; }
.mainnav .wrap { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav .ni { display: flex; align-items: center; padding: 0 16px; height: 50px; font-weight: 800; font-size: 15px; color: var(--ink2); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.mainnav .ni:hover { color: var(--accent); }
.mainnav .ni.on { color: var(--accent); border-bottom-color: var(--navy); }
.burger { display: none; }

/* ---------- pasek alertów ---------- */
.ribbon { background: #fff; padding: 12px 0 0; }
.ribbon .wrap { display: flex; flex-direction: column; gap: 8px; }
.rb { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; font-size: 15px; }
.rb b { font-weight: 800; letter-spacing: .04em; flex: none; }
.rb.red { background: var(--red); color: #fff; }
.rb.red:hover span { text-decoration: underline; }
.rb.amber { background: var(--amber); color: #5C3D00; border: 1.5px solid #F1D49A; }

main { padding-bottom: 40px; }

/* ---------- czołówka ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; padding: 24px 0 8px; }
.leadstory { position: relative; border-radius: 18px; overflow: hidden; background: var(--navy); min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; }
.leadstory .cover { position: absolute; inset: 0; }
.leadstory .ph.big { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #12405F, #0D2436); }
.leadstory .ph.big img { width: 100%; height: 100%; object-fit: cover; }
.leadstory .ph.none { display: flex; align-items: center; justify-content: center; }
.leadstory .ph.none svg { opacity: .35; width: 90px; height: 90px; }
.leadstory .lb { position: relative; padding: 90px 28px 26px; background: linear-gradient(180deg, rgba(13,36,54,0) 0%, rgba(13,36,54,.82) 45%, rgba(13,36,54,.95) 100%); color: #fff; pointer-events: none; }
.leadstory .lb a, .leadstory .lb .author { pointer-events: auto; }
.leadstory h1 { margin: 10px 0 8px; font-size: 34px; line-height: 1.15; }
.leadstory h1 a:hover { color: #CDE6F7; }
.leadstory p { margin: 0 0 14px; color: #DCE6EE; font-size: 16.5px; max-width: 46em; }
.leadstory .meta { color: #C9D6E1; }
.leadstory .author { color: #fff; }
.welcome { border-radius: 18px; background: linear-gradient(135deg, var(--tint), #fff); border: 1.5px solid var(--line); padding: 40px; }
.welcome h1 { margin: 0 0 14px; font-size: 40px; line-height: 1.1; }
.welcome h1 em { font-style: normal; color: var(--accent); }
.welcome p { font-size: 18px; color: var(--ink2); max-width: 34em; }
.leadside { display: flex; flex-direction: column; gap: 4px; }
.bh { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.bh::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.ls { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.ls .ph { display: block; width: 104px; height: 74px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.ls .ph img { width: 100%; height: 100%; object-fit: cover; }
.ls .ph.none { display: flex; align-items: center; justify-content: center; }
.ls .ph.none svg { width: 28px; }
.ls b { display: block; font-size: 15.5px; line-height: 1.3; margin-top: 2px; }
.leadside .btn.add { margin-top: auto; height: auto; min-height: 48px; padding: 10px 14px; white-space: normal; }
.leadside .evrow { border-bottom: 1.5px solid var(--line); }

/* ---------- układ dwukolumnowy ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 12px; }
.sec { padding: 26px 0 6px; }
.sech { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sech h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.sech p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.more { font-weight: 800; color: var(--accent); white-space: nowrap; font-size: 14.5px; }
.more:hover { text-decoration: underline; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* karta */
.card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .cover .ph { display: block; height: 168px; background: var(--tint); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph.none { display: flex; align-items: center; justify-content: center; }
.card .cb { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.card .lead { margin: 0; font-size: 14.5px; color: var(--ink2); }
.card .cfoot { margin-top: auto; padding-top: 4px; justify-content: space-between; }
.card.place .cb { gap: 10px; }
.card.place .meta { display: inline-flex; align-items: center; gap: 4px; }
.price { margin: 0; font-weight: 800; font-size: 17px; color: var(--ink); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.tag.urgent { background: var(--red); color: #fff; letter-spacing: .05em; }
.acts { margin-top: 2px; }

/* lista */
.list { display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1.5px solid var(--line); }
.lrow:first-child { padding-top: 4px; }
.lrow .thumb .ph { display: block; height: 132px; border-radius: 12px; overflow: hidden; background: var(--tint); }
.lrow .ph img { width: 100%; height: 100%; object-fit: cover; }
.lrow .ph.none { display: flex; align-items: center; justify-content: center; }
.lrow .lb { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lrow h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.lrow .lead { margin: 0; color: var(--ink2); font-size: 15px; }

/* autor i gwiazdki */
.author { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.ava { border-radius: 50%; object-fit: cover; flex: none; }
.ava.noph { display: inline-flex; align-items: center; justify-content: center; background: #EDF2F6; border: 1.5px dashed #B5C5D3; overflow: hidden; align-items: flex-end; }
.star { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star span { position: relative; font-weight: 800; margin-top: 2px; }
.role { padding: 2px 8px; border-radius: 999px; color: #fff; font-size: 11.5px; font-weight: 800; }
.role.admin { background: var(--ink); }
.role.editor { background: #5B3FA0; }

/* imprezy */
.evgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.evrow { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1.5px solid var(--line); align-items: flex-start; }
.date { flex: none; width: 58px; height: 62px; border-radius: 12px; background: #F3EEFB; color: #4E3591; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.date.today { background: var(--red); color: #fff; }
.date b { font-size: 23px; font-weight: 800; }
.date small { font-size: 12px; font-weight: 800; }
.eb { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.eb b { font-size: 15.5px; line-height: 1.3; }
.dayh { margin: 26px 0 4px; font-size: 18px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.dayh:first-letter { text-transform: uppercase; }

.empty { padding: 26px; border: 1.5px dashed #C9D5E0; border-radius: var(--radius); text-align: center; color: var(--muted); font-weight: 600; }
.empty a { color: var(--accent); text-decoration: underline; }
.addbar { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); border: 1.5px solid var(--line); }
.addbar p { margin: 0; flex: 1; min-width: 220px; font-weight: 600; }

/* ---------- firmy ---------- */
.firm { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.firm.prem { background: var(--goldBg); border-color: var(--goldLine); }
.firm h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.firm p { margin: 0; font-size: 14.5px; color: var(--ink2); }
.firm .fh { flex-wrap: nowrap; gap: 12px; }
.firm .logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.firm .fph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.firm .fph img { height: 74px; width: 100%; object-fit: cover; border-radius: 8px; }
.firm dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; }
.firm dt { color: var(--muted); font-weight: 700; }
.firm dd { margin: 0; font-weight: 600; }
.ptag { padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #1F1500; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; }
.open { padding: 3px 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; }
.open.on { background: var(--green); }
.open.off { background: var(--ink); }
.firmcols { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.tree { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 66px; }
.tree a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 15px; }
.tree a span { color: var(--muted); font-size: 13px; font-weight: 700; }
.tree a:hover { background: var(--soft); }
.tree a.on { background: var(--tint); color: var(--accent); }
.tree a.sub { padding-left: 26px; font-size: 14.5px; font-weight: 600; }
.tree .btn { margin-top: 12px; justify-content: center; }

/* ---------- nagłówek podstrony, filtry ---------- */
.phead { padding: 26px 0 14px; }
.phead h1 { margin: 6px 0 6px; font-size: 34px; line-height: 1.15; }
.phead p { margin: 0 0 12px; color: var(--ink2); font-size: 16.5px; max-width: 46em; }
.crumbs { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.frow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.frow select, .frow input { height: 44px; border: 1.5px solid var(--line2); border-radius: 12px; padding: 0 12px; background: #fff; }
.frow input { flex: 1; min-width: 200px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px 0 8px; font-weight: 700; }
.pager a { padding: 10px 16px; border: 1.5px solid var(--line2); border-radius: 12px; color: var(--accent); }

/* ---------- wpis ---------- */
.post { padding-top: 24px; }
.post h1 { margin: 10px 0 14px; font-size: 36px; line-height: 1.15; }
.byline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); margin-bottom: 18px; font-size: 15px; }
.byline b + .star, .byline b + .role { vertical-align: middle; margin-left: 4px; }
.pphoto { margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: var(--soft); }
.pphoto img { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); margin-bottom: 18px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts .price { font-size: 20px; }
.post .body { font-size: 18px; line-height: 1.65; color: var(--ink); }
.edited { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-style: italic; }
.mapbox { margin: 20px 0; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--line); }
.mapbox iframe { display: block; width: 100%; height: 300px; border: 0; }
.tools { padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.comments { padding: 24px 0; }
.comments h2 { margin: 0 0 12px; font-size: 22px; }
.cm { padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.cm b { margin-right: 8px; }
.cm p { margin: 4px 0 0; }
.cform { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--soft); }
.inp, .addform input:not([type=checkbox]):not([type=radio]):not([type=file]), .addform select, .addform textarea { width: 100%; border: 1.5px solid var(--line2); border-radius: 12px; padding: 11px 14px; background: #fff; outline: none; }
.inp:focus, .addform input:focus, .addform select:focus, .addform textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.dlg { border: 0; border-radius: 18px; padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(15,27,42,.3); }
.dlg::backdrop { background: rgba(15,27,42,.5); }
.dlg form { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.dlg h2 { margin: 0; }
.radio { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }

/* ---------- formularze ---------- */
.addform { display: flex; flex-direction: column; gap: 14px; }
.addform h2 { margin: 0; font-size: 22px; }
.addform label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14.5px; }
.addform label .meta { font-weight: 600; }
.addform fieldset { border: 0; padding: 0; margin: 0; }
.addform legend { font-weight: 800; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.addform .chiprow { margin-bottom: 0; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.radio-chip:has(input:focus-visible) { outline: 3px solid #7DB6E0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid.three { grid-template-columns: 1fr 1fr 1fr; }
.addform label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); text-decoration: underline; }
.note { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.note a { text-decoration: underline; font-weight: 800; }
.note.blue { background: var(--tint); color: #0A3E60; }
.note.amber { background: var(--amber); color: #5C3D00; margin: 0; }
.note.green { background: #E6F4EA; color: #145A30; }
.note.red { background: #FDECEA; color: #8E1B12; }
.prev { max-width: 280px; border-radius: 12px; }
.locked { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-weight: 600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan > span { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 2px solid var(--line2); border-radius: var(--radius); height: 100%; font-weight: 600; }
.plan b { font-size: 17px; }
.plan em { font-style: normal; font-weight: 800; color: var(--accent); }
.plan small { color: var(--muted); font-size: 13.5px; }
.plan input:checked + span { border-color: var(--accent); background: var(--tint); }
.plan.gold input:checked + span { border-color: var(--gold); background: var(--goldBg); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.twocol .addform { padding: 22px; border: 1.5px solid var(--line); border-radius: 18px; }
.acct { padding: 22px; border: 1.5px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 12px; }
.acct .row { gap: 12px; }

/* ---------- boczna kolumna ---------- */
.side { display: flex; flex-direction: column; gap: 18px; padding-top: 26px; }
.box { padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.box .more { display: inline-block; margin-top: 10px; }
.apppromo { background: var(--navy); border-color: var(--navy); color: #fff; }
.apppromo b { font-size: 18px; display: block; }
.apppromo p { color: #C9D6E1; font-size: 14.5px; margin: 6px 0 14px; }
.apppromo .btn.dl { height: 52px; font-size: 16.5px; box-shadow: none; }
.wx { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.wx b { display: block; font-size: 28px; line-height: 1.1; }
.wx small { color: var(--muted); font-weight: 600; font-size: 13px; }
.partner { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.partner small, .ad small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.partner b { font-size: 14px; }
.mini { display: block; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini b { display: block; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.side .evrow:last-of-type { border-bottom: 0; }
.ad { background: var(--soft); border-style: dashed; }
.ad b { display: block; margin-top: 4px; }
.ad p { margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
.ad a { font-weight: 800; color: var(--accent); }

/* ---------- strona aplikacji ---------- */
.apphero { background: var(--navy); color: #fff; padding: 48px 0; }
.apphero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.apphero h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.1; }
.apphero p { color: #D5DEE7; font-size: 17px; }
.apphero .small { color: #AFC0CE; margin-top: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 62px; padding: 0 20px; border-radius: 14px; background: #fff; color: var(--ink); min-width: 210px; }
.store small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.store.soon { opacity: .6; cursor: default; }
.how { background: rgba(255,255,255,.07); border-radius: 18px; padding: 22px; }
.how h2 { margin: 0 0 8px; font-size: 18px; }
.how ol { margin: 0; padding-left: 20px; color: #E3E9EF; font-size: 14.5px; }
.how li { margin-bottom: 6px; }
.qr { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; margin-top: 12px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 0; }
.feats div { padding: 18px; border-radius: 16px; background: var(--soft); }
.feats b { font-size: 17px; }
.feats p { margin: 6px 0 0; color: var(--ink2); font-size: 14.5px; }
.prose { padding-top: 26px; font-size: 16.5px; }
.prose h1 { font-size: 32px; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- stopka ---------- */
.foot { background: var(--navy); color: #C9D6E1; padding: 40px 0 28px; margin-top: 24px; }
.foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot .fc { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.foot .fc > b { color: #fff; font-size: 15px; margin-bottom: 4px; }
.foot .fc a:hover { color: #fff; text-decoration: underline; }
.foot .logo b { color: #fff; font-size: 19px; }
.foot .logo i { width: 40px; height: 40px; }
.foot .fc p { margin: 4px 0 8px; }
.foot .btn.dl:hover { text-decoration: none; }
.foot .fine { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #93A6B6; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.toast.err { background: var(--red); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .masthead .btn.add span { display: none; }
  .masthead .btn.add { width: 48px; padding: 0; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evgrid, .twocol, .firmcols, .apphero .wrap { grid-template-columns: minmax(0, 1fr); }
  .tree { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .tree a { border: 1.5px solid var(--line2); border-radius: 999px; padding: 6px 12px; }
  .tree a.sub { padding-left: 12px; }
  .tree .btn { margin-top: 0; }
  .feats { grid-template-columns: 1fr 1fr; }
}
/* ---------- telefon ---------- */
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar .tw, .topbar .wrap > span:first-child { display: none; }
  .masthead .wrap { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .logo i { width: 40px; height: 40px; border-radius: 12px; }
  .logo b { font-size: 19px; }
  .logo small { display: none; }
  .masthead .btn.add { order: 1; margin-left: auto; width: 44px; height: 44px; padding: 0; }
  .masthead .btn.dl { order: 2; flex-basis: 100%; height: 54px; font-size: 17px; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .hsearch input { height: 44px; }
  .hsearch button { width: 36px; height: 36px; }
  .mainnav .ni { display: none; }
  .burger { display: block; width: 100%; }
  .burger summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 46px; font-weight: 800; cursor: pointer; }
  .burger summary::-webkit-details-marker { display: none; }
  .burger > div { display: flex; flex-direction: column; padding-bottom: 8px; }
  .burger > div a { padding: 11px 4px; border-top: 1px solid var(--line); font-weight: 700; }
  .burger > div a.on { color: var(--accent); }
  .leadstory { min-height: 360px; }
  .leadstory .lb { padding: 70px 18px 18px; }
  .leadstory h1 { font-size: 25px; }
  .leadstory p { font-size: 15px; }
  .welcome { padding: 24px; }
  .welcome h1 { font-size: 30px; }
  .grid3, .grid2, .side, .fgrid, .fgrid.three, .plans, .feats { grid-template-columns: minmax(0, 1fr); }
  .lrow { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .lrow .thumb .ph { height: 84px; }
  .lrow h3 { font-size: 16.5px; }
  .lrow .lead { display: none; }
  .phead h1, .post h1 { font-size: 27px; }
  .post .body { font-size: 17px; }
  .sech h2 { font-size: 21px; }
  .chiprow { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .addform .chiprow { flex-wrap: wrap; overflow: visible; }
  .apphero h1 { font-size: 30px; }
  .store { flex: 1; min-width: 0; padding: 0 14px; }
  .store b { font-size: 16px; white-space: nowrap; }
  .btn.big { width: 100%; white-space: normal; text-align: center; }
  .foot .wrap { grid-template-columns: 1fr; }
  .mapbox iframe { height: 240px; }
}
[hidden] { display: none !important; }
.addform label.chip { display: inline-flex; flex-direction: row; gap: 0; font-size: 14px; }

/* =========== v1.1: przyjaźniejszy wygląd, zdjęcia, pogoda =========== */
:root { --radius: 18px; }
body { background: #FAFBFC; }
.masthead, .mainnav { background: #fff; }
.masthead .wrap { gap: 22px; }
.hsearch { max-width: 420px; }

/* pogoda w nagłówku */
.wxw { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 16px; background: linear-gradient(135deg, #FFF8E8, #EEF6FD); border: 1.5px solid #E6EDF3; flex: none; }
.wxw:hover { border-color: #C9D9E6; }
.wxw .wi { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.wxw .wt b { display: block; font-size: 26px; line-height: 1; font-weight: 800; }
.wxw .wt small { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.wxw .wl { display: flex; flex-direction: column; line-height: 1.2; padding-left: 10px; border-left: 1.5px solid #DDE6EE; }
.wxw .wl small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wxw .wl b { font-size: 14px; }
.wxw .wl i { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.wxw .wl em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #7A4E00; background: #FFE7A8; border-radius: 6px; padding: 1px 6px; margin-top: 2px; display: inline-flex; align-items: center; gap: 3px; }

/* menu + dodaj */
.navadd { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14.5px; white-space: nowrap; flex: none; }
.navadd:hover { background: var(--accentD); }

/* ilustracje zamiast zdjęć */
.ph.art { position: relative; overflow: hidden; }
.artsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.artban { height: 240px; position: relative; }

/* mozaika zdjęć */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 12px; padding-top: 22px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy); min-height: 0; }
.tile .ph { position: absolute; inset: 0; display: block; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .ph img { transform: scale(1.04); }
.tile .tov { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 16px 14px; display: flex; flex-direction: column; gap: 6px; color: #fff; background: linear-gradient(180deg, rgba(10,25,40,0) 0%, rgba(10,25,40,.72) 50%, rgba(10,25,40,.9) 100%); }
.tile b { font-size: 17px; line-height: 1.25; }
.tile:hover b { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.tile .tm { font-size: 12.5px; color: #D6E1EA; font-weight: 600; }
.tile.big { grid-row: 1 / 3; }
.tile.big b { font-size: 30px; line-height: 1.15; }
.tile.big .tov { padding: 90px 24px 22px; }
.tile.wide { grid-column: 2 / 4; }
.mosaic.n5 .tile.wide2 { display: none; }
.mosaic.n1 { grid-template-columns: 1fr; }
.mosaic.n2 { grid-template-columns: 2fr 1fr; }
.mosaic.n2 .tile.wide { grid-column: 2; grid-row: 1 / 3; }
.mosaic.n3 .tile.sm { grid-column: 2 / 4; }
.gminy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0 4px; }
.gminy span { font-weight: 800; font-size: 14px; color: var(--muted); margin-right: 4px; }
.gminy a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line2); font-size: 14px; font-weight: 700; }
.gminy a:hover { border-color: var(--accent); color: var(--accent); }

/* nagłówki sekcji z kolorem działu */
.sech { border-bottom: 0; padding-bottom: 0; }
.sech h2 { display: flex; align-items: center; gap: 10px; }
.sech h2::before { content: ''; width: 6px; height: 26px; border-radius: 4px; background: var(--accent); }
.sech.c-zdarzenie h2::before { background: #D23B2C; }
.sech.c-droga h2::before { background: #E3A600; }
.sech.c-impreza h2::before { background: #7A55C7; }
.sech.c-ogloszenie h2::before { background: #2A86C7; }
.sech.c-firma h2::before { background: var(--dark); }
.sech.c-atrakcja h2::before { background: #2F9D5E; }
.sech p { margin-left: 16px; }

/* karty */
.card { border-radius: var(--radius); box-shadow: 0 2px 10px rgba(15,27,42,.05); transition: transform .15s, box-shadow .15s; }
.card:hover { box-shadow: 0 10px 26px rgba(15,27,42,.1); transform: translateY(-2px); }
.card .cover { display: block; position: relative; }
.card .cover .ph { display: block; height: 180px; position: relative; overflow: hidden; }
.feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.feat > .card .cover .ph { height: 260px; }
.feat > .card h3 { font-size: 21px; }
.flist { display: flex; flex-direction: column; gap: 10px; }
.frow2 { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.frow2:hover { border-color: #BFD3E3; }
.frow2 .ph { display: block; height: 76px; border-radius: 10px; overflow: hidden; position: relative; }
.frow2 .ph img { width: 100%; height: 100%; object-fit: cover; }
.frow2 b { display: block; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.card.ev .date { position: absolute; left: 12px; top: 12px; box-shadow: 0 6px 14px rgba(0,0,0,.18); background: #fff; }
.card.ev .date.today { background: var(--red); }
.card.ev .cb { gap: 6px; }
.card.ev h3 { font-size: 16.5px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card.ad4 .cover .ph { height: 130px; }
.card.ad4 .cb { padding: 12px; gap: 5px; }
.card.ad4 h3 { font-size: 15px; }
.card.ad4 .price { font-size: 16px; color: var(--accent); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile.tall { height: 300px; }
.lrow { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.lrow:first-child { padding-top: 12px; }
.lrow .thumb .ph { position: relative; }
.firm, .box, .addbar { border-radius: var(--radius); }
.addbar { background: linear-gradient(135deg, #EEF5FB, #F7FAFC); }
.list { gap: 0; }
.card.place .cover .ph { height: 170px; }
.side { padding-top: 26px; }

@media (max-width: 1100px) {
  .wxw .wl { display: none; }
  .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 170px 170px; }
  .tile.big { grid-column: 1 / 3; grid-row: 1; }
  .tile.wide { grid-column: 1 / 3; }
  .mosaic.n5 { grid-template-rows: 260px 170px 170px; }
  .mosaic.n5 .tile.wide { grid-column: 1 / 3; grid-row: 2; }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .hsearch { display: none; }
}
@media (max-width: 680px) {
  .masthead .wrap { flex-wrap: wrap; }
  .wxw { order: 1; margin-left: auto; padding: 4px 10px 4px 4px; gap: 6px; }
  .wxw .wi { width: 36px; height: 36px; }
  .wxw .wi svg { width: 26px; height: 26px; }
  .wxw .wt b { font-size: 20px; }
  .hsearch { display: block; }
  .mainnav .wrap { align-items: center; }
  .burger { width: auto; flex: 1; }
  .navadd { height: 36px; padding: 0 12px; font-size: 14px; }
  .mosaic { grid-template-rows: 240px 150px 150px; gap: 8px; padding-top: 14px; }
  .mosaic.n5 { grid-template-rows: 240px 150px 150px; }
  .tile.big b { font-size: 21px; }
  .tile.big .tov { padding: 60px 16px 14px; }
  .tile b { font-size: 14.5px; }
  .tile .tov { padding: 36px 10px 10px; gap: 4px; }
  .tile .tov .tag { font-size: 11px; padding: 2px 8px; }
  .tile.sm .tm { display: none; }
  .gminy { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gminy a { white-space: nowrap; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card.ad4 .cover .ph { height: 110px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile.tall { height: 220px; }
  .feat > .card .cover .ph { height: 210px; }
  .frow2 { grid-template-columns: 96px minmax(0, 1fr); }
  .frow2 .ph { height: 68px; }
  .artban { height: 170px; }
}

/* =========== v1.1b: układ portalu (czołówka, na bieżąco) =========== */
.cover { display: block; }
.cover .ph { display: block; position: relative; overflow: hidden; border-radius: 16px; background: var(--tint); }
.cover .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cover:hover .ph img { transform: scale(1.03); }


.card .cover .ph { border-radius: 0; }

/* =========== v1.3: regulamin, RODO, stopka RxMED =========== */
.legal { padding-bottom: 30px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; scroll-margin-top: 70px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; line-height: 1.6; }
.legal ol ul { margin-top: 6px; }
.legalnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.legalnav a { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line2); font-weight: 700; font-size: 14px; text-decoration: none !important; color: var(--ink) !important; }
.legalnav a.on { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.toc { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 18px 0; }
.toc ol { columns: 2; column-gap: 28px; margin: 8px 0 0; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
mark.todo { background: #FFE58A; color: #5C3D00; padding: 1px 6px; border-radius: 5px; font-weight: 700; }
.ltable { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 14px; background: #fff; }
.ltable th, .ltable td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1.5px solid var(--line); }
.ltable th { background: var(--soft); }
.credit { background: #F3F6F9; padding: 18px 0; border-top: 1px solid var(--line); }
.credit .wrap { display: flex; justify-content: center; }
.cr { display: inline-flex; align-items: center; gap: 16px; color: var(--ink2); font-size: 14.5px; }
.cr img { width: 150px; height: auto; }
.cr b { color: var(--ink); }
.cr small { display: block; color: var(--accent); font-weight: 800; font-size: 14px; }
.cr:hover small { text-decoration: underline; }
@media (max-width: 680px) {
  .toc ol { columns: 1; }
  .ltable, .ltable tbody, .ltable tr, .ltable td { display: block; width: 100%; }
  .ltable thead { display: none; }
  .ltable tr { margin-bottom: 10px; }
  .ltable td:first-child { font-weight: 700; background: var(--soft); }
  .cr { flex-direction: column; text-align: center; gap: 8px; }
}

/* =========== v1.3: gdzie zjeść, opinie, ogłoszenia – praca =========== */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.firm .rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.firm .rating b { font-weight: 800; }
.firm .rating span:last-child { color: var(--muted); font-weight: 600; }
.firm .rating:hover span:last-child { color: var(--accent); text-decoration: underline; }
.chiprow.sub2 { align-items: center; margin-top: -4px; }
.chiprow.sub2 > span { font-weight: 800; font-size: 13.5px; color: var(--muted); margin-right: 2px; }
.sech.c-food h2::before { background: #E07A1F; }
.firmone .firm { padding: 22px; }
.firmone .firm h3 { font-size: 24px; }
.starpick { display: flex; gap: 2px; }
.starpick label { cursor: pointer; display: inline-flex; }
.starpick input { position: absolute; opacity: 0; pointer-events: none; }
.starpick svg path { fill: #E1E7ED; transition: fill .12s; }
.starpick label.on svg path { fill: #F2A900; }
.starpick label:has(input:focus-visible) { outline: 3px solid #7DB6E0; border-radius: 6px; }
.cm .row { gap: 8px; }
.cm .btn { margin-top: 8px; }
.mainnav .ni { padding: 0 13px; }
@media (max-width: 1240px) { .mainnav .ni { padding: 0 9px; font-size: 14.5px; } .navadd { padding: 0 12px; } }
