/* ==========================================================================
   MOVILLA — style.css  (gałąź „nestora”: minimalizm, duże zdjęcia, przestrzeń)
   Mobile-first. Cele dotykowe ≥ 44 px, tekst ≥ 16 px, brak przewijania poziomego.
   ========================================================================== */

:root {
  --bg: #F6F4EF;
  --bg-2: #ECE8E0;
  --ink: #14140F;
  --ink-2: #4B4A44;
  --ink-3: #6D6B64;
  --accent: #2E5E4E;
  --accent-2: #234A3D;
  --line: rgba(20, 20, 15, .12);
  --white: #FFFFFF;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(72px, 9vw, 144px);
  --wrap: 1440px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 4px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overscroll-behavior-y: none;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd, dt, figure, h1, h2, h3, p, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typografia ---------- */
.h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }
.note { font-size: .9rem; color: var(--ink-3); max-width: 70ch; line-height: 1.55; }
.label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.label--light { color: rgba(255,255,255,.8); }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; } .sec-head .lead { justify-self: end; max-width: 46ch; } }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--white); font-weight: 500; font-size: 1rem; border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(.985); }
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--bg-2); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.lnk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(46,94,78,.35); transition: text-decoration-color .25s; }
.lnk:hover { text-decoration-color: var(--accent); }
.lnk .ic { width: 16px; height: 16px; }

/* ---------- nawigacja ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h); color: var(--ink); transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease); }
.nav__in { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav__logo { display: block; width: clamp(104px, 10vw, 132px); min-height: 44px; display: flex; align-items: center; }
.nav__logo img { width: 100%; height: auto; transition: filter .3s; }
.nav--light { color: var(--white); }
.nav--light .nav__logo img { filter: invert(1) brightness(2); }
.nav.is-solid { background: rgba(246,244,239,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__logo img { filter: none; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__links { display: none; margin-left: auto; gap: 4px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .95rem; font-weight: 500; border-radius: 999px; transition: background .25s; }
.nav__links a:hover, .nav__links a.is-active { background: rgba(20,20,15,.08); }
.nav--light:not(.is-solid) .nav__links a:hover, .nav--light:not(.is-solid) .nav__links a.is-active { background: rgba(255,255,255,.16); }
.nav__cta { display: none; }
.nav--light:not(.is-solid) .nav__cta { background: var(--white); color: var(--ink); }
.nav__burger { margin-left: auto; width: 48px; height: 48px; position: relative; border-radius: 50%; }
.nav__burger span { position: absolute; left: 13px; width: 22px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger span:nth-child(3) { top: 30px; }
body.menu-open .nav { color: var(--ink); background: var(--bg); box-shadow: 0 1px 0 var(--line); }
body.menu-open .nav__logo img { filter: none; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 890; background: var(--bg);
  padding: 24px var(--gutter) calc(32px + var(--safe-b)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
.menu__links { display: grid; }
.menu__links a { display: flex; align-items: center; min-height: 56px; font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.menu__models { display: grid; gap: 4px; }
.menu__models .label { margin-bottom: 8px; }
.menu__models a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-size: 1.05rem; font-weight: 500; }
.menu__models a span { color: var(--ink-3); font-size: .95rem; }
.menu__foot { display: grid; gap: 6px; font-size: .95rem; color: var(--ink-2); margin-top: auto; }
.menu__foot a { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- mobilne CTA (dolny pasek) ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; padding: 10px var(--gutter) calc(10px + var(--safe-b)); background: rgba(246,244,239,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.mobile-cta .btn { width: 100%; }
.mobile-cta.is-on { transform: none; }
body.menu-open .mobile-cta { transform: translateY(110%); }
@media (min-width: 900px) { .mobile-cta { display: none; } }
body { padding-bottom: 0; }

/* ---------- media wspólne ---------- */
.reveal__img, .pj__img, .form__img, .strip__img, .pg__img, .plan__img { display: block; overflow: hidden; background: var(--bg-2); border-radius: var(--radius); }
.reveal__img img, .pj__img img, .form__img img, .strip__img img, .pg__img img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: #2b2f2a; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero__video.is-ready { opacity: 1; }
.hero__toggle { position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--nav-h) + 12px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); color: var(--white); display: grid; place-items: center; background: rgba(20,20,15,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s; }
.hero__toggle:hover { background: rgba(20,20,15,.5); }
.hero__toggle[hidden] { display: none; }
.hero__toggle .ic { width: 16px; height: 16px; }
.hero__toggle [hidden] { display: none; }
@media (min-width: 900px) { .hero__toggle { top: auto; bottom: clamp(24px, 5vh, 48px); right: calc(var(--gutter) + 60px); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,15,.32) 0%, rgba(20,20,15,0) 35%, rgba(20,20,15,.2) 65%, rgba(20,20,15,.8) 100%); }
.hero__content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(40px, 8vh, 96px); display: grid; gap: 28px; }
.hero__title { font-size: clamp(2.35rem, 6.4vw, 5.4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.hero__title .line { display: block; }
.hero__accent { color: #CFE3A6; }
.hero__aside { display: grid; gap: 22px; max-width: 44ch; }
.hero__aside p { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.55; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(24px, 5vh, 48px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: none; place-items: center; color: var(--white); transition: background .25s; }
.hero__scroll:hover { background: rgba(255,255,255,.14); }
@media (min-width: 900px) {
  .hero__content { grid-template-columns: 1.55fr 1fr; align-items: end; gap: 48px; }
  .hero__scroll { display: grid; }
}

/* ---------- INTRO ---------- */
.intro { padding: var(--section) 0; }
.statement { font-size: clamp(1.5rem, 3.4vw, 3rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.22; max-width: 26ch; text-wrap: pretty; }
.statement .w { display: inline-block; opacity: .18; transition: opacity .3s; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.facts > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9rem; color: var(--ink-3); margin-bottom: 8px; }
.facts dd { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd small { font-size: .5em; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts > div { padding: 28px 24px 28px 0; border-bottom: 0; border-right: 1px solid var(--line); } .facts > div:last-child { border-right: 0; } .facts > div + div { padding-left: 24px; } }

/* ---------- PROJEKTY ---------- */
.projects { padding: 0 0 var(--section); }
.pj-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.pj { display: grid; gap: 18px; color: inherit; }
.pj__media { position: relative; display: block; }
.pj__img { aspect-ratio: 4 / 3; }
.pj__img img { transition: transform 1.1s var(--ease); }
.pj:hover .pj__img img { transform: scale(1.04); }
.pj__tag { position: absolute; left: 14px; top: 14px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink); background: rgba(246,244,239,.92); padding: 8px 12px; border-radius: 999px; }
.pj__body { display: grid; gap: 8px; }
.pj__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pj__name { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
.pj__area { font-size: 1.05rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj__desc { color: var(--ink-2); max-width: 46ch; }
.pj__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-3); }
.pj__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 500; }
.pj__link .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pj:hover .pj__link .ic { transform: translateX(4px); }
@media (min-width: 760px) {
  .pj-grid { grid-template-columns: 1fr 1fr; }
  .pj--wide { grid-column: 1 / -1; }
  .pj--wide .pj__img { aspect-ratio: 16 / 9; }
  .pj--wide .pj__body { grid-template-columns: 1fr 1fr; align-items: start; gap: 8px 48px; }
  .pj--wide .pj__head { grid-column: 1; }
  .pj--wide .pj__desc, .pj--wide .pj__meta { grid-column: 2; }
  .pj--wide .pj__link { grid-column: 1; }
}

/* ---------- BRYŁY ---------- */
.forms { padding: var(--section) 0; background: var(--bg-2); }
.forms__grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.form { display: grid; gap: 16px; color: inherit; }
.form__img { aspect-ratio: 4 / 5; }
.form__img img { transition: transform 1.1s var(--ease); }
.form:hover .form__img img { transform: scale(1.04); }
.form__body { display: grid; gap: 10px; }
.form__body h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; }
.form__body p { color: var(--ink-2); max-width: 40ch; }
.form__models { font-size: .9rem; font-weight: 500; color: var(--accent); }
@media (min-width: 760px) { .forms__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- TECHNOLOGIA ---------- */
.tech { padding: var(--section) 0; }
.tech__grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
.tech__text { display: grid; gap: 22px; justify-items: start; }
.tech__list { display: grid; border-top: 1px solid var(--line); width: 100%; }
.tech__list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tech__list b { font-weight: 500; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tech__list span { color: var(--ink-3); font-size: .95rem; }
.tech__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.tech__media .reveal { grid-column: 1 / -1; }
.tech__media .reveal--sm { grid-column: 2 / 3; }
.reveal__img { aspect-ratio: 4 / 3; }
.reveal--sm .reveal__img { aspect-ratio: 1; }
.reveal--sm .reveal__img img { object-fit: contain; background: var(--white); }
@media (min-width: 900px) { .tech__grid { grid-template-columns: 5fr 7fr; } .tech__list { max-width: 420px; } }

/* ---------- PROCES ---------- */
.process { padding: var(--section) 0; background: var(--bg-2); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; position: relative; }
.steps li h3 { grid-column: 2; }
.steps li p { grid-column: 2; color: var(--ink-2); max-width: 46ch; }
.steps__num { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.steps__key .steps__num { background: var(--ink); color: var(--white); }
.steps__time { grid-column: 2; justify-self: start; margin-top: 8px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--white); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .steps li { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; align-content: start; padding: 24px 28px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .steps li h3 { grid-row: 2; align-self: start; }
  .steps li p { grid-row: 3; }
  .steps__time { grid-row: 4; }
  .steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
  .steps li h3, .steps li p, .steps__time { grid-column: 1; }
  .steps__num { grid-row: 1; margin-bottom: 28px; }
}

/* ---------- STANDARD ---------- */
.standard { padding: var(--section) 0; }
.standard__grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
.standard__text { display: grid; gap: 20px; justify-items: start; }
.checklist { display: grid; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.checklist b { display: block; font-weight: 500; }
.checklist small { display: block; color: var(--ink-3); font-size: .9rem; }
.chk { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; margin-top: 1px; }
.chk .ic { width: 14px; height: 14px; }
@media (min-width: 900px) { .standard__grid { grid-template-columns: 5fr 7fr; } .checklist { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------- PASEK ZDJĘĆ (przewijany, snap) ---------- */
.gallery { padding: 0 0 var(--section); }
.strip { display: flex; gap: 14px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 auto; width: min(85vw, 620px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.strip__item--tall { width: min(64vw, 400px); }
.strip__img { aspect-ratio: 4 / 3; }
.strip__item--tall .strip__img { aspect-ratio: 3 / 4; }
.strip__item[data-lightbox] { cursor: zoom-in; }
@media (min-width: 760px) { .strip__item { width: 40vw; } .strip__item--tall { width: 26vw; } }

/* ---------- KONTAKT ---------- */
.contact { padding: var(--section) 0; background: var(--bg-2); }
.contact__grid { display: grid; gap: clamp(32px, 5vw, 80px); }
.contact__text { display: grid; gap: 20px; align-content: start; }
.contact__info { display: grid; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.contact__mail { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500; letter-spacing: -.02em; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.form-grid { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; min-height: 52px; width: 100%; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.field textarea { padding: 14px; min-height: 130px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314140F' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,94,78,.18); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.form-grid__err { color: #B3261E; font-size: .95rem; }
.form-grid__foot { display: grid; gap: 16px; }
.form-grid__foot small { color: var(--ink-3); font-size: .85rem; }
.form-grid__foot .btn { width: 100%; }
@media (min-width: 760px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } .form-grid__foot { grid-template-columns: 1fr auto; align-items: center; } .form-grid__foot .btn { width: auto; } }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 5fr 7fr; } }

/* ---------- STOPKA ---------- */
.footer { padding: 56px 0 calc(24px + var(--safe-b)); border-top: 1px solid var(--line); }
.footer__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 32px; }
.footer__brand { display: grid; gap: 14px; }
.footer__brand img { width: 140px; }
.footer__brand p { color: var(--ink-2); max-width: 36ch; font-size: .95rem; }
.footer__col { display: grid; gap: 2px; align-content: start; }
.footer__col .label { margin-bottom: 8px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; font-size: .95rem; }
.footer__col a:hover { color: var(--accent); }
.footer__col span { color: var(--ink-2); font-size: .95rem; line-height: 1.6; padding-top: 6px; }
.footer__bottom { max-width: var(--wrap); margin: 40px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .82rem; color: var(--ink-3); }
@media (min-width: 760px) { .footer__in { grid-template-columns: 2fr 1fr 1fr 1.3fr; } .footer__bottom { grid-template-columns: auto 1fr; justify-items: end; } }
@media (max-width: 899px) { .footer { padding-bottom: calc(96px + var(--safe-b)); } }

/* ==========================================================================
   PODSTRONA PROJEKTU
   ========================================================================== */
.phero { position: relative; min-height: min(100svh, 900px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); isolation: isolate; overflow: hidden; }
.phero__media { position: absolute; inset: 0; z-index: -1; background: #2b2f2a; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,15,.35) 0%, rgba(20,20,15,0) 35%, rgba(20,20,15,.15) 60%, rgba(20,20,15,.82) 100%); }
.phero__content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(32px, 6vh, 64px); display: grid; gap: 16px; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.8); }
.crumb a { min-height: 44px; display: inline-flex; align-items: center; }
.crumb a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.phero__title { font-size: clamp(2.8rem, 9vw, 7rem); font-weight: 500; letter-spacing: -.04em; line-height: .98; }
.phero__sub { max-width: 52ch; font-size: clamp(1rem, 1.3vw, 1.2rem); color: rgba(255,255,255,.88); text-wrap: pretty; }
.params { background: var(--ink); color: var(--bg); }
.params__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.params__grid > div { padding: 20px 0; display: grid; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.params__grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.params__grid b { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.params__grid b small { font-size: .5em; font-weight: 400; color: rgba(255,255,255,.7); }
.params__grid span { font-size: .85rem; color: rgba(255,255,255,.7); }
@media (min-width: 760px) { .params__grid { grid-template-columns: repeat(4, 1fr); } .params__grid > div { border-bottom: 0; padding: 28px 20px 28px 0; border-right: 1px solid rgba(255,255,255,.12); } .params__grid > div + div { padding-left: 20px; } .params__grid > div:last-child { border-right: 0; } }

.pintro { padding: var(--section) 0; }
.pintro__grid { display: grid; gap: clamp(32px, 5vw, 96px); align-items: start; }
.pintro__text { display: grid; gap: 18px; }
.pintro__text .h2 { max-width: 16ch; margin-bottom: 6px; }
.pintro__text p { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.pintro__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 12px; }
.ptable { border-top: 1px solid var(--line); }
.ptable > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ptable dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .pintro__grid { grid-template-columns: 7fr 5fr; } }

.pg { padding: 0 0 var(--section); }
.pg__grid { display: grid; gap: 14px; }
.pg__item { position: relative; cursor: zoom-in; display: grid; grid-template-rows: 1fr auto; }
.pg__item .pg__img { min-height: 0; }
.pg__img { aspect-ratio: 4 / 3; }
.pg__img img { transition: transform 1s var(--ease); }
.pg__item:hover .pg__img img { transform: scale(1.03); }
.pg__zoom { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(246,244,239,.9); color: var(--ink); display: grid; place-items: center; }
.pg__zoom .ic { width: 18px; height: 18px; }
@media (min-width: 760px) {
  .pg__grid { grid-template-columns: repeat(6, 1fr); }
  .pg__item:nth-child(1) { grid-column: span 4; }
  .pg__item:nth-child(2) { grid-column: span 2; }
  .pg__item:nth-child(2) .pg__img { aspect-ratio: auto; height: 100%; }
  .pg__item:nth-child(3) { grid-column: span 2; }
  .pg__item:nth-child(3) .pg__img { aspect-ratio: auto; height: 100%; }
  .pg__item:nth-child(4) { grid-column: span 4; }
  .pg__item:nth-child(5) { grid-column: span 6; }
  .pg__item:nth-child(5) .pg__img { aspect-ratio: 21 / 9; }
}

.pint { padding: 0 0 var(--section); }
.pint .note { padding-top: 16px; }

.variants { padding: var(--section) 0; background: var(--bg-2); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: grid; gap: 2px; min-height: 52px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: transparent; text-align: left; transition: background .25s, border-color .25s, color .25s; }
.tab__title { font-weight: 500; }
.tab__chip { font-size: .78rem; color: var(--ink-3); }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab.is-active .tab__chip { color: rgba(255,255,255,.7); }
.tabpanel { display: grid; gap: 20px; align-items: start; }
.tabpanel[hidden] { display: none; }
.tabpanel__img { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.tabpanel__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.tabpanel p { color: var(--ink-2); max-width: 44ch; font-size: 1.05rem; }
@media (min-width: 900px) { .tabpanel { grid-template-columns: 7fr 5fr; gap: 48px; } }

.plans { padding: var(--section) 0; }
.plans__grid { display: grid; gap: 14px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; cursor: zoom-in; transition: border-color .25s; }
.plan:hover { border-color: var(--ink); }
.plan__img img { width: 100%; height: 260px; object-fit: contain; }
.plan figcaption { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 0; font-size: .9rem; }
.plan figcaption b { font-weight: 500; color: var(--ink); }
.plans .note { margin-top: 20px; }
@media (min-width: 760px) { .plans__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

.spec { padding: var(--section) 0; background: var(--bg-2); }
.spec__grid { display: grid; gap: clamp(32px, 5vw, 96px); align-items: start; }
.spec__side { display: grid; gap: 20px; }
.spec__side .reveal__img { aspect-ratio: 1; }
.spec__side .reveal__img img { object-fit: contain; background: var(--white); }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item h3 { font-size: inherit; font-weight: inherit; }
.acc__btn { width: 100%; display: grid; grid-template-columns: 1fr 40px; gap: 4px 16px; align-items: center; min-height: 64px; padding: 14px 0; text-align: left; }
.acc__t { grid-column: 1; grid-row: 1; }
.acc__u { grid-column: 1; grid-row: 2; }
.acc__t { font-size: 1.1rem; font-weight: 500; }
.acc__u { color: var(--ink-3); font-size: .9rem; font-variant-numeric: tabular-nums; }
.acc__plus { grid-column: 2; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s, transform .35s var(--ease); }
.acc__plus .ic { width: 18px; height: 18px; }
.acc__item.is-open .acc__plus { background: var(--ink); color: var(--white); transform: rotate(45deg); }
.acc__panel { height: 0; overflow: hidden; }
.acc__in { padding: 0 0 22px; display: grid; gap: 14px; }
.acc__in p { color: var(--ink-2); max-width: 60ch; font-size: .98rem; }
.layers { counter-reset: l; }
.layers li { counter-increment: l; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; color: var(--ink-2); align-items: baseline; }
.layers li::before { content: counter(l, decimal-leading-zero); font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.layers .num { color: var(--ink); white-space: nowrap; font-size: .9rem; }
@media (min-width: 900px) { .spec__grid { grid-template-columns: 5fr 7fr; } .spec__side { position: sticky; top: calc(var(--nav-h) + 24px); } .acc__btn { grid-template-columns: 1fr auto 40px; } .acc__u { grid-column: 2; grid-row: 1; text-align: right; } .acc__plus { grid-column: 3; grid-row: 1; } }

.pnext { position: relative; display: grid; min-height: 60svh; align-items: end; color: var(--white); isolation: isolate; overflow: hidden; }
.pnext__media { position: absolute; inset: 0; z-index: -1; background: #2b2f2a; }
.pnext__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pnext:hover .pnext__media img { transform: scale(1.04); }
.pnext__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,15,.15), rgba(20,20,15,.8)); }
.pnext__content { display: grid; gap: 10px; padding-top: 96px; padding-bottom: clamp(32px, 6vh, 64px); }
.pnext__title { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.pnext__title .ic { width: .55em; height: .55em; transition: transform .35s var(--ease); }
.pnext:hover .pnext__title .ic { transform: translateX(8px); }
.pnext__meta { color: rgba(255,255,255,.85); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 980; background: rgba(20,20,15,.94); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 78svh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255,255,255,.85); font-size: .9rem; text-align: center; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; color: var(--white); background: rgba(255,255,255,.1); display: grid; place-items: center; }
.lightbox__nav { position: absolute; bottom: calc(16px + var(--safe-b)); width: 52px; height: 52px; border-radius: 50%; color: var(--white); background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .25s; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (min-width: 760px) { .lightbox { padding: 48px; } .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); } .lightbox__nav--prev { left: 24px; } .lightbox__nav--next { right: 24px; } }

/* ---------- przejścia między stronami ---------- */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.js-motion main, .js-motion .footer { animation: page-in .5s ease both; }
body.is-leaving main, body.is-leaving .footer { opacity: 0; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease; }
.pj__media, .form__img { will-change: transform; }

/* ---------- animacje: stan początkowy tylko gdy JS i ruch dozwolony ---------- */
.js-motion [data-reveal], .js-motion [data-stagger] > * { opacity: 0; transform: translateY(24px); }
.js-motion .hero__title .line { opacity: 0; transform: translateY(30px); }
.js-motion .hero__aside > * { opacity: 0; }
.js-motion .hero__media img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* zrzut pełnostronicowy: hero na wysokość widoku 1440×900 */
.is-capture .hero, .is-capture .phero { min-height: 828px; }
.is-capture .pnext { min-height: 540px; }
