/* Czcionki z własnego serwera (licencja SIL OFL): przeglądarka nie łączy się z Google,
   więc nie ma przekazywania adresu IP i czcionki nie muszą być w polityce prywatności. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --wall: #f1eee9;
  --ink: #1c1a18;
  --muted: #6e6860;
  --line: #e6e1da;
  --accent: #a4502e;
  --sold: #9a3b2b;
  --reserved: #87590b; /* kontrast ≥ 4.5:1 także na tle ściany */
  --focus: #2f5bd3;
  --shadow-art: 0 1px 2px rgba(28, 26, 24, .18), 0 10px 24px -8px rgba(28, 26, 24, .35);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gap: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h2 a, h1 a { text-decoration: none; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.section { padding-block: clamp(28px, 5vw, 64px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.fine { font-size: .8125rem; color: var(--muted); }
.empty { color: var(--muted); padding: 32px 0; }
.eyebrow { font-size: .875rem; color: var(--accent); margin: 0 0 .6em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose + h2, .prose + p { margin-top: 1.75em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 30; }

/* Przyciski i linki */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid var(--ink); background: var(--ink); color: #faf8f5;
  font: 500 .9375rem/1.3 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.button:hover { background: #3a3632; border-color: #3a3632; }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: #faf8f5; }
.button-light { background: #faf8f5; color: var(--ink); border-color: #faf8f5; }
.button-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.arrow-link { text-decoration: none; font-weight: 500; white-space: nowrap; }
.arrow-link::after { content: " →"; transition: margin .15s; }
.arrow-link:hover::after { margin-left: 4px; }
.back-link { text-decoration: none; color: var(--muted); }
.back-link::before { content: "← "; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 245, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { font: 500 1.75rem/1 var(--serif); text-decoration: none; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { text-decoration: none; font-size: .9375rem; padding-block: 4px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav .lang { color: var(--muted); padding-left: 20px; border-left: 1px solid var(--line); border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 14px; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gap) 20px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .lang { border-left: 0; padding-left: 0; }
}

/* Strona główna */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); max-width: 17ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; gap: 24px; margin-top: 28px; color: var(--muted); font-size: .9375rem; }
.hero-stats span + span { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-art {
  position: relative; aspect-ratio: 1 / .92;
  background:
    radial-gradient(ellipse 34% 26% at 30% 18%, rgba(255, 247, 232, .9), transparent 70%),
    radial-gradient(ellipse 30% 24% at 74% 12%, rgba(255, 247, 232, .8), transparent 70%),
    linear-gradient(to bottom, var(--wall) 0 86%, #ddd3c5 86% 100%);
}
.hero-piece { position: absolute; display: block; transition: transform .3s ease; }
.hero-piece img { width: 100%; box-shadow: var(--shadow-art); }
.hero-piece:hover { transform: translateY(-4px); }
.hero-piece-1 { left: 8%; top: 12%; width: 46%; }
.hero-piece-2 { right: 8%; top: 7%; width: 32%; }
.hero-piece-3 { right: 14%; top: 50%; width: 26%; }
.hero-art-1 .hero-piece-1 { left: 22%; width: 56%; }
.hero-art-2 .hero-piece-2 { top: 20%; width: 34%; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; }
}

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

.band { background: #1f1c19; color: #f3efe9; margin-top: clamp(24px, 4vw, 48px); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.band h2 { margin-bottom: .3em; }
.band p { color: #c9c2b8; margin: 0; max-width: 56ch; }

/* Karta wystawy z miniaturową salą */
.exhibit-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.exhibit-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.exhibitions-list { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: 32px; }
.exhibit-visual { display: block; }
.mini-room {
  display: flex; align-items: center; justify-content: center; gap: 7%;
  aspect-ratio: 16 / 10; padding: 0 9% 12%; overflow: hidden;
  background:
    radial-gradient(ellipse 18% 30% at 22% 22%, rgba(255, 246, 228, .95), transparent 72%),
    radial-gradient(ellipse 20% 32% at 50% 20%, rgba(255, 246, 228, .95), transparent 72%),
    radial-gradient(ellipse 18% 30% at 78% 22%, rgba(255, 246, 228, .95), transparent 72%),
    linear-gradient(to bottom, #ece8e2 0 80%, #b9a184 80% 81%, #cdb89c 81% 100%);
  transition: transform .4s ease;
}
.exhibit-visual:hover .mini-room, .room-teaser:hover .mini-room { transform: scale(1.015); }
.mini-piece { display: block; flex: 0 1 auto; }
.mini-piece img { width: 100%; box-shadow: var(--shadow-art); }
.mini-piece-1 { width: 24%; }
.mini-piece-2 { width: 32%; }
.mini-piece-3 { width: 20%; }
@media (max-width: 860px) { .exhibit-card { grid-template-columns: 1fr; } }

/* Siatka prac: każda praca „wisi” na takim samym kawałku ściany. Wiersze (nie kolumny),
   żeby kolejność, np. po cenie, czytała się od lewej do prawej. */
.works-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: calc(var(--gap) * 1.25) var(--gap); }
.work-card a { display: block; text-decoration: none; }
/* Zdjęcie wypełnia kwadrat z zachowaniem proporcji (rozmiar znany jeszcze przed wczytaniem),
   a cień rysuje filtr, który obrysowuje tylko widoczny obraz, nie puste pole obok. */
.work-frame { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); aspect-ratio: 1; padding: 12%; background: var(--wall); }
.work-frame picture { display: block; min-height: 0; }
.work-frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(28, 26, 24, .2)) drop-shadow(0 8px 10px rgba(28, 26, 24, .22)); transition: transform .25s ease, filter .25s ease; }
.work-card a:hover .work-frame img { transform: translateY(-3px); filter: drop-shadow(0 2px 2px rgba(28, 26, 24, .2)) drop-shadow(0 14px 14px rgba(28, 26, 24, .3)); }
.work-meta { display: grid; gap: 2px; padding-top: 12px; font-size: .9375rem; }
.work-title { font: 500 1.3rem/1.2 var(--serif); }
.work-card a:hover .work-title { text-decoration: underline; text-decoration-thickness: 1px; }
.work-artist { color: var(--muted); }
.work-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.work-dims { color: var(--muted); font-size: .875rem; }
.work-price { font-weight: 500; }
.status { font-size: .875rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.status-sold { color: var(--sold); }
.status-reserved { color: var(--reserved); }
.status-portfolio { color: var(--muted); }
.status-portfolio::before { display: none; }
.status-large { font-size: 1.05rem; margin: 8px 0 16px; }
@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .work-title { font-size: 1.1rem; }
  .work-meta { font-size: .875rem; }
  .work-foot { flex-wrap: wrap; gap: 0 8px; }
}

/* Artyści */
.artists-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.artist-card a { display: grid; gap: 2px; text-decoration: none; }
.artist-cover { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--wall); overflow: hidden; margin-bottom: 12px; }
.artist-cover img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.artist-card a:hover .artist-cover img:first-child { transform: scale(1.04); }
.artist-avatar { position: absolute; left: 12px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.artist-name { font: 500 1.4rem/1.2 var(--serif); }
.artist-meta { color: var(--muted); font-size: .875rem; }

/* Profil artysty */
.profile-head { background: var(--wall); padding-block: clamp(32px, 6vw, 64px); }
.profile-inner { display: flex; gap: clamp(20px, 3vw, 36px); align-items: center; }
.profile-inner h1 { margin-bottom: .25em; }
.avatar { width: 132px; height: 132px; flex: none; object-fit: cover; border-radius: 50%; }
.avatar-initial { display: grid; place-items: center; background: #e2dcd3; font: 500 3.4rem/1 var(--serif); color: var(--muted); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); margin: 0; }
.profile-meta > * + *::before { content: "·"; margin: 0 10px; color: var(--line); }
.profile-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile-bio { font-size: 1.0625rem; }
.room-teaser { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.room-teaser-text { display: grid; gap: 4px; padding: 18px 20px 20px; }
.room-teaser-title { font: 500 1.5rem/1.2 var(--serif); }
.room-teaser .eyebrow { margin: 0; }
@media (max-width: 760px) {
  .profile-inner { flex-direction: column; align-items: flex-start; }
  .profile-body { grid-template-columns: 1fr; }
  .avatar { width: 96px; height: 96px; }
}

/* Strona pracy */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.artwork { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.artwork-stage { background: var(--wall); padding: clamp(24px, 6%, 72px); display: grid; place-items: center; min-height: min(70vh, 640px); background-image: radial-gradient(ellipse 60% 45% at 50% 12%, rgba(255, 247, 232, .85), transparent 70%); }
.artwork-figure { margin: 0 0 24px; }
.artwork-figure:last-child { margin-bottom: 0; }
.artwork-figure img { max-height: 72vh; width: auto; margin-inline: auto; box-shadow: var(--shadow-art); }
.js .artwork-figure { margin: 0; }
.js .artwork-figure:not(.is-active) { display: none; }
.artwork-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.artwork-thumb { width: 72px; height: 72px; border: 1px solid var(--line); padding: 3px; background: var(--surface); }
.artwork-thumb img { width: 100%; height: 100%; object-fit: cover; }
.artwork-thumb.is-active { border-color: var(--ink); }
.artwork-thumb-scale { position: relative; overflow: hidden; }
.artwork-thumb-scale svg { width: 100%; height: 100%; display: block; }
.artwork-thumb-scale span { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 1px 0; background: rgba(28, 26, 24, .72); color: #faf8f5; font-size: .6875rem; text-align: center; }
.artwork-gallery { position: relative; }
.artwork-stage { position: relative; }
.artwork-figure[data-zoom] img { cursor: zoom-in; }
.artwork-scale { width: 100%; }
.artwork-scale svg { display: block; width: 100%; max-height: 66vh; }
.artwork-scale figcaption { margin-top: 10px; text-align: center; }
.artwork-zoom { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border: 0; background: rgba(250, 248, 245, .9); color: var(--ink); font: 500 .8125rem/1 var(--sans); cursor: pointer; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .3); }
.artwork-zoom:hover { background: #fff; }
.artwork-zoom[hidden] { display: none; }
.artwork-zoom svg { width: 18px; height: 18px; }

/* Powiększenie obrazu na cały ekran */
.has-lightbox { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: #141210; overflow: hidden; touch-action: none; cursor: zoom-out; }
.lightbox-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; cursor: zoom-in; user-select: none; -webkit-user-drag: none; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6); }
.lightbox-img.is-animating { transition: transform .3s ease; }
.lightbox.is-zoomed, .lightbox.is-zoomed .lightbox-img { cursor: zoom-out; }
.lightbox-close { position: absolute; right: 16px; top: 16px; padding: 10px 16px; border: 0; background: rgba(250, 248, 245, .92); color: var(--ink); font: 500 .875rem/1 var(--sans); cursor: pointer; }
.lightbox-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; padding: 8px 14px; background: rgba(250, 248, 245, .92); color: var(--ink); font-size: .8125rem; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.lightbox-hint.is-hidden { opacity: 0; }
.artwork-info { position: sticky; top: 96px; }
.artwork-info h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .2em; }
.artwork-artist { font-size: 1.1rem; margin-bottom: 20px; }
.price { font: 500 2.1rem/1.1 var(--serif); margin: 0 0 4px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 20px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.note { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; font-size: .9375rem; }
.artwork-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.share-button svg { width: 18px; height: 18px; }
.share-button[hidden] { display: none; }

/* Zapytanie o obraz: przycisk rozwija formularz (bez JavaScriptu). */
.inquiry { margin: 22px 0; }
.inquiry, .inquiry-sent { scroll-margin-top: 96px; } /* nie chowa się pod przyklejonym nagłówkiem */
.inquiry > summary { list-style: none; display: inline-flex; }
.inquiry > summary::-webkit-details-marker { display: none; }
.inquiry[open] > summary { background: transparent; color: var(--ink); }
.inquiry-form { display: grid; gap: 14px; margin-top: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.inquiry-intro { margin: 0; color: var(--muted); font-size: .9375rem; }
.inquiry-form .field { display: grid; gap: 6px; }
.inquiry-form label { font-size: .875rem; font-weight: 500; }
.inquiry-form input, .inquiry-form textarea { width: 100%; font: inherit; font-size: .9375rem; color: var(--ink); padding: 10px 12px; border: 1px solid #cfc8bd; background: #fff; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form [aria-invalid="true"] { border-color: var(--sold); }
.field-error, .form-error { margin: 0; color: var(--sold); font-size: .875rem; }
.inquiry-form .fine { margin: 0; }
.inquiry-form .button { justify-self: start; }
.inquiry-sent { margin: 22px 0; padding: 16px 20px; background: #eef4ec; border: 1px solid #cfe0ca; }
.inquiry-sent p { margin: 0; }
.inquiry-sent p + p { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.artwork-description { margin-bottom: 20px; }
@media (max-width: 900px) {
  .artwork { grid-template-columns: 1fr; }
  .artwork-info { position: static; }
  .artwork-stage { min-height: 0; }
}

/* Lista prac: filtry */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 8px 0 32px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.filters label { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }
.filters select, .filters input { font: inherit; font-size: .9375rem; color: var(--ink); padding: 9px 10px; border: 1px solid var(--line); background: var(--bg); min-width: 170px; }
.pagination { display: flex; gap: 24px; justify-content: center; align-items: center; padding-top: 16px; }

/* Stopka */
.site-footer { background: var(--wall); margin-top: clamp(40px, 6vw, 80px); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.footer-inner nav { display: grid; gap: 8px; align-content: start; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.footer-title { font-size: .8125rem; color: var(--muted); margin: 0 0 4px; }
.footer-name { font: 500 1.75rem/1 var(--serif); margin: 0 0 8px; }
.footer-about { max-width: 46ch; margin-top: 16px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.footer-about p { margin: 0 0 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.band + .site-footer { margin-top: 0; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.error-page { text-align: center; padding-block: clamp(56px, 10vw, 96px) 24px; }
.error-page .lead { margin-inline: auto; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.error-recent { padding-top: 24px; }
.back { margin-bottom: 8px; font-size: .9375rem; }

/* ===== Wirtualna sala: cały ekran pod nagłówkiem ===== */
/* Przed wejściem na tle sali leży panel z informacjami; po wejściu zwija się do tytułu,
   pod nim jest plan sali (lewa strona), menu jest po prawej, karta pracy na dole po lewej. */
/* Strona sali to „aplikacja”: nagłówek i sala na całą wysokość okna, bez przewijania i bez stopki. */
body.is-app { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.is-app main { flex: 1; min-height: 0; }
.room-stage { height: 100%; }
.room { position: relative; height: 100%; min-height: 0; background: #2a2724; overflow: hidden; user-select: none; -webkit-user-select: none; }
.room.is-empty { background: var(--wall); }
.room:fullscreen { height: 100vh; }
.room-poster { position: absolute; inset: 0; overflow: hidden; transition: opacity .6s; }
.room-poster.is-leaving { opacity: 0; pointer-events: none; }
.room-poster img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.85) saturate(1.1); transform: scale(1.15); }
.room-poster.is-render img { filter: none; transform: none; }
.room-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 16, .35), rgba(20, 18, 16, 0) 60%); }
.room canvas { display: block; width: 100%; height: 100%; outline: none; }
/* Lekkie przyciemnienie brzegów kadru, jak na zdjęciu z obiektywu. */
.room.is-active::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(20, 16, 12, .32) 100%); }
.room.is-active { touch-action: none; cursor: grab; }
.room.is-active:active { cursor: grabbing; }

.room-left { position: absolute; left: 20px; top: 20px; bottom: 20px; z-index: 4; width: min(420px, calc(100% - 40px)); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none; }
.room-left > * { pointer-events: auto; }
.room-panel { margin-top: auto; width: 100%; padding: 26px 28px; background: rgba(250, 248, 245, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5); }
.room-panel .eyebrow { margin-bottom: .3em; }
.room-panel h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 6px; }
.room-back { display: inline-block; margin-bottom: 14px; font-size: .875rem; color: var(--muted); text-decoration: none; }
.room-back::before { content: "← "; }
.room-back:hover { color: var(--ink); }
.room-meta { margin: 0 0 12px; color: var(--muted); font-size: .9375rem; }
.room-summary { margin: 0 0 20px; font-size: .9375rem; }
.room-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.room-start, .room-list-open { font-size: 1.05rem; padding: 14px 26px; }

/* Lista prac i opis wystawy: panel wysuwany z prawej. */
.room-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--bg); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .5); transition: transform .3s, visibility .3s; }
.js .room-drawer:not(.is-open) { transform: translateX(100%); visibility: hidden; }
.room-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.room-drawer-head h2 { margin: 0; font-size: 1.6rem; }
.room-drawer-close { background: none; border: 1px solid var(--line); padding: 9px 14px; font: inherit; font-size: .875rem; cursor: pointer; }
.room-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 28px; }
.room-drawer-about { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.room-drawer-about h3 { font-size: 1.3rem; margin-bottom: .4em; }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.room-list a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 8px; text-decoration: none; }
.room-list a:hover, .room-list a.is-current { background: var(--wall); }
.room-list img { width: 76px; height: 76px; object-fit: cover; box-shadow: var(--shadow-art); }
.room-list-text { display: grid; gap: 1px; min-width: 0; }
.room-list-title { font: 500 1.2rem/1.2 var(--serif); }
.room-list-artist, .room-list-details { color: var(--muted); font-size: .8125rem; }
.room-list-price { font-size: .875rem; font-weight: 500; }
.room-panel-help { margin: 16px 0 0; font-size: .8125rem; color: var(--muted); }
.room.is-active .room-panel { margin-top: 0; width: auto; max-width: 100%; padding: 14px 18px; }
.room.is-active .room-panel h1 { font-size: 1.6rem; margin: 0; }
.room.is-active .room-back { margin-bottom: 4px; }
.room.is-active :is(.room-meta, .room-summary, .room-panel-actions, .room-panel-help) { display: none; }

.room-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; padding: 10px 18px; background: rgba(255, 255, 255, .92); font-size: .9375rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); pointer-events: none; }
.room.is-fallback .room-start { display: none; }
.room-fallback { margin: 16px 0 0; color: var(--muted); }
.room-toast { position: absolute; left: 50%; bottom: 24px; z-index: 5; transform: translateX(-50%); width: max-content; max-width: min(560px, calc(100% - 40px)); padding: 10px 18px; background: rgba(28, 26, 24, .88); color: #faf8f5; font-size: .875rem; text-align: center; transition: opacity .4s; pointer-events: none; }
.room-toast.is-hidden { opacity: 0; }

.room-controls { position: absolute; right: 20px; top: 50%; z-index: 4; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; padding: 6px; background: rgba(250, 248, 245, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .5); }
.room-controls :is(button, a) { position: relative; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.room-controls :is(button, a):hover { background: var(--wall); }
.room-controls [aria-pressed="true"] { background: var(--ink); color: #faf8f5; }
.room-controls [aria-pressed="true"]:hover { background: #3a3632; }
.room-controls svg { width: 20px; height: 20px; }
.room-controls-sep { height: 1px; margin: 4px 6px; background: var(--line); }
/* Podpis przycisku pojawia się obok, po lewej. */
.room-controls [data-tip]:is(:hover, :focus-visible)::after { content: attr(data-tip); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 10px; background: var(--ink); color: #faf8f5; font: 500 .8125rem/1.2 var(--sans); pointer-events: none; }

/* Plan sali: rysunek SVG w metrach, grubości kresek w pikselach (non-scaling-stroke). */
.room-map { padding: 8px; background: rgba(250, 248, 245, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .5); }
.room-map-svg { display: block; overflow: visible; }
.room-map-svg path, .room-map-svg circle { vector-effect: non-scaling-stroke; }
.room-map-floor { fill: #f1ece4; }
.room-map-bench { fill: #ddd3c5; }
.room-map-walls { fill: none; stroke: #3a3632; stroke-width: 3px; stroke-linecap: square; }
.room-map-exit { fill: none; stroke: #9a9187; stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.room-map-work { cursor: pointer; outline: none; }
.room-map-hit { stroke: transparent; stroke-width: 14px; }
.room-map-line { stroke: #b0a69a; stroke-width: 4px; stroke-linecap: round; transition: stroke .15s; }
.room-map-work:hover .room-map-line, .room-map-work:focus-visible .room-map-line { stroke: var(--ink); stroke-width: 5px; }
.room-map-work.is-current .room-map-line { stroke: var(--accent); stroke-width: 6px; }
.room-map-cone { fill: rgba(47, 91, 211, .2); stroke: rgba(47, 91, 211, .45); stroke-width: 1px; }
.room-map-dot-me { fill: var(--focus); stroke: #fff; stroke-width: 2px; }
.room-map-me { pointer-events: none; }
.room-info { margin-top: auto; width: min(380px, 100%); display: grid; grid-template-columns: 72px 1fr; gap: 0 14px; background: rgba(250, 248, 245, .97); padding: 16px; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .5); }
.room-info[hidden] { display: none; }
.room-info-thumb { grid-row: span 4; width: 72px; height: 72px; object-fit: cover; }
.room-info p { margin: 0 0 2px; }
.room-info-title { font: 500 1.35rem/1.15 var(--serif); }
.room-info-artist, .room-info-details { color: var(--muted); font-size: .875rem; }
.room-info-price { font-weight: 500; }
.room-info-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin-top: 12px !important; }
.room-info-actions .button { padding: 9px 16px; }
.room-info-close { background: none; border: 1px solid var(--line); padding: 9px 14px; font: inherit; font-size: .875rem; cursor: pointer; }
@media (max-width: 640px) {
  .room-left { left: 12px; top: 12px; bottom: 12px; width: calc(100% - 24px); gap: 8px; }
  .room.is-active .room-left { width: calc(100% - 84px); }
  .room-panel { padding: 20px; }
  .room-panel h1 { font-size: 1.9rem; }
  .room-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .room-panel-help { display: none; }
  .room.is-active .room-panel { padding: 10px 14px; }
  .room.is-active .room-panel h1 { font-size: 1.25rem; }
  .room-controls { right: 12px; padding: 4px; }
  .room-controls :is(button, a) { width: 42px; height: 42px; }
  .room-controls [data-tip]::after { display: none; }
  .room-map { padding: 5px; }
  .room-info { grid-template-columns: 56px 1fr; padding: 12px; }
  .room-info-thumb { width: 56px; height: 56px; }
  .room-info-details { display: none; }
  .room-toast { bottom: 12px; font-size: .8125rem; }
}
