/* Styl „Detal” - Słój, pracownia mebli na wymiar. Strona jak wystawa w galerii: biel, ciepły grafit
   i jeden miodowo-dębowy detal, który rozstrzyga o całości. */
/* fonty lokalnie (bez odwołań poza folder strony) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-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: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-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: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/playfair-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: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/playfair-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: "Montserrat Fallback"; src: local("Arial"); size-adjust: 113.04%; ascent-override: 85.67%; descent-override: 22.21%; line-gap-override: 0%; }
@font-face { font-family: "Playfair Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 103%; descent-override: 24%; line-gap-override: 0%; }

:root {
  /* ciepły grafit / ciemny orzech jako kontrapunkt bieli */
  --ink: #2B2420;
  --night: #1F1A17;
  --navy-2: #3A312B;
  --paper: #FFFFFF;
  --wall: #F4F2EF;
  --graphite: #5E5650;
  --mist: #C9BFB5;
  --grey: #E6E1DC;
  /* jeden akcent: miodowy dąb. --orange na bieli (3,35:1, tylko kreski, obwódki, podkreślenia),
     --orange-2 na grafitowym tle (6,8:1). Nazwy zmiennych zostawione po stylu źródłowym. */
  --orange: #B9813A;
  --orange-2: #D9A45A;

  --sans: "Montserrat", "Montserrat Fallback", system-ui, "Segoe UI", sans-serif;
  --serif: "Playfair Display", "Playfair Fallback", Georgia, serif;

  --m: clamp(16px, 2.4vw, 36px);
  --gap: clamp(12px, 1.6vw, 24px);
  --demo: 32px;
  --bar: calc(76px + var(--demo)); /* pasek „projekt przykładowy” + nagłówek */

  --t-small: 14px;
  --t-body: 17px;
  --t-lead: clamp(19px, 1rem + 0.4vw, 22px);
  --t-num: 30px;
  --t-head: clamp(34px, 1.2rem + 3.4vw, 68px);
  --t-display: clamp(31px, 9.3vw, 172px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 8px); scrollbar-color: var(--ink) var(--wall); color-scheme: light; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.55; font-kerning: normal; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
p, h1, h2, h3, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; hyphens: none; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.pf { font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums; }
.wrap { padding-inline: var(--m); max-width: 1920px; margin-inline: auto; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 18px; }
.skip:focus { top: 8px; }

.head { font-size: var(--t-head); font-weight: 800; line-height: 1; letter-spacing: -0.03em; max-width: 22ch; }

/* kreska: miodowy detal pod nagłówkiem (gruby pasek, nie linia włosowa) */
.kreska { display: block; width: 104px; height: 6px; background: var(--orange); margin: 28px 0 32px; }
.kreska--s { width: 40px; height: 4px; margin: 0 0 12px; }

/* przyciski: płaskie, kwadratowe narożniki, grafit albo obrys */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font-weight: 700; font-size: var(--t-body); letter-spacing: 0.01em; text-decoration: none; border: 2px solid var(--ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--night); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--wide { width: 100%; }
.link-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 0.35em; transition: color var(--t-hover) ease; }

/* ===== Nagłówek ===== */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; }
.demo { height: var(--demo); display: flex; align-items: center; justify-content: center; gap: 8px 18px; padding-inline: var(--m); background: var(--ink); color: var(--grey); font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.demo a { color: var(--paper); font-weight: 700; text-decoration-color: var(--orange-2); text-decoration-thickness: 2px; min-height: var(--demo); display: inline-flex; align-items: center; }
.bar { height: calc(var(--bar) - var(--demo)); display: flex; align-items: center; gap: 32px; padding-inline: var(--m); background: var(--paper); }
.bar__logo { margin-right: auto; display: flex; align-items: baseline; gap: 12px; min-height: 48px; text-decoration: none; }
/* znak tekstowy marki: słowo + krótka miodowa kreska (ten sam detal co pod nagłówkami) */
.logo { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; position: relative; padding-bottom: 7px; }
.logo::after { content: ""; position: absolute; left: 0.04em; bottom: 0; width: 26px; height: 4px; background: var(--orange); }
.logo__sub { font-size: var(--t-small); font-weight: 600; color: var(--graphite); }
.bar__nav { display: flex; gap: 28px; font-size: var(--t-body); font-weight: 600; }
.bar__nav a { position: relative; text-decoration: none; padding: 12px 0; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 240ms var(--ease-out); }
.bar__nav a:hover::after { transform: scaleX(1); }
.bar__cta { min-height: 44px; padding: 0 18px; font-size: 14px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: var(--t-body); padding: 0 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: fixed; top: var(--bar); left: 0; right: 0; background: var(--paper); padding: 8px var(--m) 24px; display: grid; box-shadow: 0 18px 30px rgba(31, 26, 23, 0.12); } /* taste-skill-ignore: menu to prawdziwa nakładka */
.menu nav a { min-height: 52px; display: flex; align-items: center; font-weight: 700; font-size: var(--t-lead); text-decoration: none; }
.menu nav a:last-child { font-size: var(--t-body); color: var(--graphite); }

/* ===== Hero: wejście kamery w detal ===== */
.hero { position: relative; --band: calc(var(--t-display) * 1.86 + var(--m) * 2 + 8px); }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__bg { position: absolute; inset: 0; background: var(--paper); }
.hero__frame { position: absolute; inset: 0; }
.hero__img { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--band)); object-fit: cover; object-position: 100% 40%; transform-origin: 0 0; }
.hero__wall { position: absolute; left: var(--m); top: calc(var(--bar) + clamp(24px, 6vh, 72px)); width: min(36vw, 560px); z-index: 2; }
.hero__lead { font-size: var(--t-lead); line-height: 1.38; font-weight: 500; max-width: 30ch; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero__alarm { font-size: var(--t-body); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.3; }
.hero__alarm span { font-weight: 800; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.hero__title { position: relative; z-index: 2; padding: 0 var(--m) calc(var(--m) + 4px); font-size: var(--t-display); font-weight: 800; line-height: 0.93; letter-spacing: -0.045em; margin-left: -0.04em; }
.hero__title .ln { display: block; overflow: clip; padding-bottom: 0.06em; }
.hero__title .ln > span { display: inline-block; }
.hero__slit { position: absolute; left: 0; top: 0; width: 100px; height: 6px; background: var(--orange); opacity: 0; transform-origin: 0 0; z-index: 3; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.static) .hero__title .ln > span { animation: rise 1000ms var(--ease-expo) both; }
  html:not(.static) .hero__title .ln + .ln > span { animation-delay: 90ms; }
  html:not(.static) .hero__img { animation: settle 1400ms var(--ease-expo) both; }
  html:not(.static) .hero__wall { animation: fade 700ms var(--ease-out) 250ms both; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* tryb ruchu (motion.js dodaje .mo): scena przypięta */
.mo .hero { height: 250vh; height: 250svh; }
.mo .hero__stage { position: sticky; top: 0; z-index: 2; }
.mo .about { margin-top: -100vh; margin-top: -100svh; position: relative; }
.mo .about__head { position: relative; z-index: 3; }
.mo .about .kreska[data-kreska] { opacity: 0; }

/* ===== Pracownia ===== */
.about { padding: clamp(110px, 16vh, 180px) 0 clamp(96px, 12vw, 200px); }
.about__head { padding-top: 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.about__head .head { grid-column: 1 / span 7; }
.about__head .kreska { grid-column: 1 / span 3; grid-row: 2; margin-bottom: 0; }
.about__lead { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: end; }
.about__lead { font-size: var(--t-lead); line-height: 1.38; max-width: 36ch; font-weight: 500; margin-bottom: -6px; }
.about__grid { margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.about__photo { grid-column: 1 / span 8; position: relative; }
.about__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 62% 50%; }
.about__note { position: absolute; top: 0; right: 0; width: min(340px, 44%); background: var(--paper); padding: 22px 24px; font-size: var(--t-body); line-height: 1.55; }
.about__side { grid-column: 9 / span 4; display: grid; gap: 28px; }
.about__tile { background: var(--ink); color: var(--paper); padding: clamp(24px, 2.4vw, 36px); }
.about__tile h3 { font-size: var(--t-lead); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.steps { margin-top: 20px; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--serif); font-weight: 500; font-size: var(--t-num); line-height: 1; color: var(--orange-2); }
.steps li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; font-size: var(--t-body); line-height: 1.5; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gap); }
.facts li { font-size: var(--t-body); line-height: 1.4; color: var(--ink); }
.facts .pf { font-size: var(--t-num); line-height: 1; margin-right: 4px; }
.facts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.about__quote { margin-top: clamp(64px, 7vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.about__quote p { grid-column: 3 / span 8; font-size: clamp(21px, 0.9rem + 0.9vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; max-width: 30ch; }
.about__quote footer { grid-column: 3 / span 8; margin-top: 16px; font-size: var(--t-small); color: var(--graphite); }

/* ===== Sale wystawy (kategorie realizacji) ===== */
.rooms { background: var(--wall); padding: clamp(96px, 10vw, 160px) 0 clamp(80px, 8vw, 140px); }
.rooms__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--gap); align-items: end; }
.rooms__head .head { grid-column: 1 / span 7; }
.rooms__intro { grid-column: 8 / span 4; font-size: var(--t-body); max-width: 40ch; }
.rooms__count { grid-column: 12 / span 1; justify-self: end; font-size: var(--t-small); font-weight: 600; white-space: nowrap; display: none; }
.rooms__count .pf { font-size: var(--t-num); color: var(--ink); } /* liczby w grafitowym, akcent zostaje dla kresek */
.rooms__track { margin-top: clamp(40px, 4vw, 64px); display: flex; gap: clamp(28px, 3vw, 56px); padding-inline: var(--m); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: thin; padding-bottom: 20px; }
.room { flex: 0 0 min(82vw, 62vw + 120px); max-width: 1200px; scroll-snap-align: start; display: grid; grid-template-rows: auto auto; align-content: start; }
.room__frame { position: relative; overflow: clip; }
.room__frame img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transform-origin: var(--dx) var(--dy); transition: transform 900ms var(--ease-expo); }
.room__frame:hover img, .room.is-zoomed .room__frame img { transform: scale(2.6); }
.room__zoom { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; border: 0; background: var(--paper); color: var(--ink); font: 700 var(--t-small)/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.room__zoom::before { content: ""; width: 14px; height: 14px; border: 3px solid var(--orange); border-radius: 50%; box-sizing: border-box; }
.room__zoom:active { transform: scale(0.97); }
.room.is-zoomed .room__zoom { background: var(--ink); color: var(--paper); }
html:not(.js) .room__zoom { display: none; }
.room__label { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px var(--gap); padding-top: 22px; align-content: start; }
.room__no { grid-column: 1; font-size: var(--t-small); font-weight: 600; color: var(--graphite); }
.room__no .pf { font-size: var(--t-num); color: var(--ink); margin-left: 4px; vertical-align: -3px; }
.room__label h3 { grid-column: 1; font-size: clamp(20px, 1rem + 0.6vw, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
.room__detail { grid-column: 1; font-size: var(--t-small); color: var(--graphite); }
.room__text { grid-column: 2; grid-row: 1 / span 3; font-size: var(--t-body); line-height: 1.55; max-width: 56ch; }
.room__team { grid-column: 2; font-size: var(--t-small); color: var(--graphite); max-width: 60ch; }
.room__link { grid-column: 2; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; font-size: var(--t-body); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.rooms__index { margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--gap); }
.rooms__index h3 { grid-column: 1 / span 4; font-size: var(--t-lead); font-weight: 800; line-height: 1.2; max-width: 16ch; }
.rooms__index ol { grid-column: 5 / span 8; columns: 2; column-gap: var(--gap); counter-reset: r; }
.rooms__index li { break-inside: avoid; counter-increment: r; }
.rooms__index a { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; min-height: 44px; padding: 6px 0; text-decoration: none; font-weight: 600; font-size: var(--t-body); line-height: 1.3; }
.rooms__index a::before { content: counter(r); font-family: var(--serif); font-size: var(--t-lead); color: var(--graphite); }
.rooms__index a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }

/* galeria przypięta (desktop, ruch dozwolony) */
.rooms.is-pinned { padding: 0; }
.rooms.is-pinned .rooms__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(var(--bar) + clamp(16px, 4vh, 48px)); }
.rooms.is-pinned .rooms__count { display: block; }
.rooms.is-pinned .rooms__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: 0; margin-top: clamp(24px, 3.2vh, 48px); will-change: transform; }
.rooms.is-pinned .room { flex-basis: min(56vw, (100svh - 590px) * 2.333); }
.rooms.is-pinned .room:not(.is-zoomed) .room__frame:hover img { transform: none; }
.rooms.is-pinned .rooms__index { padding-bottom: clamp(80px, 8vw, 140px); margin-top: 0; padding-top: clamp(56px, 6vw, 96px); }

/* ===== Materiały (układ dawnej sekcji zespołu: kadr 21:9 + lista w pasach) ===== */
.partners { padding: clamp(110px, 12vw, 220px) 0 clamp(96px, 10vw, 180px); }
.partners__h { max-width: none; padding-left: 3vw; }
.partners__grid { margin-top: clamp(56px, 6vw, 96px); }
.partners__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 50%; }
.partners__list { margin-top: clamp(32px, 3vw, 48px); }
.partners__label { font-size: var(--t-small); color: var(--graphite); margin-bottom: 8px; }
.p { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 4px var(--gap); padding: 22px 0; align-items: start; }
.p:nth-child(odd) { background: var(--wall); padding-inline: var(--m); margin-inline: calc(-1 * var(--m)); }
.p h3 { font-size: var(--t-lead); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.p__role { grid-column: 1; font-size: var(--t-small); color: var(--graphite); }
.p__what { grid-column: 2; grid-row: 1 / span 2; font-size: var(--t-body); line-height: 1.5; }
.p__use { grid-column: 3; grid-row: 1 / span 2; font-size: var(--t-body); font-weight: 600; line-height: 1.5; }
.p__use span { display: block; font-size: var(--t-small); font-weight: 600; color: var(--graphite); }
.partners .link-more { margin-top: 12px; }

/* ===== Proces i opinie (grafit jako kontrapunkt) ===== */
.knowledge { background: var(--ink); color: var(--paper); padding: clamp(110px, 12vw, 200px) 0 clamp(96px, 10vw, 180px); }
.knowledge__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--gap); align-items: end; }
.knowledge__head .head { grid-column: 1 / span 7; }
.knowledge__head p { grid-column: 8 / span 5; font-size: var(--t-body); color: var(--grey); max-width: 46ch; }
.knowledge__grid { margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.process { grid-column: 1 / span 5; }
.process h3, .reports h3 { font-size: var(--t-lead); font-weight: 800; }
.process ol { margin-top: 20px; counter-reset: k; }
.process li { counter-increment: k; display: grid; grid-template-columns: 52px 1fr; gap: 2px 0; padding: 18px 0; border-top: 1px solid var(--navy-2); }
.process li::before { content: counter(k); grid-row: 1 / span 2; font-family: var(--serif); font-weight: 500; font-size: var(--t-num); line-height: 1; color: var(--orange-2); }
.process strong { font-size: var(--t-body); line-height: 1.35; }
.process li p { font-size: var(--t-body); line-height: 1.5; color: var(--grey); max-width: 46ch; }
.process li span { color: var(--mist); font-size: var(--t-small); }
.reports { grid-column: 7 / span 6; }
.reports ul { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.quote { background: var(--navy-2); padding: clamp(22px, 2vw, 32px); display: grid; align-content: start; gap: 16px; height: 100%; }
.quote::before { content: ""; width: 40px; height: 4px; background: var(--orange-2); }
.quote p { font-size: var(--t-body); line-height: 1.55; }
.quote footer { font-size: var(--t-small); color: var(--mist); }
.quote footer strong { display: block; color: var(--paper); font-size: var(--t-body); }
.news { margin-top: clamp(72px, 7vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--gap); }
.news__h { grid-column: 1 / span 4; font-size: var(--t-lead); font-weight: 800; }
.news ul { grid-column: 5 / span 8; }
.news li + li { margin-top: 4px; }
.news li > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4px var(--gap); padding: 14px 0; }
.news li:nth-child(odd) > div { background: var(--navy-2); padding-inline: 16px; margin-inline: -16px; }
.news strong { font-size: var(--t-body); line-height: 1.35; }
.news span { font-size: var(--t-body); line-height: 1.5; color: var(--grey); }
.knowledge .link-more { color: var(--paper); text-decoration-color: var(--orange-2); }

/* ===== Kontakt: wizytówka na zdjęciu sali ===== */
.contact { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; }
.contact__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.contact__card { position: relative; margin: clamp(96px, 12vh, 140px) 0 60px var(--m); width: min(440px, 100% - 2 * var(--m)); background: var(--paper); padding: 32px; }
.contact__card h2 { font-size: var(--t-num); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.contact__lead { margin-top: 12px; font-size: var(--t-body); }
.contact address { font-style: normal; margin-top: 20px; font-size: var(--t-body); line-height: 1.5; }
.hours { margin-top: 16px; display: grid; gap: 4px; font-size: var(--t-body); }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.contact__lines { margin-top: 16px; display: grid; font-weight: 700; }
.contact__lines a { min-height: 40px; display: inline-flex; align-items: center; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.contact__alarm { margin: 16px 0 24px; padding: 16px; background: var(--wall); font-size: var(--t-body); line-height: 1.45; }
.contact__alarm a { font-weight: 800; white-space: nowrap; }
.contact__alarm small { display: block; margin-top: 4px; font-size: 14px; color: var(--graphite); }

/* ===== Stopka ===== */
.foot { background: var(--night); color: var(--paper); padding: clamp(48px, 5vw, 72px) 0 24px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); font-size: var(--t-body); line-height: 1.6; color: var(--grey); }
.foot__h { font-size: var(--t-body); font-weight: 800; color: var(--paper); margin-bottom: 8px; }
.foot a { color: var(--paper); text-decoration-color: var(--orange-2); }
.foot__cols a { display: inline-block; padding: 4px 0; }
.foot__mark { margin-top: clamp(64px, 10vw, 160px); }
.foot__mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.foot__mark text { font-family: var(--sans); font-weight: 800; font-size: 60px; fill: var(--paper); letter-spacing: -1px; }
.foot__legal { margin-top: 20px; font-size: var(--t-small); color: var(--mist); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== Wejścia przy przewijaniu (tylko z motion.js) ===== */
.mo [data-rv] { opacity: 0; transform: translateY(24px); }
.mo [data-rv].is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }

/* ===== Tablet ===== */
@media (max-width: 1100px) {
  .bar__nav { gap: 18px; }
  .about__photo { grid-column: 1 / -1; }
  .about__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
  .p { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p__use { grid-column: 2; grid-row: auto; }
  .process, .reports { grid-column: 1 / -1; }
  .reports { margin-top: 48px; }
}
@media (max-width: 900px) {
  :root { --bar: calc(64px + var(--demo)); }
  .bar { gap: 12px; }
  .logo { font-size: 26px; }
  .bar__nav { display: none; }
  .menu { display: block; }
  .bar__cta { padding: 0 14px; }
  .hero { --band: 0px; }
  .hero__img { height: 48svh; object-position: 88% 40%; }
  .hero__stage { justify-content: flex-start; padding-top: calc(48svh + 20px); }
  .hero__title { order: 1; padding: 0 var(--m); font-size: clamp(30px, 8.6vw, 64px); }
  .hero__wall { order: 2; position: relative; left: auto; top: auto; width: auto; padding: 18px var(--m) 0; }
  .hero__lead { font-size: var(--t-body); }
  .hero__actions { margin-top: 18px; }
  .hero__actions .btn { flex: 1 1 100%; min-height: 52px; }
  .rooms__head .head, .rooms__intro { grid-column: 1 / -1; }
  .room__label { grid-template-columns: 1fr; }
  .room__text, .room__team, .room__link { grid-column: 1; grid-row: auto; }
  .rooms__index h3, .rooms__index ol { grid-column: 1 / -1; }
  .knowledge__head .head, .knowledge__head p, .news__h, .news ul { grid-column: 1 / -1; }
  .news li > div { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .room { flex-basis: 86vw; }
  .room__frame img { aspect-ratio: 4 / 3; object-position: var(--dx) var(--dy); }
  .room__frame:hover img { transform: none; }
  .room.is-zoomed .room__frame img { transform: scale(2.4); }
  .about__photo img { aspect-ratio: 4 / 3; }
  .about__note { position: static; width: auto; padding: 16px 0 0; }
  .about__side { grid-template-columns: 1fr; }
  .about__quote p, .about__quote footer { grid-column: 1 / -1; }
  .partners__h { padding-left: 0; }
  .partners__h .br-d { display: none; }
  .p { grid-template-columns: 1fr; }
  .p__what, .p__use { grid-column: 1; grid-row: auto; }
  .partners__photo img { aspect-ratio: 4 / 3; object-position: 100% 50%; } /* miodowa próbka jest na prawym brzegu */
  .rooms__index ol { columns: 1; }
  .reports ul { grid-template-columns: 1fr; }
  .contact { display: block; min-height: 0; }
  .contact__img { position: relative; height: 70svh; }
  .contact__card { margin: -80px var(--m) 56px; width: auto; padding: 24px 20px; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .foot__legal { font-size: var(--t-small); }
}
@media (max-width: 360px) {
  .bar__cta { display: none; }
  .foot__cols { grid-template-columns: 1fr; }
}
@media (hover: none) { .room__frame:hover img { transform: none; } .room.is-zoomed .room__frame img { transform: scale(2.4); } }
@media (prefers-reduced-motion: reduce) {
  .room__frame img { transition: none; }
}

/* drobne przełączniki wersji */
.l-m, .foot__mark .mark-m { display: none; }
@media (max-width: 900px) {
  .l-d { display: none; }
  .l-m { display: inline; }
  html:not(.mo) .hero__stage { height: auto; min-height: 0; padding-bottom: 24px; }
}
@media (max-width: 640px) {
  .foot .mark-d { display: none; }
  .foot .foot__mark .mark-m { display: block; }
}
@media (min-width: 901px) {
  .rooms:not(.is-pinned) .room { flex-basis: 46vw; }
}
@media (max-width: 900px) {
  .about__head .head, .about__head .kreska, .about__lead { grid-column: 1 / -1; grid-row: auto; }
  .about__head .kreska { margin-bottom: 28px; }
  .hero__title { margin-left: 0; }
}
@media (max-width: 900px) {
  .rooms__track { gap: calc(var(--m) * 2); }
  .room { flex-basis: calc(100vw - var(--m) * 2); }
  .rooms__count { display: block; grid-column: 1 / -1; justify-self: start; }
}

/* ===== Formularz zapytania w wizytówce (strona przykładowa: nic nie wysyła) ===== */
.ask { margin-top: 4px; display: grid; gap: 12px; }
.ask label { display: grid; gap: 4px; font-size: var(--t-small); font-weight: 600; color: var(--graphite); }
.ask input, .ask textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--grey); border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 500 var(--t-body)/1.4 var(--sans); }
.ask textarea { min-height: 88px; resize: vertical; }
.ask input:focus-visible, .ask textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; }
.ask__note { font-size: var(--t-small); color: var(--graphite); }
.ask__done { padding: 12px 14px; background: var(--wall); border-left: 4px solid var(--orange); font-size: var(--t-body); }

@media (max-width: 640px) {
  :root { --demo: 46px; }
  .demo { white-space: normal; flex-wrap: wrap; align-content: center; text-align: center; gap: 0 12px; font-size: 12px; line-height: 1.3; }
  .demo a { min-height: 0; }
  .logo__sub { display: none; }
}

/* zbliżenie okna w hero: widoczne tylko w trybie ruchu, przenikanie steruje motion.js */
.hero__close { position: absolute; left: 0; top: 0; width: 1664px; max-width: none; height: auto; transform-origin: 0 0; opacity: 0; pointer-events: none; }
html:not(.mo) .hero__close { display: none; }
