:root {
    --navy: #0f172a;
    --blue: #3b82f6;
    --blue-soft: #eff6ff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e8eef6;
    --bg: #f6f8fc;
    --card: #fff;
    --noc: #ffa740;
    --live: #ef4444;
    --radius: 22px;
    --shadow: 0 10px 40px rgba(15, 23, 42, .06);
    --font: Inter, system-ui, sans-serif;
    --max: 1180px;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--font); }
  body { overflow-x: hidden; }
  a { color: inherit; text-decoration: none; }
  img { border: 0; max-width: 100%; display: block; }
  button, input { font: inherit; }
  .sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
  .ico { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .sprites path, .sprites circle, .sprites rect { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

  .scrim {
    position: fixed; inset: 0; background: rgba(15,23,42,.4);
    opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 80;
  }
  .drawer {
    position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 90;
    background: #0f172a; color: #cbd5e1; padding: 20px 14px 28px;
    transform: translateX(-105%); transition: transform .4s cubic-bezier(.22,1,.36,1);
  }
  html.nav-open .scrim { opacity: 1; pointer-events: auto; }
  html.nav-open .drawer { transform: none; }
  html.nav-open { overflow: hidden; }
  .drawer-logo { display: block; margin: 8px 4px 18px; padding: 4px 2px; }
  .drawer-logo img { width: 176px; height: auto; }
  .drawer nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: #cbd5e1; font-weight: 500; font-size: 14px;
  }
  .drawer nav a:hover, .drawer nav a.on { background: var(--blue); color: #fff; }
  .x {
    position: absolute; top: 18px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px;
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 18px;
  }

  .site { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  header.top {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px);
  }
  .menu-btn {
    width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff;
    box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; color: var(--ink);
    flex: 0 0 40px;
  }
  .menu-btn span { position: relative; }
  .menu-btn span, .menu-btn span:before, .menu-btn span:after {
    display: block; width: 15px; height: 1.6px; background: currentColor; border-radius: 2px;
  }
  .menu-btn span:before, .menu-btn span:after { content: ""; position: absolute; left: 0; }
  .menu-btn span:before { top: -5px; } .menu-btn span:after { top: 5px; }
  .brand { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
  .brand img {
    display: block; height: auto; width: auto;
    max-height: 52px; max-width: min(220px, 100%);
    object-fit: contain; object-position: left center;
  }
  .tools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 1 auto; }
  .search {
    display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
    padding: 8px 14px; min-width: 0; width: 220px; box-shadow: var(--shadow); color: var(--muted);
  }
  .search input[type="search"] { border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
  .me { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; }
  .me:hover { color: var(--blue); }
  .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 32px; }

  .hero-wrap { position: relative; margin: 8px 0 40px; }
  .hero {
    position: relative; height: 420px; border-radius: 28px; overflow: hidden; color: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  }
  .hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.1) 52%, rgba(15,23,42,.22)),
      linear-gradient(180deg, transparent 58%, rgba(15,23,42,.45) 100%);
  }
  .hero-copy { position: absolute; z-index: 2; left: 44px; top: 54px; max-width: 500px; will-change: transform; }
  .chip {
    display: inline-flex; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.16); font-size: 11px; font-weight: 600; letter-spacing: .12em;
  }
  .hero-copy h1 { margin: 12px 0 10px; font-size: 48px; line-height: 1.02; font-weight: 700; letter-spacing: -.03em; }
  .hero-copy p {
    margin: 0; font-size: 15px; color: #e2e8f0; max-width: 440px; font-weight: 400;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-more {
    display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px;
  }
  .hero-more:hover { background: rgba(255,255,255,.28); color: #fff; }
  .wx {
    position: absolute; z-index: 2; right: 22px; top: 22px; width: 228px;
    background: rgba(15,23,42,.42); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 16px;
    color: #fff; will-change: transform; overflow: hidden;
  }
  .wx-bg {
    display: none;
    position: absolute; inset: 0; z-index: 0;
    background: center / cover no-repeat;
    pointer-events: none;
  }
  .wx-bg--sun { background-image: url("../gfx-portal/wx-bg/sun.jpg"); }
  .wx-bg--suncloud { background-image: url("../gfx-portal/wx-bg/suncloud.jpg"); }
  .wx-bg--moon { background-image: url("../gfx-portal/wx-bg/moon.jpg"); }
  .wx-bg--cloud { background-image: url("../gfx-portal/wx-bg/cloud.jpg"); }
  .wx-bg--drizzle { background-image: url("../gfx-portal/wx-bg/drizzle.jpg"); }
  .wx-bg--rain { background-image: url("../gfx-portal/wx-bg/rain.jpg"); }
  .wx-bg--snow { background-image: url("../gfx-portal/wx-bg/snow.jpg"); }
  .wx-bg--storm { background-image: url("../gfx-portal/wx-bg/storm.jpg"); }
  .wx-bg--fog { background-image: url("../gfx-portal/wx-bg/fog.jpg"); }
  .wx > *:not(.wx-bg) { position: relative; z-index: 2; }
  .wx-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .wx-place {
    min-width: 0;
    font-size: 12px;
    opacity: .95;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
  }
  .wx-place strong { font-weight: 650; }
  .wx-when { opacity: .9; }
  .wx-now {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }
  .wx-now-ico { display: block; flex: 0 0 auto; }
  .wx-ico, .wx-svg, .wx-now-ico .wx-svg { width: 44px; height: 44px; flex: 0 0 44px; display: block; }
  .wx .temp { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 0; flex: 0 0 auto; }
  .wx-desc { font-size: 13px; opacity: .92; min-width: 0; }
  .wx-days { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-top: 12px; text-align: center; font-size: 11px; }
  .wx-day { min-width: 0; display: flex; flex-direction: column; align-items: center; }
  .wx-day-lbl { opacity: .9; line-height: 1.2; }
  .wx-days b { display: block; margin-top: 2px; font-weight: 700; }
  .wx-days img, .wx-days .wx-svg { width: 28px; height: 28px; margin: 4px auto 0; object-fit: contain; }
  .wx a { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; color: #bfdbfe; }

  .quick {
    position: absolute; left: 24px; right: 24px; bottom: -22px; z-index: 3;
    display: flex; align-items: stretch; gap: 0;
    background: #fff; border-radius: 999px; padding: 6px 8px;
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
  }
  .quick a { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; }
  .quick a:hover { background: var(--blue-soft); color: var(--blue); }
  .qi { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 38px; }
  .quick b { display: block; font-size: 13px; font-weight: 600; }
  .quick small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

  .grid3 { display: grid; grid-template-columns: 1.25fr .9fr .85fr; gap: 22px; }
  .card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid #eef2f7; padding: 18px;
  }
  .feat { padding: 0; overflow: hidden; position: relative; color: #fff; min-height: 380px; height: 100%; }
  .feat > a { display: block; position: relative; min-height: 380px; height: 100%; color: #fff; }
  .feat img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 40%;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
  }
  .feat:hover img { transform: scale(1.07); }
  .feat .txt {
    position: absolute; z-index: 1; inset: auto 0 0 0; padding: 26px 22px 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,.88) 100%);
  }
  .feat h2 { margin: 8px 0 8px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
  .feat p { margin: 0 0 12px; font-size: 13px; color: #cbd5e1; }
  .meta { display: flex; gap: 14px; font-size: 12px; margin-bottom: 14px; opacity: .95; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 20px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
    background: #0f172a; color: #fff !important;
    font-size: 13.5px; font-weight: 600; line-height: 1;
    box-shadow: 0 10px 24px rgba(15,23,42,.28);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  }
  .btn:hover { background: #1e293b; color: #fff !important; transform: translateY(-1px); }
  .btn-glass {
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
  }
  .btn-glass:hover { background: rgba(15,23,42,.88); color: #fff !important; }
  .btn-ghost {
    background: #fff; color: var(--ink) !important;
    border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(15,23,42,.06);
  }
  .btn-ghost:hover { background: #f8fafc; color: var(--ink) !important; transform: translateY(-1px); }

  .hrow { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
  .hrow h3 { margin: 0; font-size: 16px; font-weight: 650; font-weight: 600; }
  .more { color: var(--blue); font-size: 12px; font-weight: 600; }
  .news a {
    display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--line);
  }
  .news a:last-child { border-bottom: 0; }
  .news img {
    width: 64px; height: 64px; object-fit: cover; border-radius: 16px;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
  }
  .news a:hover img { transform: scale(1.1); }
  .tag { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
  .news b { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 600; }
  .when { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

  .cam { padding: 14px; }
  .cam h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .cam-time { color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .cam-shot { position: relative; display: block; border-radius: 18px; overflow: hidden; margin-bottom: 8px; }
  .cam-shot img { width: 100%; height: 188px; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
  .cam-shot:hover img { transform: scale(1.08); }
  .live {
    position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--live); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px;
  }
  .cam-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .cam-thumbs a {
    display: block; border-radius: 8px; overflow: hidden; background: #e2e8f0; line-height: 0;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .cam-thumbs img {
    width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover;
    transition: transform .45s cubic-bezier(.22,1,.36,1);
  }
  .cam-thumbs a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15,23,42,.18);
    z-index: 1;
  }
  .cam-thumbs a:hover img { transform: scale(1.14); }

  .goral-band {
    margin: 28px 0; padding: 20px 20px 18px; border-radius: 24px; background: #fff;
    box-shadow: var(--shadow); border: 1px solid #f0e4d0;
  }
  .goral-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .goral-head img { height: 68px; width: auto; max-width: 80px; object-fit: contain; }
  .goral-head h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
  .goral-head p { margin: 0; color: var(--muted); font-size: 13px; }
  .goral-all { margin-left: auto; }
  .objs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .obj { display: block; color: inherit; }
  .obj img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; background: #eee;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
  }
  .obj:hover img { transform: scale(1.08); }
  .obj b { display: block; margin: 8px 0 2px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
  .obj small { color: var(--muted); font-size: 12px; }
  .obj:hover b { color: var(--blue); }

  .kafle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0 0 28px; padding-top: 8px; }
  .rep-band { margin: 0 0 48px; padding: 18px 20px 16px; }
  .rep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .rep-v {
    border: 1px solid var(--line); border-radius: 16px; padding: 0 0 8px;
    background: #f8fbff; min-height: 160px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .rep-head {
    display: flex; align-items: center; justify-content: center;
    min-height: 78px; padding: 12px 16px;
    background: #0f172a; color: #fff; font-weight: 700;
  }
  .rep-head img { max-height: 52px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
  .rep-v--sokol .rep-head { background: #111; }
  .rep-v--sokol .rep-head img { max-height: 62px; }
  .rep-v--miejsce .rep-head { background: #4a9978; }
  .rep-v--miejsce .rep-head img { max-height: 46px; }
  .rep-v--giewont .rep-head { background: #1a1a1a; }
  .rep-v--giewont .rep-head img { max-height: 48px; }
  .rep-v--witkacy .rep-head { background: #f4efeb; }
  .rep-v--witkacy .rep-head img { max-height: 64px; }
  .rep-body { padding: 10px 14px 6px; flex: 1; }
  .rep-v ul { list-style: none; margin: 0; padding: 0; }
  .rep-v li {
    display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start;
    padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; line-height: 1.35;
  }
  .rep-v li:last-child { border-bottom: 0; }
  .rep-t { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
  .rep-soon, .rep-empty { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
  .stoki { margin: 0 0 12px; }
  .stok {
    display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--line);
  }
  .stok:last-child { border-bottom: 0; padding-bottom: 10px; }
  .stok-block { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
  .stok-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .stok-block .stok { border-bottom: 0; padding: 6px 0 4px; }
  .lifts { list-style: none; margin: 0; padding: 0 0 2px 50px; }
  .lifts li {
    display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
    padding: 3px 0; font-size: 12px; color: var(--muted); line-height: 1.35;
  }
  .lifts em { font-style: normal; white-space: nowrap; }
  .stoki .wx-svg { width: 36px; height: 36px; flex: none; }
  .stok b { display: block; font-size: 13.5px; font-weight: 650; }
  .stok small { color: var(--muted); font-size: 12px; }
  .stok-meta { text-align: right; }
  .stok-meta .deg { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
  .stok-open { color: #15803d; font-size: 11px; font-weight: 650; }
  .stok-off { color: #94a3b8; font-size: 11px; font-weight: 650; }
  .kafl {
    position: relative; display: block; height: 176px; border-radius: 22px; overflow: hidden;
    color: #fff; box-shadow: var(--shadow); transition: transform .2s ease;
  }
  .kafl img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
  }
  .kafl::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15,23,42,.78));
  }
  .kafl .lab { position: absolute; z-index: 1; left: 14px; right: 12px; bottom: 14px; }
  .kafl b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
  .kafl small { display: block; margin-top: 2px; font-size: 12px; color: #e2e8f0; }
  .kafl:hover { color: #fff; transform: translateY(-2px); }
  .kafl:hover img { transform: scale(1.08); }

  .hubs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0 0 28px; }
  .hub {
    position: relative; display: block;
    height: 280px; border-radius: 24px; overflow: hidden;
    background: #f7fbff;
    box-shadow: var(--shadow); border: 1px solid #e8eef6;
    color: var(--ink); transition: transform .2s ease;
  }
  .hub:hover { color: var(--ink); transform: translateY(-2px); }
  .hub .pad {
    position: relative; z-index: 2;
    padding: 16px 16px 10px;
  }
  .hub img {
    position: absolute; z-index: 0;
    left: 0; right: 0; bottom: 0;
    width: 100%; height: 72%;
    object-fit: cover; object-position: 50% 48%;
    transform-origin: 50% 80%;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
  }
  .hub:hover img { transform: scale(1.08); }
  .hub::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(
      180deg,
      #fbfeff 0%,
      #f8fbff 38%,
      rgba(248,251,255,.95) 46%,
      rgba(245,250,255,.58) 68%,
      rgba(245,250,255,0) 96%
    );
  }
  .hi {
    width: 38px; height: 38px; border-radius: 12px; background: #fff;
    border: 1px solid #dbe7f6; color: var(--blue);
    display: grid; place-items: center; margin-bottom: 10px;
  }
  .hub h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; color: var(--navy); }
  .hub p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; min-height: 34px; }
  .hub .go { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 13px; font-weight: 600; }

  .lower { display: grid; grid-template-columns: .95fr 1.2fr .85fr; gap: 22px; margin: 0 0 48px; }
  .gal { position: relative; padding: 0; overflow: hidden; color: #fff; min-height: 320px; height: 100%; }
  .gal img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 45%;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
  }
  .gal:hover img { transform: scale(1.06); }
  .gal::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 58%;
    background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,.82) 100%);
    pointer-events: none;
  }
  .gal .txt { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; }
  .gal h2 { margin: 8px 0 14px; font-size: 26px; letter-spacing: -.03em; line-height: 1.15; font-weight: 700; }
  .dark { background: var(--navy); color: #fff; border: 0; padding: 18px 16px 16px; }
  .dark .hrow { margin-bottom: 14px; }
  .dark .hrow h3 { color: #fff; font-size: 16px; }
  .dark .more { color: #93c5fd; }
  .qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .qgrid a {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px; padding: 14px 6px 12px;
    text-align: center; color: #e2e8f0; font-size: 11.5px; font-weight: 600;
  }
  .qgrid a:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
  .qgrid .ico { margin: 0 auto 8px; width: 22px; height: 22px; }

  .bottom { display: grid; grid-template-columns: 1.05fr .85fr 1.1fr; gap: 22px; margin: 0 0 40px; align-items: stretch; }
  .bottom-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
  .bottom-pic { height: 108px; overflow: hidden; flex: 0 0 108px; background: #e8eef6; }
  .bottom-pic img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
  }
  .bottom-card:hover .bottom-pic img { transform: scale(1.07); }
  .forum .bottom-pic img { object-position: 50% 70%; }
  .ev-box .bottom-pic img { object-position: 50% 45%; }
  .narty-box .bottom-pic img { object-position: 50% 42%; }
  .bottom-body { padding: 14px 18px 16px; flex: 1; }
  .forum .bottom-body { display: flex; flex-direction: column; }
  .forum-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13.5px; line-height: 1.35; }
  .forum-list a:last-child { border-bottom: 0; }
  .forum small { color: var(--muted); font-weight: 400; white-space: nowrap; }
  .forum-search {
    display: flex; align-items: center; gap: 8px;
    margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
  }
  .forum-search .ico { flex: 0 0 18px; width: 18px; height: 18px; }
  .forum-search input[type="search"] {
    flex: 1; min-width: 0;
    border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 12px; background: #f8fafc; color: var(--ink); outline: 0;
  }
  .forum-search input[type="search"]:focus { border-color: #bfdbfe; background: #fff; }
  .forum-search button {
    flex: 0 0 auto; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--navy); color: #fff;
    padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
  }
  .forum-search button:hover { background: #1e293b; }
  .ev { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ev:last-child { border-bottom: 0; }
  .ev b { display: block; font-size: 18px; line-height: 1; }
  .ev span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

  footer.foot { background: var(--navy); color: #94a3b8; margin-top: 8px; }
  .foot-in { max-width: var(--max); margin: 0 auto; padding: 36px 24px 20px; display: grid; grid-template-columns: 200px 1fr 1fr 1fr; gap: 24px; }
  .foot h4 { margin: 0 0 12px; color: #fff; font-size: 13px; font-weight: 600; }
  .foot ul { list-style: none; margin: 0; padding: 0; }
  .foot li { margin: 6px 0; }
  .flogo { display: inline-block; line-height: 0; }
  .flogo img { width: 150px; height: auto; display: block; }
  .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; font-size: 12px; }

  @media (max-width: 1100px) {
    .grid3, .lower, .bottom, .foot-in { grid-template-columns: 1fr; }
    .objs { grid-template-columns: repeat(2, 1fr); }
    .hubs, .kafle, .rep-grid { grid-template-columns: repeat(2, 1fr); }
    .qgrid { grid-template-columns: repeat(3, 1fr); }
    .hero { height: 380px; }
    .hero-copy { left: 24px; top: 28px; max-width: 46%; }
    .hero-copy h1 { font-size: 32px; }
    .wx { width: 200px; right: 14px; top: 14px; padding: 12px; }
    .wx .temp { font-size: 32px; }
    .quick {
      position: relative; left: auto; right: auto; bottom: auto;
      margin-top: 12px; flex-wrap: wrap; border-radius: 22px;
    }
  }
  @media (max-width: 760px) {
    .site { padding: 0 14px; }
    header.top {
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
      grid-template-areas:
        "menu brand mail me"
        "search search search search";
      gap: 10px 8px;
      padding: 10px 0 12px;
      background: var(--bg);
    }
    .menu-btn { grid-area: menu; width: 40px; height: 40px; }
    .brand { grid-area: brand; }
    .brand img { max-height: 34px; max-width: 100%; }
    .tools { display: contents; }
    .search {
      grid-area: search; width: 100%; min-width: 0;
      padding: 8px 12px; box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    }
    .me-mail { grid-area: mail; justify-self: end; }
    .me-user { grid-area: me; justify-self: end; }
    .me-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .ava { width: 36px; height: 36px; flex-basis: 36px; }

    .hero-wrap { margin: 4px 0 22px; }
    .hero { height: 220px; border-radius: 20px; }
    .hero > a { inset: 0; }
    .hero-copy {
      left: 14px; right: 14px; top: auto; bottom: 14px;
      max-width: none;
    }
    .hero-copy h1 { font-size: 24px; margin: 6px 0 6px; }
    .hero-copy p { font-size: 13px; -webkit-line-clamp: 2; max-width: none; }
    .hero-more { margin-top: 8px; }
    .wx {
      position: relative; top: auto; right: auto;
      width: auto; margin: 10px 0 0;
      background: rgba(15, 23, 42, .42);
      color: #fff;
      border-radius: 18px;
      padding: 10px 12px;
      border: 1px solid rgba(255, 255, 255, .16);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 8px 24px rgba(15, 23, 42, .18);
      -webkit-backdrop-filter: blur(8px) saturate(1.12);
      backdrop-filter: blur(8px) saturate(1.12);
    }
    .wx-bg {
      display: block;
      opacity: .55;
      filter: saturate(.95) brightness(.92);
    }
    .wx::after {
      content: "";
      position: absolute; inset: 0; z-index: 1; pointer-events: none;
      border-radius: inherit;
      background:
        linear-gradient(180deg, rgba(15,23,42,.32) 0%, rgba(15,23,42,.52) 48%, rgba(15,23,42,.68) 100%);
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
    }
    /* lewa: Zakopane + data; prawa: duża temperatura; pod spodem większe 4 dni */
    .wx-head {
      align-items: center;
      gap: 12px;
    }
    .wx-place {
      font-size: 13px;
      gap: 2px;
    }
    .wx-place strong {
      font-size: 14px;
      font-weight: 700;
    }
    .wx-when {
      font-size: 12px;
      opacity: .88;
    }
    .wx .temp {
      font-size: 46px;
      line-height: .92;
      letter-spacing: -.04em;
      text-align: right;
    }
    .wx-now {
      margin-top: 4px;
      gap: 6px;
    }
    .wx-now-ico .wx-ico,
    .wx-now-ico .wx-svg {
      width: 28px;
      height: 28px;
    }
    .wx-desc {
      font-size: 12px;
      line-height: 1.2;
    }
    .wx-days {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid rgba(255, 255, 255, .18);
      gap: 4px;
      font-size: 11.5px;
      align-items: start;
    }
    .wx-day { gap: 0; }
    .wx-days img, .wx-days .wx-svg {
      width: 46px;
      height: 46px;
      margin: 3px auto 0;
    }
    .wx-days b {
      margin-top: 2px;
      font-size: 14px;
      letter-spacing: -.02em;
    }
    .wx a {
      margin-top: 6px;
      text-align: center;
      font-size: 11.5px;
    }
    .quick {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      padding: 8px;
      border-radius: 18px;
      margin-top: 10px;
      overflow: visible;
    }
    .quick a {
      flex: none;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      gap: 6px;
      text-align: center;
      border-radius: 14px;
      padding: 12px 6px 10px;
      min-width: 0;
      background: #f8fafc;
    }
    .quick a:hover { background: var(--blue-soft); }
    .quick .qi {
      width: 46px; height: 46px; flex: 0 0 46px;
      border-radius: 14px;
    }
    .quick .qi .ico { width: 24px; height: 24px; }
    .quick b {
      font-size: 12px; line-height: 1.2;
      font-weight: 650;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .quick small { display: none; }
    .quick a > span:last-child { min-width: 0; width: 100%; }

    .card { padding: 14px; border-radius: 18px; }
    .feat, .feat > a { min-height: 260px; }
    .feat h2 { font-size: 20px; }
    .cam-shot img { height: 168px; }
    .goral-band { padding: 14px; margin: 18px 0; }
    .goral-head { flex-wrap: wrap; align-items: flex-start; }
    .goral-head img { height: 52px; }
    .goral-all { margin-left: 0; width: 100%; }
    .objs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .obj b { font-size: 12.5px; margin-top: 6px; }
    .obj small { display: none; }
    .hub { height: 220px; }
    .kafl { height: 148px; }
    .gal { min-height: 240px; }
    .gal h2 { font-size: 20px; }
    .qgrid { grid-template-columns: repeat(3, 1fr); }
    .rep-band { margin: 0 0 28px; padding: 14px; }
    .rep-grid { grid-template-columns: 1fr; }
    .hrow { gap: 8px; flex-wrap: wrap; }
    .forum-list a { display: block; }
    .forum small { display: block; margin-top: 2px; white-space: normal; }
    .forum-search { flex-wrap: wrap; }
    .forum-search button { width: 100%; }
    .foot-in { padding: 28px 14px 16px; }
  }
  @media (max-width: 520px) {
    .qgrid { grid-template-columns: repeat(2, 1fr); }
    .cam-thumbs { grid-template-columns: repeat(4, 1fr); }
    .objs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  }

/* --- live portal extras (CMS modules, źródło, fallbacks) --- */
.hero > a {
  position: absolute; inset: -8%; z-index: 0;
  will-change: transform;
}
.hero > a img, .hero > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.wx table, .wx td { width: 100%; border: 0; padding: 0; color: inherit; background: transparent; }
.wx img { display: block; object-fit: contain; }
.feat a { color: #fff; }
.feat .txt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.search button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.news .hrow a.more, .forum .hrow a.more, .dark .hrow a.more, .narty-box .hrow a.more, .ev-box .hrow a.more { display: inline; padding: 0; border: 0; grid-template-columns: none; }
.goral-band .objs { display: grid; }
.zne-p5-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
body.zne-p5 .zne-shell, body.zne-p5 .zne-wrap { width: auto; max-width: none; background: none; }

/* --- P5 subpages (content chrome + Bootstrap + fluid legacy) --- */
body.zne-p5-sub {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}
body.zne-p5-sub a:link,
body.zne-p5-sub a:visited { color: inherit; text-decoration: none; }
body.zne-p5-sub .top a:link,
body.zne-p5-sub .top a:visited,
body.zne-p5-sub .drawer a:link,
body.zne-p5-sub .drawer a:visited,
body.zne-p5-sub .foot a:link,
body.zne-p5-sub .foot a:visited { text-decoration: none; }
body.zne-p5-sub .top a:hover,
body.zne-p5-sub .drawer a:hover,
body.zne-p5-sub .foot a:hover { text-decoration: none; }

.p5-sub { margin: 8px 0 40px; }
.p5-sub-top { overflow-x: auto; max-width: 100%; }

.p5-side {
  background: var(--p5-side-bg, var(--card));
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 10px;
  overflow: hidden;
}
.p5-side table,
.p5-side table[width] { width: 100% !important; max-width: 100% !important; }
.p5-side td { font-size: 12.5px !important; line-height: 1.35; vertical-align: middle; }
.p5-side img { max-width: 28px; height: auto; }
.p5-side a:link,
.p5-side a:visited { color: var(--ink); }
.p5-side a:hover { color: var(--blue); }

.p5-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.p5-crumb a { color: var(--muted); font-weight: 500; }
.p5-crumb a:hover { color: var(--blue); }
.p5-crumb-sep { opacity: .45; user-select: none; }

.p5-doc {
  background: var(--card);
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 100%;
}
.p5-doc center { display: block; text-align: left; max-width: 100%; }
.p5-doc table,
.p5-doc table[width],
.p5-doc table[width="580"],
.p5-doc table[width="588"] {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
}
.p5-doc td[width],
.p5-doc th[width] { width: auto !important; max-width: 100%; }
.p5-doc img {
  max-width: 100% !important;
  height: auto !important;
}
.p5-doc img[src*="lewy-bok"],
.p5-doc img[src*="prawy-bok"],
.p5-doc img[src*="kreska.gif"],
.p5-doc img[src*="kwadracik"],
.p5-doc img[width="5"],
.p5-doc img[width="9"] { display: none !important; }
.p5-doc hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0 14px; }
.p5-doc td,
.p5-doc th {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13.5px;
  color: inherit;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.p5-doc a:link { color: var(--blue); text-decoration: none; }
.p5-doc a:visited { color: #1e40af; text-decoration: none; }
.p5-doc a:hover { text-decoration: underline; }
.p5-doc h1, .p5-doc h2, .p5-doc h3, .p5-doc h4 {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 10px;
}
.p5-doc .small { font-size: 12.5px; }
.p5-doc .data { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Modern content blocks (new templates) */
.p5-block { max-width: 100%; }
.p5-page-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.p5-page-title small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.p5-list { display: flex; flex-direction: column; gap: 10px; }
.p5-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.p5-item:hover {
  border-color: #dbeafe;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.p5-item-ico {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; flex: 0 0 36px;
}
.p5-item-ico .ico { width: 18px; height: 18px; }
.p5-item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; line-height: 1.3; }
.p5-item h3 a { color: var(--ink) !important; }
.p5-item h3 a:hover { color: var(--blue) !important; text-decoration: none !important; }
.p5-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.p5-item-meta {
  display: flex; flex-direction: column; gap: 2px;
  text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap;
}
.p5-item-meta b { color: var(--ink); font-size: 15px; font-weight: 700; }
.p5-item-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.p5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 0; cursor: pointer; text-decoration: none !important;
}
.p5-btn-primary { background: var(--blue); color: #fff !important; }
.p5-btn-primary:hover { filter: brightness(1.05); text-decoration: none !important; }
.p5-btn-ghost { background: var(--blue-soft); color: var(--blue) !important; }
.p5-btn-ghost:hover { background: #dbeafe; text-decoration: none !important; }
.p5-note {
  margin-top: 16px; padding: 12px 14px; border-radius: 14px;
  background: #fffbeb; border: 1px solid #fde68a;
  font-size: 13px; line-height: 1.45; color: #78350f;
}
.p5-search {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px; padding: 12px 14px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 16px;
}
.p5-search input[type="text"],
.p5-search input[type="search"] {
  flex: 1 1 160px; min-width: 0;
  border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 8px 14px; background: #fff; outline: 0;
}
.p5-search .opts { flex: 1 1 100%; font-size: 12px; color: var(--muted); }
.p5-search .opts label { margin-right: 12px; }
.p5-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.p5-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.p5-table th {
  text-align: left; padding: 10px 12px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 12px;
}
.p5-table th:first-child { border-radius: 12px 0 0 0; }
.p5-table th:last-child { border-radius: 0 12px 0 0; }
.p5-table td {
  padding: 12px; border-bottom: 1px solid var(--line);
  vertical-align: top; background: #fff;
}
.p5-table tr:nth-child(even) td { background: #f8fafc; }
.p5-table a { color: var(--ink) !important; font-weight: 600; }
.p5-table a:hover { color: var(--blue) !important; }
.p5-art-head { margin-bottom: 16px; }
.p5-art-head h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
.p5-art-body { font-size: 15px; line-height: 1.65; }
.p5-art-body img { border-radius: 12px; margin: 8px 0; }
.p5-art-figure {
  float: right; width: min(255px, 42%); margin: 0 0 12px 16px;
  text-align: center;
}
.p5-art-figure img { width: 100%; border-radius: 14px; }
.p5-news-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.p5-news-card:last-child { border-bottom: 0; }
.p5-news-card .thumb img { width: 100%; height: 96px; object-fit: cover; border-radius: 14px; }
.p5-news-card h3 { margin: 0 0 6px; font-size: 16px; }
.p5-news-card h3 a { color: var(--ink) !important; }
.p5-news-card h3 a:hover { color: var(--blue) !important; text-decoration: none !important; }
.p5-post {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  background: #fff;
}
.p5-post img.avatar {
  width: 72px; height: 72px; border-radius: 14px; object-fit: cover;
  border: 2px solid #e2e8f0;
}
.p5-post-nav {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin-bottom: 12px; font-size: 12.5px; color: var(--muted);
}
.p5-post-nav a { color: var(--blue) !important; font-weight: 600; }

.p5-blad {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  line-height: 1.45;
  color: #78350f;
}
.p5-blad a { color: #92400e; }

@media (max-width: 760px) {
  .p5-sub { margin: 4px 0 28px; }
  .p5-doc { padding: 14px; border-radius: 18px; }
  .p5-crumb { font-size: 12px; margin-bottom: 10px; }
  .p5-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .p5-item-meta { text-align: left; flex-direction: row; gap: 12px; white-space: normal; }
  .p5-item-ico { display: none; }
  .p5-art-figure { float: none; width: 100%; margin: 0 0 14px; }
  .p5-news-card { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .p5-news-card .thumb img { height: 72px; }
  .p5-post { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .p5-post img.avatar { width: 56px; height: 56px; }
  /* Legacy multi-col tables: scroll instead of overflow page */
  .p5-doc > table,
  .p5-doc table table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cam-shot img, .cam-thumbs img, .feat img, .hub img, .kafl img, .gal img, .obj img, .news img, .bottom-pic img {
    transition: none;
  }
  .cam-shot:hover img, .cam-thumbs a:hover img, .feat:hover img,
  .hub:hover img, .kafl:hover img, .gal:hover img, .obj:hover img, .news a:hover img,
  .bottom-card:hover .bottom-pic img {
    transform: none;
  }
  .hero > a, .hero-copy, .wx { will-change: auto; transform: none !important; }
  .p5-item { transition: none; }
}
