: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: min(292px, 92vw); z-index: 90;
    display: flex; flex-direction: column;
    background: #0f172a; color: #cbd5e1; padding: 20px 10px 0;
    transform: translateX(-105%); transition: transform .4s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
  }
  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 8px 10px; padding: 4px 2px; flex: 0 0 auto; }
  .drawer-logo img { width: 176px; height: auto; }
  .drawer nav {
    flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
    padding: 0 4px 28px; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .drawer-label {
    margin: 14px 12px 6px; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #64748b;
  }
  .drawer-label:first-child { margin-top: 0; }
  .drawer nav a {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
    color: #cbd5e1; font-weight: 500; font-size: 14px;
  }
  .drawer nav a .ico { flex: 0 0 20px; }
  .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);
    -webkit-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; }
  .p5-topnav {
    display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0;
    margin: 0 4px 0 8px;
  }
  .p5-topnav a {
    padding: 8px 11px; border-radius: 10px; font-weight: 600; font-size: 14px;
    white-space: nowrap; color: var(--ink);
  }
  .p5-topnav a:hover { background: var(--blue-soft); color: var(--blue); }
  .p5-topnav a.on { background: var(--blue-soft); color: #1d4ed8; }
  .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: 500px; border-radius: 28px; overflow: hidden; color: #fff;
    background: #1e293b;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  }
  .hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .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: 437px; height: 100%; }
  .feat > a {
    display: grid; grid-template: 1fr / 1fr;
    position: relative; min-height: 437px; height: 100%; color: #fff;
  }
  .feat img {
    grid-area: 1 / 1; width: 100%; height: 100%; min-height: 437px;
    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 {
    grid-area: 1 / 1; align-self: end; position: relative; z-index: 1;
    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: 14.5px;
    line-height: 1.45;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 0 18px rgba(0,0,0,.35);
  }
  .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-film-row { margin: 0 0 10px; }
  .cam-film-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13.5px; font-weight: 650; color: var(--blue); text-decoration: none;
  }
  .cam-film-btn:hover { text-decoration: underline; }
  .glightbox-clean .ginner-container.gvideo-container {
    height: auto !important;
    max-height: 100%;
    max-width: min(960px, 96vw);
    margin: auto;
    justify-content: center;
  }
  .glightbox-clean .gslide-video { margin: auto; width: 100%; }
  .cam-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
    align-items: start;
  }
  .cam-thumbs a {
    display: grid;
    grid-template-rows: auto 1.4em;
    gap: 5px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
  }
  .cam-thumbs a .cam-pic {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    line-height: 0;
    aspect-ratio: 16 / 10;
  }
  .cam-thumbs img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(.22,1,.36,1);
  }
  .cam-thumbs .cam-cap {
    display: block;
    margin: 0;
    padding: 0;
    height: 1.4em;
    font-size: 11px;
    line-height: 1.4em;
    font-weight: 700;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cam-thumbs a:hover .cam-pic {
    box-shadow: 0 6px 14px rgba(15,23,42,.16);
  }
  .cam-thumbs a:hover img { transform: scale(1.06); }
  .cam-thumbs a:hover .cam-cap { color: #0f172a; }

  .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; position: relative; overflow: hidden; color: #fff;
    border-radius: 16px; background: #1a1a1a;
  }
  .obj img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
    border-radius: 0; background: #1a1a1a;
    transition: transform .7s ease;
  }
  .obj:hover img { transform: scale(1.08); }
  .obj-cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 2.4rem 12px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(10,18,14,.88) 100%);
    pointer-events: none;
  }
  .obj b {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0; color: #fff;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 16px; font-weight: 500; font-style: italic; line-height: 1.2;
    letter-spacing: -.02em;
  }
  .obj small {
    display: block; margin-top: 4px; color: rgba(255,255,255,.78);
    font-size: 12px; font-weight: 400; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .obj:hover b { color: #fff; }

  .kafle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 32px; 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: 28px 0; }
  .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; }

  .pearls { margin: 0 0 32px; }
  .pearls-grid {
    display: grid;
    grid-template-columns: .95fr 1.2fr .85fr;
    gap: 22px;
    align-items: stretch;
  }
  .home-plan-row { margin: 0 0 32px; }
  .home-plan-row > .card.news {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }
  .pearls-left {
    grid-column: 1 / 3;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .pearls-wins {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .pearls-gal {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  }
  .pearls-gal img {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    flex: 1 1 0;
    min-height: 0;
    object-fit: cover;
    object-position: 50% 12%;
    transform-origin: 50% 12%;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
  }
  .pearls-gal img.is-dog { object-position: 50% 80%; transform-origin: 50% 80%; }
  .pearls-gal:hover { color: var(--navy); }
  .pearls-gal:hover img { transform: scale(1.04); }
  .pearls-gal:hover b { color: var(--blue); }
  .pearls-gal::after { content: none; }
  .pearls-gal .txt {
    position: relative;
    z-index: 1;
    left: auto; right: auto; bottom: auto;
    flex: 0 0 auto;
    padding: 8px 10px 9px;
    background: #fff;
  }
  .pearls-gal .hi { display: none; }
  .pearls-gal .kicker {
    display: block;
    margin: 0 0 2px;
    font-size: 10.5px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pearls-gal b {
    display: block;
    margin: 0;
    font-size: 13.5px; font-weight: 700; letter-spacing: -.02em;
    line-height: 1.2; color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pearls-gal p {
    margin: 2px 0 0;
    font-size: 11.5px; line-height: 1.3; font-weight: 500;
    color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pearls-gal .go { display: none; }
  .pearls-plan {
    grid-column: 3;
    grid-row: 1;
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky; top: 76px;
    padding: 0;
  }
  .pearls-plan-hero {
    position: relative;
    display: block;
    height: 168px;
    color: #fff;
    overflow: hidden;
  }
  .pearls-plan-hero.is-static { background: #0f172a; }
  .pearls-plan-hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 45%;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
  }
  .pearls-plan-hero:hover { color: #fff; }
  .pearls-plan-hero:hover img { transform: scale(1.05); }
  .pearls-plan-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.78) 100%);
    pointer-events: none;
  }
  .pearls-plan-hero .txt {
    position: absolute; z-index: 1;
    left: 14px; right: 14px; bottom: 12px;
  }
  .pearls-plan-hero small {
    display: block;
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; opacity: .9;
  }
  .pearls-plan-hero b {
    display: block; margin: 4px 0 4px;
    font-size: 18px; letter-spacing: -.03em; line-height: 1.15;
  }
  .pearls-plan-hero em {
    font-style: normal; font-size: 12.5px; opacity: .9;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pearls-plan-body { padding: 12px 14px 14px; }
  .pearls-lead { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
  .pearls-starts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 6px;
  }
  .pearls-starts a {
    display: flex; align-items: center; gap: 8px;
    min-width: 0;
    padding: 7px 6px;
    border-radius: 8px;
    font-weight: 600; font-size: 12.5px; line-height: 1.25;
    color: var(--navy);
  }
  .pearls-starts a::before {
    content: "";
    flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue);
  }
  .pearls-starts a:hover { background: #eff6ff; color: var(--blue); }
  .pearls-more { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; font-weight: 600; }
  .pearls-more a { color: var(--blue); }

  .lower { display: grid; grid-template-columns: .95fr 1.2fr .85fr; gap: 22px; margin: 0 0 48px; align-items: stretch; }
  .lower > .pearls-left { grid-column: 1 / 3; min-width: 0; min-height: 0; height: 100%; }
  .lower > .dark { grid-column: 3; min-height: 0; height: auto; }
  .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: start; }
  .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: 12px; 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: 8px 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: 168px 1fr 1fr 1fr 1fr; gap: 20px; }
  .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: block; line-height: 0; }
  .flogo img { width: 132px; height: auto; display: block; margin: 0 auto; }
  .foot-brand { text-align: center; }
  .foot-brand p { margin: 10px 0 0; text-align: center; font-size: 13px; line-height: 1.4; }
  .foot-since { margin-top: 4px !important; font-size: 12px !important; color: #94a3b8; }
  .foot a { color: #cbd5e1; }
  .foot a:hover { color: #fff; }
  .foot .p5-consent-open {
    display: inline; padding: 0; border: 0; background: none; color: #cbd5e1;
    font: inherit; cursor: pointer; text-align: left;
  }
  .foot .p5-consent-open:hover { color: #fff; }
  .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
  @media (max-width: 1100px) {
    .foot-in { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 620px) {
    .foot-in { grid-template-columns: 1fr; }
  }

  @media (max-width: 1100px) {
    .grid3, .lower, .pearls-grid, .bottom { grid-template-columns: 1fr; }
    .lower > .pearls-left,
    .pearls-left,
    .lower > .dark,
    .pearls-plan { grid-column: auto; }
    .pearls-plan { position: static; }
    .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;
    }
    .p5-topnav { display: none; }
  }
  @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);
    }
    /* Belka w .p5-chrome (pełna szerokość), bez breakoutu */
    .p5-chrome-in { padding: 0 14px; }
    .p5-chrome header.top {
      width: auto;
      max-width: none;
      margin: 0;
      padding: 10px 0 12px;
      background: transparent;
      border: 0;
      box-shadow: none;
    }
    body.zne-p5-sub .p5-chrome {
      background: color-mix(in srgb, var(--p5-mast-tint, #93c5fd) 10%, #fff);
    }
    .site--sub { padding: 0 14px; }
    .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: 300px; height: auto; }
    .feat img { min-height: 300px; }
    .feat .txt { padding: 22px 16px 16px; }
    .feat h2 { font-size: 18px; line-height: 1.25; }
    .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-cap { padding: 1.8rem 10px 8px; }
    .obj b { font-size: 14px; }
    .hub { height: 220px; }
    .pearls-wins { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .pearls-gal { height: 188px; min-height: 0; }
    .pearls-gal p { display: none; }
    .pearls-gal .txt { padding: 8px 10px 9px; }
    .pearls-plan { position: static; }
    .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: 920px) {
    .pearls-grid,
    .home-plan-row { grid-template-columns: 1fr; }
    .pearls-left,
    .home-plan-row > .card.news,
    .home-plan-row > .card.gal,
    .pearls-plan { grid-column: auto; grid-row: auto; }
    .pearls-wins { grid-template-rows: none; }
    .pearls-gal { height: 200px; min-height: 0; }
    .pearls-plan { position: static; }
  }
  @media (max-width: 520px) {
    .qgrid { grid-template-columns: repeat(2, 1fr); }
    .cam-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; }
    .objs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  }

/* --- live portal extras (CMS modules, źródło, fallbacks) --- */
.hero > a {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero > a img, .hero > img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero > a.is-wide img {
  object-position: 50% 50%;
}
.hero > a.is-fill img {
  object-position: 50% 78%;
}
.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:
    radial-gradient(1200px 520px at 10% -8%, color-mix(in srgb, var(--p5-mast-tint, #93c5fd) 26%, transparent), transparent 72%),
    radial-gradient(900px 420px at 92% 0%, rgba(15, 23, 42, .045), transparent 65%),
    linear-gradient(180deg, #e8eef5 0%, var(--bg) 280px);
  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; }

/* Full-bleed top chrome (header) — no side gutters */
.p5-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.p5-chrome-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 760px) {
  .p5-chrome-in { padding: 0 14px; }
}
.p5-chrome header.top {
  position: static;
  padding: 16px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.zne-p5:not(.zne-p5-sub) .p5-chrome {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  box-shadow: none;
}
body.zne-p5-sub .p5-chrome header.top {
  padding: 14px 0;
}
.site--sub {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Subpage masthead — edge-to-edge photo band */
body.zne-p5-sub .p5-mast {
  --p5-mast-tint: #64748b;
  position: relative;
  height: clamp(176px, 22vw, 260px);
  margin: 0 0 22px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  isolation: isolate;
  animation: p5-mast-in .55s cubic-bezier(.22,1,.36,1) both;
}
body.zne-p5-sub .p5-mast-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
body.zne-p5-sub .p5-mast-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
body.zne-p5-sub .p5-mast-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .45) 38%, rgba(15, 23, 42, .2) 72%, rgba(15, 23, 42, .28) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--p5-mast-tint) 42%, transparent), transparent 58%);
  pointer-events: none;
}
body.zne-p5-sub .p5-mast-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 26px;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}
body.zne-p5-sub .p5-mast-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
body.zne-p5-sub .p5-mast-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 18px rgba(15, 23, 42, .35);
}
@keyframes p5-mast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.p5-sub { margin: 4px 0 48px; }
.p5-sub--land { margin-top: 0; }
.p5-sub-top { overflow-x: auto; max-width: 100%; }
.p5-sub > .row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}
.p5-sub > .row > [class*="col-"] {
  min-width: 0;
  max-width: 100%;
}

.p5-side {
  background: var(--p5-side-bg, #fff);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
  padding: 16px 12px 14px;
  overflow: hidden;
}
.p5-side table,
.p5-side table[width] { width: 100% !important; max-width: 100% !important; border: 0 !important; }
.p5-side td { font-size: 13px !important; line-height: 1.4; vertical-align: middle; padding: 4px 0 !important; }
.p5-side img[src*="doc.gif"],
.p5-side img[src*="main-folder"],
.p5-side img[src*="kreska.gif"],
.p5-side img[src*="logowanie.gif"],
.p5-side img[src*="naglowek-logowanie"],
.p5-side img[src*="gora-logowanie"],
.p5-side img[src*="dol-logowanie"],
.p5-side img[src*="srodek-logowanie"],
.p5-side img[src*="twoje-konto"] { display: none !important; }
.p5-side a:link,
.p5-side a:visited { color: var(--ink); }
.p5-side a:hover { color: var(--blue); }

.p5-nav-side-title {
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; padding: 0 8px;
}
.p5-nav-side { margin: 0; }
.p5-nav-side-list { list-style: none; margin: 0; padding: 0; }
.p5-nav-side-list li {
  display: block; margin: 0; padding: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .05);
  list-style: none;
}
.p5-nav-side-list li:last-child { border-bottom: 0; }
.p5-nav-side-list li.is-collapsed { display: none; }
.p5-nav-side-list:not([data-p5-nav-ready]) .lvl-2,
.p5-nav-side-list:not([data-p5-nav-ready]) .lvl-3,
.p5-nav-side-list:not([data-p5-nav-ready]) .lvl-4 { display: none; }
.p5-nav-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.p5-nav-side-list a {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
  padding: 9px 8px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink) !important; line-height: 1.3;
  transition: background .15s ease, color .15s ease;
}
.p5-nav-side-list a:hover {
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 10%, #fff);
  color: color-mix(in srgb, var(--p5-mast-tint, #1d4ed8) 70%, #0f172a) !important;
  text-decoration: none !important;
}
.p5-nav-ico {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 12%, #fff);
  color: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 80%, #0f172a);
}
.p5-nav-ico .ico { width: 15px; height: 15px; }
.p5-nav-lab { flex: 1; min-width: 0; }
.p5-nav-side-list .is-active a {
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 14%, #fff);
  color: color-mix(in srgb, var(--p5-mast-tint, #1d4ed8) 75%, #0f172a) !important;
}
.p5-nav-side-list .is-active .p5-nav-ico {
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 22%, #fff);
}
.p5-nav-side-list .lvl-2 a { padding-left: 14px; }
.p5-nav-side-list .lvl-3 a { padding-left: 22px; }
.p5-nav-side-list .lvl-4 a { padding-left: 30px; }
.p5-nav-side-list .has-kids .p5-nav-ico {
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 18%, #fff);
  color: color-mix(in srgb, var(--p5-mast-tint, #1d4ed8) 85%, #0f172a);
}
.p5-nav-toggle {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  margin: 0 4px 0 0;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 9px;
  background: #fff;
  color: color-mix(in srgb, var(--p5-mast-tint, #1d4ed8) 80%, #0f172a);
  display: grid; place-items: center;
  cursor: pointer;
  padding: 0;
}
.p5-nav-toggle .ico {
  width: 14px; height: 14px;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.p5-nav-side-list .is-open > .p5-nav-row > .p5-nav-toggle {
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 16%, #fff);
  border-color: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 35%, #fff);
}
.p5-nav-side-list .is-open > .p5-nav-row > .p5-nav-toggle .ico { transform: rotate(90deg); }
.p5-nav-toggle:hover { background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 12%, #fff); }
.p5-nav-side-extra { margin: 14px 4px 2px; }
.p5-nav-side-extra a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue) !important; font-weight: 650; font-size: 13px;
}
.p5-nav-side-extra .ico { width: 16px; height: 16px; }
.p5-side-note {
  margin: 16px 8px 4px;
  padding: 12px 12px 11px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 12.5px;
  line-height: 1.35;
}
.p5-side-note strong { font-size: 15px; letter-spacing: .02em; }

.p5-alarm,
.p5-side .zne-alarm {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 6px;
  padding: 11px 12px 11px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: #0f172a;
  text-align: left;
  font-weight: 650;
}
.p5-alarm-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fef2f2;
  color: #dc2626;
  display: grid;
  place-items: center;
}
.p5-alarm-ico .ico { width: 20px; height: 20px; }
.p5-alarm-copy { min-width: 0; }
.p5-alarm-kicker {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.p5-alarm-nr {
  display: block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  color: #0f172a !important;
  text-decoration: none !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.p5-alarm-nr:hover { color: #b91c1c !important; }
.p5-alarm-note {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  color: #94a3b8;
}

/* Logowanie w sidebarze — uproszczone */
.p5-side form,
.p5-side table form { margin-top: 12px; }
.p5-side input[type="text"],
.p5-side input[type="password"] {
  width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 8px; font-size: 13px;
}

.p5-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  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: hidden;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 100%;
}
/* Landing: no double card around modules */
.p5-doc--land {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.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; }
/* Legacy small-caps document titles → P5 heading */
.p5-doc span[style*="small-caps"][style*="15px"],
.p5-doc span[style*="small-caps"][style*="16px"],
.p5-doc span[style*="small-caps"][style*="14px"],
.p5-doc span[style*="small-caps"][style*="25px"] {
  display: block !important;
  font-variant: normal !important;
  text-transform: none !important;
  font-size: clamp(22px, 3vw, 28px) !important;
  font-weight: 750 !important;
  letter-spacing: -.02em !important;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  margin: 0 0 12px !important;
  font-family: var(--font) !important;
}
.p5-doc span[style*="small-caps"][style*="15px"] b,
.p5-doc span[style*="small-caps"][style*="16px"] b,
.p5-doc span[style*="small-caps"][style*="14px"] b,
.p5-doc span[style*="small-caps"][style*="25px"] b,
.p5-doc span[style*="small-caps"][style*="15px"] strong,
.p5-doc span[style*="small-caps"][style*="16px"] strong {
  font-weight: 750 !important;
  font-size: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
}
.p5-art-figure--float {
  float: right;
  clear: right;
  width: min(400px, 48%);
  max-width: 420px;
  margin: 4px 0 16px 24px;
}
@media (max-width: 760px) {
  .p5-art-figure--float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
  }
}

/* Ogłoszenia */
.p5-ads-actions { margin: 10px 0 0; }
.p5-ads-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.p5-ads-cat {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
  align-items: start;
}
.p5-ads-cat-media img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
  display: block;
}
.p5-ads-cat-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.p5-ads-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p5-ads-subcat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
}
.p5-ads-subcat:hover {
  border-color: #93c5fd;
  color: var(--blue) !important;
  background: #eff6ff;
}
.p5-ads-subcat em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.p5-ads-subcat--group {
  background: #f1f5f9;
  color: #64748b !important;
  border-style: dashed;
}
.p5-ads-detail-layout {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 18px;
  align-items: start;
}
.p5-ads-detail-layout--text { grid-template-columns: 1fr; }
.p5-ads-detail-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e2e8f0;
}
.p5-ads-detail-media img {
  display: block;
  width: 100%;
  height: auto;
}
.p5-ads-cat-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.p5-ads-cat-picker {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-height: 240px;
  overflow: auto;
}
.p5-ads-cat-picker ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p5-ads-cat-option {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}
.p5-ads-cat-option:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .p5-ads-cat { grid-template-columns: 1fr; }
  .p5-ads-cat-media img { width: 100%; height: 120px; }
  .p5-ads-detail-layout { grid-template-columns: 1fr; }
}
.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: break-word;
  word-break: normal;
}
.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: var(--font);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.p5-doc h1 { font-size: 1.45rem; }
.p5-doc h2 { font-size: 1.18rem; margin-top: 1.1em; }
.p5-doc h3 { font-size: 1.05rem; }
.p5-doc .small,
.p5-doc .smallgl,
.p5-doc .small-dark,
.p5-doc .small-light {
  font-family: var(--font) !important;
  font-size: 13px !important;
  color: inherit;
}
.p5-doc .data { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Legacy CMS HTML inside documents (inline Arial/Verdana/Red, <font>, class=small) */
.p5-doc,
.p5-art-body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.p5-doc font,
.p5-doc span[style],
.p5-doc p[style],
.p5-doc div[style],
.p5-doc td[style],
.p5-doc th[style],
.p5-doc h1[style],
.p5-doc h2[style],
.p5-doc h3[style],
.p5-doc h4[style],
.p5-doc b[style],
.p5-doc strong[style],
.p5-doc i[style],
.p5-doc em[style],
.p5-art-body font,
.p5-art-body span[style],
.p5-art-body p[style],
.p5-art-body div[style],
.p5-art-body td[style],
.p5-art-body th[style],
.p5-art-body h1[style],
.p5-art-body h2[style],
.p5-art-body h3[style],
.p5-art-body h4[style],
.p5-art-body b[style],
.p5-art-body strong[style],
.p5-art-body i[style],
.p5-art-body em[style] {
  font-family: var(--font) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.p5-doc [style*="color: Red"],
.p5-doc [style*="color: red"],
.p5-doc [style*="color:Red"],
.p5-doc [style*="color:#ff0000" i],
.p5-doc [style*="color: #ff0000" i],
.p5-doc [style*="color:#FF0000"],
.p5-doc [style*="color: #FF0000"],
.p5-art-body [style*="color: Red"],
.p5-art-body [style*="color: red"],
.p5-art-body [style*="color:Red"],
.p5-art-body [style*="color:#ff0000" i],
.p5-art-body [style*="color: #ff0000" i],
.p5-art-body [style*="color:#FF0000"],
.p5-art-body [style*="color: #FF0000"] {
  color: var(--navy) !important;
}
.p5-doc [align="justify"],
.p5-art-body [align="justify"],
.p5-doc div[style*="justify"],
.p5-art-body div[style*="justify"] {
  text-align: left !important;
}
.p5-art-body .small,
.p5-art-body .smallgl,
.p5-art-body .small-dark,
.p5-art-body .small-light {
  font-family: var(--font) !important;
  font-size: inherit !important;
  color: inherit !important;
}
.p5-art-body h3[style*="text-align: center"],
.p5-art-body h3[style*="text-align:center"],
.p5-doc h3[style*="text-align: center"],
.p5-doc h3[style*="text-align:center"] {
  margin: 28px 0 6px;
  text-align: center !important;
  font-size: 1.12em !important;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy) !important;
}
.p5-recipe-box {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.p5-recipe-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-recipe-box .p5-recipe-body,
.p5-recipe-prep {
  font-size: 15px;
  line-height: 1.65;
}
.p5-recipe-prep { margin: 0 0 14px; }

/* 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-note a { color: #92400e !important; font-weight: 700; }
.p5-note a:hover { color: var(--blue) !important; }
.p5-riddle-note { margin: 0 0 18px; }
.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-search-page .p5-search-meta {
  margin: 4px 0 0; font-size: 14px; color: var(--muted);
}
.p5-search-page .p5-search-meta strong { color: var(--ink); font-weight: 700; }
.p5-search-again { margin: 10px 0 18px; }
.p5-search-empty {
  margin: 8px 0 0; padding: 16px 18px;
  border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa;
  color: #9a3412; font-size: 14px; line-height: 1.45;
}
.p5-search-err { color: #b91c1c !important; font-weight: 600; }
.p5-search-list .p5-news-card {
  padding: 16px 0;
}
.p5-search-list .p5-news-card:first-child { padding-top: 4px; }
.p5-search-pod {
  display: inline-block; margin: 0 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.p5-search-list .thumb-ph {
  /* same as .p5-news-card .thumb-ph */
}
.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: #fff; }
.p5-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 750;
  font-size: 15.5px;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.p5-table a { color: var(--ink) !important; font-weight: 600; }
.p5-table a:hover { color: var(--blue) !important; }
.p5-art-head { margin-bottom: 18px; }
.p5-art-kicker {
  display: inline-block; margin: 0 0 8px; padding: 3px 9px; border-radius: 999px;
  background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.p5-art-head h1 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.25; }
.p5-art-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.p5-art-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
}
.p5-art-pages-bottom { margin: 16px 0 8px; }
.p5-list-bottom { margin: 16px 0 8px; }
.p5-pager,
.p5-trail-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  margin: 12px 0 4px;
  font-size: 13.5px;
}
.p5-pager:not(:has(a:not(.is-disabled))),
.p5-trail-pager:not(:has(a:not(.is-disabled))) {
  display: none;
}
.p5-art-pages .p5-pager { margin: 0; }
.p5-pager a,
.p5-pager .p5-pager-item,
.p5-trail-pager a,
.p5-trail-pager .p5-pager-item,
.p5-art-pages a.p5-pager-item,
.p5-gal-pages a,
.p5-gal-pages .p5-pager-item,
.p5-pager-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2.1rem;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue) !important;
  font-weight: 650;
  text-decoration: none !important;
  line-height: 1;
}
.p5-pager a:hover,
.p5-trail-pager a:hover,
.p5-gal-pages a:hover {
  background: var(--blue-soft);
  border-color: #bfdbfe;
  text-decoration: none !important;
}
.p5-pager b,
.p5-pager .is-current,
.p5-trail-pager b,
.p5-trail-pager .is-current,
.p5-art-pages b,
.p5-art-pages .is-current,
.p5-gal-pages b,
.p5-gal-pages .is-current,
.p5-pager-item.is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2.1rem;
  padding: 0 10px;
  border-radius: 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3 !important;
  font-weight: 750;
  line-height: 1;
}
.p5-pager .is-disabled {
  opacity: .38;
  color: var(--muted) !important;
  pointer-events: none;
}
.p5-pager-admin {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
}
.p5-art-archive { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.p5-art-body { font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.p5-art-body p { margin: 0 0 12px; text-indent: 0; text-align: left; }
.p5-art-body p:empty,
.p5-art-body p.gallery-item__title,
.p5-art-body .gallery-item__title { display: none !important; }
.p5-art-body img { border-radius: 12px; margin: 8px 0; max-width: 100%; height: auto; }
.p5-art-body img[align="left"],
.p5-doc img[align="left"],
.p5-block img[align="left"],
.p5-art-body img[style*="float:left"],
.p5-art-body img[style*="float: left"],
.p5-doc img[style*="float:left"],
.p5-doc img[style*="float: left"] {
  float: left !important;
  margin: 4px 18px 12px 0 !important;
}
.p5-art-body img[align="right"],
.p5-doc img[align="right"],
.p5-block img[align="right"],
.p5-art-body img[style*="float:right"],
.p5-art-body img[style*="float: right"],
.p5-doc img[style*="float:right"],
.p5-doc img[style*="float: right"] {
  float: right !important;
  margin: 4px 0 12px 18px !important;
}
.p5-art-body object,
.p5-art-body embed { display: none !important; }
.p5-art-body .p5-video {
  position: relative; width: 100%; max-width: 720px;
  aspect-ratio: 16 / 9; margin: 12px 0; border-radius: 14px; overflow: hidden;
  background: #0f172a;
}
.p5-art-body .p5-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.p5-art-body .p5-video-list {
  display: grid;
  gap: 18px;
  margin: 16px 0 8px;
  max-width: 720px;
}
.p5-art-body .p5-video-block { margin: 0; }
.p5-art-body .p5-video-block .p5-video { margin: 0; max-width: none; }
.p5-art-body .p5-video-block figcaption {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  font-weight: 650;
  line-height: 1.35;
}
.p5-art-body .p5-audio { margin: 12px 0; }
.p5-art-body .p5-audio audio { width: 100%; max-width: 480px; }
.p5-art-body .p5-media-gone {
  margin: 12px 0; padding: 10px 12px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600;
}
.p5-art-body .p5-media-gone a { color: var(--blue) !important; }
.p5-art-body ul,
.p5-art-body ol { margin: 0 0 14px; padding-left: 1.25em; }
.p5-art-body li { margin: 0 0 6px; }
.p5-art-lead,
.p5-art-head p {
  font-size: 16.5px; line-height: 1.55; font-weight: 600; color: #1e293b;
  margin: 0 0 14px !important;
  text-align: left !important;
  text-indent: 0 !important;
}
.p5-art-figure {
  float: right;
  clear: right;
  width: min(400px, 48%);
  max-width: 420px;
  margin: 4px 0 16px 24px;
  background: transparent;
}
.p5-art-figure a { display: block; max-width: 100%; cursor: zoom-in; }
.p5-art-figure img {
  width: 100%;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  display: block;
  background: transparent;
}
.p5-art-figure--float {
  float: right;
  clear: right;
  width: min(400px, 48%);
  max-width: 420px;
  margin: 4px 0 16px 24px;
}
.p5-art-figure--left {
  float: left;
  clear: left;
  margin: 4px 24px 16px 0;
}
.p5-art-figure--wide {
  float: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 18px;
}
.p5-art-figure--wide img {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
.p5-art-body .text-center,
.p5-art-body [align="center"],
.p5-art-body center,
.p5-art-body .western { text-align: left !important; }
.p5-art-body h2.fw-600,
.p5-art-body h2.text-center {
  font-size: 1.05em; font-weight: 700; margin: 0 0 10px; text-align: left !important;
  /* ukryj powtórzony tytuł z importu, gdy idzie zaraz po leadzie/obrazie */
}
.p5-art-body > h2:first-child:not(.p5-art-h),
.p5-art-figure + h2:not(.p5-art-h),
.p5-art-figure + p + h2:not(.p5-art-h) { display: none; }
.p5-art-body h2.p5-art-h {
  display: block !important;
  clear: both;
  margin: 22px 0 10px;
  font-size: 1.15em;
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-art-body::after {
  content: "";
  display: table;
  clear: both;
}
.p5-art-figure figcaption,
.p5-art-gallery figcaption {
  margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.35;
}
.p5-art-source { clear: both; margin-top: 18px !important; font-size: 13px; color: var(--muted); }
.p5-art-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin: 16px 0; clear: both;
}
.p5-art-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p5-art-gallery figure {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
}
.p5-art-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: transparent;
  margin: 0;
  cursor: zoom-in;
}
}
.p5-art-caption {
  margin: 4px 0 18px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.p5-art-extra { margin: 16px 0; clear: both; }
.p5-art-back { margin: 20px 0 0; clear: both; }
.p5-art-admin { margin: 12px 0; font-size: 12.5px; }

.p5-list-head { margin-bottom: 6px; }
.p5-list-admin { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.p5-list-archive { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.p5-subcats { list-style: none; padding: 0; margin: 0 0 16px; }
.p5-subcats li { border-bottom: 1px solid var(--line); }
.p5-subcats a {
  display: block; padding: 10px 2px; font-weight: 600; color: var(--ink) !important;
}
.p5-subcats a:hover { color: var(--blue) !important; text-decoration: none !important; }
.p5-cave-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.p5-cave-list li { border-bottom: 1px solid var(--line); }
.p5-cave-list > li > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 11px 2px;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 600;
}
.p5-cave-list > li > a:hover { color: var(--blue) !important; }
.p5-cave-list small {
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.p5-cave-warn { margin: 0 0 16px; }
.p5-cave-top { margin: 0 0 16px; }
.p5-cave-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.p5-cave-facts > div {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.p5-cave-facts dt {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-cave-facts dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}
.p5-cave-credit {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.p5-cave-credit a { color: var(--blue) !important; font-weight: 650; }
@media (max-width: 640px) {
  .p5-cave-facts { grid-template-columns: 1fr; }
}
.p5-news-list { margin-top: 4px; }
.p5-news-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.p5-news-card:last-child { border-bottom: 0; }
.p5-news-card .thumb {
  display: block; border-radius: 14px; overflow: hidden; background: #e2e8f0;
  aspect-ratio: 4 / 3; line-height: 0; position: relative;
}
.p5-news-card .thumb a { display: block; width: 100%; height: 100%; }
.p5-news-card .thumb img,
.p5-news-card .thumb a img {
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; display: block; border-radius: 0; margin: 0;
  border: 0 !important; float: none !important; vertical-align: top;
}
.p5-news-card .thumb a { display: block; width: 100%; height: 100%; }
.p5-news-card .thumb-ph,
.p5-search-list .thumb-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    repeating-linear-gradient(-45deg, #eef2f6, #eef2f6 7px, #e4ebf2 7px, #e4ebf2 14px);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1.2;
  text-align: center;
}
.p5-news-card .thumb-ph::before,
.p5-search-list .thumb-ph::before {
  content: "";
  width: 32px;
  height: 26px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='1.7' stroke-linejoin='round'><rect x='3.5' y='5.5' width='17' height='13' rx='2'/><circle cx='9' cy='10' r='1.3' fill='%2364758b' stroke='none'/><path d='m6.5 16.5 4-3.5 3 2.5 2.2-1.8 4.8 2.8'/></svg>");
  opacity: .85;
}
.p5-news-card .thumb-ph::after,
.p5-search-list .thumb-ph::after {
  content: "Brak zdjęcia";
}
.p5-news-card .thumb > a[align],
.p5-news-card .thumb img[align] { float: none !important; }
.p5-news-card .thumb.p5-rep-logo {
  background: #0f172a;
}
.p5-news-card .thumb.p5-rep-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.p5-news-card .thumb.p5-rep-logo img,
.p5-news-card .thumb.p5-rep-logo a img {
  width: auto !important;
  height: auto !important;
  max-width: 86% !important;
  max-height: 78% !important;
  object-fit: contain;
}
.p5-news-card .thumb.p5-rep-logo--sokol { background: #111; }
.p5-news-card .thumb.p5-rep-logo--miejsce { background: #4a9978; }
.p5-news-card .thumb.p5-rep-logo--giewont { background: #1a1a1a; }
.p5-news-card .thumb.p5-rep-logo--witkacy { background: #f4efeb; }
.p5-news-source {
  margin: 0 0 8px; font-size: 12px; color: var(--muted);
}
.p5-news-source a {
  color: var(--muted) !important; font-weight: 600; text-decoration: none !important;
  border-bottom: 1px dotted #cbd5e1;
}
.p5-news-source a:hover { color: var(--blue) !important; border-bottom-color: var(--blue); }
.p5-press-list { margin-top: 4px; }
.p5-news-body { min-width: 0; }
.p5-news-card h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.3; }
.p5-news-card h3 a { color: var(--ink) !important; }
.p5-news-card h3 a:hover { color: var(--blue) !important; text-decoration: none !important; }
.p5-news-brief {
  margin: 0 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p5-news-author {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.p5-news-author strong { color: #334155; font-weight: 650; }
.p5-news-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center;
}
.p5-news-foot .more { font-weight: 700; color: var(--blue) !important; font-size: 13px; }
.p5-news-foot .more:hover { text-decoration: underline !important; }
.p5-list-bottom { margin: 16px 0 8px; }
.p5-foto-list .p5-note { margin: 0 0 18px; }
.p5-foto-card .thumb {
  display: block; border-radius: 14px; overflow: hidden; background: #e2e8f0;
  aspect-ratio: 4 / 3; line-height: 0;
}
.p5-foto-card .thumb img {
  width: 100% !important; height: 100% !important; object-fit: cover; display: block;
}
.p5-list-admin-row { margin-top: 8px; font-size: 12px; color: var(--muted); }

.p5-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; line-height: 1.2;
}
.p5-btn-ghost {
  background: #fff; border-color: #e2e8f0; color: var(--ink) !important;
}
.p5-btn-ghost:hover { border-color: #cbd5e1; color: var(--blue) !important; text-decoration: none !important; }

.p5-doc-tools {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
}
.p5-tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  color: var(--ink) !important; white-space: nowrap;
  text-decoration: none !important; line-height: 1.2;
}
.p5-tool .ico { width: 15px; height: 15px; color: var(--blue); flex: 0 0 auto; }
.p5-tool:hover {
  background: var(--blue-soft); border-color: #bfdbfe;
  color: var(--blue) !important; text-decoration: none !important;
}
.p5-doc-tools a { color: inherit; }
.p5-doc-tools a:hover { text-decoration: none !important; }
.p5-doc-views {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; color: var(--muted); font-weight: 500;
  padding: 7px 4px;
}
.p5-doc-views .ico { width: 15px; height: 15px; }

/* Article comments */
.p5-comments {
  margin: 8px 0 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}
.p5-comments-head {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.p5-comments-title {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}
.p5-comments-title .ico { width: 18px; height: 18px; color: var(--blue); }
.p5-comments-add .ico { width: 15px; height: 15px; }
.p5-comments-empty {
  margin: 0; padding: 10px 2px; font-size: 13.5px; color: var(--muted);
}
.p5-comments-list { display: flex; flex-direction: column; gap: 10px; }
.p5-comment {
  margin-left: calc(var(--p5-indent, 0) * 16px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-comment-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  margin-bottom: 6px; font-size: 12.5px; color: var(--muted);
}
.p5-comment-nick { color: var(--ink); font-size: 13.5px; }
.p5-comment-nick a { color: var(--ink) !important; }
.p5-comment-nick a:hover { color: var(--blue) !important; text-decoration: none !important; }
.p5-comment-date { font-weight: 500; }
.p5-comment-flag {
  margin-left: auto; color: var(--muted) !important; opacity: .7;
}
.p5-comment-flag:hover { opacity: 1; color: #b45309 !important; }
.p5-comment-flag .ico { width: 14px; height: 14px; }
.p5-comment-title {
  margin: 0 0 6px; font-size: 14px; font-weight: 650; line-height: 1.3;
}
.p5-comment-body {
  font-size: 14px; line-height: 1.55; color: #1e293b;
}
.p5-comment-actions { margin: 10px 0 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Comment / topic compose form */
.p5-comment-form {
  max-width: 720px;
  margin: 0 auto 24px;
}
.p5-comment-form-back {
  margin: 0 0 12px;
  font-size: 13.5px;
}
.p5-comment-form-back a {
  color: var(--blue) !important;
  font-weight: 650;
  text-decoration: none !important;
}
.p5-comment-form-back a:hover { text-decoration: underline !important; }
.p5-comment-form-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}
.p5-comment-form-head { margin: 0 0 2px; }
.p5-comment-form-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--ink);
}
.p5-comment-form-title .ico { width: 18px; height: 18px; color: var(--blue); }
.p5-comment-form .p5-auth-field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.p5-comment-form .p5-auth-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  min-height: 140px;
  line-height: 1.45;
}
.p5-comment-form .p5-auth-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-color: #93c5fd;
}
.p5-comment-form-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.p5-comment-form-bb {
  display: inline-flex;
  gap: 6px;
}
.p5-comment-form-bb .p5-tool {
  min-width: 34px;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
}
.p5-comment-form-emo {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
.p5-comment-form-emo a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid transparent;
}
.p5-comment-form-emo a:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.p5-comment-form-emo img {
  display: block;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
.p5-comment-form-preview {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b;
}
.p5-comment-form-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  font-size: 12.5px;
  line-height: 1.45;
  color: #78716c;
}
.p5-comment-form-note strong { color: #57534e; }
.p5-comment-form-replyto {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-comment-form-replyto-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.p5-comment-form-replyto-meta a { color: var(--ink) !important; }
.p5-comment-form-replyto-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.p5-comment-form-replyto-title a { color: var(--ink) !important; }
.p5-comment-form-replyto-title a:hover { color: var(--blue) !important; }
.p5-comment-form-replyto-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
}
.p5-comment-form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p5-comment-form .p5-auth-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}
.p5-forum-stats {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  max-width: 420px;
}
.p5-forum-stats-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 750;
}
.p5-forum-stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p5-forum-stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}
.p5-forum-stats-list strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.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; }
  body.zne-p5-sub .p5-mast { height: 132px; margin: 0 0 14px; border-radius: 0; }
  body.zne-p5-sub .p5-mast-copy { padding: 14px 14px 16px; max-width: none; }
  body.zne-p5-sub .p5-mast-kicker { font-size: 10.5px; letter-spacing: .05em; }
  body.zne-p5-sub .p5-mast-title { font-size: 24px; }
  .p5-doc { padding: 14px; border-radius: 18px; }
  .p5-doc--land { padding: 0; border-radius: 0; }
  .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,
  .p5-art-figure--float,
  .p5-art-figure--left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
  }
  .p5-art-figure img { max-height: none; }
  .p5-art-body table[align="right"],
  .p5-art-body table[align="left"],
  .p5-doc table[align="right"],
  .p5-doc table[align="left"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
  }
  .p5-art-gallery { grid-template-columns: 1fr; }
  .p5-news-card { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .p5-news-card .thumb { aspect-ratio: 1 / 1; border-radius: 12px; }
  .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, .p5-mast-photo { will-change: auto; transform: none !important; }
  .p5-mast { animation: none; }
  .p5-item { transition: none; }
}

/* --- Gallery (P5) --- */
.p5-side-note {
  margin: 14px 4px 0; padding: 10px 12px; border-radius: 12px;
  background: #fef2f2; color: #991b1b; font-size: 12.5px; line-height: 1.35;
}
.p5-side-note strong { font-size: 15px; letter-spacing: .02em; }
.p5-gal-home { display: flex; flex-direction: column; gap: 18px; }
.p5-gal-home-block {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe;
}
.p5-gal-home-hrow {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  justify-content: space-between; margin: 0 0 12px;
}
.p5-gal-home-hrow h2 { margin: 0; font-size: 16px; font-weight: 700; }
.p5-gal-home-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.p5-gal-home-cta { margin: 12px 0 0; }
.p5-gal-home-cta .p5-btn .ico { width: 15px; height: 15px; }
.p5-gal-day { margin: 0; }
.p5-gal-day-pic {
  position: relative; display: block; border-radius: 16px; overflow: hidden; background: #e2e8f0;
}
.p5-gal-day-pic img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.p5-gal-day-badge {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15,23,42,.72); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.p5-gal-day-cap {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  margin-top: 10px; font-size: 13.5px; color: var(--muted);
}
.p5-gal-day-cap strong { color: var(--ink); font-size: 15px; }
.p5-gal-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.p5-gal-thumb {
  display: block; border-radius: 12px; overflow: hidden; background: #e2e8f0; aspect-ratio: 4 / 3;
}
.p5-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.p5-gal-thumb:hover img { transform: scale(1.05); }
.p5-gal-rec { list-style: none; margin: 0; padding: 0; }
.p5-gal-rec li { border-bottom: 1px solid var(--line); }
.p5-gal-rec a {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 2px;
  color: var(--ink) !important; text-decoration: none !important;
}
.p5-gal-rec a:hover strong { color: var(--blue); }
.p5-gal-rec span { font-size: 12.5px; color: var(--muted); }
.p5-gal-search {
  margin: 0 0 16px; padding: 14px 16px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 16px;
}
.p5-gal-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.p5-gal-search-row 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-gal-search-opts {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px;
  font-size: 12.5px; color: var(--muted);
}
.p5-gal-search-err { color: #b91c1c; font-size: 13px; margin: 0 0 8px; }
.p5-gal-result-bar {
  margin: 0 0 16px; padding: 10px 14px;
  font-size: 14px; color: var(--muted);
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
}
.p5-gal-result-bar strong { color: var(--ink); font-weight: 700; }
.p5-gal-search-page .p5-gal-search { margin-bottom: 12px; }
.p5-gal { max-width: 100%; }
.p5-gal-head {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start;
  justify-content: space-between; margin: 0 0 16px;
}
.p5-gal-head-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.p5-gal-cat-ico {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  border: 1px solid #e2e8f0; flex: 0 0 36px;
}
.p5-gal-desc { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.p5-gal-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.p5-gal-kicker {
  margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}
.p5-gal-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end;
  margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 14px; background: #f8fafc;
}
.p5-gal-toolbar label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.p5-gal-toolbar select {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 7px 10px;
  background: #fff; font-size: 13px; color: var(--ink); min-width: 110px;
}
.p5-gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.p5-gal-card {
  display: flex; flex-direction: column; gap: 8px; margin: 0;
  text-decoration: none !important; color: var(--ink) !important;
}
.p5-gal-card-media {
  display: block; overflow: hidden; border-radius: 14px;
  background: #e2e8f0; aspect-ratio: 4 / 3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.p5-gal-card-media:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
  transform: translateY(-2px);
}
.p5-gal-card img,
.p5-gal-card-media img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; background: #e2e8f0; display: block;
  transition: transform .35s ease;
}
.p5-gal-card-media:hover img { transform: scale(1.04); }
.p5-gal-card figcaption { display: flex; flex-direction: column; gap: 2px; min-height: 2.6em; }
.p5-gal-card-title {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  color: var(--ink) !important; text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p5-gal-card:hover .p5-gal-card-title { color: var(--blue) !important; }
.glightbox-desc { display: none; }
.glightbox-clean .gslide-description .gslide-desc a {
  color: #93c5fd !important; font-weight: 600;
}
.p5-cms-gal-grid {
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.p5-gal-intro {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 0 0 18px; padding: 16px 18px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 16px;
}
.p5-gal-intro-thumb {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px;
  object-fit: cover; background: #e2e8f0;
}
.p5-gal-intro-body {
  flex: 1 1 auto; min-width: 0;
  font-size: 14px; line-height: 1.55; color: #334155;
}
.p5-gal-intro-body p { margin: 0 0 .7em; }
.p5-gal-intro-body p:last-child { margin-bottom: 0; }
.p5-gal-intro-body font,
.p5-gal-intro-body span[style],
.p5-gal-intro-body p[style] {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}
.p5-gal-intro-body h3 {
  margin: .4em 0; font-size: 15px; font-weight: 700; color: var(--ink) !important;
}
.p5-gal-intro-body br + br { display: none; }
.p5-gal-admin-bar {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa;
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
}
.p5-gal-thumb.is-current {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 10px;
}
.p5-cms-photo-thumbs { margin: 14px 0; }
.p5-gal-kicker a { color: var(--muted) !important; text-decoration: none !important; }
.p5-gal-kicker a:hover { color: var(--blue) !important; }
@media (max-width: 900px) {
  .p5-cms-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .p5-gal-intro { flex-direction: column; }
  .p5-gal-intro-thumb { width: 72px; height: 72px; flex-basis: 72px; }
}
.p5-gal-card-day { font-size: 11.5px; color: var(--muted); }
.p5-gal-admin { font-size: 12px; margin: -6px 0 8px; }
.p5-gal-users .p5-gal-meta strong { color: var(--ink); font-weight: 700; }
.p5-gal-user-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.p5-gal-user {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.p5-gal-user:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  text-decoration: none !important;
}
.p5-gal-user-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p5-gal-user-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.p5-gal-user:hover .p5-gal-user-name { color: var(--blue); }
.p5-gal-user-count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .p5-gal-user-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .p5-gal-user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .p5-gal-user-grid { grid-template-columns: 1fr; }
}
.p5-gal-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.p5-gal-cat-grid--narrow { grid-template-columns: 1fr; }
.p5-gal-cat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.p5-gal-cat:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  text-decoration: none !important;
}
.p5-gal-cat-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
}
.p5-gal-cat-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.p5-gal-cat-body strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.p5-gal-cat:hover .p5-gal-cat-body strong { color: var(--blue); }
.p5-gal-cat-body em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.p5-ecard-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 14px;
}
.p5-ecard-nameday {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex: 1 1 280px;
  max-width: 520px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.p5-ecard-nameday-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.p5-ecard-nameday-dow,
.p5-ecard-nameday-mon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-ecard-nameday-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none !important;
}
.p5-ecard-nameday-num:hover { color: var(--blue); }
.p5-ecard-nameday-body { min-width: 0; }
.p5-ecard-nameday-body .p5-gal-kicker { margin: 0 0 4px; }
.p5-ecard-nameday-list {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.p5-ecard-nameday-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .p5-ecard-nameday { max-width: none; }
}
.p5-ecard { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.p5-ecard-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .2s ease;
}
.p5-ecard-media:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .1);
  transform: translateY(-2px);
}
.p5-ecard-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
.p5-ecard-name {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}
.p5-ecard-hero {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}
.p5-ecard-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .1);
}
.p5-ecard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
}
.p5-ecard-actions .p5-btn,
.p5-ecard-actions button.p5-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.p5-ecard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 16px;
  align-items: start;
}
.p5-ecard-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.p5-ecard-pick {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.p5-ecard-pick-img {
  flex: 0 0 auto;
  display: block;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.p5-ecard-pick-img img {
  display: block;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}
.p5-ecard-fieldset {
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-ecard-fieldset legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-ecard-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.p5-ecard-field input,
.p5-ecard-field textarea {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
.p5-ecard-field textarea { resize: vertical; min-height: 120px; }
.p5-ecard-field input:focus,
.p5-ecard-field textarea:focus {
  outline: 0;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.p5-ecard-err {
  margin: -4px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b91c1c;
}
.p5-ecard-notify {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.p5-ecard-notify label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.p5-ecard-motto {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.p5-ecard-motto blockquote {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #9a3412;
}
.p5-ecard-motto cite {
  display: block;
  font-style: italic;
  font-weight: 700;
  color: #9a3412;
}
.p5-ecard-opts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.p5-ecard-opt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.p5-ecard-opt img {
  width: 100%;
  max-width: 90px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  object-fit: contain;
}
.p5-ecard-stamps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p5-ecard-stamp {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.p5-ecard-stamp img {
  width: 72px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

/* Legacy mosaic e-cards — shield from global img/table resets */
.p5-ecard-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, .45);
}
.p5-ecard-backdrop:not([hidden]) { display: block; }
html.p5-ecard-preview-open { overflow: hidden; }
#div_back {
  /* stary overlay z moveshaped.js — nigdy nie blokuj kliknięć */
  pointer-events: none !important;
  display: none !important;
}
.p5-ecard-preview {
  display: none;
  position: fixed;
  z-index: 10050;
  left: 50%;
  top: 3vh;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(620px, 96vw);
  max-height: 94vh;
  overflow: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .35);
}
.p5-ecard-preview:not([hidden]) { display: block; }
.p5-ecard-render {
  margin: 0;
  text-align: center;
  line-height: 0;
  background: transparent;
}
.p5-ecard-render-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  background: #1d4ed8;
  color: #fff;
  font: 600 13px/1 system-ui, sans-serif;
  cursor: move;
  user-select: none;
  line-height: 1;
  text-align: left;
  border-radius: 10px 10px 0 0;
}
.p5-ecard-render-close {
  appearance: none;
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.p5-ecard-render-body {
  padding: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  line-height: 0;
}
@media (max-width: 640px) {
  .p5-ecard-preview {
    left: 2vw;
    right: 2vw;
    transform: none;
    width: auto;
    max-width: 96vw;
  }
  .p5-ecard-render-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.p5-ecard-preview table,
.p5-ecard-preview table[width],
.p5-doc .p5-ecard-render table,
.p5-doc .p5-ecard-render table[width],
.p5-ecard-render table,
.p5-ecard-render table[width] {
  width: 603px !important;
  max-width: none !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  table-layout: auto !important;
  background: transparent !important;
}
.p5-ecard-preview td,
.p5-ecard-preview th,
.p5-doc .p5-ecard-render td,
.p5-doc .p5-ecard-render th,
.p5-ecard-render td,
.p5-ecard-render th {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: left top !important;
  background-size: auto !important;
  vertical-align: top !important;
  line-height: normal;
}
.p5-ecard-preview img,
.p5-doc .p5-ecard-render img,
.p5-ecard-render img {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  vertical-align: top !important;
  object-fit: unset !important;
  border-radius: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.p5-ecard-preview span,
.p5-ecard-preview div,
.p5-doc .p5-ecard-render span,
.p5-doc .p5-ecard-render div,
.p5-ecard-render span,
.p5-ecard-render div {
  line-height: normal;
}

.p5-ecard-quote-cat { margin: 0 0 18px; }
.p5-ecard-quote-cat h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.p5-ecard-quote {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-ecard-quote blockquote {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}
.p5-ecard-quote cite {
  display: block;
  margin: 0 0 10px;
  font-style: italic;
  font-weight: 700;
  color: var(--muted);
}
.p5-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 18px;
}
.p5-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.p5-link-row:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  color: var(--blue) !important;
  text-decoration: none !important;
}
.p5-link-row em {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
}
.p5-lift-item { margin: 0 0 4px; }
.p5-lift-meta {
  margin: 0 14px 10px;
  font-size: 13px;
  color: var(--muted);
}
.p5-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.p5-doc-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 650;
}
.p5-doc-tab:hover,
.p5-doc-tab.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--blue) !important;
}
.p5-lift-wx,
.p5-kolej,
.p5-contact-card {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}
.p5-lift-wx h2,
.p5-kolej-head h2,
.p5-contact-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.p5-kolej-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
}
.p5-kolej-head h2 { margin: 0; }
.p5-kolej-facts { margin: 0 0 10px; }
.p5-trasy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.p5-trasa {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}
.p5-trasa h3 { margin: 0 0 6px; font-size: 14px; }
.p5-trasa p { margin: 0 0 4px; color: var(--muted); }
.p5-lift-contact {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}
.p5-kolej-on { color: #15803d; font-weight: 700; font-size: 13px; }
.p5-kolej-off { color: #b91c1c; font-weight: 700; font-size: 13px; }
.p5-lift-facts-wide { grid-column: 1 / -1; }
.p5-contact-list { display: flex; flex-direction: column; gap: 12px; }
.p5-contact-card { background: #fff; }
.p5-contact-card .p5-art-body { margin: 0; }
.p5-list-intro,
.p5-list-outro {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.p5-list-intro:empty,
.p5-list-outro:empty { display: none; }
.p5-list-intro center,
.p5-list-outro center {
  display: block;
  width: 100% !important;
  text-align: left;
}
.p5-list-intro hr,
.p5-list-outro hr { display: none; }
/* CMS intro: keep real tables so nested photo+text layouts survive */
.p5-list-intro table,
.p5-list-outro table {
  display: table;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  border: 0;
  background: transparent;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
}
.p5-list-intro table tbody,
.p5-list-outro table tbody { display: table-row-group; width: auto; }
.p5-list-intro table tr,
.p5-list-outro table tr { display: table-row; width: auto; }
.p5-list-intro table td,
.p5-list-outro table td {
  display: table-cell;
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: transparent;
  vertical-align: top;
}
.p5-list-intro table td:has(table),
.p5-list-outro table td:has(table) {
  width: 100% !important;
}
.p5-list-intro table tr:has(> td:nth-child(2)) > td:has(img):not(:has(table)),
.p5-list-outro table tr:has(> td:nth-child(2)) > td:has(img):not(:has(table)) {
  width: 1%;
  white-space: nowrap;
  padding-left: 18px !important;
  vertical-align: top;
}
.p5-list-intro table tr:has(> td:nth-child(2)) > td:not(:has(img)),
.p5-list-outro table tr:has(> td:nth-child(2)) > td:not(:has(img)) {
  width: 99%;
}
.p5-list-intro a:has(img),
.p5-list-outro a:has(img) {
  display: inline-block;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0;
}
.p5-list-intro img,
.p5-list-outro img {
  display: block;
  float: none !important;
  width: 200px !important;
  max-width: 200px !important;
  min-width: 160px;
  height: auto !important;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px !important;
  border: 0 !important;
  margin: 0 0 8px !important;
  background: #e2e8f0;
}
/* Same cell: copy full-width, picture to the right */
.p5-list-intro table td:has(img):not(:has(table)):has(b) img,
.p5-list-intro table td:has(img):not(:has(table)):has(p) img,
.p5-list-intro table td:has(img):not(:has(table)):has(font) img,
.p5-list-intro table td:has(img):not(:has(table)):has(br) img,
.p5-list-outro table td:has(img):not(:has(table)):has(b) img,
.p5-list-outro table td:has(img):not(:has(table)):has(p) img,
.p5-list-outro table td:has(img):not(:has(table)):has(font) img,
.p5-list-outro table td:has(img):not(:has(table)):has(br) img,
.p5-list-intro table td:has(img):not(:has(table)):has(b) a:has(img),
.p5-list-outro table td:has(img):not(:has(table)):has(b) a:has(img) {
  float: right !important;
  width: 200px !important;
  max-width: 200px !important;
  margin: 0 0 12px 18px !important;
}
@media (max-width: 640px) {
  .p5-list-intro img,
  .p5-list-outro img,
  .p5-list-intro table td:has(img):not(:has(table)):has(b) img,
  .p5-list-outro table td:has(img):not(:has(table)):has(b) img {
    width: 140px !important;
    max-width: 140px !important;
    min-width: 120px;
  }
  .p5-list-intro table tr:has(> td:nth-child(2)) > td:has(img):not(:has(table)),
  .p5-list-outro table tr:has(> td:nth-child(2)) > td:has(img):not(:has(table)) {
    display: block;
    width: auto !important;
    padding: 0 0 12px !important;
    white-space: normal;
  }
  .p5-list-intro table tr:has(> td:nth-child(2)) > td:not(:has(img)),
  .p5-list-outro table tr:has(> td:nth-child(2)) > td:not(:has(img)) {
    display: block;
    width: 100% !important;
  }
}
.p5-songbook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 32px;
  margin: 4px 0 18px;
}
.p5-verse {
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.p5-verse-body,
.p5-verse-body font,
.p5-verse-body span,
.p5-verse-body p {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.5 !important;
  color: inherit !important;
}
.p5-verse-body p { margin: 0 0 .35em; }
.p5-verse--single {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.55;
  border: 0;
  padding: 0;
}
@media (max-width: 640px) {
  .p5-songbook { grid-template-columns: 1fr; gap: 0; }
}
.p5-author { margin: 0 0 18px; }
.p5-author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}
.p5-author-avatar {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
}
.p5-author-avatar--sm {
  flex-basis: 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
.p5-author-body { flex: 1 1 auto; min-width: 0; }
.p5-author-body .p5-page-title small {
  font-size: .72em;
  font-weight: 600;
  color: var(--muted);
}
.p5-author-meta {
  display: grid;
  gap: 6px 14px;
  margin: 10px 0 0;
  padding: 0;
}
.p5-author-meta > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.p5-author-meta dt {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-author-meta dd {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
}
.p5-author-meta dd em { font-style: normal; color: var(--muted); }
.p5-author-about {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.p5-author-about strong {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-author-about p { margin: 0; }
.p5-author-more { margin: 12px 0 0; }
.p5-author-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.p5-author-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}
.p5-author-tab:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  color: var(--blue) !important;
  text-decoration: none !important;
}
.p5-author-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff !important;
}
.p5-gal-albums { display: flex; flex-direction: column; gap: 18px; }
.p5-gal-album {
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.p5-gal-album-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 12px;
}
.p5-gal-album-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.p5-gal-album-title a {
  color: var(--ink) !important;
  text-decoration: none !important;
}
.p5-gal-album-title a:hover { color: var(--blue) !important; }
.p5-gal-grid--preview { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) {
  .p5-gal-grid--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .p5-author-card { flex-direction: column; }
  .p5-author-meta > div { grid-template-columns: 1fr; gap: 2px; }
  .p5-gal-grid--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .p5-ecard-layout { grid-template-columns: 1fr; }
  .p5-ecard-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .p5-gal-cat-grid { grid-template-columns: 1fr; }
  .p5-ecard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .p5-ecard-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.p5-gal-pager {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  justify-content: space-between; margin: 18px 0 4px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.p5-gal-pages { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; }
.p5-gal-pages a { color: var(--blue) !important; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.p5-gal-pages b { padding: 4px 8px; border-radius: 8px; background: #eef2ff; color: #3730a3; }
.p5-gal-links, .p5-gal-nav, .p5-gal-owner {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
}
.p5-gal-nav { align-items: center; justify-content: space-between; }
.p5-gal-nav-idx { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; }
.p5-gal-nav-idx a { color: var(--blue) !important; font-weight: 600; padding: 2px 4px; }
.p5-gal-nav-idx b { padding: 2px 6px; border-radius: 6px; background: #eef2ff; color: #3730a3; }
.p5-gal-nav-side { display: flex; gap: 6px; min-width: 88px; }
.p5-gal-nav-side-end { justify-content: flex-end; }
.p5-gal-stage {
  margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: #0f172a; text-align: center;
}
.p5-gal-stage-img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
.p5-gal-pano { width: 100%; height: 320px; border: 0; display: block; background: #111; }
.p5-gal-pano-actions { margin: 10px 0 0; text-align: center; }
.p5-gal-info {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; margin: 0 0 16px;
}
.p5-gal-info-main p { margin: 0 0 8px; font-size: 14px; }
.p5-gal-opis { margin-top: 10px; }
.p5-gal-opis p { margin: 4px 0 0; color: #334155; line-height: 1.55; }
.p5-gal-day-tag a {
  display: inline-block; margin: 0 0 8px; padding: 3px 9px; border-radius: 999px;
  background: #eef2ff; color: #3730a3 !important; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none !important;
}
.p5-gal-rate {
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc;
  display: flex; flex-direction: column; gap: 10px;
}
.p5-gal-rate-label {
  margin: 0; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.p5-gal-stars { display: flex; gap: 6px; }
.p5-gal-stars a {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 1px solid #e2e8f0; color: var(--ink) !important; font-weight: 700;
  text-decoration: none !important;
}
.p5-gal-stars a:hover { background: var(--blue-soft); border-color: #bfdbfe; color: var(--blue) !important; }
.p5-gal-flash { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; }
.p5-gal-flash-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.p5-gal-flash-warn { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.p5-gal-comments { margin-top: 8px; }
@media (max-width: 900px) {
  .p5-gal-home-split { grid-template-columns: 1fr; }
  .p5-gal-thumbs, .p5-gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p5-gal-info { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .p5-gal-thumbs, .p5-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p5-gal-pano { height: 240px; }
}

/* ===== Landing hubs (nowiny/tatry/…) ===== */
.p5-land { display: flex; flex-direction: column; gap: 16px; }
.p5-land-home-hrow,
.p5-land .p5-gal-home-hrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.p5-land-home-hrow h2,
.p5-land .p5-gal-home-hrow h2 {
  margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.p5-land-block {
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
}
.p5-land-split {
  display: grid;
  grid-template-columns: 1.4fr .85fr;
  gap: 16px;
  align-items: start;
}
.p5-land-stack { display: flex; flex-direction: column; gap: 16px; }
.p5-land-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  color: var(--p5-mast-tint, var(--blue));
}
.p5-land-feat {
  position: relative; overflow: hidden; border-radius: 20px;
  border: 0; background: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}
.p5-land-feat > a {
  display: grid; grid-template: 1fr / 1fr;
  min-height: min(368px, 44vw);
  color: #fff !important; text-decoration: none !important;
}
.p5-land-feat img {
  grid-area: 1 / 1; display: block; width: 100%; height: 100%;
  min-height: min(368px, 44vw);
  object-fit: cover;
  opacity: .95; transition: transform .55s ease, opacity .3s ease;
}
.p5-land-feat:hover img { transform: scale(1.04); opacity: 1; }
.p5-land-feat-txt {
  grid-area: 1 / 1; align-self: end; position: relative; z-index: 1;
  padding: 28px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.92) 48%);
  color: #fff !important;
}
.p5-land-feat-txt h2 {
  margin: 6px 0 8px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 750; line-height: 1.18;
  color: #fff !important;
}
.p5-land-feat-txt p {
  margin: 0 0 12px; font-size: 14px; opacity: .92; max-width: 52ch;
  color: #e2e8f0 !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p5-land-feat-txt .btn {
  margin-top: 2px;
}

.p5-land-news-list { display: flex; flex-direction: column; gap: 6px; }
.p5-land-news {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center;
  padding: 8px; border-radius: 14px; text-decoration: none !important; color: inherit;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.p5-land-news:hover { background: #f8fafc; border-color: rgba(15,23,42,.06); transform: translateX(2px); }
.p5-land-news-media img {
  display: block; width: 84px; height: 64px; object-fit: cover; border-radius: 12px;
  background: #e2e8f0;
}
.p5-land-news-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p5-land-news-tag {
  font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: var(--p5-mast-tint, var(--muted));
}
.p5-land-news b {
  font-size: 14px; font-weight: 650; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p5-land-news-when { font-size: 12px; color: var(--muted); }

.p5-land-hubs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.p5-land-hub {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 15px 14px; border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .06); background: #fff;
  text-decoration: none !important; color: inherit;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.p5-land-hub:hover {
  border-color: color-mix(in srgb, var(--p5-mast-tint, #64748b) 40%, #e2e8f0);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.p5-land-hub-ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 14%, #fff);
  color: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 85%, #0f172a);
}
.p5-land-hub-ico .ico { width: 18px; height: 18px; }
.p5-land-hub b { font-size: 14.5px; font-weight: 750; letter-spacing: -.01em; }
.p5-land-hub small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.p5-land-hub .go { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--p5-mast-tint, var(--blue)); }

.p5-land-wx {
  padding: 14px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #f8fafc, #eff6ff);
}
.p5-land-wx-now {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  margin-bottom: 8px;
}
.p5-land-wx-now strong { display: block; font-size: 14px; }
.p5-land-wx-now span { font-size: 12px; color: var(--muted); }
.p5-land-wx-temp { font-size: 28px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.p5-land-wx-desc {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 10px;
}
.p5-land-wx-ico .wx-svg, .p5-land-wx-day .wx-svg { width: 28px; height: 28px; }
.p5-land-wx-days {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px;
}
.p5-land-wx-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.7);
  font-size: 11px; color: var(--muted);
}
.p5-land-wx-day b { color: var(--ink); font-size: 13px; }
.p5-land-wx-fallback { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }

.p5-land-trips { display: flex; flex-direction: column; gap: 10px; }
.p5-land-trip {
  display: flex; gap: 12px; align-items: start;
  padding: 8px; border-radius: 12px; text-decoration: none !important; color: inherit;
  border: 1px solid transparent;
}
.p5-land-trip:hover { background: #f8fafc; border-color: var(--line); }
.p5-land-trip img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; flex: 0 0 70px; }
.p5-land-trip--text,
.p5-land-trip:not(:has(img)) { grid-template-columns: 1fr; }
.p5-land-trip b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.p5-land-trip small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.p5-land-trip em { font-style: normal; font-size: 13px; color: #475569; }

.p5-land-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.p5-land-chips a {
  display: inline-flex; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 600; text-decoration: none !important; color: var(--ink);
}
.p5-land-chips a:hover { border-color: #bfdbfe; background: var(--blue-soft); color: var(--blue); }

.p5-land-enc-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}
.p5-land-enc-nav a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none !important;
}
.p5-land-enc-nav a:hover { color: var(--blue); }
.p5-land-plan .pearls-plan {
  grid-column: auto;
  grid-row: auto;
  position: static;
  top: auto;
}

.p5-land-haslo {
  padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(145deg, #eff6ff, #fff);
}
.p5-land-haslo h2 { margin: 6px 0 8px; font-size: 18px; }
.p5-land-haslo h2 a { color: inherit; text-decoration: none !important; }
.p5-land-haslo p { margin: 0 0 10px; font-size: 14px; color: #334155; line-height: 1.45; }

.p5-land-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #57534e;
}
.p5-land-folk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.p5-land-folk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.p5-land-folk-card {
  position: relative;
  display: block;
  aspect-ratio: 5 / 6;
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
  text-decoration: none !important;
  color: var(--ink) !important;
  background: #f7fbff;
  border: 1px solid #e8eef6;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.p5-land-folk-card::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%
  );
}
.p5-land-folk-card .pad {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  padding: 12px 12px 0;
}
.p5-land-folk-card .hi {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dbe7f6;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.p5-land-folk-card .hi .ico { width: 14px; height: 14px; }
.p5-land-folk-card b {
  display: block;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--navy);
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.p5-land-folk-card .go {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.p5-land-folk-card img {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 72% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
  transform-origin: 50% 80%;
  transition: transform .45s ease;
}
.p5-land-folk-card img.is-dog { object-position: 22% 88%; }
.p5-land-folk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .1);
}
.p5-land-folk-card:hover img { transform: scale(1.07); }
.p5-land-folk a,
.p5-land-gminy a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(194, 65, 12, .12);
  background: linear-gradient(165deg, #fffaf5, #fff7ed);
  text-decoration: none !important;
  color: #9a3412;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.p5-land-folk a:hover,
.p5-land-gminy a:hover {
  background: #ffedd5;
  border-color: rgba(194, 65, 12, .28);
  transform: translateY(-1px);
}
.p5-land-folk-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .85);
  color: #c2410c;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.p5-land-folk-ico .ico { width: 15px; height: 15px; }

.p5-land-gminy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p5-land-gminy a {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
}
.p5-land-gminy a.is-on {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}
.p5-land-gminy a.is-on .p5-land-folk-ico {
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: none;
}

.p5-gmina-news { margin: 0 0 22px; }
.p5-gmina-news .p5-land-hubs { grid-template-columns: 1fr; }
.p5-gmina-places-h {
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 750;
}

/* Forum — zwarta lista, bez „okien” */
.p5-forum-dense {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.p5-forum-dense li { border-bottom: 1px solid rgba(15, 23, 42, .05); }
.p5-forum-dense li:last-child { border-bottom: 0; }
.p5-forum-dense a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
  text-decoration: none !important;
  color: inherit;
  transition: background .12s ease;
}
.p5-forum-dense a:hover { background: #f8fafc; }
.p5-forum-dense-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 12%, #fff);
  color: color-mix(in srgb, var(--p5-mast-tint, #3b82f6) 80%, #0f172a);
  margin-top: 1px;
}
.p5-forum-dense-ico .ico { width: 14px; height: 14px; }
.p5-forum-dense-body {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.p5-forum-dense-body b {
  font-size: 13.5px; font-weight: 650; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p5-forum-dense-body small {
  font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.p5-land-stacje {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.p5-land-stacja {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; text-decoration: none !important; color: inherit;
}
.p5-land-stacja img { width: 100%; height: 110px; object-fit: cover; }
.p5-land-stacja span { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 12px; }
.p5-land-stacja b { font-size: 14px; }
.p5-land-stacja small { font-size: 12.5px; color: var(--muted); }

.p5-land-places {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center;
}
.p5-land-places img { width: 140px; border-radius: 14px; display: block; }
.p5-land-places ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.p5-land-places a { font-weight: 650; text-decoration: none !important; color: var(--ink); }
.p5-land-places a:hover { color: var(--p5-mast-tint, var(--blue)); }

.p5-land .p5-side-note { margin-top: 14px; }

@media (max-width: 900px) {
  .p5-land-split { grid-template-columns: 1fr; }
  .p5-land-hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p5-land-folk { grid-template-columns: 1fr 1fr; }
  .p5-land-folk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p5-land-gminy a { flex: 1 1 calc(50% - 4px); }
  .p5-land-feat > a,
  .p5-land-feat img { min-height: 300px; }
  .p5-land-feat-txt { padding: 24px 18px 18px; }
  .p5-land-feat-txt h2 { font-size: 18px; line-height: 1.25; }
}
@media (max-width: 640px) {
  .p5-land-hubs, .p5-land-stacje { grid-template-columns: 1fr; }
  .p5-land-enc-nav { grid-template-columns: 1fr; }
  .p5-land-folk { grid-template-columns: 1fr 1fr; }
  .p5-land-folk-cards { grid-template-columns: 1fr 1fr; }
  .p5-land-gminy a { flex-basis: 100%; }
  .p5-land-places { grid-template-columns: 1fr; }
  .p5-land-wx-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p5-land-feat > a,
  .p5-land-feat img { min-height: 280px; }
  .p5-land-feat-txt { padding: 22px 16px 16px; }
  .p5-land-feat-txt p { -webkit-line-clamp: 2; }
}

/* ===== Pogoda + kamery (menu 1285) ===== */
.p5-wxcam { display: flex; flex-direction: column; gap: 16px; }
.p5-wxcam-head h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-wxcam-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 54ch; }
.p5-wxcam-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: start;
}
.p5-wxcam-dzis {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.06);
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
}
.p5-wxcam-dzis p { margin: 0 0 8px; }
.p5-wxcam-more {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin: 0;
}
.p5-cams { display: flex; flex-direction: column; gap: 12px; }
.p5-cams-hero {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
}
.p5-cams-hero img {
  display: block; width: 100%; height: min(360px, 42vw); min-height: 200px;
  object-fit: cover; transition: transform .5s ease;
}
.p5-cams-hero:hover img { transform: scale(1.03); }
.p5-cams-live {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 9px; border-radius: 999px;
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 750; letter-spacing: .06em;
}
.p5-cams-live--sm { top: 8px; left: 8px; padding: 3px 7px; font-size: 10px; }
.p5-cams-hero-txt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.82));
  color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.p5-cams-hero-txt b { font-size: 18px; font-weight: 750; }
.p5-cams-hero-txt small { font-size: 12.5px; opacity: .88; }
.p5-cams-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.p5-cams-card {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(15,23,42,.06);
  background: #fff;
  text-decoration: none !important; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.p5-cams-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.p5-cams-pic {
  position: relative; display: block; background: #e2e8f0;
  aspect-ratio: 16 / 10; overflow: hidden;
}
.p5-cams-pic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.p5-art-body .p5-cams-pic img {
  margin: 0;
  border-radius: 0;
  height: 100%;
  max-width: 100%;
}
.p5-cams-card:hover img { transform: scale(1.05); }
.p5-cams-cap {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px;
  font-size: 13px; font-weight: 650;
}
.p5-cams-cap .ico { width: 14px; height: 14px; color: var(--blue); flex: none; }
.p5-cams-empty { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Live camera page */
.p5-cam-page { display: flex; flex-direction: column; gap: 14px; }
.p5-cam-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.p5-cam-live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 750; letter-spacing: .06em;
}
.p5-cam-live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.p5-cam-meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.p5-cam-stage {
  border-radius: 16px; overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
  min-height: 200px;
}
.p5-cam-frame { display: block; }
.p5-cam-frame img {
  display: block; width: 100%; height: auto; max-width: 100%;
  border: 0;
}
.p5-cam-foot { font-size: 13.5px; color: var(--muted); }
.p5-shop-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22,163,74,.08);
  color: var(--muted);
  font-size: 13.5px;
}
.p5-shop-note a { font-weight: 650; }
.p5-sitemap-wrap { margin-top: 6px; }
.p5-sitemap-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.p5-sitemap-jump a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--ink) !important;
}
.p5-sitemap-jump a:hover { border-color: #93c5fd; color: var(--blue) !important; }
.p5-sitemap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.p5-sitemap-card {
  display: flex;
  flex-direction: column;
  height: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.p5-sitemap-card-h {
  padding: 14px 16px 12px;
  background: #0f172a;
  color: #e2e8f0;
}
.p5-sitemap-card-h h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}
.p5-sitemap-card-h h2 a { color: #fff !important; }
.p5-sitemap-card-h h2 a:hover { color: #bfdbfe !important; }
.p5-sitemap-card-h p {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.35;
}
.p5-sitemap-card h3 {
  margin: 12px 14px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-sitemap-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 0 12px;
}
.p5-sitemap-card ul {
  list-style: none;
  margin: 0;
  padding: 4px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p5-sitemap-card li { font-size: 13px; line-height: 1.4; min-width: 0; }
.p5-sitemap-card li a {
  display: block;
  padding: 3px 0;
  color: #334155 !important;
  overflow-wrap: anywhere;
}
.p5-sitemap-card li a:hover { color: var(--blue) !important; }
.p5-sitemap-card li.lvl-2 { padding-left: 10px; }
.p5-sitemap-card li.lvl-3 { padding-left: 20px; }
.p5-sitemap-card li.lvl-4 { padding-left: 30px; }
.p5-sitemap-info {
  margin-top: 22px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.p5-sitemap-info h2 { margin: 0 0 10px; font-size: 16px; font-weight: 750; }
.p5-sitemap-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.p5-sitemap-info a { font-weight: 650; color: var(--blue) !important; }
@media (max-width: 900px) {
  .p5-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .p5-sitemap { grid-template-columns: 1fr; }
}
.p5-bike-facts { margin: 16px 0; }

@media (max-width: 900px) {
  .p5-wxcam-grid { grid-template-columns: 1fr; }
  .p5-cams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .p5-cams-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .p5-cams-hero img { height: 200px; }
}

/* ===== Auth: logowanie / rejestracja ===== */
.p5-auth {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: inherit;
  color: var(--ink);
}
.p5-auth-head h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-auth-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 46ch;
  line-height: 1.45;
}
.p5-auth-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 16px;
  align-items: start;
}
.p5-auth-grid--reg { grid-template-columns: 1.35fr .8fr; }
.p5-auth-card,
.p5-auth-side-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  padding: 20px 20px 18px;
}
.p5-auth-card--narrow { max-width: 420px; }
.p5-auth-card-h {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.p5-auth-card-h h2,
.p5-auth-side-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.p5-auth-card-h p,
.p5-auth-side-card > p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}
.p5-auth-ico {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.p5-auth-ico .ico { width: 20px; height: 20px; }
.p5-auth-form { display: flex; flex-direction: column; gap: 12px; }
.p5-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}
.p5-auth-field input[type="text"],
.p5-auth-field input[type="password"],
.p5-auth-field input[type="email"],
.p5-auth-reg input[type="text"],
.p5-auth-reg input[type="password"],
.p5-auth-reg input[type="email"],
.p5-auth-reg textarea,
.p5-auth-reg select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}
.p5-auth-field input:focus,
.p5-auth-reg input:focus,
.p5-auth-reg textarea:focus,
.p5-auth-reg select:focus {
  outline: 2px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-color: #93c5fd;
}
.p5-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.p5-auth-error,
.p5-auth .error,
.p5-auth span[style*="color: red"],
.p5-auth span[style*="color:red"] {
  margin: 0;
  color: #b91c1c !important;
  font-size: 13px;
  font-weight: 600;
}
.p5-auth-side-card .p5-auth-form { margin-top: 14px; }
.p5-auth-side-card > .p5-auth-ico { margin-bottom: 10px; }

.p5-auth-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
}
.p5-auth-table td {
  padding: 6px 0;
  vertical-align: middle;
  font-size: 13.5px;
  color: #334155;
}
.p5-auth-table td[align="right"],
.p5-auth-table td[align=right] {
  width: 38%;
  padding-right: 12px;
  text-align: left !important;
  font-weight: 650;
  color: #475569;
  white-space: normal;
}
.p5-auth-table .small { font-size: inherit !important; color: inherit !important; }
.p5-auth-table input.darkgray,
.p5-auth-table input[type="text"],
.p5-auth-table input[type="password"] {
  width: 100% !important;
  max-width: 280px;
}
.p5-auth-table tr:has(td[colspan]) td {
  text-align: left !important;
  padding-top: 0;
  padding-bottom: 8px;
}

@media (max-width: 820px) {
  .p5-auth-grid,
  .p5-auth-grid--reg { grid-template-columns: 1fr; }
  .p5-auth-table td[align="right"],
  .p5-auth-table td[align=right] { width: 42%; }
}

/* —— Kalendarz imprez (P5) —— */
.p5-cal-page { display: flex; flex-direction: column; gap: 18px; }
.p5-cal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
}
.p5-cal-head { margin-bottom: 12px; }
.p5-cal-title-row { margin-bottom: 12px; }
.p5-cal-title {
  margin: 0 0 4px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.p5-cal-today,
.p5-cal-imieniny {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.p5-cal-imieniny-names a { color: var(--blue); font-weight: 600; }
.p5-cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.p5-cal-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}
.p5-cal-nav-btn:hover { background: #dbeafe; }
.p5-cal-month {
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--navy);
}
.p5-cal-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 4px;
}
.p5-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}
.p5-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0 6px;
}
.p5-cal-day {
  min-height: 108px;
  max-height: 148px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 6px 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.p5-cal-day--empty {
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 0;
}
.p5-cal-day.is-today {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}
.p5-cal-day.is-sun .p5-cal-num { color: #b91c1c; }
.p5-cal-day.is-past { opacity: .72; }
.p5-cal-day.has-events { background: #fff; }
.p5-cal-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.p5-cal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: #e2e8f0;
  color: var(--navy) !important;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
}
.p5-cal-day.is-future .p5-cal-num { background: #e2e8f0; color: var(--navy) !important; }
.p5-cal-day.has-events.is-future .p5-cal-num { background: var(--navy); color: #fff !important; }
.p5-cal-day.is-today .p5-cal-num { background: var(--blue); color: #fff !important; }
.p5-cal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}
.p5-cal-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
}
.p5-cal-events li { margin: 0; min-width: 0; }
.p5-cal-events a {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink) !important;
  text-decoration: none !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.p5-cal-events a:hover { color: var(--blue) !important; }
.p5-cal-more {
  margin-top: auto;
  font-size: 11px;
  font-weight: 650;
  color: var(--blue) !important;
  text-decoration: none !important;
}
.p5-cal-admin { margin: 12px 0 0; }

.p5-cal-search {
  background: #0f172a;
  color: #e2e8f0;
  color-scheme: dark;
  border-radius: 18px;
  padding: 16px 18px;
  overflow: hidden;
}
.p5-cal-search-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
}
.p5-cal-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.35fr) auto;
  gap: 12px;
  align-items: end;
}
.p5-cal-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.p5-cal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  min-width: 0;
}
.p5-cal-field span { display: block; line-height: 1.3; }
.p5-cal-field--grow { min-width: 0; }
.p5-cal-field input,
.p5-cal-field select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  color: #f8fafc;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  outline: 0;
}
.p5-cal-field input[type="date"] {
  display: block;
  appearance: none;
  -webkit-appearance: none;
}
.p5-cal-field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.25em;
}
.p5-cal-field input[type="date"]::-webkit-datetime-edit {
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.p5-cal-field input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0 0 0 8px;
  flex: 0 0 auto;
  opacity: .75;
  cursor: pointer;
}
.p5-cal-field input:focus,
.p5-cal-field select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
.p5-cal-search-actions {
  display: flex;
  align-items: stretch;
}
.p5-cal-search-actions .p5-btn {
  width: 100%;
  min-height: 44px;
}

.p5-cal-list-head h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-cal-cards { display: flex; flex-direction: column; gap: 10px; }
.p5-cal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}
.p5-cal-card-thumb {
  display: block;
  width: 96px;
  flex: 0 0 96px;
}
.p5-cal-card-thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}
.p5-cal-card:not(:has(.p5-cal-card-thumb)),
.p5-cal-card--text {
  grid-template-columns: 1fr;
}
.p5-cal-card-body { min-width: 0; }
.p5-cal-card-body h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}
.p5-cal-card-body h3 a { color: var(--ink) !important; text-decoration: none !important; }
.p5-cal-card-body h3 a:hover { color: var(--blue) !important; }
.p5-cal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.p5-cal-chip {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3 !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}

/* Mini-kalendarz (sidebar) */
.p5-cal-mini {
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  text-align: left;
}
.p5-cal-mini-title {
  display: block;
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink) !important;
  text-decoration: none !important;
  letter-spacing: -.01em;
}
.p5-cal-mini-title:hover { color: var(--blue) !important; }
.p5-cal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}
.p5-cal-mini-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  padding: 5px 0;
  line-height: 1;
}
.p5-cal-mini-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
.p5-cal-mini-day.is-empty { background: transparent; }
.p5-cal-mini-day a,
.p5-cal-mini-day span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  color: inherit !important;
  text-decoration: none !important;
  line-height: 1;
}
.p5-cal-mini-day.has-events {
  background: var(--blue-soft);
  color: var(--blue);
}
.p5-cal-mini-day.has-events a { font-weight: 750; }
.p5-cal-mini-day.is-today,
.p5-cal-mini-day.is-selected {
  background: var(--noc);
  color: #fff !important;
}
.p5-cal-mini-day.is-today a,
.p5-cal-mini-day.is-selected a { color: #fff !important; }
.p5-cal-mini-day.is-sun:not(.is-today):not(.is-selected) { color: #b91c1c; }
.p5-cal-mini-day.is-past:not(.has-events):not(.is-today):not(.is-selected) {
  color: #94a3b8;
  background: #f1f5f9;
}
.p5-cal-mini-day.has-events:hover a { background: #dbeafe; }
.p5-cal-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.p5-cal-mini-month {
  flex: 1 1 auto;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.p5-cal-mini-nav-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue) !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1;
  flex: 0 0 auto;
}
.p5-cal-mini-nav-btn:hover { background: #dbeafe; }
.p5-side .text-end { text-align: left !important; }
.p5-side .text-end .p5-cal-mini { margin-left: 0; margin-right: 0; }

.p5-cal-card-brief {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.45;
}
.p5-cal-card-more {
  font-size: 13px;
  font-weight: 650;
  color: var(--blue) !important;
  text-decoration: none !important;
}
.p5-cal-card-more:hover { text-decoration: underline !important; }

/* Event detail */
.p5-event { display: flex; flex-direction: column; gap: 16px; }
.p5-event-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.p5-event-nav--bottom {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.p5-event-nav-back {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13.5px;
  font-weight: 650;
}
.p5-event-nav-back a { color: var(--blue) !important; text-decoration: none !important; }
.p5-event-nav-back a:hover { text-decoration: underline !important; }
.p5-event-nav-sep { color: var(--muted); font-weight: 500; }
.p5-event-nav-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 650;
}
.p5-event-nav-siblings a { color: var(--blue) !important; text-decoration: none !important; }
.p5-event-nav-siblings a:hover { text-decoration: underline !important; }
.p5-event-dayhint {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.p5-event-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.p5-event-head { margin: 0; }
.p5-event-parent {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.p5-event-parent a { color: var(--ink) !important; font-weight: 650; }
.p5-event-layout {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 18px;
  align-items: start;
}
.p5-event-layout--text { grid-template-columns: 1fr; }
.p5-event-media img,
.p5-event-media a img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #e2e8f0;
}
.p5-event-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p5-event-meta > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  align-items: baseline;
}
.p5-event-meta dt {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.p5-event-meta dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}
.p5-event-brief {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: #1e293b;
}
.p5-event-body { margin: 0; }
.p5-event-ext {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.p5-event-ext a { color: var(--blue) !important; font-weight: 650; }
.p5-event-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.p5-event-gallery img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.p5-event-related {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.p5-event-related-label {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.p5-event-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p5-event-related-list a {
  color: var(--ink) !important;
  font-weight: 650;
  text-decoration: none !important;
}
.p5-event-related-list a:hover { color: var(--blue) !important; }
.p5-event-links {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-event-links-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 750;
}
.p5-event-links-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p5-event-links-body ul ul {
  margin: 4px 0 4px 14px;
  padding-left: 10px;
  border-left: 2px solid #e2e8f0;
}
.p5-event-links-body li {
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}
.p5-event-links-body a {
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 600;
}
.p5-event-links-body a:hover { color: var(--blue) !important; }
.p5-event-foot {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 720px) {
  .p5-event-layout { grid-template-columns: 1fr; }
  .p5-event-meta > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 900px) {
  .p5-cal-search { padding: 14px 14px 16px; }
  .p5-cal-search-grid {
    grid-template-columns: 1fr;
  }
  .p5-cal-dates,
  .p5-cal-field--grow,
  .p5-cal-search-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .p5-cal { padding: 12px; border-radius: 16px; }
  .p5-cal-nav { gap: 6px; }
  .p5-cal-nav-btn { padding: 6px 10px; font-size: 12px; }
  .p5-cal-month { flex: 1 1 100%; order: -1; margin-bottom: 2px; }
  .p5-cal-grid { gap: 4px; }
  .p5-cal-day {
    min-height: 54px;
    max-height: none;
    padding: 5px;
    border-radius: 10px;
  }
  .p5-cal-events,
  .p5-cal-more { display: none; }
  .p5-cal-num { min-width: 24px; height: 24px; font-size: 12px; }
  .p5-cal-badge { min-width: 18px; height: 18px; font-size: 10px; }
  .p5-cal-card {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 12px;
  }
  .p5-cal-card-thumb,
  .p5-cal-card-thumb img { width: 72px; height: 56px; }
}
@media (max-width: 520px) {
  .p5-cal-dates { grid-template-columns: 1fr; }
}

/* ——— Popup windows (schowek / wyślij / zgłoś błąd) ——— */
.p5-popup-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e2e8f0 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  font: 14.5px/1.5 var(--font);
}
.p5-popup {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 16px 22px;
}
.p5-popup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.p5-popup-logo {
  width: auto;
  height: 36px;
  max-width: 140px;
  object-fit: contain;
}
.p5-popup-head h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.p5-popup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}
.p5-popup-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.p5-popup-link {
  display: block;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid #dbeafe;
  color: var(--blue) !important;
  font-size: 12.5px;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.35;
}
.p5-popup-link:hover { text-decoration: underline !important; }
.p5-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p5-popup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.p5-popup-field input,
.p5-popup-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  outline: 0;
}
.p5-popup-field textarea { min-height: 110px; resize: vertical; }
.p5-popup-field input:focus,
.p5-popup-field textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.p5-popup-err {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #b91c1c;
}
.p5-popup-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
}
.p5-popup-ok {
  margin: 0 0 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.p5-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.p5-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.p5-popup-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.p5-popup-list li:last-child { border-bottom: 0; }
.p5-popup-list a.p5-popup-item {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--ink) !important;
  line-height: 1.3;
}
.p5-popup-list a.p5-popup-item:hover { color: var(--blue) !important; text-decoration: none !important; }
.p5-popup-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.p5-popup-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}
.p5-popup-foot .copy { margin: 0; }

/* === Wycieczki + Encyklopedia Tatr (P5) === */
.p5-trail-hub,
.p5-trail-plan,
.p5-trail-list,
.p5-trail-detail,
.p5-trail-point,
.p5-enc { max-width: 100%; }
.p5-trail-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.p5-trail-intro:not(:has(img)) { grid-template-columns: 1fr; }
.p5-trail-intro-pic {
  width: 200px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.p5-trail-intro-copy p { margin: 0 0 10px; line-height: 1.55; color: #334155; }
.p5-trail-intro-cta { margin-bottom: 0 !important; color: var(--ink) !important; }
.p5-trail-section { margin: 0 0 22px; }
.p5-trail-h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-trail-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.p5-trail-region-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px);
  gap: 16px;
  align-items: start;
}
.p5-trail-region-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.p5-trail-region-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.p5-trail-region-list a:hover { background: #e2e8f0; color: var(--blue) !important; }
.p5-trail-map {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e2e8f0;
}
.p5-trail-map img { width: 100%; height: auto; display: block; }
.p5-trail-kinds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p5-trail-kinds a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
}
.p5-trail-kinds a:hover { filter: brightness(1.06); }
.p5-trail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 22px;
}
.p5-trail-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.p5-trail-links a {
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}
.p5-trail-links a:hover { color: var(--blue) !important; }
.p5-trail-plan-intro {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  margin: 0 0 18px;
  align-items: start;
}
.p5-trail-plan-intro:not(:has(img)) { grid-template-columns: 1fr; }
.p5-trail-plan-pic { width: 140px; border-radius: 12px; }
.p5-trail-box,
.p5-trail-seealso {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.p5-trail-box-title { margin: 0 0 8px; font-size: 17px; font-weight: 750; }
.p5-trail-box-sub { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #475569; }
.p5-trail-rows { display: flex; flex-direction: column; gap: 8px; }
.p5-trail-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
}
.p5-trail-card:hover { background: #f8fafc; border-color: #cbd5e1; }
.p5-trail-card-pic {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.p5-trail-card-main { flex: 1; min-width: 0; }
.p5-trail-card-title {
  display: block;
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--ink);
}
.p5-trail-card-title a { color: var(--ink) !important; text-decoration: none !important; }
.p5-trail-card-title a:hover { color: var(--blue) !important; }
.p5-trail-card-body { display: flex; gap: 14px; align-items: flex-start; }
.p5-trail-card-media img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.p5-trail-card-desc {
  display: block;
  margin: 4px 0 0;
  color: #475569;
  line-height: 1.45;
  font-size: 13.5px;
  font-style: normal;
}
.p5-trail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
}
.p5-trail-meta > div { min-width: 90px; }
.p5-trail-meta dt {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 650;
}
.p5-trail-meta dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.p5-trail-meta--lg > div { min-width: 120px; }
.p5-trail-card-cta { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p5-trail-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 18px;
  align-items: start;
}
.p5-trail-detail-grid--text,
.p5-trail-detail-grid:not(:has(.p5-trail-detail-media)) {
  grid-template-columns: 1fr;
}
.p5-trail-detail-media img { width: 100%; border-radius: 14px; display: block; }
.p5-trail-detail-desc { margin: 12px 0; line-height: 1.6; color: #334155; }
.p5-trail-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 4px;
  font-size: 13.5px;
}
.p5-trail-route {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 14px;
}
.p5-trail-route-title { margin: 0 0 10px; font-size: 15px; font-weight: 750; }
.p5-trail-route-list { list-style: none; margin: 0; padding: 0; }
.p5-trail-route-item { margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid #f1f5f9; }
.p5-trail-route-item a { color: var(--ink) !important; font-weight: 650; font-size: 13px; text-decoration: none !important; }
.p5-trail-route-item.is-current > a { color: var(--blue) !important; }
.p5-trail-route-leg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.p5-trail-route-leg.is-current { color: var(--blue); font-weight: 650; }
.p5-trail-route-mark img { display: block; max-width: none !important; width: 20px !important; height: 15px !important; }
.p5-trail-route-empty { margin: 0; font-size: 13px; color: var(--muted); }
.p5-trail-current {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.p5-trail-current-label { margin: 0; font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.p5-trail-current-name { margin: 4px 0 10px; font-size: 15px; font-weight: 750; }
.p5-trail-point-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.p5-trail-point-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.p5-enc-chrome { margin: 0 0 18px; }
.p5-enc-toolbar {
  margin: 0 0 12px;
}
.p5-enc-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 8px;
}
.p5-enc-search { margin: 0; }
.p5-enc-search-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin: 0;
}
.p5-enc-search-row { display: flex; gap: 8px; }
.p5-enc-search-row input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
}
.p5-enc-search-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #475569;
}
.p5-enc-search-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.p5-enc-brand {
  font-weight: 750;
  font-size: 13px;
  color: var(--blue) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.p5-enc-alpha {
  display: block;
  margin: 0 0 12px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.p5-enc-alpha-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 8px;
}
.p5-enc-alpha-letters {
  display: grid;
  grid-template-columns: repeat(31, minmax(0, 1fr));
  gap: 2px;
}
.p5-enc-alpha-letters a {
  display: flex;
  min-width: 0;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--ink) !important;
  font-weight: 650;
  font-size: 12.5px;
  text-decoration: none !important;
}
.p5-enc-alpha-letters a:hover,
.p5-enc-alpha-letters a.is-active {
  background: #2563eb;
  color: #fff !important;
}
@media (max-width: 900px) {
  .p5-enc-alpha-letters { grid-template-columns: repeat(16, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .p5-enc-alpha-letters { grid-template-columns: repeat(11, minmax(0, 1fr)); }
}
.p5-enc-head { margin: 0 0 14px; }
.p5-enc-alt { margin: 4px 0 0; color: var(--muted); }
.p5-enc-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.p5-enc-meta dt { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; }
.p5-enc-meta dd { margin: 3px 0 0; font-weight: 650; }
.p5-enc-meta a { color: var(--blue) !important; text-decoration: none !important; }
.p5-enc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.p5-enc-tab {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b !important;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none !important;
}
.p5-enc-tab.is-active,
.p5-enc-tab:hover { background: #2563eb; color: #fff !important; }
.p5-enc-body { position: relative; }
.p5-enc-photo { float: right; width: min(240px, 42%); margin: 0 0 14px 16px; }
.p5-enc-figure { margin: 0; }
.p5-enc-figure img { width: 100%; border-radius: 12px; display: block; }
.p5-enc-figure figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.p5-enc-block { margin: 0 0 16px; clear: none; }
.p5-enc-block h2 { margin: 0 0 8px; font-size: 15px; font-weight: 750; }
.p5-enc-text { line-height: 1.65; color: #1e293b; font-size: 15px; }
.p5-enc-text a { color: var(--blue) !important; }
.p5-enc-shop {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #475569;
}
.p5-enc-shop-brand { font-size: 11px; line-height: 1.4; min-width: 140px; }
.p5-enc-foot {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.p5-enc-foot a { color: var(--blue) !important; font-weight: 650; text-decoration: none !important; }
.p5-enc-catbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.p5-enc-kicker { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.p5-enc-count { margin: 6px 0 0; font-size: 13px; color: #475569; }
.p5-enc-cat-switch span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.p5-enc-select select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  min-width: 180px;
  background: #fff;
}
.p5-enc-list { display: grid; gap: 0; }
.p5-enc-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.p5-enc-item-title { margin: 0 0 6px; font-size: 16px; font-weight: 750; }
.p5-enc-item-title a { color: var(--ink) !important; text-decoration: none !important; }
.p5-enc-item-title a:hover { color: var(--blue) !important; }
.p5-enc-item-type {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.p5-enc-item-desc { margin: 0 0 8px; color: #334155; line-height: 1.5; font-size: 14px; }
.p5-enc-item-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.p5-enc-item-meta a { color: var(--blue) !important; font-weight: 650; text-decoration: none !important; }
.p5-enc-flag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 650;
}
.p5-enc-lead { margin: 8px 0 0; color: #475569; font-size: 15px; line-height: 1.5; }
.p5-enc-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 22px;
  align-items: start;
}
.p5-enc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.p5-enc-cat-wrap { min-width: 0; }
.p5-enc-cat {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none !important;
  color: var(--ink) !important;
  min-height: 92px;
}
.p5-enc-cat:hover { border-color: #bfdbfe; background: #f8fbff; }
.p5-enc-cat img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 72px;
}
.p5-enc-cat span { display: grid; gap: 4px; min-width: 0; }
.p5-enc-cat strong { font-size: 14.5px; font-weight: 750; line-height: 1.25; }
.p5-enc-cat small { font-size: 12.5px; color: #64748b; line-height: 1.35; }
.p5-enc-hub-side .p5-land-haslo { margin: 0; }
.p5-enc-mode-tabs { margin-top: 4px; }
.p5-enc-photo-main { margin: 0 0 14px; }
.p5-enc-photo-main img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
}
.p5-enc-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.p5-enc-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
}
.p5-enc-thumbs img.is-current { border-color: #2563eb; }
.p5-enc-pano { margin: 0 0 18px; }
.p5-enc-pano-view {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f172a;
}
.p5-enc-pano-view applet,
.p5-enc-pano-view iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}
.p5-enc-pano-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.p5-enc-note { font-size: 13px; color: #64748b; margin: 10px 0; }
.p5-enc-maps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 16px;
}
.p5-enc-maps img { max-width: 100%; height: auto; border-radius: 12px; }
.p5-enc .p5-gal-grid {
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}
.p5-enc-odcinki {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-enc-odcinki-title { margin: 0 0 10px; font-size: 14px; font-weight: 750; color: #475569; }
.p5-enc-odcinki-list { list-style: none; margin: 0; padding: 0; }
.p5-enc-odcinek {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 8px;
}
.p5-enc-odcinek:nth-child(odd) { background: #f8fafc; }
.p5-enc-odcinek.is-prev { background: #e2e8f0; }
.p5-enc-odcinek-mark img { display: block; max-width: none !important; width: 21px !important; height: 15px !important; }
.p5-enc-odcinek-name { color: var(--ink) !important; font-weight: 650; text-decoration: none !important; font-size: 13.5px; }
.p5-enc-odcinek-name:hover { color: var(--blue) !important; }
.p5-enc-odcinek-time { font-size: 13px; color: #475569; white-space: nowrap; }
.p5-enc-odcinek-go { font-size: 13px; font-weight: 700; color: var(--blue) !important; text-decoration: none !important; white-space: nowrap; }
.p5-enc-odcinki-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0 0;
  justify-content: flex-end;
  font-size: 13px;
}
.p5-enc-odcinki-actions a { color: var(--blue) !important; font-weight: 650; text-decoration: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.p5-doc .p5-enc-odcinek-mark img,
.p5-doc .p5-trail-route-mark img,
.p5-side .p5-trail-route-mark img {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
}
@media (max-width: 760px) {
  .p5-trail-intro,
  .p5-trail-plan-intro,
  .p5-trail-region-wrap,
  .p5-trail-cols,
  .p5-trail-detail-grid { grid-template-columns: 1fr; }
  .p5-trail-intro-pic,
  .p5-trail-plan-pic { width: 100%; max-width: 280px; }
  .p5-enc-photo { float: none; width: 100%; margin: 0 0 14px; }
  .p5-enc-odcinek { grid-template-columns: 28px 1fr auto; }
  .p5-enc-odcinek-go { grid-column: 2 / -1; }
  .p5-enc-hub-grid { grid-template-columns: 1fr; }
  .p5-enc-cats { grid-template-columns: 1fr; }
}

.p5-trail-route-warn {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 650;
}
.p5-trail-route-new { margin: 0 0 10px; font-size: 12.5px; }
.p5-trail-route-new a { color: var(--blue) !important; font-weight: 700; text-decoration: none !important; }
.p5-trail-route-del {
  margin-left: 6px;
  color: #b91c1c !important;
  font-weight: 800;
  text-decoration: none !important;
}
/* Legacy CMS photo tables: no gray frames; single photo floats like a magazine cut-in */
.p5-art-body table.zdjecia,
.p5-doc table.zdjecia,
.p5-art-body .zdjecia,
.p5-doc .zdjecia {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
}
.p5-art-body table.zdjecia > tbody,
.p5-art-body table.zdjecia > tbody > tr,
.p5-art-body table.zdjecia > tbody > tr > td,
.p5-doc table.zdjecia > tbody,
.p5-doc table.zdjecia > tbody > tr,
.p5-doc table.zdjecia > tbody > tr > td {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  vertical-align: top;
}
.p5-art-body table.zdjecia img,
.p5-doc table.zdjecia img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 14px;
  display: block;
  margin: 0 0 6px;
  background: transparent !important;
}
.p5-art-body table.zdjecia .small,
.p5-art-body table.zdjecia center,
.p5-art-body table.zdjecia font,
.p5-doc table.zdjecia .small {
  display: block;
  text-align: center;
  font-size: 12.5px !important;
  font-family: inherit !important;
  color: var(--muted);
  line-height: 1.4;
}
/* Multi-photo row → gallery grid (no nested :has — invalid in Chromium) */
.p5-art-body table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia),
.p5-doc table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 16px 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.p5-art-body table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia) > tbody,
.p5-art-body table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia) > tbody > tr,
.p5-doc table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia) > tbody,
.p5-doc table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia) > tbody > tr {
  display: contents;
}
.p5-art-body table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia) > tbody > tr > td,
.p5-doc table:has(tr > td:first-child > table.zdjecia):has(tr > td:nth-child(2) > table.zdjecia):not(.zdjecia) > tbody > tr > td {
  display: block;
  width: auto !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.p5-art-body td[bgcolor],
.p5-art-body th[bgcolor],
.p5-art-body tr[bgcolor],
.p5-art-body table[bgcolor],
.p5-doc td[bgcolor],
.p5-doc th[bgcolor],
.p5-doc tr[bgcolor],
.p5-doc table[bgcolor] {
  background: transparent !important;
  background-color: transparent !important;
}
.p5-art-body table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  background: transparent !important;
}
.p5-art-body table td {
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  background: transparent !important;
}
/* Single photo (align=right/left) → text wraps beside it */
.p5-art-body table[align="right"],
.p5-doc table[align="right"] {
  float: right !important;
  display: block;
  width: min(400px, 48%) !important;
  max-width: 420px !important;
  margin: 4px 0 16px 24px !important;
  background: transparent !important;
  border: 0 !important;
}
.p5-art-body table[align="left"],
.p5-doc table[align="left"] {
  float: left !important;
  display: block;
  width: min(400px, 48%) !important;
  max-width: 420px !important;
  margin: 4px 24px 16px 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.p5-art-body table[align="right"] > tbody,
.p5-art-body table[align="right"] > tbody > tr,
.p5-art-body table[align="left"] > tbody,
.p5-art-body table[align="left"] > tbody > tr,
.p5-doc table[align="right"] > tbody,
.p5-doc table[align="right"] > tbody > tr,
.p5-doc table[align="left"] > tbody,
.p5-doc table[align="left"] > tbody > tr {
  display: block;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
}
.p5-art-body table[align="right"] > tbody > tr > td,
.p5-art-body table[align="left"] > tbody > tr > td,
.p5-doc table[align="right"] > tbody > tr > td,
.p5-doc table[align="left"] > tbody > tr > td {
  display: block;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.p5-art-body table[align="right"] > tbody > tr > td:not(:has(img)):not(:has(table)),
.p5-art-body table[align="left"] > tbody > tr > td:not(:has(img)):not(:has(table)),
.p5-doc table[align="right"] > tbody > tr > td:not(:has(img)):not(:has(table)),
.p5-doc table[align="left"] > tbody > tr > td:not(:has(img)):not(:has(table)) {
  display: none !important;
}
.p5-art-body table img[src*="szlaki/"] {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  margin: 0 6px 0 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.p5-trail-legend {
  display: flex;
  flex-direction: column;
  margin: 8px 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.p5-trail-legend-row {
  display: grid;
  grid-template-columns: minmax(92px, 150px) 1fr;
  gap: 14px 18px;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.p5-trail-legend-row:last-child { border-bottom: 0; }
.p5-trail-legend-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  background: transparent;
}
.p5-trail-legend-mark img,
.p5-art-body .p5-trail-legend img {
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: 140px !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  display: inline-block !important;
}
.p5-trail-legend-row p {
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 640px) {
  .p5-art-body table[align="right"],
  .p5-doc table[align="right"] {
    float: none;
    max-width: 100% !important;
    margin: 0 0 14px;
  }
  .p5-art-gallery--3 { grid-template-columns: 1fr; }
  .p5-trail-legend-row {
    grid-template-columns: minmax(72px, 108px) 1fr;
    padding: 12px 12px;
  }
  .p5-trail-legend-mark { justify-content: center; }
}

.p5-av-scale { margin: 8px 0 22px; }
.p5-av-scale > h2 {
  margin: 0 0 12px !important;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-av-level {
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin: 0 0 12px;
  background: #fff;
}
.p5-av-level--1 { border-left-color: #16a34a; }
.p5-av-level--2 { border-left-color: #ca8a04; }
.p5-av-level--3 { border-left-color: #ea580c; }
.p5-av-level--4 { border-left-color: #dc2626; }
.p5-av-level--5 { border-left-color: #111827; }
.p5-av-level-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 10px;
}
.p5-av-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  min-width: 1.1em;
}
.p5-av-level--1 .p5-av-num { color: #16a34a; }
.p5-av-level--2 .p5-av-num { color: #ca8a04; }
.p5-av-level--3 .p5-av-num { color: #ea580c; }
.p5-av-level--4 .p5-av-num { color: #dc2626; }
.p5-av-level--5 .p5-av-num { color: #111827; }
.p5-av-level-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}
.p5-av-status {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-av-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
}
.p5-av-grid h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-av-grid p { margin: 0 !important; font-size: 13.5px; line-height: 1.5; }
.p5-av-notes {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.55;
}
.p5-av-notes h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 750;
}
.p5-av-notes p { margin: 0 0 8px !important; }
.p5-av-notes ul { margin: 0 0 10px; padding-left: 1.2em; }
.p5-av-notes li { margin: 0 0 4px; }
.p5-art-body .p5-table-wrap {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-art-body .p5-table-wrap .p5-table {
  margin: 0;
  width: 100% !important;
}
.p5-art-body .p5-table th,
.p5-art-body .p5-table td {
  background: #fff !important;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
  word-break: normal;
}
.p5-art-body .p5-table th { color: #fff; background: var(--navy) !important; }
.p5-art-body .p5-table td { color: var(--ink) !important; font-weight: 650; }
@media (max-width: 720px) {
  .p5-art-body .p5-table tr { display: grid; grid-template-columns: 1.2fr .8fr; }
}
.p5-av-sizes { margin: 0 0 22px; }
.p5-av-sizes-lead {
  margin: -4px 0 12px !important;
  font-size: 13px;
  color: var(--muted);
}
.p5-av-size {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 10px;
  background: #fff;
}
.p5-av-size-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 750;
}
.p5-av-size-head span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.p5-av-size p { margin: 0 0 6px !important; font-size: 13.5px; line-height: 1.5; }
.p5-av-size-meta {
  margin: 0 !important;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
}
@media (min-width: 760px) {
  .p5-av-grid { grid-template-columns: 1fr 1.15fr 1.15fr; }
  .p5-av-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .p5-av-sizes > h2,
  .p5-av-sizes-lead { grid-column: 1 / -1; }
  .p5-av-size { margin: 0; }
}
.p5-art-gallery--land img { aspect-ratio: 4 / 3; }
.p5-abc-alert {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid #dc2626;
  border-radius: 14px;
  background: #fff;
  clear: both;
}
.p5-abc-alert h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 750;
}
.p5-abc-alert ul { margin: 0; padding-left: 1.2em; }
.p5-abc-alert li { margin: 0 0 4px; }
.p5-abc-phones {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.p5-abc-warn { color: #dc2626; font-weight: 750; }
.p5-abc-species {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 14px;
  align-items: start;
  margin: 16px 0 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  clear: both;
}
.p5-abc-species figure { margin: 0; }
.p5-abc-species img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  background: transparent;
}
.p5-abc-species h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 750;
}
.p5-abc-species h3 a { color: var(--ink) !important; text-decoration: none !important; }
.p5-abc-species h3 a:hover { color: var(--blue) !important; }
.p5-abc-species h3 em { font-weight: 500; color: var(--muted); font-size: 13px; }
.p5-abc-species p { margin: 0 !important; font-size: 13.5px; line-height: 1.55; }
@media (max-width: 759px) {
  .p5-abc-species { grid-template-columns: 1fr; }
  .p5-abc-species img { max-width: 180px; }
}

/* === Hub Wycieczki (clean landing) === */
.p5-wyc { max-width: 100%; text-align: left; }
.p5-wyc-hero {
  display: grid;
  grid-template-columns: 1.2fr minmax(200px, 300px);
  gap: 20px;
  align-items: center;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.p5-wyc-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-wyc-lead {
  margin: 8px 0 16px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #334155;
  max-width: 42em;
}
.p5-wyc-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.p5-wyc-hero-media { margin: 0; }
.p5-wyc-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.p5-wyc-block { margin: 0 0 24px; }
.p5-wyc-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 12px;
}
.p5-wyc-block-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-wyc-block-head p {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.p5-wyc-more {
  font-size: 13px;
  font-weight: 650;
  color: var(--blue) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.p5-wyc-more:hover { text-decoration: underline !important; }
.p5-wyc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
}
.p5-wyc-grid a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  line-height: 1.3;
}
.p5-wyc-grid a:hover { color: var(--blue) !important; }
.p5-wyc-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.p5-wyc-chips a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af !important;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none !important;
  border: 1px solid #dbeafe;
}
.p5-wyc-chips a:hover { background: #dbeafe; }
.p5-wyc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin: 0 0 8px;
}
.p5-wyc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.p5-wyc-list a {
  display: block;
  padding: 5px 0;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none !important;
  border-bottom: 1px solid #f8fafc;
}
.p5-wyc-list a:hover { color: var(--blue) !important; }
.p5-wyc-feat-list { display: flex; flex-direction: column; gap: 8px; }
.p5-wyc-feat-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
}
.p5-wyc-feat-card:hover { background: #f8fafc; border-color: #cbd5e1; }
.p5-wyc-feat-pic {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.p5-wyc-feat-body { flex: 1; min-width: 0; }
.p5-wyc-feat-body b {
  display: block;
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--ink);
}
.p5-wyc-feat-body em {
  display: block;
  margin: 4px 0 0;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}
.p5-wyc-feat-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: #475569;
}
.p5-wyc-feat-stats span { position: relative; }
.p5-wyc-feat-stats span + span::before {
  content: "·";
  position: absolute;
  left: -8px;
  color: #94a3b8;
  font-weight: 700;
}
@media (max-width: 760px) {
  .p5-wyc-hero,
  .p5-wyc-split { grid-template-columns: 1fr; }
  .p5-wyc-hero-media { order: -1; max-width: 100%; }
  .p5-wyc-grid { grid-template-columns: 1fr 1fr; gap: 0 12px; }
}
.p5-trail-empty {
  margin: 12px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #475569;
  font-size: 14.5px;
  line-height: 1.5;
}
.p5-trail-empty a { color: var(--blue) !important; font-weight: 650; text-decoration: none !important; }
.p5-gal-kicker { margin: 0 0 6px; font-size: 13px; }
.p5-gal-kicker a { color: var(--blue) !important; font-weight: 650; text-decoration: none !important; }
.p5-wyc-grid a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.p5-wyc-grid a small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}

/* Two clear paths on the wycieczki hub */
.p5-wyc-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 28px;
}
.p5-wyc-path {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.p5-wyc-path:hover { border-color: #93c5fd; background: #f8fbff; }
.p5-wyc-path strong {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -.02em;
}
.p5-wyc-path span {
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}

/* Planner: steps, map, share */
.p5-plan-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
.p5-plan-banner a { color: #1d4ed8 !important; font-weight: 750; text-decoration: none !important; }
.p5-plan-banner a:hover { text-decoration: underline !important; }
.p5-plan-lead {
  margin: 6px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #334155;
  max-width: 46em;
}
.p5-plan-hint { margin: 0 0 12px; font-size: 13.5px; color: #64748b; line-height: 1.45; }
.p5-plan-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.p5-plan-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #94a3b8;
}
.p5-plan-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}
.p5-plan-steps li.is-done { color: #16a34a; }
.p5-plan-steps li.is-done span { background: #dcfce7; color: #15803d; }
.p5-plan-steps li.is-current { color: var(--ink); }
.p5-plan-steps li.is-current span { background: var(--blue); color: #fff; }
.p5-plan-steps li.is-ready { color: #1d4ed8; }
.p5-plan-steps li.is-ready span { background: #dbeafe; color: #1d4ed8; }
.p5-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 18px 22px;
  align-items: start;
}
.p5-plan-col h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-plan-share-title { margin-top: 22px !important; }
.p5-plan-starts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.p5-plan-starts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
}
.p5-plan-summary {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-plan-stops { list-style: none; margin: 0 0 12px; padding: 0; }
.p5-plan-stops li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.p5-plan-stops li a { color: var(--ink) !important; font-weight: 650; text-decoration: none !important; }
.p5-plan-stops li a:hover { color: var(--blue) !important; }
.p5-plan-stops li.is-here a { color: var(--blue) !important; }
.p5-plan-stops small {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #64748b;
}
.p5-plan-del {
  color: #b91c1c !important;
  font-weight: 800;
  text-decoration: none !important;
  padding: 0 4px;
}
.p5-plan-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p5-plan-next-go {
  display: grid;
  grid-template-columns: 22px 24px 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
}
.p5-plan-next-go:hover,
.p5-plan-next-go.is-preview {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
.p5-plan-next-num {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff7ed; border: 2px solid #d97706; color: #92400e;
  font-size: 12px; font-weight: 800; line-height: 1;
}
.p5-plan-next-go.is-preview .p5-plan-next-num,
.p5-plan-next-go:hover .p5-plan-next-num {
  background: #d97706; color: #fff; border-color: #b45309;
}
.p5-plan-next-go img { display: block; width: 21px; height: 15px; max-width: none !important; }
.p5-plan-next-go b { display: block; font-size: 14px; font-weight: 750; color: var(--ink); }
.p5-plan-next-go small { display: block; font-size: 12px; color: #64748b; font-weight: 650; }
.p5-plan-next-go em { font-style: normal; font-size: 13px; font-weight: 750; color: var(--blue); white-space: nowrap; }
.p5-start-pin {
  background: transparent !important;
  border: 0 !important;
}
.p5-start-pin-mark {
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 24px;
  height: 24px;
  background: #16a34a;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 7px rgba(15, 23, 42, .4);
}
.p5-start-pin-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #fff;
  border-radius: 50%;
  transform: rotate(45deg);
}
.p5-start-pin-lab {
  position: absolute;
  left: 26px;
  top: 2px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .28);
  white-space: nowrap;
  line-height: 1.15;
}
.p5-next-pin {
  background: transparent !important; border: 0 !important;
}
.p5-next-pin span {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: #fff; color: #92400e; font-weight: 800; font-size: 12px;
  border: 2px solid #d97706;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .25);
}
.p5-next-pin.is-on span {
  background: #d97706; color: #fff; border-color: #b45309;
  transform: scale(1.12);
}
.p5-plan-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 0;
  font-size: 13px;
}
.p5-plan-alt a { color: var(--blue) !important; font-weight: 650; text-decoration: none !important; }
.p5-plan-mapblock { margin: 22px 0 8px; }
.p5-plan-mapblock h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 750;
}

.p5-route-map {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
}
.p5-route-map-pts {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.p5-route-map-el {
  height: 320px;
  width: 100%;
  background: #dbeafe;
}
.p5-route-map-note {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}
.p5-doc .leaflet-container img,
.p5-route-map-el img {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
}

.p5-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p5-share-url {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #64748b;
  word-break: break-all;
}
.p5-share-url a { color: var(--blue) !important; }

@media (max-width: 760px) {
  .p5-wyc-paths,
  .p5-plan-grid,
  .p5-plan-starts { grid-template-columns: 1fr; }
  .p5-route-map-el { height: 260px; }
  .p5-plan-next-go { grid-template-columns: 22px 24px 1fr; }
  .p5-plan-next-go em { grid-column: 3; }
}

@media print {
  .p5-chrome, .p5-mast, .p5-side, .p5-footer,
  .p5-plan-next, .p5-plan-steps, .p5-share, .p5-plan-alt { display: none !important; }
  .p5-plan-grid { display: block; }
  .p5-route-map-el { height: 360px; }
}

/* Miejscowości Podhala — herb + zakładki dokumentu */
.p5-place-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.p5-place-herb {
  flex: 0 0 auto;
  width: 76px;
}
.p5-place-herb img,
.p5-place-herb table,
.p5-place-herb td {
  width: 72px !important;
  max-width: 72px !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
}
.p5-place-head-copy { min-width: 0; flex: 1; }
.p5-place-known {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.p5-place-known strong { color: var(--ink); }
.p5-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 18px;
  padding: 0;
}
.p5-doc-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none !important;
  line-height: 1.2;
}
.p5-doc-tab:hover {
  border-color: #94a3b8;
  color: var(--blue) !important;
}
.p5-doc-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff !important;
}
.p5-place-body { min-width: 0; }

/* Informator — karty adresów */
.p5-info-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  font-size: 13.5px;
  line-height: 1.45;
  color: #78716c;
}
.p5-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.p5-info-card {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.p5-info-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}
.p5-info-card p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.p5-info-card p:last-child { margin-bottom: 0; }
.p5-info-addr { color: #334155; }
.p5-info-tel a,
.p5-info-www a { color: var(--blue) !important; font-weight: 650; }
.p5-info-hours { color: #475569; }
.p5-info-gone {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
a.p5-info-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}
a.p5-info-card:hover {
  border-color: #94a3b8;
}
.p5-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p5-cat-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink) !important;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none !important;
  line-height: 1.3;
}
.p5-cat-card:hover {
  border-color: #94a3b8;
  color: var(--blue) !important;
}
.p5-nag-photo {
  float: right;
  margin: 0 0 12px 16px;
}
.p5-nag-photo img { max-width: 200px; height: auto; border-radius: 12px; }
.p5-doc font,
.p5-article font,
.p5-list-intro font,
.p5-place font {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}
.p5-cat-card-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.p5-more-walks { margin: 28px 0 8px; }
.p5-more-walks h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.p5-more-walks > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 62ch;
}
.p5-more-walks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.p5-more-walk-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 168px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid var(--line);
  text-decoration: none !important;
  color: inherit !important;
}
.p5-more-walk-card img {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100% !important;
  height: 72% !important;
  object-fit: cover;
  max-width: none !important;
  max-height: none !important;
}
.p5-more-walk-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  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%);
  pointer-events: none;
}
.p5-more-walk-card .pad {
  position: relative;
  z-index: 2;
  padding: 14px 14px 8px;
}
.p5-more-walk-card b {
  display: block;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.p5-more-walk-card small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.35;
}
.p5-more-walk-card .go {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.p5-city-map {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dbeafe;
  margin: 8px 0 16px;
}
.p5-doc .p5-city-map img,
.p5-city-map .leaflet-container img {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
}
.p5-city-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 13.5px;
}
.p5-city-map-legend a { color: var(--blue) !important; font-weight: 650; text-decoration: none !important; }
.p5-city-map-legend a:hover { text-decoration: underline !important; }

/* Urząd miasta — zdjęcie + małe okienko z danymi */
.p5-office {
  position: relative;
  margin: 4px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
}
.p5-art-body .p5-office > img {
  display: block;
  width: 100%;
  height: min(440px, 52vw);
  min-height: 260px;
  object-fit: cover;
  object-position: 50% 38%;
  margin: 0;
  border-radius: 0;
  max-width: none;
}
.p5-office-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: min(272px, calc(100% - 32px));
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 28px rgba(15,23,42,.22);
  backdrop-filter: blur(8px);
}
.p5-office-card h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--navy);
  line-height: 1.25;
}
.p5-art-body .p5-office-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.p5-art-body .p5-office-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.35;
  color: #334155;
}
.p5-art-body .p5-office-card li:last-child { margin-bottom: 0; }
.p5-office-card .ico {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--blue);
}
.p5-office-card a { color: var(--blue) !important; font-weight: 650; }
.p5-office-src {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .p5-place-head { flex-direction: column; gap: 10px; }
  .p5-doc-tab { padding: 6px 11px; font-size: 13px; }
  .p5-info-grid { grid-template-columns: 1fr; }
  .p5-cat-grid { grid-template-columns: 1fr; }
  .p5-nag-photo { float: none; margin: 0 0 12px; }
  .p5-more-walks-grid { grid-template-columns: 1fr; }
  .p5-city-map { height: 360px; }
  .p5-office { overflow: visible; }
  .p5-art-body .p5-office > img {
    height: 220px;
    min-height: 200px;
    border-radius: 18px;
  }
  .p5-office-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: -36px;
    padding: 12px 14px;
  }
}

/* Legal pages + cookie bar */
.p5-legal { max-width: 760px; }
.p5-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.p5-legal-nav a,
.p5-legal-nav .p5-consent-open {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink) !important;
  cursor: pointer;
  font-family: inherit;
}
.p5-legal-nav a:hover,
.p5-legal-nav .p5-consent-open:hover {
  border-color: #93c5fd;
  color: var(--blue) !important;
}
.p5-legal-body h2 {
  margin: 26px 0 8px;
  font-size: 18px;
  letter-spacing: -.02em;
}
.p5-legal-body h3 { margin: 16px 0 6px; font-size: 15px; }
.p5-legal-body p,
.p5-legal-body li { font-size: 15px; line-height: 1.65; color: #334155; }
.p5-legal-body ul { margin: 0 0 12px; padding-left: 18px; }
.p5-legal-body a { color: var(--blue) !important; font-weight: 650; }
.p5-legal-body .p5-consent-open {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.p5-legal-table-wrap { overflow: auto; margin: 12px 0 16px; }
.p5-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.p5-legal-table th,
.p5-legal-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.p5-legal-table th { background: #f8fafc; font-size: 12px; }

.p5-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, .28);
  padding: 16px 20px 18px;
}
.p5-consent[hidden] { display: none !important; }
body:has(#p5-consent:not([hidden])) { padding-bottom: 148px; }
.p5-consent-in { max-width: var(--max); margin: 0 auto; }
@media (min-width: 900px) {
  .p5-consent-in {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 24px;
    align-items: center;
  }
  .p5-consent-panel { grid-column: 1 / -1; }
  .p5-consent-actions { margin-top: 0; justify-content: flex-end; }
}
.p5-consent-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.p5-consent-copy p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #cbd5e1; }
.p5-consent-copy a { color: #93c5fd; font-weight: 650; }
.p5-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.p5-consent[data-mode="settings"] > .p5-consent-in > .p5-consent-actions { display: none; }
.p5-consent-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font: 650 13px/1.2 inherit;
  cursor: pointer;
}
.p5-consent-btn--main { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.p5-consent-btn--text { border-color: transparent; text-decoration: underline; }
.p5-consent-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.p5-consent-panel[hidden] { display: none !important; }
.p5-consent-opt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: baseline;
  margin: 0 0 8px;
  font-size: 14px;
  color: #fff;
}
.p5-consent-opt span { color: #94a3b8; font-size: 12.5px; font-weight: 400; }
@media (max-width: 760px) {
  .p5-consent { padding: 14px 14px 16px; }
  .p5-consent-btn { flex: 1 1 auto; text-align: center; }
  body:has(#p5-consent:not([hidden])) { padding-bottom: 220px; }
}

.p5-ad { max-width: 720px; }
.p5-ad-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
}
.p5-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.p5-ad-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
  color: var(--ink) !important;
  min-width: 0;
}
.p5-ad-card:hover { border-color: #93c5fd; }
.p5-ad-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.p5-ad-card strong {
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.p5-ad-card small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.p5-ad-note {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.p5-ad-note h2 { margin: 0 0 10px; font-size: 16px; font-weight: 750; }
.p5-ad-note ol { margin: 0 0 12px; padding-left: 18px; }
.p5-ad-note li,
.p5-ad-note p { font-size: 14.5px; line-height: 1.55; color: #334155; }
.p5-ad-who { margin: 12px 0 0; color: var(--muted) !important; font-size: 13px !important; }
@media (max-width: 760px) {
  .p5-ad-grid { grid-template-columns: 1fr; }
}
.p5-red-ad {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  clear: both;
}
.p5-red-ad > h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 750;
}
.p5-red-ad-more {
  margin: 0 0 14px;
  font-size: 14.5px;
}
.p5-red-ad-more a { color: var(--blue); font-weight: 650; }

/* ===== Księga gości ===== */
.p5-guest { display: flex; flex-direction: column; gap: 16px; }
.p5-guest-hero { display: flex; flex-direction: column; gap: 6px; }
.p5-guest-actions { margin: 8px 0 0; }
.p5-guest-list { display: flex; flex-direction: column; gap: 12px; }
.p5-guest-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
  padding: 16px 18px;
}
.p5-guest-text { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.p5-guest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.p5-guest-meta strong { color: var(--ink); }
.p5-guest-form { max-width: 560px; }
.p5-guest-admin { font-size: 12px; }

/* ===== Konto: zdjęcia ===== */
.p5-account-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.p5-account-photo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.p5-account-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.p5-account-photo-lab { font-size: 13px; font-weight: 700; }
.p5-account-photo small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.p5-auth-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink);
}

/* ===== Panoramy ===== */
.p5-pano-view,
.p5-pano-embed {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
}
.p5-pano-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.p5-pano-scroll img {
  height: min(56vh, 420px) !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}
.p5-pano-scroll--embed img { height: 220px; }
.p5-pano-embed figcaption {
  padding: 8px 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ===== Komentarze / ocena ===== */
.p5-comments { margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.p5-comments-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.p5-comments-head h2 { margin: 0; font-size: 18px; font-weight: 750; }
.p5-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.p5-comment {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.p5-comment p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; }
.p5-comment footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.p5-comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.p5-gal-rate {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.p5-gal-rate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 8px;
}
.p5-gal-rate-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.p5-gal-rate-form legend { font-size: 13px; font-weight: 700; margin-right: 8px; }
.p5-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.p5-ecard-decorate {
  overflow: auto;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 12px;
}
@media (max-width: 760px) {
  .p5-account-photos,
  .p5-form-grid { grid-template-columns: 1fr; }
  .p5-pano-scroll img { height: 220px; }
}

/* Yii home: news column + GLightbox video */
.card.news .p5-news-home { margin: 0; }
.card.news .p5-news-card {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
}
.card.news .p5-news-card a {
  display: inline;
  grid-template-columns: none;
  padding: 0;
  border: 0;
  align-items: unset;
}
.card.news .p5-news-card .thumb a { display: block; }
.card.news .p5-news-card img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.card.news .p5-news-brief { display: none; }
.card.news > .btn { margin-top: 8px; }
.glightbox-clean .ginner-container.gvideo-container { height: auto; }
.p5-home-cal { margin: 22px 0 0; }
.p5-cal-home { list-style: none; margin: 0; padding: 0; }
.p5-cal-home li { border-bottom: 1px solid var(--line); }
.p5-cal-home a {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: baseline;
  padding: 8px 0; color: var(--ink); font-weight: 600; font-size: 14px;
}
.p5-cal-home a span { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 650; font-size: 13px; }
.p5-cal-item { display: flex; justify-content: space-between; gap: 12px; }


