/* Panel najemcy — kierunek A „edytorski” (tokeny z DESIGN.md).
   Breakpointy ekranu zawsze `screen and`; style druku wyłącznie w @media print. */

:root {
  --paper: #FAF9F6; --ink: #0A0A0A; --pearl: #FFFFFF;
  --champagne: #C1A68D; --champagne-deep: #A8896B; --champagne-text: #7A5C3C; --champagne-soft: #ECE3D7;
  --mist: #E7E1D8; --cloud: #F1EDE6; --smoke: #6B6459;
  --love: #2F7A55; --love-bg: #E9F2EC; --nope: #B3402F; --nope-bg: #F7ECEA;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.7,.2,1);
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, select, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--champagne-text); outline-offset: 3px; border-radius: 6px; }

/* ── Typografia ── */
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-text); margin-bottom: 12px; }
.display { font: 500 clamp(2rem, 3.1vw, 3rem); font-family: var(--serif); line-height: 1.08; letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }
.display--xl { font-size: clamp(2.2rem, 3.9vw, 3.6rem); max-width: 26ch; }
.display--md { font-size: clamp(1.6rem, 2.2vw, 2.1rem); max-width: none; }
.display--week { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.06; }
.display .accent, .accent { color: var(--champagne-text); }
.h2 { font: 500 1.7rem/1.15 var(--serif); }
.lede { font-size: 17px; line-height: 1.6; color: var(--smoke); max-width: 58ch; margin-top: 16px; }
.muted { color: var(--smoke); font-size: 14px; }
.fineprint { color: var(--smoke); font-size: 13px; line-height: 1.5; margin-top: 14px; max-width: 64ch; }
.empty { color: var(--smoke); margin-top: 20px; }

.logo { font: 500 21px/1 var(--serif); text-decoration: none; letter-spacing: -.005em; white-space: nowrap; }
.logo__tag { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-text); margin-left: 10px; }
.logo--lg { font-size: 28px; }
.logo--lg .logo__tag { font-size: 12px; }

/* ── Przyciski, pigułki, pola ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; min-height: 44px; border-radius: 99px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 500; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover:not(:disabled) { background: #26211c; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10,10,10,.18); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--smoke); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn:hover { color: var(--ink); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { flex: none; border: 1px solid var(--mist); background: transparent; border-radius: 99px; padding: 7px 15px; min-height: 36px; font-size: 14px; cursor: pointer; color: var(--ink); transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.pill:hover { border-color: var(--champagne); background: var(--cloud); }
.pill--on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--on:hover { background: var(--ink); border-color: var(--ink); }
.pill--static { cursor: default; }

.select { position: relative; display: inline-flex; }
.select select { appearance: none; -webkit-appearance: none; background: var(--pearl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B6459' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--champagne); border-radius: 99px; padding: 8px 38px 8px 16px; min-height: 40px; font-size: 14px; cursor: pointer; max-width: 260px; }
.select select:hover { background-color: var(--cloud); }

.field { display: grid; gap: 6px; margin-top: 18px; }
.field span { font-size: 13px; font-weight: 500; color: var(--smoke); }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--mist); border-radius: 10px; padding: 11px 14px; background: var(--paper); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:hover { border-color: var(--champagne); }
.field input:focus { outline: none; border-color: var(--champagne-text); box-shadow: 0 0 0 3px rgba(193,166,141,.35); background: var(--pearl); }
.alert { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--nope-bg); color: var(--nope); font-size: 14px; }
.login__card .btn { margin-top: 20px; }

/* ── Start / logowanie ── */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .logo { font-size: 30px; opacity: .55; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .2; } }

.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.login__story { padding: 44px clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; border-right: 1px solid var(--mist); }
.login__copy { max-width: 640px; position: relative; z-index: 1; }
.login__copy .display { font-size: clamp(2.3rem, 4vw, 3.9rem); max-width: 16ch; }
.login__points { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--mist); max-width: 560px; }
.login__points li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--mist); font-size: 14px; color: var(--smoke); }
.login__points b { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink); }
.login__plates { position: absolute; right: 40px; top: 40px; width: 320px; height: 330px; opacity: .95; }
.plate { position: absolute; border-radius: 16px; background: var(--cloud); border: 1px solid var(--mist); }
.plate--a { width: 150px; height: 190px; right: 150px; top: 20px; background: linear-gradient(160deg, var(--champagne-soft), var(--cloud)); }
.plate--b { width: 130px; height: 170px; right: 10px; top: 60px; background: linear-gradient(160deg, var(--champagne), var(--champagne-deep)); }
.plate--c { width: 140px; height: 120px; right: 160px; top: 225px; }
.plate--d { width: 110px; height: 120px; right: 30px; top: 245px; background: var(--ink); border-color: var(--ink); }
.login__panel { display: grid; place-items: center; padding: 32px; background: var(--cloud); }
.login__card { width: 100%; max-width: 420px; background: var(--pearl); border: 1px solid var(--mist); border-radius: 20px; padding: 36px 32px; box-shadow: 0 24px 60px -30px rgba(60,40,20,.28); }
.login__card .muted { margin-top: 8px; }

/* ── Szkielet ── */
.shell { min-height: 100vh; overflow-x: clip; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 2.4vw, 32px); min-height: 68px; background: rgba(250,249,246,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mist); }
.topbar__scope { flex: 1; min-width: 0; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.topbar__scope::-webkit-scrollbar { display: none; }
.topbar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gallery-chip { font-size: 13px; color: var(--smoke); white-space: nowrap; }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 9px clamp(16px, 2.4vw, 32px); background: var(--champagne-soft); color: #4d3a25; font-size: 13.5px; line-height: 1.4; border-bottom: 1px solid var(--mist); }
.demo-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--champagne-text); flex: none; }

.body { display: grid; grid-template-columns: 252px minmax(0, 1fr); align-items: stretch; }
.shell--manager .body { grid-template-columns: minmax(0, 1fr); }
.nav { padding: 32px 18px; display: flex; align-content: start; flex-direction: column; gap: 2px; }
.nav__item { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--smoke); font-size: 15px; transition: background .2s, color .2s; position: relative; }
.nav__item:hover { background: var(--cloud); color: var(--ink); }
.nav__item--on { color: var(--ink); font-weight: 600; background: var(--cloud); }
.nav__item--on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--champagne-text); }
.nav__item--soft { margin-top: 14px; color: var(--champagne-text); font-size: 14px; }

.main { padding: clamp(24px, 3.4vw, 52px) clamp(18px, 4vw, 64px) 96px; max-width: 1280px; width: 100%; outline: none; }
.main { border-left: 1px solid var(--mist); }
.shell--manager .main { border-left: 0; max-width: 640px; margin: 0 auto; padding: 28px 18px 80px; }
.view { min-height: 40vh; }

/* ── Przejścia widoków ── */
.t-enter { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.t-enter-start { opacity: 0; transform: translateY(10px); }
.t-enter-end { opacity: 1; transform: none; }

/* ── Statystyki ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0 44px; max-width: 980px; }
.stat { border-top: 2px solid var(--ink); padding-top: 12px; }
.stat__num { font: 500 clamp(2.4rem, 3.4vw, 3.4rem)/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.stat__num--small { font-size: 1.5rem; line-height: 1.4; color: var(--smoke); }
.stat__label { font-size: 14px; color: var(--smoke); margin-top: 8px; line-height: 1.35; }
.stat__delta { font-size: 13px; margin-top: 6px; font-weight: 500; }
.is-up { color: var(--love); } .is-down { color: var(--nope); } .is-flat { color: var(--smoke); }
.section-head { margin: 8px 0 14px; }
.section-head .eyebrow { margin: 0; }

/* ── Zdjęcia i bohaterowie ── */
.heroes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.hero-card { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--cloud); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-card:hover .photo img { transform: scale(1.045); }
.photo__fallback { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; font: 400 20px var(--serif); color: var(--champagne); background: linear-gradient(160deg, var(--champagne-soft), var(--cloud)); text-align: center; padding: 8px; }
img.is-broken { opacity: 0; }
.photo__badge { position: absolute; left: 12px; bottom: 12px; background: rgba(250,249,246,.94); color: var(--ink); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.hero-card__name { font: 500 17px/1.3 var(--serif); margin-top: 12px; }
.hero-card__meta { font-size: 14px; color: var(--smoke); margin-top: 4px; line-height: 1.4; }

.gap-teaser { background: var(--cloud); border-radius: 14px; padding: 24px 22px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: background .25s, transform .3s var(--ease), box-shadow .3s; align-self: stretch; position: relative; overflow: hidden; }
.gap-teaser:hover { background: var(--champagne-soft); transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(80,55,30,.5); }
.gap-teaser .eyebrow { margin: 0; }
.gap-teaser__title { font: 500 24px/1.18 var(--serif); }
.gap-teaser__pct { font: 500 4.4rem/1 var(--serif); color: var(--champagne-text); margin-top: auto; }
.gap-teaser__text { font-size: 14.5px; color: var(--smoke); line-height: 1.5; }
.more { color: var(--champagne-text); font-weight: 500; text-decoration: none; font-size: 14.5px; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Wykres ── */
.metric-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.chart { margin: 14px 0 44px; max-width: 1000px; }
.chart__title { font-size: 14px; color: var(--smoke); margin-bottom: 8px; }
.chart__plot { position: relative; height: 260px; border-bottom: 1px solid var(--mist); background: repeating-linear-gradient(to top, transparent 0, transparent 64px, rgba(231,225,216,.7) 64px, rgba(231,225,216,.7) 65px); }
.chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s var(--ease) .1s forwards; }
.chart__area { opacity: 0; animation: fadein .9s ease .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.chart__dot { position: absolute; width: 11px; height: 11px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: transform .2s; }
.chart__dot:hover { transform: scale(1.5); }
.chart__dot--last { background: var(--champagne-text); border-color: var(--champagne-text); }
.chart__axis { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 10px; }
.chart__col { text-align: center; display: grid; gap: 2px; }
.chart__col b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart__col span { font-size: 12.5px; color: var(--smoke); }
.chart__col--last b { color: var(--champagne-text); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; max-width: 1100px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 36px; max-width: 1180px; }
.funnel { display: grid; gap: 18px; }
.funnel__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 7px; }
.funnel__head b { font-variant-numeric: tabular-nums; }
.funnel__bar { height: 12px; background: var(--cloud); border-radius: 99px; overflow: hidden; }
.funnel__bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; transform-origin: left; animation: grow 1s var(--ease) both; animation-delay: var(--d, 0ms); }
.funnel__row:nth-child(n+3) .funnel__bar span { background: var(--champagne-text); }
@keyframes grow { from { transform: scaleX(0); } }
.funnel__conv { font-size: 12.5px; color: var(--smoke); margin-top: 5px; }

.bench { display: grid; gap: 14px; }
.bench__lead { font: 500 20px/1.3 var(--serif); }
.bench__row { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 12px; font-size: 14px; }
.bench__row b { text-align: right; font-variant-numeric: tabular-nums; }
.bench__bar { height: 12px; background: var(--cloud); border-radius: 99px; overflow: hidden; }
.bench__bar i { display: block; height: 100%; background: var(--champagne-text); border-radius: 99px; animation: grow 1s var(--ease) both; transform-origin: left; }
.bench__row--other .bench__bar i { background: var(--champagne); }

.notice { margin: 24px 0; padding: 16px 20px; border-radius: var(--r); background: var(--cloud); max-width: 720px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.notice--soft { color: var(--smoke); display: block; }
.notice--error { background: var(--nope-bg); color: var(--nope); }

/* ── Luka kompletacji ── */
.gap-list { display: grid; gap: 0; margin-top: 30px; max-width: 900px; border-top: 1px solid var(--mist); }
.gap-row { padding: 26px 0; border-bottom: 1px solid var(--mist); }
.gap-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gap-row__slot { font: 500 26px/1.1 var(--serif); }
.gap-row__total { font-size: 13px; color: var(--smoke); }
.gbar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--cloud); }
.gbar > span { display: block; height: 100%; transition: width .9s var(--ease); }
.gbar__kept { background: var(--ink); } .gbar__group { background: var(--champagne); } .gbar__out { background: repeating-linear-gradient(135deg, var(--champagne-text) 0 5px, #8d6c49 5px 10px); }
.gleg { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 13.5px; color: var(--smoke); }
.gleg li { display: flex; align-items: center; gap: 8px; }
.gleg i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.gleg__k { background: var(--ink); } .gleg__g { background: var(--champagne); } .gleg__o { background: var(--champagne-text); }
.gap-row__sentence { margin-top: 14px; font-size: 16px; line-height: 1.55; max-width: 64ch; }
.example { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.photo--sm { border-radius: 12px; }
.photo--empty { aspect-ratio: 4 / 3; }
.photo--empty .photo__fallback { z-index: 0; }
.ex-card figcaption { display: grid; margin-top: 8px; font-size: 14px; line-height: 1.35; }
.ex-card figcaption span { color: var(--smoke); font-size: 13px; }
.ex-card--other .photo { background: #E4E1DB; }
.ex-card--other .photo__fallback { background: repeating-linear-gradient(135deg, #E9E6E0 0 10px, #E1DED7 10px 20px); color: var(--smoke); }

/* ── Popyt: rankingi ── */
.rank { margin-top: 14px; display: grid; gap: 0; counter-reset: r; }
.rank li { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: baseline; padding: 13px 0 11px; border-bottom: 1px solid var(--mist); position: relative; font-size: 15px; }
.rank__n { font: 500 14px var(--serif); color: var(--champagne-text); }
.rank__val { font-size: 14px; font-variant-numeric: tabular-nums; }
.rank__bar { grid-column: 2 / 4; height: 4px; border-radius: 4px; background: var(--cloud); overflow: hidden; }
.rank__bar i { display: block; height: 100%; background: var(--champagne); border-radius: 4px; animation: grow .9s var(--ease) both; transform-origin: left; }

/* ── W rozwoju ── */
.roadmap { margin-top: 36px; max-width: 920px; border-top: 1px solid var(--mist); }
.road { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--mist); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); transition: background .2s; }
.road:hover { background: var(--cloud); }
.road__h { font: 500 20px var(--serif); color: var(--champagne-text); }
.road__main h3 { font: 500 19px/1.25 var(--serif); }
.road__main p { color: var(--smoke); font-size: 14.5px; margin-top: 3px; }
.tag { font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 99px; white-space: nowrap; }
.tag--ready { background: var(--love-bg); color: var(--love); }
.tag--pilot { background: var(--champagne-soft); color: var(--champagne-text); }
.tag--dev { background: var(--cloud); color: var(--smoke); border: 1px solid var(--mist); }

/* ── Raport ── */
.report-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.report-toolbar__actions { display: flex; gap: 12px; align-items: center; }
.sheet { background: var(--pearl); border: 1px solid var(--mist); border-radius: 6px; padding: clamp(24px, 4vw, 56px); max-width: 920px; box-shadow: 0 30px 70px -45px rgba(60,40,20,.45); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; margin-bottom: 36px; border-bottom: 1px solid var(--ink); }
.sheet__meta { display: grid; text-align: right; font-size: 13px; color: var(--smoke); }
.sheet__title { font: 500 clamp(2rem, 3.4vw, 2.8rem)/1.08 var(--serif); }
.sheet__sub { color: var(--champagne-text); font-size: 14px; margin-top: 6px; }
.stats--sheet { margin: 28px 0 8px; max-width: none; }
.sheet__h { font: 500 21px/1.2 var(--serif); margin: 38px 0 14px; }
.chart--sheet { margin: 0; max-width: none; }
.chart--sheet .chart__plot { height: 170px; }
.funnel--sheet { gap: 12px; }
.heroes--sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet__list li { padding: 7px 0; border-bottom: 1px solid var(--cloud); font-size: 14.5px; line-height: 1.5; }
.sheet__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sheet__cols .eyebrow { margin-bottom: 4px; }
.measure { margin-top: 44px; padding: 22px 24px; background: var(--cloud); border-radius: 10px; }
.measure .sheet__h { margin-top: 0; }
.measure__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 14px; }
.measure ul { margin-top: 6px; padding-left: 18px; list-style: disc; color: var(--smoke); }

/* ── Kierownik salonu ── */
.weeknav { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; }
.weeknav__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mist); background: transparent; cursor: pointer; font-size: 18px; transition: background .2s, border-color .2s; }
.weeknav__btn:hover:not(:disabled) { background: var(--cloud); border-color: var(--champagne); }
.weeknav__btn:disabled { opacity: .35; cursor: default; }
.weeknav__label { flex: 1; text-align: center; font: 500 17px var(--serif); }
.block { margin-top: 36px; }
.block__title { font: 600 15px/1.35 var(--sans); margin-bottom: 12px; }
.block .muted { margin-bottom: 10px; }
.prow { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.thumb { position: relative; width: 64px; height: 82px; border-radius: 10px; overflow: hidden; flex: none; background: var(--cloud); isolation: isolate; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .photo__fallback { font-size: 18px; }
.prow__text { display: grid; gap: 2px; font-size: 15px; line-height: 1.35; }
.prow__text span { color: var(--smoke); font-size: 14px; }
.slist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mist); font-size: 15px; }
.slist__name { flex: 1; min-width: 0; }
.chip { background: var(--cloud); border-radius: 99px; padding: 3px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.slist b { font-size: 14px; white-space: nowrap; }
.mannequin { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-bottom: 8px; }
.photo--mq { border-radius: 10px; }
.mq figcaption { font-size: 13px; margin-top: 6px; line-height: 1.3; }
.photo--other { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #E9E6E0 0 10px, #E1DED7 10px 20px); color: var(--smoke); font-size: 13px; font-weight: 500; text-align: center; padding: 8px; }
.mq--other figcaption { color: var(--smoke); }

/* ── Szkielet ładowania ── */
.sk { background: linear-gradient(100deg, var(--cloud) 30%, #f8f5f0 50%, var(--cloud) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk--eyebrow { width: 220px; height: 14px; margin-bottom: 18px; }
.sk--h1 { width: min(560px, 90%); height: 46px; margin-bottom: 12px; }
.sk--short { width: min(380px, 70%); }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; max-width: 980px; }
.sk--stat { height: 90px; }
.sk--chart { height: 280px; margin-top: 28px; max-width: 1000px; }
.sk--row { height: 82px; margin-top: 14px; }

/* ── Ekran < 1100 px ── */
@media screen and (max-width: 1100px) {
  .heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .three-col { grid-template-columns: 1fr; gap: 32px; }
  .login { grid-template-columns: 1fr; }
  .login__story { border-right: 0; border-bottom: 1px solid var(--mist); padding-bottom: 56px; }
  .login__plates { display: none; }
}

/* ── Telefon / wąski ekran ── */
@media screen and (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; }
  .topbar .logo { order: 1; }
  .topbar__right { order: 2; margin-left: auto; }
  .topbar__scope { order: 3; flex-basis: 100%; }
  .topbar__scope .pills { flex-wrap: nowrap; }
  .main { border-left: 0; }
  .logo { font-size: 19px; }
  .body { grid-template-columns: minmax(0, 1fr); }
  .nav { position: static; flex-direction: row; overflow-x: auto; padding: 10px 12px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--mist); gap: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav__item { white-space: nowrap; padding: 9px 14px; }
  .nav__item--on::before { display: none; }
  .nav__item--soft { margin-top: 0; }
  .main { padding: 26px 16px 72px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 18px; margin: 28px 0 36px; }
  .heroes { gap: 16px; }
  .gap-teaser__pct { font-size: 3.4rem; }
  .example { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login__story { padding: 28px 22px 44px; gap: 28px; }
  .login__points li { grid-template-columns: 1fr; gap: 2px; }
  .login__panel { padding: 22px 16px 40px; }
  .login__card { padding: 28px 22px; }
  .bench__row { grid-template-columns: 96px 1fr 44px; }
  .road { grid-template-columns: 52px 1fr; }
  .road .tag { grid-column: 2; justify-self: start; }
  .chart__plot { height: 200px; }
  .chart__col span { font-size: 11px; }
  .chart__col b { font-size: 13px; }
  .sheet__cols, .measure__cols { grid-template-columns: 1fr; }
  .heroes--sheet { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 520px) {
  .heroes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .heroes::-webkit-scrollbar { display: none; }
  .hero-card { flex: 0 0 62%; scroll-snap-align: start; }
  .gap-teaser { flex: 0 0 82%; scroll-snap-align: start; }
  .heroes--sheet { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; }
  .report-toolbar__actions { width: 100%; }
  .report-toolbar__actions .btn { flex: 1; }
}

/* ── Ruch ograniczony ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__area { opacity: 1; }
  .sk { animation: none; }
}

/* ── Druk raportu (PDF) ── */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  body { font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  [data-print-hide], .topbar, .demo-banner, .nav, .notice--error { display: none !important; }
  .body { display: block; }
  .shell { min-height: 0; }
  .main { padding: 0; max-width: none; border-left: 0; }
  .chart__plot { background: none !important; }
  .view { display: none !important; }
  .view--report { display: block !important; min-height: 0; }
  .sheet { border: 0; box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .stats--sheet { grid-template-columns: repeat(4, 1fr); }
  .stat__num { font-size: 26pt; }
  .heroes--sheet { grid-template-columns: repeat(3, 1fr); gap: 10pt; }
  .sheet__cols { grid-template-columns: repeat(3, 1fr); }
  .measure__cols { grid-template-columns: 1fr 1fr; }
  .chart--sheet .chart__plot { height: 120pt; }
  .chart__line, .chart__area, .funnel__bar span, .hero-card { animation: none !important; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__area { opacity: 1; }
  .avoid-break, .hero-card, .funnel__row, .stat, .sheet__h { break-inside: avoid; page-break-inside: avoid; }
  .sheet__h { break-after: avoid; }
}
