/* kawiarniakolobrzeg.pl – arkusz stylów */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f4f2;
  --card: #ffffff;
  --text: #14110f;
  --muted: #6d6660;
  --line: #e7e2dd;
  --accent: #0e7a4e;
  --accent-soft: #e6f3ec;
  --gold: #d9a520;
  --crema: #f1dcb6;
  --crema-strong: #e9c98f;
  --paper-warm: #faf7f2;
  --silver: #9aa3ad;
  --bronze: #b8743d;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 17, 15, .05), 0 4px 16px rgba(20, 17, 15, .05);
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --bg-soft: #1b1a18; --card: #1c1b19; --text: #f2eeea; --muted: #a39c95;
    --line: #2e2b28; --accent: #3fbf85; --accent-soft: #173427; --shadow: none; color-scheme: dark;
    --crema: rgba(233, 201, 143, .26); --crema-strong: rgba(233, 201, 143, .42); --paper-warm: #221f1c;
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --bg-soft: #1b1a18; --card: #1c1b19; --text: #f2eeea; --muted: #a39c95;
  --line: #2e2b28; --accent: #3fbf85; --accent-soft: #173427; --shadow: none; color-scheme: dark;
    --crema: rgba(233, 201, 143, .26); --crema-strong: rgba(233, 201, 143, .42); --paper-warm: #221f1c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); max-width: 680px; }
.link { color: var(--accent); font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.h-sm { font-size: 18px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 30px; height: 30px; color: var(--text); flex: none; }
.logo-text { font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.logo-text .thin { font-weight: 400; color: var(--muted); letter-spacing: -.02em; }
.logo-text .tld { font-weight: 800; }
.logo:hover .logo-text .thin { color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.main-nav a {
  padding: 6px 3px; color: var(--muted);
  background-image: linear-gradient(var(--crema), var(--crema));
  background-repeat: no-repeat; background-position: 0 82%; background-size: 0 40%;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1), color .2s;
}
.main-nav a:hover { color: var(--text); background-size: 100% 40%; }
.main-nav a.is-active { color: var(--text); font-weight: 650; background-image: linear-gradient(var(--crema-strong), var(--crema-strong)); background-size: 100% 40%; }
.nav-search input { width: 170px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--line); position: relative; cursor: pointer; padding: 0; }
.theme-toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s; }
:root[data-theme="dark"] .theme-toggle span { transform: translateX(18px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle span { transform: translateX(18px); } }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- partnerzy ---------- */
.partners { display: flex; align-items: center; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); overflow: hidden; height: 58px; }
.partners-label { flex: none; padding: 0 16px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; }
.partners-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partners-row { display: flex; gap: 48px; align-items: center; width: max-content; animation: marquee 30s linear infinite; padding-left: 24px; }
.partners-row img { height: 30px; width: auto; filter: grayscale(1); opacity: .7; }
.partners-row a:hover img { filter: none; opacity: 1; }
.partners-row span { font-weight: 800; color: var(--muted); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partners-row { animation: none; } }

/* ---------- przyciski / chipy ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--card); }
.chip small { color: var(--muted); font-size: 11px; }
.chip { transition: border-color .2s, background .2s, transform .2s; }
.chip:hover { border-color: var(--text); background: var(--paper-warm); transform: translateY(-1px); }
.chip.is-active { border-color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tags-sm .tag { font-size: 11px; padding: 2px 8px; }

/* ---------- sekcje ---------- */
.section { margin-top: 64px; }
.section-tight { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.page-head { padding-top: 32px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 28px; align-items: stretch; }
.hero { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.hero h1 { margin-top: 6px; }
.podium { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; }
.podium-1 { order: 2; } .podium-2 { order: 1; } .podium-3 { order: 3; }
.podium-item a { display: block; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s; }
.podium-item a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(21, 21, 26, .12); }
.podium-img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.podium-item a:hover .podium-img img { transform: scale(1.05); }
.podium-item a:hover .podium-body strong { background-size: 100% 36%; }
.podium-body strong {
  background-image: linear-gradient(var(--crema), var(--crema));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0 36%;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1);
}
.podium-img { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #cfe7da, #f2e3cf); }
.podium-1 .podium-img { aspect-ratio: 1/1; }
.podium-img img { width: 100%; height: 100%; object-fit: cover; }
.medal { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.podium-2 .medal { background: var(--silver); } .podium-3 .medal { background: var(--bronze); }
.podium-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.podium-body strong { font-size: 15px; line-height: 1.3; }
.podium-score { font-size: 13px; color: var(--muted); } .podium-score b { font-size: 20px; color: var(--text); }

.side-title { font-size: 20px; margin-bottom: 14px; }
.side { display: flex; flex-direction: column; gap: 10px; }
.mini-cafe {
  display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); position: relative;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .25s, border-color .25s;
}
.mini-cafe:hover { border-color: var(--line); background: var(--paper-warm); transform: translateX(3px); }
.mini-cafe strong {
  background-image: linear-gradient(var(--crema), var(--crema));
  background-repeat: no-repeat; background-position: 0 90%; background-size: 0 38%;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1);
}
.mini-cafe:hover strong { background-size: 100% 38%; }
.mini-cafe:hover .mini-thumb { box-shadow: 0 8px 20px -8px rgba(21, 17, 15, .45); }
.mini-thumb { transition: box-shadow .3s; }
.mini-cta {
  margin-left: auto; align-self: center; font-size: 12px; font-weight: 700; color: var(--accent);
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; white-space: nowrap;
}
.mini-cafe:hover .mini-cta { opacity: 1; transform: translateX(0); }
.mini-cafe strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.mini-cafe small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.mini-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-add { border-style: dashed; border-color: var(--accent); background: var(--accent-soft); }
.mini-add .mini-thumb { background: var(--accent); color: #fff; font-size: 22px; }
.mini-add strong { color: var(--accent); }

/* ---------- ranking ---------- */
.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 56px 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .15s; }
.rank-row:hover { border-color: var(--text); }
.rank-pos { font-size: 22px; font-weight: 800; text-align: center; color: var(--muted); }
.is-top-1 .rank-pos { color: var(--gold); } .is-top-2 .rank-pos { color: var(--silver); } .is-top-3 .rank-pos { color: var(--bronze); }
.rank-thumb { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #cfe7da, #f2e3cf); display: grid; place-items: center; font-weight: 800; color: var(--accent); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-name {
  font-weight: 700; font-size: 17px;
  background-image: linear-gradient(var(--crema), var(--crema));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 0 38%;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1);
}
.rank-row:hover .rank-name, .rank-name:hover { background-size: 100% 38%; }
.rank-row:hover .rank-thumb img { transform: scale(1.05); }
.rank-thumb img { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.rank-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.rank-scores { text-align: right; }
.score-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.score-big small { font-size: 14px; color: var(--muted); font-weight: 600; }
.score-sub { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); margin-top: 4px; }
.score-sub b { color: var(--text); }
.status { font-size: 12px; font-weight: 700; }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: currentColor; }
.status.is-open { color: var(--accent); } .status.is-closed { color: var(--danger); }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 14px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: var(--muted); gap: 4px; }
.filters select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); min-width: 150px; }
.filters .check { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--text); padding-bottom: 9px; }
.note { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.note h2 { font-size: 20px; }

/* ---------- karty kawiarni ---------- */
.cafe-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); transition: transform .15s, box-shadow .15s; }
.cafe-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 10px 28px rgba(21, 21, 26, .1); }
.cafe-card-img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cafe-card:hover .cafe-card-img img { transform: scale(1.05); }
.cafe-card:hover .avatar { transform: scale(1.08) rotate(-3deg); }
.avatar { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.cafe-card-cta { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.cafe-card:hover .cafe-card-cta { transform: translateX(4px); }
.cafe-card h3 {
  background-image: linear-gradient(var(--crema), var(--crema));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0 36%;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1);
}
.cafe-card:hover h3 { background-size: 100% 36%; }
.cafe-card-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 12px 10px; min-height: 76px; }
.cafe-card-head h3 { font-size: 15px; margin: 2px 0 0; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cafe-card-img { position: relative; aspect-ratio: 4/3.2; background: linear-gradient(135deg, #cfe7da, #f2e3cf); }
.cafe-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cafe-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.6)); }
.pills { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 1; }
.pill { background: #fff; color: #14110f; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.pill small { color: #6d6660; }
.pill-rank { background: #14110f; color: #fff; }
.star { color: var(--gold); font-style: normal; }
.cafe-card-cta { position: absolute; bottom: 10px; left: 12px; color: #fff; font-size: 13px; font-weight: 700; z-index: 1; }

/* ---------- karty wpisów ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card-img { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e9dcc9, #cfe7da); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card h3 { margin: 4px 0 6px; font-size: 16px; line-height: 1.35; }
.post-card h3 {
  display: inline; background-image: linear-gradient(var(--crema), var(--crema));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0 36%;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1);
}
.post-card:hover h3 { background-size: 100% 36%; }
.post-card p { font-size: 14px; margin-bottom: 6px; }

/* ---------- mapa ---------- */
.map { height: 380px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg-soft); z-index: 0; }
.map-lg { height: 480px; }
.map-pin { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #0e7a4e; }
.map-pin img { width: 100%; height: 100%; object-fit: cover; }
.map-pin.is-top { border-color: var(--gold); }
.leaflet-popup-content { font-family: Manrope, sans-serif; margin: 12px 14px; }
.leaflet-popup-content a { color: #0e7a4e; font-weight: 700; }
:root[data-theme="dark"] .leaflet-tile { filter: brightness(.7) invert(1) contrast(.9) hue-rotate(200deg) saturate(.3); }

/* ---------- profil kawiarni ---------- */
.cafe-page { padding-top: 28px; }
.cafe-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.rank-badge span { font-weight: 800; font-size: 15px; }
.rank-badge small { color: var(--muted); }
.cafe-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg, #cfe7da, #f2e3cf); display: grid; place-items: center; font-size: 64px; font-weight: 800; color: var(--accent); }
.cafe-cover img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 20px 0; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.links-row { display: flex; flex-wrap: wrap; gap: 16px; }
.cafe-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; }
.bars b { text-align: right; }
.bar { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.verdict { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-style: italic; }
.vote { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; }
.vote-stars { display: flex; gap: 2px; }
.vote-stars button { font-size: 32px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--line); padding: 0 2px; transition: transform .1s, color .1s; }
.vote-stars button.is-on { color: var(--gold); }
.vote-stars button:hover { transform: scale(1.12); }
.rank-summary { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours th { text-align: left; font-weight: 500; color: var(--muted); padding: 5px 0; }
.hours td { text-align: right; font-weight: 600; }
.hours .is-today th, .hours .is-today td { color: var(--accent); font-weight: 800; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* ---------- artykuł ---------- */
.article { max-width: 780px; padding-top: 28px; }
.article-head h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 6px; }
.article-cover { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.prose { font-size: 17px; }
.prose h2 { margin-top: 1.6em; font-size: 24px; }
.prose h3 { margin-top: 1.4em; font-size: 19px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose img { border-radius: 10px; margin: 1em 0; height: auto; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.cafe-info .prose { font-size: 16px; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; background: var(--accent-soft); border-radius: var(--radius); }
.cta-box h2 { font-size: 22px; }
.cta-box p { margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.pager a.is-active, .pager a:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ---------- formularze ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .search-big input {
  font: inherit; font-size: 15px; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%;
}
.form input:focus, .form textarea:focus, .search-big input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.form .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.form .check input { margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-ok { background: var(--accent-soft); color: var(--accent); }
.alert-err { background: #fdecea; color: var(--danger); }
.search-big { display: flex; gap: 10px; max-width: 640px; }
.big-404 { font-size: 110px; font-weight: 800; letter-spacing: -.05em; color: var(--accent); line-height: 1; }

/* ---------- stopka ---------- */
.site-footer { margin-top: 90px; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-grid > div > a:not(.logo):not(.link):not(.footer-weather) { display: block; padding: 3px 0; }
.footer-grid > div > a:hover { color: var(--accent); }
.footer-grid .logo { margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- responsywność ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cafe-cols { grid-template-columns: 1fr 1fr; }
  .nav-search { display: none; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cafe-top { grid-template-columns: 1fr; }
  .cafe-media { order: -1; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-search { display: block; margin-top: 12px; }
  .main-nav .nav-search input { width: 100%; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 20px; }
  .podium { grid-template-columns: 1fr; }
  .podium-1, .podium-2, .podium-3 { order: 0; }
  .podium-1 .podium-img, .podium-img { aspect-ratio: 16/9; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rank-row { grid-template-columns: 36px 60px minmax(0, 1fr); gap: 10px; }
  .rank-thumb { width: 60px; height: 50px; }
  .rank-pos { font-size: 17px; }
  .rank-scores { grid-column: 2 / -1; text-align: left; display: flex; align-items: center; gap: 14px; }
  .score-big { font-size: 24px; }
  .score-sub { flex-direction: row; gap: 12px; margin: 0; }
  .cafe-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .partners-label { display: none; }
  .filters select { min-width: 0; width: 100%; }
  .filters label { flex: 1 1 45%; }
  .section { margin-top: 48px; }
  .bars li { grid-template-columns: 100px 1fr 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cafe-card, .cafe-card-img img, .post-card-img img, .podium-item a, .podium-img img,
  .mini-cafe, .mini-cta, .rank-thumb img, .chip, .avatar, .cafe-card-cta { transition: none; }
  .cafe-card:hover, .podium-item a:hover, .mini-cafe:hover, .chip:hover,
  .cafe-card:hover .cafe-card-img img, .cafe-card:hover .avatar,
  .podium-item a:hover .podium-img img, .rank-row:hover .rank-thumb img { transform: none; }
}

/* kawiarnie bez oceny redakcji */
.score-none { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.25; text-transform: uppercase; letter-spacing: .04em; text-align: right; }
.rank-pos.is-muted { color: var(--line); }
.ranking-soon { margin: 22px 0 4px; padding: 14px 16px; border-radius: 10px; background: var(--crema); color: #4a3a18; font-size: 15px; }
:root[data-theme="dark"] .ranking-soon { color: var(--text); }
.rank-badge-soft { background: var(--bg-soft); color: var(--text); }
.rank-badge-soft small { font-weight: 500; color: var(--muted); }

/* zdjecia z Google */
.photo-credit { font-size: 11px; color: var(--muted); margin: 6px 2px 0; text-align: right; }
.gal-g { margin: 0; position: relative; }
.gal-g img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.gal-g figcaption { font-size: 10px; color: var(--muted); margin-top: 4px; }
.desc-source { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* autorzy, tagi, FAQ, plakietki */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.byline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.byline-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.byline a:hover { color: var(--accent); }
.label-sponsor { background: var(--crema); color: #4a3a18; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.article-tags { margin: 28px 0; }
.faq { margin: 36px 0; }
/* FAQ jako osobna sekcja strony (listy kawiarni, ranking): margines nie może zjeść wyśrodkowania .wrap */
.wrap.faq { margin-left: auto; margin-right: auto; }
.faq h2 { font-size: 22px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.author-box, .review-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin: 28px 0; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box { justify-content: flex-start; }
.author-box p { margin: 4px 0 0; font-size: 14px; }
.review-box strong { display: block; font-size: 17px; margin: 2px 0; }
.review-box:hover { border-color: var(--text); }
.badges { display: flex; gap: 8px; margin: -4px 0 10px; }
.badge-ok { background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-new { background: var(--crema); color: #4a3a18; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-new.sm { font-size: 10px; padding: 1px 7px; }
.tick { color: var(--accent); }
.author-page-head { display: flex; gap: 20px; align-items: center; }
.author-page-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* ---------- pinezka numer jeden ---------- */
.map-pin { position: relative; }
.map-pin.is-first {
  width: 58px; height: 58px; border-width: 4px; border-color: #f0c75a;
  overflow: visible;                      /* bez tego złoty pierścień byłby przycięty */
  box-shadow: 0 0 0 3px rgba(217, 165, 32, .45), 0 6px 18px rgba(21, 17, 15, .4);
  animation: blask 2.6s ease-in-out infinite;
}
.map-pin.is-first img { border-radius: 50%; }
@keyframes blask {
  50% { box-shadow: 0 0 0 7px rgba(217, 165, 32, .22), 0 8px 24px rgba(21, 17, 15, .45); }
}
.map-pin.is-first::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, #b8860b, #f7e08a, #d9a520, #fff4c9, #d9a520, #b8860b);
  animation: zloto 5s linear infinite;
  inset: -7px;
}
.map-pin.is-first .crown {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(140deg, #f7e08a, #d9a520); color: #4a3a18; border: 2px solid #fff;
  font: 800 12px/1 Manrope, sans-serif; font-style: normal; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
@keyframes zloto { to { transform: rotate(360deg); } }

/* ---------- pierwsze miejsce na listach ---------- */
.rank-row.is-top-1 { border-color: var(--crema-strong); background: linear-gradient(180deg, color-mix(in srgb, var(--crema) 22%, var(--card)), var(--card)); }
.rank-row.is-top-1 .rank-pos { position: relative; }
.rank-row.is-top-1 .rank-pos::before { content: "🏆"; display: block; font-size: 15px; line-height: 1; margin-bottom: 2px; }
.podium-1 > a {
  position: relative; border-color: #e9c98f;
  box-shadow: 0 0 0 3px #e9c98f, 0 0 0 6px rgba(217, 165, 32, .22), 0 12px 30px rgba(21, 21, 26, .14);
  animation: blask-karta 3.2s ease-in-out infinite;
}
.podium-1 > a:hover { box-shadow: 0 0 0 3px #d9a520, 0 0 0 8px rgba(217, 165, 32, .28), 0 16px 34px rgba(21, 21, 26, .18); }
@keyframes blask-karta {
  50% { box-shadow: 0 0 0 3px #f0c75a, 0 0 0 9px rgba(217, 165, 32, .12), 0 12px 30px rgba(21, 21, 26, .14); }
}
.podium-1 .medal { background: linear-gradient(140deg, #f7e08a, #d9a520); color: #4a3a18; }
@media (prefers-reduced-motion: reduce) {
  .map-pin.is-first, .map-pin.is-first::before, .podium-1 > a { animation: none; }
}

/* numer miejsca – jedynka największa */
.rank-pos { font-size: 20px; }
.rank-row.is-top-1 .rank-pos { font-size: 34px; font-weight: 800; color: var(--gold); letter-spacing: -.04em; }
.rank-row.is-top-2 .rank-pos { font-size: 26px; color: var(--silver); }
.rank-row.is-top-3 .rank-pos { font-size: 24px; color: var(--bronze); }
.rank-row.is-top-1 .rank-pos::before { font-size: 17px; }
.pill-gold { background: linear-gradient(140deg, #f7e08a, #d9a520); color: #3d2f12; }
@media (max-width: 600px) {
  .rank-row.is-top-1 .rank-pos { font-size: 24px; }
  .rank-row.is-top-2 .rank-pos, .rank-row.is-top-3 .rank-pos { font-size: 19px; }
}

/* logo kawiarni w rogu kafelka na podium */
.podium-img { position: relative; }
.podium-logo {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid #fff; overflow: hidden; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: var(--accent); z-index: 2;
  box-shadow: 0 2px 10px rgba(21, 17, 15, .28);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.podium-logo img { width: 100%; height: 100%; object-fit: cover; }
.podium-item a:hover .podium-logo { transform: scale(1.08) rotate(-3deg); }
.podium-1 .podium-logo { width: 52px; height: 52px; border-color: #f0c75a; border-width: 3px; }
@media (max-width: 600px) { .podium-logo, .podium-1 .podium-logo { width: 40px; height: 40px; } }

/* ---------- jednolity kadr wszystkich zdjęć ---------- */
/* Obrazek jest pozycjonowany bezwzględnie, więc jego własne proporcje
   nie mają wpływu na wysokość kafelka – każdy ma dokładnie ten sam kadr. */
.cafe-card-img, .post-card-img, .podium-img, .rank-thumb, .cafe-cover, .gal-g, .gallery a {
  position: relative; overflow: hidden;
}
.cafe-card-img > img, .post-card-img > img, .podium-img > img, .rank-thumb > img,
.cafe-cover > img, .gal-g > img, .gallery a > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.cafe-card-img { aspect-ratio: 4 / 3.2; }
.post-card-img { aspect-ratio: 16 / 10; }
.podium-img, .podium-1 .podium-img { aspect-ratio: 4 / 3; }
.cafe-cover { aspect-ratio: 4 / 3; }
.gallery a, .gal-g { aspect-ratio: 4 / 3; border-radius: 10px; }
.gallery a > img, .gal-g > img { border-radius: 10px; }
.gal-g figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; font-size: 10px; }
@media (max-width: 600px) { .podium-img, .podium-1 .podium-img { aspect-ratio: 16 / 9; } }

/* przełącznik języka */
.lang-switch { display: flex; gap: 2px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang-switch a { font-size: 12px; font-weight: 700; padding: 4px 7px; border-radius: 6px; color: var(--muted); line-height: 1; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--text); color: var(--bg); }
@media (max-width: 860px) { .lang-switch { order: -1; } }

/* tekst przewodni na stronie głównej */
.seo-intro { max-width: 820px; }
.seo-intro h2 { font-size: 24px; margin-top: 1.4em; }
.seo-intro h3 { font-size: 18px; margin-top: 1.2em; }

/* lista czołówki wstawiana w treść wpisu */
.top-list { counter-reset: t; list-style: none; padding: 0; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.top-list li { counter-increment: t; display: flex; align-items: baseline; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.top-list li:last-child { border-bottom: 0; }
.top-list li::before { content: counter(t); font-weight: 800; color: var(--muted); min-width: 22px; }
.top-list li:first-child::before { color: var(--gold); font-size: 20px; }
.top-list a { font-weight: 700; }
.top-list a:hover { color: var(--accent); }
.top-list-meta { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }

/* polecenie redakcji */
.pick-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(140deg, #f7e08a, #d9a520); color: #3d2f12; padding: 3px 9px; border-radius: 999px; }
.pick-tag.sm { font-size: 10px; padding: 1px 7px; }
.pick-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 12px; padding: 10px 14px;
  border-radius: 10px; background: var(--crema); color: #4a3a18; font-size: 14px; }
.pick-box strong { text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
:root[data-theme="dark"] .pick-box { color: var(--text); }
.top-list li.is-pick { background: color-mix(in srgb, var(--crema) 35%, transparent); }
.top-list li.is-pick::before { color: var(--gold); }
.top-list .pick-tag { margin-left: 8px; }

/* puchar przy pierwszym miejscu listy w artykule */
.top-list .cup { font-size: 17px; margin-right: 6px; line-height: 1; }
.top-list li.is-winner { background: color-mix(in srgb, var(--crema) 18%, transparent); }
.top-list li.is-winner a { font-size: 17px; }

/* kawiarnia z poleceniem redakcji – zielona ramka */
.rank-row.is-pick {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--card)), var(--card));
  padding: 11px 15px 11px 11px;          /* wyrównanie po grubszej ramce */
}
.rank-row.is-pick:hover { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.rank-row.is-top-1.is-pick { border-color: var(--accent); }
.cafe-card.is-pick { border: 2px solid var(--accent); }
.cafe-card.is-pick:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent), 0 10px 28px rgba(21, 21, 26, .1); }

/* pierwsze miejsce zawsze złote – nawet gdy jest poleceniem redakcji */
.rank-row.is-top-1,
.rank-row.is-top-1.is-pick {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--crema) 30%, var(--card)), var(--card));
  padding: 11px 15px 11px 11px;
}
.rank-row.is-top-1:hover,
.rank-row.is-top-1.is-pick:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}
.cafe-card.is-first, .cafe-card.is-pick.is-first { border: 2px solid var(--gold); }
.cafe-card.is-first:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent), 0 10px 28px rgba(21, 21, 26, .1); }

/* logo jako plik graficzny */
.logo-img { height: 26px; width: auto; display: block; }
.logo-img-dark { display: none; }
:root[data-theme="dark"] .logo-img { display: none; }
:root[data-theme="dark"] .logo-img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-img { display: none; }
  :root:not([data-theme="light"]) .logo-img-dark { display: block; }
}
.site-footer .logo-img { height: 22px; opacity: .85; }
@media (max-width: 600px) { .logo-img { height: 21px; } }

/* baner polecanej kawiarni */
.promo {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 20px; align-items: center;
  border: 2px solid var(--accent); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--card)), var(--card));
  margin: 0 0 22px;
}
.promo-media { position: relative; align-self: stretch; min-height: 150px; background: var(--bg-soft); }
.promo-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-logo { position: absolute; bottom: 10px; left: 10px; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(21,17,15,.28); }
.promo-logo img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: 18px 0; }
.promo-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.promo-body h2 { font-size: 22px; margin: 0 0 6px; }
.promo-body p { margin: 0 0 10px; font-size: 15px; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; align-items: baseline; }
.promo-meta span { color: var(--muted); }
.promo-cta { margin-right: 20px; white-space: nowrap; }
@media (max-width: 760px) {
  .promo { grid-template-columns: 1fr; gap: 0; }
  .promo-media { min-height: 160px; }
  .promo-body { padding: 16px 16px 0; }
  .promo-cta { margin: 0 16px 16px; }
}

.article-cover { position: relative; margin: 24px 0; }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.article-cover figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; text-align: right; }

/* logo w rogu zdjęcia na profilu – wystaje w prawo poza kadr */
.cafe-media { position: relative; overflow: visible; }
.cover-logo {
  position: absolute; top: 8%; right: 0; transform: translateX(40%);
  width: 20%; aspect-ratio: 1; border-radius: 50%;
  background: #fff; border: 3px solid #fff; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; color: var(--accent); font-size: 18px;
  box-shadow: 0 6px 20px rgba(21, 17, 15, .28); z-index: 3;
}
.cover-logo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .cover-logo { width: 84px; transform: translateX(25%); } }
@media (max-width: 600px) { .cover-logo { width: 68px; border-width: 2px; } }

.side-banner { margin-top: 20px; }
.side-banner-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.side-banner-box {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.side-banner-box:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,17,15,.12); }
/* Wysoką grafikę przycinamy, żeby baner nie rozciągał kolumny obok podium. */
.side-banner-box img { width: 100%; height: auto; max-height: 320px; object-fit: cover; display: block; }
.side-banner-tresc {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px; padding: 14px;
  background: linear-gradient(to top, rgba(20,17,15,.88), rgba(20,17,15,.55) 60%, rgba(20,17,15,0));
  color: #fff;
}
.side-banner-tresc strong { font-size: 15px; line-height: 1.3; }
.side-banner-btn {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--accent, #0e7a4e); color: #fff;
}
a.side-banner-box:hover .side-banner-btn { filter: brightness(1.08); }
/* Wariant bez grafiki: zwykły kafelek z napisem i przyciskiem. */
.side-banner.is-text .side-banner-box { background: var(--bg-soft); }
.side-banner.is-text .side-banner-tresc {
  position: static; background: none; color: var(--text); padding: 18px;
}

/* --- miejsce sponsorowane w rankingu --- */
.rank-row.is-sponsor {
  border: 1px dashed var(--gold, #c9a227);
  background: linear-gradient(0deg, rgba(201,162,39,.06), rgba(201,162,39,.06)), var(--card);
}
.rank-pos-ad {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); line-height: 1.2; align-self: center;
}
.sponsor-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(201,162,39,.16); color: #8a6412;
}
.sponsor-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* --- równy układ między wersjami językowymi ---
   Nie skalujemy czcionek w dół, tylko rezerwujemy tyle miejsca, ile zajmuje
   najdłuższy wariant. Dzięki temu polski, niemiecki i angielski dają ten sam
   układ, a tekst zostaje czytelny. */
h1, h2, h3, .podium-body strong, .cafe-card h3, .rank-name, .post-card h3 {
  overflow-wrap: break-word;   /* niemieckie złożenia typu Öffnungszeiten */
  hyphens: auto;
}
h1, h2 { text-wrap: balance; }
.hero h1 { min-height: 2.4em; }              /* tytuł: polski łamie się na dwie linijki, niemiecki na jedną */
.hero .lead { min-height: 3.2em; }           /* podtytuł: jedna lub dwie linijki, wysokość ta sama */
.podium-body { min-height: 104px; }          /* nazwa lokalu mieści się w dwóch linijkach */
.podium-body strong { display: block; min-height: 2.6em; }
.podium-score { margin-top: auto; }
.cafe-card h3, .post-card h3 { min-height: 2.6em; }
.side-banner-tresc strong { overflow-wrap: break-word; }
.btn { text-align: center; }

@media (max-width: 900px) {
  .hero h1, .hero .lead, .podium-body, .podium-body strong, .cafe-card h3, .post-card h3 { min-height: 0; }
}

/* Lewa kolumna sięga tej samej wysokości co kolumna z banerem.
   Kafelki podium zachowują swój rozmiar - nadmiar miejsca idzie nad przycisk,
   dzięki czemu przycisk siada na dole, równo z dolną krawędzią banera. */
.hero { display: flex; flex-direction: column; }
.hero .podium { margin-bottom: 24px; }
.hero > .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 900px) {
  .hero { display: block; }
}

/* --- zwijany blok treści na dole strony --- */
.seo-text { border-top: 1px solid var(--line); padding-top: 28px; }
.seo-text-tresc { max-width: 860px; }
.seo-text-tresc h2 { font-size: clamp(19px, 2vw, 23px); margin-top: 1.4em; }
.seo-text-tresc h2:first-child { margin-top: 0; }
.seo-text-tresc p { color: var(--muted); }
.seo-text-btn { margin-top: 14px; }
/* Skrót działa dopiero, gdy JavaScript oznaczy blok - bez niego tekst jest widoczny w całości. */
.seo-text.is-zwiniete .seo-text-tresc {
  max-height: 168px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.seo-text:not(.is-zwiniete):not(.is-rozwijalne) .seo-text-btn { display: none; }

/* --- wyszukiwanie „blisko mnie" --- */
.near { margin: 0 0 14px; }
.near-btn { width: 100%; justify-content: center; gap: 8px; font-size: 16px; padding: 14px 20px; }
.near-btn.is-czeka { opacity: .7; }
.near-ico { font-size: 18px; line-height: 1; }
.near-msg { margin: 8px 0 0; }
.near-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.near-item a {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  transition: transform .2s ease, border-color .2s ease;
}
.near-item a:hover { transform: translateX(3px); border-color: var(--accent); }
.near-item.is-pick a { border-color: var(--accent); background: var(--accent-soft); }
.near-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--bg-soft); font-weight: 800; color: var(--muted); }
.near-thumb img { width: 100%; height: 100%; object-fit: cover; }
.near-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.near-body strong { font-size: 15px; line-height: 1.25; }
.near-meta { font-size: 13px; color: var(--muted); }
.near-go { color: var(--muted); font-size: 18px; text-align: right; }
.me-pin { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(26,115,232,.25); }

@media (min-width: 720px) {
  .near-btn { width: auto; }
  .near-list { grid-template-columns: 1fr 1fr; }
}

/* odległość na kafelku kawiarni w sekcji „w okolicy" */
.card-dystans { color: var(--accent); font-weight: 700; }

/* --- banery reklamowe --- */
.ad { margin: 20px 0; }
.ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-box {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ad-box:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,17,15,.12); }
.ad-box img { width: 100%; height: auto; display: block; max-height: 320px; object-fit: cover; }
.ad-szeroki .ad-box img { max-height: 200px; }
.ad-tresc {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px; padding: 14px; color: #fff;
  background: linear-gradient(to top, rgba(20,17,15,.88), rgba(20,17,15,.5) 60%, rgba(20,17,15,0));
}
.ad-tresc strong { font-size: 15px; line-height: 1.3; }
.ad-btn { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--accent); color: #fff; }
.ad-box:not(:has(img)) { padding: 22px; background: var(--bg-soft); }
.ad-box:not(:has(img)) .ad-tresc { position: static; background: none; color: var(--text); padding: 0; }
.ta-r { text-align: right; }
.badge-ok { background: var(--accent-soft); color: var(--accent); }

/* --- cennik reklam --- */
.cennik { display: grid; gap: 14px; margin: 18px 0 30px; }
.cennik-poz { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); }
.cennik-poz header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cennik-poz h3 { margin: 0 0 6px; }
.cennik-cena { text-align: right; white-space: nowrap; }
.cennik-cena strong { font-size: 24px; display: block; line-height: 1.1; }
.cennik-cena small { color: var(--muted); font-size: 12px; }
.cennik-dane { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.cennik-poz.is-zajete { opacity: .75; }
.cennik-poz.is-pakiet { border-color: var(--accent); background: var(--accent-soft); }
.lista-prosta { padding-left: 20px; display: grid; gap: 6px; margin-bottom: 26px; }
.wycena { background: var(--bg-soft); border-radius: 10px; padding: 14px; margin: 4px 0 8px; }
.wycena strong { font-size: 20px; }
.wycena small { display: block; margin-top: 4px; }
.check-inline { align-self: end; }
.p-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.p-stat { background: #fff; border: 1px solid #e7e2dd; border-radius: 12px; padding: 14px 18px; }
.p-stat strong { display: block; font-size: 22px; }
.p-stat span { font-size: 12px; color: #6d6660; }
@media (min-width: 720px) { .cennik { grid-template-columns: 1fr 1fr; } }

/* --- hasło cenowe na stronie reklamy --- */
.reklama-od { display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.reklama-od strong { font-size: 20px; }
.cennik-format { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* --- logo w nagłówku: zawsze w swoich proporcjach ---
   Na wąskim ekranie nagłówek nie mieści logo, przełącznika języków, trybu ciemnego
   i menu naraz. Obrazek jako element flex dawał się wtedy ścisnąć w poziomie przy
   stałej wysokości, przez co litery wychodziły wąskie. Teraz logo się nie ściska,
   a na telefonie po prostu robi się mniejsze razem z pozostałymi przyciskami. */
.logo { flex: 0 1 auto; min-width: 0; }
.logo-img { flex: none; max-width: 100%; object-fit: contain; }

@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .logo-img { height: 18px; }
  .lang-switch a { padding: 4px 5px; font-size: 11px; }
  .theme-toggle { width: 38px; height: 22px; }
  .theme-toggle span { width: 16px; height: 16px; }
  :root[data-theme="dark"] .theme-toggle span { transform: translateX(16px); }
  .menu-toggle { width: 34px; padding: 10px 5px; }
}
@media (max-width: 520px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle span { transform: translateX(16px); }
}
@media (max-width: 360px) {
  .logo-img { height: 15px; }
}

/* --- zdjęcie na profilu kawiarni ---
   <figure> ma w przeglądarce domyślne marginesy (40 px z boków), przez co na
   telefonie zdjęcie kurczyło się do 3/4 szerokości ekranu. Zerujemy je. */
.cafe-cover { margin: 0; }
.photo-credit { margin: 6px 0 0; }
/* Logo wystaje poza zdjęcie tylko tyle, ile mieści się w marginesie strony,
   inaczej na telefonie dało się przesunąć całą stronę w bok. */
@media (max-width: 600px) { .cover-logo { width: 64px; transform: translateX(12%); } }

/* --- logowanie przy ocenie --- */
.vote-login { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--bg-soft); }
.vote-login p { margin: 0 0 10px; }
.vote-who { margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }

/* --- układ reklam przy artykule ---
   Na szerokich ekranach tekst stoi w środku, a po bokach są pionowe banery
   przyklejone przy przewijaniu. Na węższych ekranach boczne banery znikają,
   zostaje baner w treści i pod treścią. */
/* Neutralne nazwy klas (bez „ad”), bo blokery reklam ukrywają elementy
   z „ad-rail” czy „ad-layout”. Artykuł ma też stałą kolumnę: gdy boczne
   banery znikną, nie wskakuje w wąską lewą kolumnę 160 px. */
.art-bok { display: none; }
@media (min-width: 1360px) {
  .art-uklad {
    display: grid; grid-template-columns: 160px minmax(0, 780px) 300px;
    gap: 36px; justify-content: center; max-width: 1420px; margin: 0 auto; padding: 0 20px;
  }
  .art-uklad > .article { grid-column: 2; grid-row: 1; padding-left: 0; padding-right: 0; margin: 0; }
  .art-bok { display: block; position: sticky; top: 88px; align-self: start; margin-top: 28px; grid-row: 1; }
  .art-bok-lewy { grid-column: 1; }
  .art-bok-prawy { grid-column: 3; }
  .art-bok .ad { margin: 0; }
}
.ad-pionowy .ad-box img { max-height: none; }
.ad-pionowy .ad-box:not(:has(img)) {
  min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px 12px;
}
.art-bok-lewy .ad-tresc strong { font-size: 14px; }
.ad-pionowy .ad-box:not(:has(img)) .ad-tresc { align-items: center; }

/* baner w środku tekstu: oddzielony od akapitów, bez stylów treści */
.prose .ad { margin: 28px 0; }
.prose .ad img { margin: 0; border-radius: 0; }
.ad-w_tresci .ad-box:not(:has(img)) { min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; }
.ad-w_tresci .ad-box:not(:has(img)) .ad-tresc { align-items: center; }

/* zaślepka miejsca sponsorowanego w rankingu */
.rank-row.is-zaslepka .rank-thumb { display: grid; place-items: center; font-size: 26px; background: rgba(201,162,39,.12); }
.rank-row.is-zaslepka .rank-name { color: var(--text); }
.rank-row.is-zaslepka .rank-scores { align-self: center; }

/* Poziome banery w treści i pod nią pokazujemy w całości. Wcześniejsze przycięcie
   do 200 px ucinało dół grafiki 3:1, razem z przyciskiem. */
.ad-szeroki .ad-box img { max-height: none; object-fit: contain; }

/* --- strefa właściciela --- */
.owner-cols { display: grid; gap: 28px; }
@media (min-width: 860px) { .owner-cols { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.owner-login { position: sticky; top: 90px; }
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.owner-list { display: grid; gap: 12px; margin-bottom: 18px; }
.owner-claim { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.owner-claim-akcje { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-claim.status-aktywne { border-color: var(--accent); }
.owner-status { font-weight: 700; }
.owner-portal { margin: 4px 0 26px; }
.owner-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.owner-galeria figure { margin: 0; }
.owner-galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }

/* --- sekcja „Od właściciela" na profilu --- */
.owner-section { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; background: var(--card); }
.owner-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.owner-section-head h2 { margin: 0; }
.owner-opis { font-size: 16px; line-height: 1.65; }
.owner-linki { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.owner-section h3 { font-size: 16px; margin: 22px 0 10px; }
.owner-menu { display: grid; gap: 16px; }
@media (min-width: 720px) { .owner-menu { grid-template-columns: 1fr 1fr; } }
.owner-menu h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.owner-menu ul { list-style: none; margin: 0; padding: 0; }
.owner-menu li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.owner-menu-nazwa small { display: block; color: var(--muted); font-size: 12px; }
.owner-menu-cena { font-weight: 700; white-space: nowrap; }
.owner-galeria-publiczna { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.owner-galeria-publiczna img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }

/* ===================== Pogoda w Kołobrzegu ===================== */
.wx { --wx-sun: #f2b01e; --wx-cloud: #c9d3dc; --wx-cloud-back: #aab6c1; --wx-rain: #3d8fd6; --wx-sea: #1f7fb8; --wx-sea-soft: #e7f2f9; }
:root[data-theme="dark"] .wx { --wx-cloud: #8a96a2; --wx-cloud-back: #66717c; --wx-sea-soft: #15283a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wx { --wx-cloud: #8a96a2; --wx-cloud-back: #66717c; --wx-sea-soft: #15283a; } }

.wx .crumbs { margin-bottom: 8px; }
.wx .crumbs a:hover { color: var(--accent); }
.wx h1 { margin-bottom: .25em; }
.wx .lead { max-width: 760px; margin-bottom: 20px; }

/* ikony */
.wx-icon { display: block; flex: none; }
.wx-sun { fill: var(--wx-sun); }
.wx-sun-ray { stroke: var(--wx-sun); fill: none; }
.wx-moon { fill: #f3d77a; }
.wx-cloud { fill: var(--wx-cloud); }
.wx-cloud-back { fill: var(--wx-cloud-back); }
.wx-rain { stroke: var(--wx-rain); fill: none; }
.wx-snow { fill: #9ec9ec; }
.wx-bolt { fill: var(--wx-sun); }
.wx-fog { stroke: var(--wx-cloud-back); fill: none; }

/* karty */
.wx-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.wx-h { font-size: 18px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wx-h small { font-weight: 500; font-size: 13px; }
.wx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.wx-head .wx-h { margin-bottom: 8px; }
.wx-hours, .wx-days { margin-top: 16px; }

/* ostrzeżenia */
.wx-alert { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; background: #fff4d6; border: 1px solid #f0cf6b; color: #4a3800; }
.wx-alert strong { display: block; }
.wx-alert span { font-size: 14px; }
.wx-alert p { margin: 6px 0 0; font-size: 14px; }
.wx-alert-2 { background: #ffe4cc; border-color: #f2a65a; color: #4a2300; }
.wx-alert-3 { background: #fbd5d2; border-color: #e0776e; color: #4d0d08; }

/* góra: teraz + boczne karty */
.wx-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.wx-side { display: grid; gap: 16px; align-content: start; }
.wx-now { background: linear-gradient(160deg, var(--wx-sea-soft), var(--card) 70%); }
.wx-now-main { display: flex; align-items: center; gap: 18px; }
.wx-now-icon .wx-icon { width: 96px; height: 96px; }
.wx-now-temp { font-size: clamp(54px, 9vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.wx-now-temp span { font-size: .4em; font-weight: 600; vertical-align: top; margin-left: 2px; color: var(--muted); }
.wx-now-desc { font-size: 19px; font-weight: 600; margin-top: 6px; }
.wx-now-feel { color: var(--muted); font-size: 14px; margin-top: 2px; }
.wx-now-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.wx-now-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.wx-now-facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wx-now-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.wx-now-facts dd small { font-weight: 500; color: var(--muted); font-size: 12px; display: block; }
.wx-station { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
.wx-station strong { color: var(--accent); width: 100%; }
.wx-updated { margin: 10px 0 0; }

.wx-arrow { display: inline-block; transform: rotate(var(--kier, 0deg)); color: var(--wx-sea); font-weight: 700; line-height: 1; }

.wx-tomorrow-row { display: flex; align-items: center; gap: 12px; }
.wx-range { font-size: 22px; }
.wx-range b { font-size: 26px; }
.wx-tomorrow p { margin: 10px 0 0; }

.wx-sea { border-color: var(--wx-sea-soft); }
.wx-sea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wx-sea-grid div { display: flex; flex-direction: column; }
.wx-big { font-size: 26px; font-weight: 800; color: var(--wx-sea); letter-spacing: -.02em; }
.wx-sea-grid small { color: var(--muted); font-size: 13px; }
.wx-sea p { margin: 10px 0 0; }

/* godzina po godzinie */
.wx-hours-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.wx-hours-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wx-hours-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.wx-hour { flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 10px; scroll-snap-align: start; text-align: center; }
.wx-hour:first-child { background: var(--accent-soft); }
.wx-hour-time { font-size: 13px; color: var(--muted); font-weight: 600; }
.wx-hour-temp { font-weight: 800; font-size: 17px; }
.wx-hour-rain { font-size: 12px; color: var(--muted); }
.wx-hour-rain.is-high, .wx-day-rain.is-high { color: var(--wx-rain); font-weight: 700; }
.wx-hour-wind { font-size: 12px; color: var(--muted); display: flex; gap: 2px; align-items: center; }
.wx-hour-day { flex: 0 0 30px; justify-content: center; }
.wx-hour-day span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; border-left: 2px solid var(--accent); padding-left: 4px; }
.wx-legend { margin: 8px 0 0; }

/* pogoda na kawę */
.wx-kawa { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: var(--paper-warm); border: 1px dashed var(--crema-strong); margin-top: 16px; }
.wx-kawa p { margin: 0; }
.wx-kawa-ico { font-size: 26px; }

/* 16 dni */
.wx-days-list { list-style: none; margin: 0; padding: 0; }
.wx-day { display: grid; grid-template-columns: 74px 40px minmax(0, 1fr) 36px minmax(80px, 160px) 36px 110px 90px; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); }
.wx-day:first-child { border-top: 0; }
.wx-day.is-today { background: var(--accent-soft); border-radius: 10px; }
.wx-day.is-far { opacity: .85; }
.wx-day-name { display: flex; flex-direction: column; line-height: 1.2; }
.wx-day-name small { color: var(--muted); font-size: 12px; }
.wx-day-desc { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-day-min { color: var(--muted); text-align: right; }
.wx-day-max { font-weight: 800; }
.wx-day-bar { position: relative; height: 6px; border-radius: 6px; background: var(--line); }
.wx-day-bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #6fb3e8, #f2b01e 60%, #e8743d); }
.wx-day-rain { color: var(--muted); }
.wx-day-wind { color: var(--muted); display: flex; gap: 3px; align-items: center; }

/* trzy kolumny */
.wx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.wx-list { margin: 0; }
.wx-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.wx-list div:first-child { border-top: 0; }
.wx-list dt { color: var(--muted); }
.wx-list dd { margin: 0; font-weight: 700; text-align: right; }
.wx-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.uv-1, .aqi-1 { background: #dcf3e4; color: #12603a; }
.uv-2, .aqi-2 { background: #eef5d0; color: #4b5a10; }
.uv-3, .aqi-3 { background: #fff0c2; color: #6b4b00; }
.uv-4, .aqi-4 { background: #ffd9bf; color: #7a3300; }
.uv-5, .aqi-5, .aqi-6 { background: #f9cdd0; color: #7a0d16; }
.wx-aqi { margin: 0 0 10px; }
.wx-waves { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wx-waves li { display: grid; grid-template-columns: 52px 1fr 46px; align-items: center; gap: 8px; font-size: 14px; }
.wx-waves b { text-align: right; }
.wx-wave-bar { height: 8px; border-radius: 8px; background: var(--wx-sea-soft); overflow: hidden; }
.wx-wave-bar i { display: block; height: 100%; background: var(--wx-sea); border-radius: 8px; }

/* klimat */
.wx-climate { margin-top: 16px; }
.wx-table-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.wx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.wx-table th, .wx-table td { padding: 8px 10px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.wx-table th:first-child { text-align: left; }
.wx-table thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.wx-table tbody th { font-weight: 600; }
.wx-table tr.is-now { background: var(--accent-soft); }
.wx-table tr.is-now th { color: var(--accent); }
.wx-climate > p { margin: 10px 0 0; }

.wx-prose { max-width: 760px; margin-top: 32px; }
.wx-faq { max-width: 760px; margin-top: 24px; }
.wx-sources { margin-top: 24px; max-width: 760px; }
.wx-sources a { text-decoration: underline; }

/* tablet */
@media (max-width: 980px) {
  .wx-top { grid-template-columns: 1fr; }
  .wx-side { grid-template-columns: 1fr 1fr; }
  .wx-grid3 { grid-template-columns: 1fr 1fr; }
  .wx-day { grid-template-columns: 64px 36px minmax(0, 1fr) 32px minmax(60px, 1fr) 32px 96px; }
  .wx-day-wind { display: none; }
}
/* telefon */
@media (max-width: 640px) {
  .wx-card { padding: 16px; }
  .wx-hours-scroll, .wx-table-scroll { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .wx-side { grid-template-columns: 1fr; }
  .wx-grid3 { grid-template-columns: 1fr; }
  .wx-now-main { gap: 12px; }
  .wx-now-icon .wx-icon { width: 72px; height: 72px; }
  .wx-now-facts { grid-template-columns: 1fr 1fr; }
  .wx-day { grid-template-columns: 52px 32px 30px minmax(40px, 1fr) 30px 56px; gap: 6px; font-size: 14px; }
  .wx-day-desc, .wx-day-wind { display: none; }
  .wx-day-rain { font-size: 12px; text-align: right; }
  .wx-kawa { align-items: flex-start; }
}
.wx-nowrap { white-space: nowrap; }
@media (max-width: 640px) { .wx-now-facts dd.wx-nowrap { font-size: 15px; } }

/* kafelek pogody w stopce */
.footer-weather { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); max-width: 300px; transition: border-color .15s; }
.footer-weather:hover { border-color: var(--accent); }
.footer-weather strong { font-size: 18px; }
.footer-weather small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.footer-weather:hover small { color: var(--accent); }
.footer-weather-ico .wx-icon { width: 36px; height: 36px; }
.alert-warn { background: #fff4d6; color: #6b4b00; border: 1px solid #f0cf6b; }
