/* MeteoSerwis24.pl — motyw 2026
   Kolory: granat #102E4C, panel #123B5D, pomarańcz #EF7900, tło #F3F5F7
   Skala radaru (pasek pod menu): #9AD9F2 #3AA3E3 #1F6FD1 #2DB37A #F4D03F #F39C12 #E4572E #B5179E */

:root {
    --navy: #102E4C; --navy2: #123B5D; --navy3: #1B4468;
    --ink: #102B4A; --muted: #51606E; --soft: #36434F;
    --line: #D3DCE4; --line2: #E4E9EF; --bg: #F3F5F7; --card: #fff;
    --orange: #EF7900; --orange-t: #B35200; --orange-l: #FF9B42;
    --link: #075B9F; --onnavy: #CBDCE9;
    --r: 14px; --r-s: 8px;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); padding-bottom: 68px; }
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: #043E6E; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange-l); outline-offset: 2px; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1392px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------- Nagłówek ---------- */
.site-header { background: #fff; position: relative; z-index: 20; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 32px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand-name b { color: var(--orange); font-weight: 800; }
.brand-tag { font-size: 8px; font-weight: 600; letter-spacing: 0.3em; margin-top: 4px; color: var(--soft); }
.topbar-claim { display: none; border-left: 1px solid #B4C1CC; padding-left: 18px; font-size: 14px; color: var(--soft); white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.icon-btn:hover { background: var(--bg); }
.places-btn { display: none; align-items: center; gap: 6px; border: 0; background: none; color: var(--navy2); font-weight: 600; padding: 10px 4px; white-space: nowrap; }

.search { display: none; order: 5; flex: 1 1 100%; min-width: 0; max-width: 100%; position: relative; align-items: center; height: 48px; border: 1px solid #BCCAD7; border-radius: 10px; background: #fff; }
.is-search-open .search, .is-home .search { display: flex; }
.is-search-open .search-toggle, .is-home .search-toggle { display: none; }
.search-ico { margin-left: 12px; color: var(--muted); flex: none; }
.search-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 10px; font-size: 16px; }
.search-input::-webkit-search-cancel-button { display: none; }
.clear-button { flex: none; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.search-button { flex: none; height: 100%; border: 0; background: #123451; color: #fff; font-weight: 700; padding: 0 16px; border-radius: 0 9px 9px 0; }
.search-button:hover { background: var(--navy); }
.dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 46, 76, 0.16); max-height: 60vh; overflow: auto; z-index: 30; }
.dropdown-title { padding: 10px 14px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.search-list-item a, .fav-list-item a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line2); }
.search-list-item a:hover, .fav-list-item a:hover { background: var(--bg); }
.search-list-item { color: var(--soft); }
.search-list-item:not(:has(a)) { padding: 12px 14px; }
.fav-list-item { display: flex; align-items: center; }
.fav-list-item a { flex: 1; }
.fav-remove { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 20px; border-top: 1px solid var(--line2); }

.mainnav { background: var(--navy); }
.mainnav-in { display: flex; overflow-x: auto; scrollbar-width: none; padding-left: 8px; padding-right: 8px; }
.mainnav-in::-webkit-scrollbar { display: none; }
.mainnav a { flex: none; color: #fff; text-decoration: none; padding: 13px 14px; font-size: 15px; white-space: nowrap; }
.mainnav a:hover { background: var(--navy3); color: #fff; }
.mainnav a.active { background: var(--orange); color: var(--navy); font-weight: 700; }
.scale-strip { display: grid; grid-template-columns: repeat(8, 1fr); height: 4px; }
.scale-strip i:nth-child(1) { background: #9AD9F2; } .scale-strip i:nth-child(2) { background: #3AA3E3; }
.scale-strip i:nth-child(3) { background: #1F6FD1; } .scale-strip i:nth-child(4) { background: #2DB37A; }
.scale-strip i:nth-child(5) { background: #F4D03F; } .scale-strip i:nth-child(6) { background: #F39C12; }
.scale-strip i:nth-child(7) { background: #E4572E; } .scale-strip i:nth-child(8) { background: #B5179E; }

/* ---------- Typografia ---------- */
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kicker-light { color: var(--onnavy); }
.page-h1, .hero-h1, .city-h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; font-stretch: 88%; margin: 6px 0 10px; }
.page-h1 { font-size: 30px; }
.lead { font-size: 17px; color: var(--soft); margin: 0 0 18px; }
.h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 12px; font-stretch: 92%; }
.h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.more { display: inline-block; margin-top: 12px; font-weight: 700; padding: 6px 0; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: inherit; }
.crumbs-light { color: var(--onnavy); padding-top: 0; }

/* ---------- Przyciski, karty, chipy ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn-light { background: #E5EEF7; color: #15334F; margin-top: 16px; width: 100%; }
.btn-light:hover { background: #D6E4F2; color: #15334F; }
.btn-accent { background: var(--orange); color: var(--navy); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.chip:hover { border-color: var(--orange); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 84px; padding: 14px; border-radius: 12px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; }
.tile:hover { background: var(--navy3); color: #fff; }
.tile i { width: 28px; height: 6px; border-radius: 3px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }

/* ---------- Reklamy (rezerwacja miejsca = brak skakania treści) ---------- */
.ad { position: relative; min-height: 120px; margin: 0; padding-top: 18px; text-align: center; overflow: hidden; }
.ad-h { min-height: 118px; }              /* poziomy pasek: 100 px + podpis */
.ad-r { min-height: 298px; }              /* prostokąt / auto: 280 px + podpis */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }   /* brak reklamy = brak pustego miejsca */
.prose .ad { margin: 26px 0; }
.ad-under-map { padding-top: 14px; }
.ad-under-map .ad { max-width: 970px; margin: 0 auto; }
.ad-label { position: absolute; top: 0; left: 0; right: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #8A99A8; }
.ad ins { display: block; }

/* ---------- Strona główna ---------- */
.hero { background: var(--navy2); color: #fff; padding: 22px 0 26px; }
.hero-h1 { font-size: 32px; }
.hero-lead { margin: 0; color: var(--onnavy); max-width: 560px; }
.home-grid, .city-page, .city-day { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 28px; }
.home-grid > *, .city-page > *, .city-day > *, .page-grid > *, .city-cols > * { min-width: 0; }

/* ---------- Karta „teraz” ---------- */
.nowcard { background: var(--navy2); color: #fff; border-radius: var(--r); padding: 18px; }
.nowcard a:not(.btn) { color: #fff; }
.nowcard-head { display: flex; justify-content: space-between; gap: 12px; }
.nowcard-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--onnavy); }
.nowcard-city { margin: 2px 0 0; font-size: 24px; font-weight: 800; line-height: 1.1; }
.nowcard-city a { text-decoration: none; }
.nowcard-cond { font-size: 16px; margin-top: 2px; }
.nowcard-ico { width: 64px; height: 64px; filter: invert(1); flex: none; }
.nowcard-temp { display: flex; align-items: flex-end; gap: 14px; margin: 8px 0 14px; }
.nowcard-temp .mono { font-size: 72px; line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; }
.nowcard-sub { font-size: 14px; color: var(--onnavy); padding-bottom: 4px; }
.nowcard-sub b { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.stats div { background: var(--navy3); border-radius: 10px; padding: 10px 12px; }
.stats dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--onnavy); }
.stats dd { margin: 2px 0 0; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.stats dd .mono { font-size: 17px; font-weight: 600; }
.stats .stats-sub { font-size: 12px; color: var(--onnavy); margin: 0; }
.arrow { fill: var(--orange-l); flex: none; }

/* ---------- Karta radaru ---------- */
.radarcard { display: flex; flex-direction: column; background: var(--navy); color: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; }
.radarcard:hover { color: #fff; }
.radarcard:hover .btn-accent { background: var(--orange-l); }
.radarcard-map { display: block; width: 100%; height: 210px; object-fit: cover; }
.radarcard-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.radarcard-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-l); }
.radarcard-title { font-size: 20px; font-weight: 800; }
.radarcard-text { color: var(--onnavy); font-size: 14px; margin-bottom: 10px; }
.radarcard .btn { align-self: flex-start; }

/* ---------- Najbliższe godziny ---------- */
.hours-row { display: grid; grid-template-columns: repeat(8, minmax(40px, 1fr)); overflow-x: auto; text-align: center; }
.hour { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 2px; }
.hour img { width: 30px; height: 30px; }
.hour-t { font-size: 11px; color: var(--muted); }
.hour-temp { font-size: 16px; font-weight: 600; }
.hour-bar { width: 14px; height: 46px; border-radius: 4px; background: var(--bg); display: flex; align-items: flex-end; overflow: hidden; }
.hour-bar i { display: block; width: 100%; background: #3AA3E3; border-radius: 4px; }
.hour-mm { font-size: 11px; color: #1F6FD1; }
.hour-pop { font-size: 11px; color: var(--muted); }

/* ---------- Prognoza dzienna ---------- */
.rows { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.day { display: grid; grid-template-columns: 98px 32px minmax(0, 1fr) 32px 30px; align-items: center; gap: 6px; min-height: 60px; padding: 6px 12px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line2); }
.day:first-child, .row-h:first-child { border-top: 0; }
.day:hover { background: var(--bg); color: var(--ink); }
.day-n { display: flex; flex-direction: column; line-height: 1.2; }
.day-n b { font-size: 14px; }
.day-n span { font-size: 12px; color: var(--muted); }
.day img { width: 34px; height: 34px; }
.day-c { font-size: 12px; color: var(--soft); line-height: 1.3; }
.day-c em { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; color: #1F6FD1; }
.day-min { text-align: right; color: var(--muted); }
.day-max { font-weight: 600; }
.day-range { display: none; height: 6px; border-radius: 3px; background: var(--line2); position: relative; }
.day-range i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #3AA3E3, #F39C12); }
.row-h { display: grid; grid-template-columns: 52px 34px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line2); }
.row-h img { width: 32px; height: 32px; }
.row-h-c { font-size: 14px; }
.row-h-temp { font-weight: 600; text-align: right; }
.row-h-x { grid-column: 3 / -1; font-size: 12px; color: var(--muted); margin-top: -6px; }

/* ---------- Strona miejscowości ---------- */
.cityhero { background: var(--navy2); color: #fff; padding: 14px 0 18px; }
.cityhero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.city-h1 { font-size: 34px; margin: 4px 0 4px; }
.city-date { font-size: 14px; color: var(--onnavy); }
.fav-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #3F6385; background: transparent; color: #fff; font-size: 14px; }
.fav-btn svg { fill: none; stroke: var(--orange-l); stroke-width: 2; stroke-linejoin: round; }
.fav-btn.is-on svg { fill: var(--orange); stroke: var(--orange); }
.fav-btn span { display: none; }
.about p { margin: 0; color: var(--soft); }
.latest .chip { min-height: 36px; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 20px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 24px; }
.faq details p { margin: 0 0 14px; color: var(--soft); }
.faq.card details:last-of-type { border-bottom: 0; }

/* ---------- Strony z mapą ---------- */
.maphero { background: var(--navy); }
.maptabs { border-bottom: 1px solid #23476B; }
.maptabs-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; max-width: 1392px; margin: 0 auto; }
.maptabs-in::-webkit-scrollbar { display: none; }
.maptabs a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid #3F6385; color: #DCE6EF; font-size: 14px; text-decoration: none; }
.maptabs a:hover { border-color: #fff; color: #fff; }
.maptabs a.active { background: var(--orange); border-color: var(--orange); color: var(--navy); font-weight: 700; }
.mapframe { position: relative; height: clamp(380px, calc(100svh - 250px), 640px); background: #163E52; }
.mapframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mapframe-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--onnavy); padding: 20px; text-align: center; }
.mapbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; max-width: 1392px; margin: 0 auto; padding: 10px 16px 12px; color: var(--onnavy); font-size: 12px; }
.mapbar a { color: #fff; }
.legend { display: flex; flex-direction: column; gap: 3px; width: 220px; }
.legend-bar { height: 6px; border-radius: 3px; }
.legend-rain { background: linear-gradient(90deg, #9AD9F2, #3AA3E3, #1F6FD1, #2DB37A, #F4D03F, #F39C12, #E4572E, #B5179E); }
.legend-wind { background: linear-gradient(90deg, #9AD9F2, #3AA3E3, #2DB37A, #F4D03F, #F39C12, #E4572E, #B5179E); }
.legend-lab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; }
.page-grid { display: grid; gap: 24px; padding-top: 4px; padding-bottom: 32px; }
.page-main > * + * { margin-top: 20px; }
.page-main > .kicker { margin-top: 14px; }
.page-main > .page-h1 { margin-top: 6px; }
.page-main > .lead { margin-top: 0; }
.page-side { display: flex; flex-direction: column; gap: 22px; }
.page-plain { padding-top: 4px; padding-bottom: 40px; max-width: 860px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 0; border-bottom: 1px solid var(--line2); }
.table .num { text-align: right; font-family: var(--mono); }

/* ---------- Artykuł z bazy ---------- */
.prose { font-size: 17px; line-height: 1.7; color: #22384F; overflow-wrap: anywhere; }
.prose h2 { font-size: 23px; line-height: 1.2; font-weight: 800; margin: 32px 0 10px; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 24px 0 8px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose img { height: auto; border-radius: 12px; display: block; margin: 18px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose iframe { width: 100%; min-height: 420px; border: 0; border-radius: 12px; }
.prose .row, .prose .feature-content { display: block; }
.prose .four.columns { display: inline-block; vertical-align: top; width: 49%; }

/* ---------- Dolny pasek (telefon) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: none; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .active { color: var(--orange-t); font-weight: 700; }

/* ---------- Tablet / komputer ---------- */
@media (min-width: 640px) {
    .day { grid-template-columns: 104px 36px minmax(0, 1fr) 34px 96px 34px; }
    .day-range { display: block; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fav-btn span { display: inline; }
}
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .ad-h { min-height: 108px; }
    .tabbar { display: none; }
    .wrap { padding-left: 24px; padding-right: 24px; }
    .topbar { flex-wrap: nowrap; min-height: 80px; gap: 20px; }
    .brand { margin-right: 0; }
    .brand-mark { width: 58px; height: 42px; }
    .brand-name { font-size: 27px; }
    .brand-tag { font-size: 9px; }
    .search { display: flex; order: 0; flex: 0 1 380px; margin-left: auto; height: 46px; }
    .search-toggle { display: none; }
    .places-btn { display: inline-flex; }
    .mainnav-in { padding-left: 24px; padding-right: 24px; }
    .mainnav a { padding: 15px 18px; }
    .hero { padding: 30px 0 34px; }
    .hero-h1 { font-size: 44px; }
    .page-h1 { font-size: 38px; }
    .city-h1 { font-size: 44px; }
    .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; padding-top: 24px; }
    .home-grid > * { grid-column: 1 / -1; }
    .home-grid > .nowcard { grid-column: 1; grid-row: 1; }
    .home-grid > .days { grid-column: 1; grid-row: 2; }
    .home-grid > .radarcard { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
    .home-grid > .radarcard .radarcard-mapwrap { flex: 1; display: flex; align-items: center; }
    .home-grid .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tiles-big { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
    .page-side { position: sticky; top: 16px; align-self: start; padding-top: 20px; }
    .page-side .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mapframe { height: 640px; }
}
@media (min-width: 1150px) {
    .topbar-claim { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Rozbudowa (grudzień 2026): strony statyczne, miejscowość, stopka
   ========================================================= */

/* ---------- Nagłówek podstron statycznych ---------- */
.pagehero { background: var(--navy2); color: #fff; padding: 14px 0 22px; }
.page-h1-light { color: #fff; margin-bottom: 0; }
.page-static { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; padding-bottom: 40px; }
.page-wide { display: flex; flex-direction: column; gap: 20px; padding-bottom: 36px; }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line2); }
.kv div:first-child { border-top: 0; }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv-row div { display: block; border-top: 0; padding: 0; }
.kv-row dd { font-size: 16px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 16px; }
.contact-main { background: var(--navy); color: #fff; border-radius: var(--r); padding: 24px; }
.contact-main p { color: var(--onnavy); margin: 0 0 16px; }
.contact-h { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 10px; }
.contact-h-dark { color: var(--ink); font-size: 30px; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 18px; padding: 14px 18px; border-radius: 12px; text-decoration: none; margin-bottom: 16px; overflow-wrap: anywhere; }
.contact-mail:hover { background: var(--orange-l); color: var(--navy); }
.contact-note { font-size: 14px; }
.topic-grid { display: grid; gap: 12px; }
.topic { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.topic h3 { font-size: 17px; margin: 10px 0 6px; line-height: 1.25; }
.topic p { margin: 0; color: var(--soft); font-size: 15px; }
.topic-ico { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; background: #FFF0DB; align-items: center; justify-content: center; }
.topic-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--orange-t); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reklama ---------- */
.ad-intro { display: grid; gap: 16px; }
.ad-intro-main .lead { margin-bottom: 18px; }
.ad-why { background: var(--navy2); color: #fff; border-radius: var(--r); padding: 22px; }
.ad-why .h3 { color: #fff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--onnavy); }
.ticks li b { color: #fff; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--orange-l); border-bottom: 2.5px solid var(--orange-l); transform: rotate(-45deg); }
.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.season { border-radius: var(--r); padding: 16px; color: var(--ink); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.season::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 5px; }
.season b { display: block; font-size: 18px; }
.season span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.season p { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
.season-spring::before { background: #2DB37A; } .season-summer::before { background: #F39C12; }
.season-autumn::before { background: #E4572E; } .season-winter::before { background: #9AD9F2; }
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; }
.steps li::before { content: counter(st); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { font-size: 17px; }
.steps span { color: var(--soft); }

/* ---------- Polityka prywatności ---------- */
.policy { display: grid; gap: 20px; }
.policy-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: 15px; }
.policy-toc-h { font-weight: 800; margin-bottom: 6px; }
.policy-toc ol { margin: 0; padding-left: 20px; }
.policy-toc li { padding: 3px 0; }
.policy-date { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.policy-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.policy-body h2 { scroll-margin-top: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .table { font-size: 15px; line-height: 1.45; }

/* ---------- Mapa strony ---------- */
.sitemap-top { display: grid; gap: 16px; }
.tiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-top: 1px solid var(--line2); }
.linklist li:first-child { border-top: 0; }
.linklist a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
.az-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.az-index a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.az-index a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.az-groups { columns: 2 170px; column-gap: 24px; }
.az-group { break-inside: avoid; margin-bottom: 18px; scroll-margin-top: 70px; }
.az-letter { font-family: var(--mono); font-size: 20px; color: var(--orange-t); margin: 0 0 4px; border-bottom: 2px solid var(--orange); display: inline-block; padding-right: 10px; }
.az-group ul { list-style: none; margin: 0; padding: 0; }
.az-group li { padding: 2px 0; }
.az-group a { text-decoration: none; }
.az-group a:hover { text-decoration: underline; }

/* ---------- Strona miejscowości ---------- */
.city-summary { margin: 12px 0 0; max-width: 900px; color: #E5EEF7; font-size: 16px; line-height: 1.55; border-left: 3px solid var(--orange); padding-left: 12px; }
.city-cols { display: grid; gap: 16px; }
.city-main, .city-side { display: flex; flex-direction: column; gap: 16px; }
.tchart-svg { display: block; width: 100%; min-width: 640px; height: auto; overflow: visible; font-family: var(--sans); }
.suncard .sun-arc svg { display: block; width: 100%; max-width: 260px; margin: 4px auto 10px; }
.nearlist { list-style: none; margin: 0; padding: 0; }
.nearlist li { border-top: 1px solid var(--line2); }
.nearlist li:first-child { border-top: 0; }
.nearlist a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.nearlist a span:first-child { font-weight: 600; }
.nearlist a:hover span:first-child { color: var(--link); text-decoration: underline; }
.nearlist .mono { color: var(--muted); font-size: 13px; }
.table-hours { min-width: 760px; margin-top: 4px; }
.table-hours td, .table-hours th { padding: 9px 8px; white-space: nowrap; }
.table-hours th:first-child, .table-hours td:first-child { padding-left: 0; }
.table-hours tbody tr:hover { background: var(--bg); }
.tcond { display: inline-flex; align-items: center; gap: 6px; white-space: normal; min-width: 150px; }
.tcond img { width: 24px; height: 24px; }
.tday { display: block; font-size: 11px; color: var(--orange-t); }
.about-cols { display: grid; gap: 12px; }
.about-cols p { margin: 0; color: var(--soft); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy); color: var(--onnavy); margin-top: 8px; font-size: 15px; }
.proverb { background: var(--navy2); border-bottom: 1px solid #23476B; }
.proverb-in { display: flex; align-items: center; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
.proverb-ico { flex: none; color: var(--orange-l); }
.proverb-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-l); }
.proverb p { margin: 2px 0 0; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.35; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-top: 30px; padding-bottom: 28px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin: 12px 0 14px; max-width: 420px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-tag { color: var(--onnavy); }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; padding: 8px 12px; border: 1px solid #3F6385; border-radius: 10px; }
.footer-mail:hover { border-color: var(--orange-l); color: #fff; }
.footer-h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.footer-h-2 { margin-top: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #DCE6EF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cities { grid-column: 1 / -1; }
.footer-cities ul { columns: 2; column-gap: 16px; }
.site-footer li { overflow-wrap: anywhere; }
.footer-more { display: inline-block; margin-top: 10px; color: var(--orange-l) !important; font-weight: 700; }
.footer-sources { margin: 0; font-size: 13px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #23476B; }
.footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 16px; font-size: 13px; color: #8EA1B3; }
.totop { color: var(--onnavy) !important; }

@media (min-width: 640px) {
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .season-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tiles-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-cities { grid-column: auto; }
    .footer-cities ul { columns: 1; }
    .about-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .az-groups { columns: 4 170px; }
}
@media (min-width: 900px) {
    .page-static { padding-top: 32px; gap: 36px; }
    .contact-main { padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
    .contact-main .contact-mail { font-size: 22px; padding: 18px 24px; }
    .contact-h { font-size: 32px; }
    .contact-h-dark { font-size: 38px; }
    .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .ad-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
    .policy { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
    .policy-toc { position: sticky; top: 16px; }
    .policy-body { padding: 32px 40px; }
    .sitemap-top { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
    .az-groups { columns: 6 170px; }
    .city-page, .city-day { padding-top: 24px; gap: 20px; }
    .city-now .nowcard { display: grid; grid-template-columns: minmax(260px, auto) minmax(0, 1fr); gap: 0 32px; align-items: center; padding: 22px 26px; }
    .city-now .nowcard-head { grid-column: 1; }
    .city-now .nowcard-temp { grid-column: 1; margin-bottom: 0; }
    .city-now .stats { grid-column: 2; grid-row: 1 / span 2; }
    .city-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
    .city-day { max-width: none; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 32px; padding-top: 40px; }
    .footer-brand { grid-column: auto; }
    .footer-cities ul { columns: 2; }
}
@media (min-width: 1200px) {
    .city-cols { grid-template-columns: minmax(0, 1fr) 380px; }
}

/* ---------- Mapka Polski z pogodą (home/live.php) ---------- */
.mapbox { container-type: inline-size; }
.plmap { display: block; width: 100%; height: auto; font-family: var(--sans); }
.pm-bg { fill: #1A4253; }
.pm-sea { fill: #0F2F40; }
.pm-land { fill: #24555E; stroke: #E9F1F5; stroke-width: 1.3; stroke-linejoin: round; }
.pm-name { fill: #fff; font-size: 9.5px; font-weight: 600; paint-order: stroke; stroke: #0E2A3A; stroke-width: 2.6px; stroke-linejoin: round; }
.pm-t { font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.pm-val { fill: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: #0E2A3A; stroke-width: 2.6px; }
.pm-dim { fill: #CBDCE9; }
.pm-ring { fill: #0F2F40; stroke: #DCE6EF; stroke-width: 1.4; }
@container (max-width: 430px) { .pm-opt { display: none; } }
.pm-mk { transform-box: view-box; }
@container (min-width: 520px) { .pm-mk { scale: .64; } }
.radarcard-mapwrap { position: relative; display: block; background: #1A4253; }
.radarcard-mapwrap:hover .pm-land { fill: #2A6169; }
.radarcard-time { position: absolute; left: 10px; top: 10px; background: rgba(16, 46, 76, .9); color: #fff; font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; }
.radarcard-title { font-size: 20px; font-weight: 800; margin: 2px 0 4px; line-height: 1.2; }
.radarcard-text { color: var(--onnavy); font-size: 14px; margin: 0 0 12px; }
.radarcard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-ghost { border: 1px solid #3F6385; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.radarcard { color: #fff; }
.radarcard a.btn-accent:hover { background: var(--orange-l); color: var(--navy); }

/* ---------- Strony radarów: nagłówek, dane z miast ---------- */
.maphead { padding: 4px 0 8px; }
.maphead-grid { display: grid; gap: 14px; }
.maphead .page-h1 { margin-top: 4px; }
.maphead .lead { margin-bottom: 0; }
.statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.statrow div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.statrow dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.statrow dd { margin: 4px 0 0; font-weight: 800; font-size: 16px; line-height: 1.25; }
.livebox { display: grid; gap: 16px; padding-top: 12px; padding-bottom: 16px; }
.livebox > *, .maphead-grid > * { min-width: 0; }
.livebox-map { background: #1A4253; border-radius: var(--r); overflow: hidden; color: #fff; }
.livebox-h { margin: 0; padding: 14px 16px 0; color: #fff; }
.livebox-time { font-size: 12px; font-weight: 500; color: var(--orange-l); margin-left: 6px; }
.livebox-table { padding: 8px 18px 14px; }
.table-live { margin-top: 0; }
.table-live td, .table-live th { padding: 9px 6px; }
.table-live td:first-child, .table-live th:first-child { padding-left: 0; }
.table-live td a { font-weight: 700; text-decoration: none; }
.table-live td a:hover { text-decoration: underline; }
.table-live tr.hl td { background: #EAF4FB; }
.table-live tr.hl td:first-child { box-shadow: inset 3px 0 0 #3AA3E3; padding-left: 8px; }
.dir { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dir-ico { fill: var(--orange); flex: none; }
.tag-storm { display: inline-block; background: #FFF0DB; color: #8E3C10; font-size: 12px; padding: 1px 7px; border-radius: 6px; margin-right: 4px; }
.cbar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line2); margin-right: 8px; vertical-align: middle; position: relative; overflow: hidden; }
.cbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #A9B6C1; }
.prose.card { padding: 22px; }
@media (max-width: 520px) {
    .statrow { grid-template-columns: 1fr; }
    .statrow div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
    .statrow dd { margin: 0; text-align: right; font-size: 15px; }
}
@media (min-width: 900px) {
    .maphead { padding: 6px 0 10px; }
    .maphead-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
    .livebox { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
    .livebox-table { max-height: 620px; overflow: auto; }
    .prose.card { padding: 30px 36px; }
}
