:root {
  --brand: #f4c400;
  --accent: #ffe66b;
  --page-bg: #f2efe7;
  --card-bg: #ffffff;
  --ink: #0b0c0d;
  --muted: #5a5b5d;
  --line: rgba(11, 12, 13, .16);
  --line-light: rgba(255, 255, 255, .18);
  --radius: 0px;
  --section-y: 112px;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: "Arial Black", "Franklin Gothic Medium", system-ui, sans-serif;
  --font-button: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-size-base: 18px;
  --font-size-small: 14px;
  --font-size-h1: 112px;
  --font-size-h2: 68px;
  --container: 1320px;
  --header-h: 82px;
  --shadow: 0 24px 80px rgba(11, 12, 13, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page-bg);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { color: var(--ink); background: var(--brand); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.35rem, 8.5vw, var(--font-size-h1)); }
h2 { font-size: clamp(2.45rem, 5.2vw, var(--font-size-h2)); }
h3 { font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.06; }
h4 { font-size: 1.25rem; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 12px 18px;
  color: var(--ink);
  background: var(--brand);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 64px), 900px); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); overflow: clip; }
.section-dark { color: #fff; background: var(--ink); }
.section-yellow { color: var(--ink); background: var(--brand); }
.section-white { background: #fff; }
.section-rule { border-top: 1px solid var(--line); }
.section-dark.section-rule { border-color: var(--line-light); }

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-index::before { content: ""; width: 44px; height: 2px; background: currentColor; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: 64px;
}
.section-head p { max-width: 560px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.22rem); }
.section-dark .section-head p { color: rgba(255,255,255,.7); }
.lead { max-width: 760px; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.55; }
.big-copy { max-width: 1050px; font-size: clamp(1.7rem, 3.4vw, 3.5rem); line-height: 1.18; font-weight: 760; letter-spacing: -.035em; }
.muted { color: var(--muted); }
.yellow { color: var(--brand); }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 24px;
  border: 2px solid var(--brand);
  border-radius: 0;
  color: var(--ink);
  background: var(--brand);
  font-family: var(--font-button);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.button::after { content: "↗"; font-size: 1.1rem; transition: transform .25s ease; }
.button:hover { transform: translateY(-3px); background: #fff; border-color: #fff; }
.button:hover::after { transform: translate(3px, -3px); }
.button-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button-dark:hover { color: var(--ink); background: #fff; border-color: #fff; }
.button-outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); }
.button-outline:hover { color: var(--ink); background: #fff; border-color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  border-bottom: 2px solid currentColor;
  transition: gap .25s ease, color .25s ease;
}
.text-link::after { content: "↗"; }
.text-link:hover { gap: 16px; color: var(--brand); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.header-inner {
  width: min(calc(100% - 48px), 1460px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--brand);
  font-family: var(--font-heading);
  font-size: .92rem;
  letter-spacing: -.04em;
}
.brand-copy { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-heading); font-size: 1.25rem; letter-spacing: -.05em; }
.brand-name strong { color: var(--brand); }
.brand-sub { margin-top: 5px; color: rgba(255,255,255,.56); font-size: .62rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.desktop-nav a { position: relative; padding-block: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-contact { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 15px; color: var(--ink); background: var(--brand); font-size: .74rem; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mobile-toggle span { display: block; width: 100%; height: 2px; margin: 6px 0; background: #fff; transition: transform .25s ease, opacity .25s ease; }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: calc(100dvh - var(--header-h));
  padding: 34px 24px 44px;
  color: #fff;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  overflow-y: auto;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav { display: grid; width: 100%; border-top: 1px solid var(--line-light); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px 2px; border-bottom: 1px solid var(--line-light); font-family: var(--font-heading); font-size: clamp(1.55rem, 8vw, 2.6rem); line-height: 1; }
.mobile-nav a::after { content: "↗"; color: var(--brand); font-family: var(--font-body); font-size: 1.1rem; }
.mobile-contact { display: grid; gap: 14px; margin-top: 36px; }
.mobile-contact a { font-weight: 800; }
.mobile-contact small { color: rgba(255,255,255,.55); }

.hero-home {
  min-height: calc(100svh - var(--header-h));
  color: #fff;
  background-image: linear-gradient(90deg, rgba(11,12,13,.92) 0%, rgba(11,12,13,.58) 52%, rgba(11,12,13,.18) 100%), url('/assets/img/lazienka-z-lustrem-led.webp');
  background-size: cover;
  background-position: center 55%;
}
.hero-home::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(11,12,13,.52), transparent 45%); }
.hero-home .container { position: relative; z-index: 1; min-height: inherit; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: end; padding-block: 72px 58px; }
.hero-copy { max-width: 980px; }
.hero-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 52px; height: 3px; background: var(--brand); }
.hero-home h1 span { display: block; }
.hero-home h1 span:last-child { margin-left: clamp(0px, 10vw, 130px); color: var(--brand); }
.hero-home .lead { margin-top: 28px; color: rgba(255,255,255,.82); }
.hero-rail { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; border-left: 1px solid var(--line-light); padding-left: 30px; }
.hero-rail strong { display: block; margin-bottom: 18px; color: var(--brand); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-rail ul { list-style: none; }
.hero-rail li { padding: 15px 0; border-top: 1px solid var(--line-light); font-weight: 740; }
.hero-scroll { position: absolute; right: 20px; bottom: 52px; z-index: 2; writing-mode: vertical-rl; color: rgba(255,255,255,.56); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }

.statement-grid { display: grid; grid-template-columns: .42fr 1.58fr; gap: 64px; align-items: start; }
.statement-grid .big-copy strong { display: inline; background: linear-gradient(transparent 62%, rgba(255,255,255,.65) 62%); }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.service-card { position: relative; min-height: 360px; padding: 36px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); overflow: hidden; transition: background .3s ease, color .3s ease, transform .3s ease; }
.service-card::before { content: ""; position: absolute; inset: auto -40% -65% 30%; aspect-ratio: 1; border: 1px solid rgba(244,196,0,.28); border-radius: 50%; transition: transform .4s ease; }
.service-card:hover { color: var(--ink); background: var(--brand); transform: translateY(-8px); }
.service-card:hover::before { transform: scale(1.2); border-color: rgba(11,12,13,.24); }
.service-no { display: block; margin-bottom: 76px; color: var(--brand); font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.service-card:hover .service-no { color: var(--ink); }
.service-card h3 { position: relative; z-index: 1; }
.service-card p { position: relative; z-index: 1; margin-top: 18px; color: rgba(255,255,255,.65); }
.service-card:hover p { color: rgba(11,12,13,.76); }
.service-card .text-link { position: relative; z-index: 1; margin-top: 28px; font-size: .85rem; }
.service-card:hover .text-link { color: var(--ink); }

.project-strip { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 16px; }
.project-tile { position: relative; min-height: 520px; overflow: hidden; color: #fff; background: var(--ink); }
.project-tile img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,12,13,.88), transparent 65%); }
.project-tile:hover img { transform: scale(1.045); }
.project-info { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 32px; }
.project-info small { display: block; margin-bottom: 10px; color: var(--brand); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.project-info h3 { font-size: clamp(1.55rem, 2.5vw, 2.7rem); }
.project-info p { max-height: 0; margin-top: 0; color: rgba(255,255,255,.72); opacity: 0; overflow: hidden; transition: max-height .3s ease, margin .3s ease, opacity .3s ease; }
.project-tile:hover .project-info p { max-height: 100px; margin-top: 14px; opacity: 1; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-step { min-height: 300px; padding: 34px 30px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.process-step .step-number { display: block; margin-bottom: 64px; font-family: var(--font-heading); font-size: 2.4rem; color: var(--brand); }
.process-step p { margin-top: 16px; color: var(--muted); }

.cta-band { padding-block: 84px; color: var(--ink); background: var(--brand); }
.cta-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 64px; align-items: center; }
.cta-grid h2 { max-width: 900px; }
.cta-side { display: grid; gap: 18px; justify-items: start; }
.cta-side p { font-weight: 700; }

.page-hero { min-height: 650px; padding-block: 90px 70px; }
.page-hero .container { min-height: inherit; }
.page-hero h1 { max-width: 1050px; }
.page-hero .lead { margin-top: 26px; }
.hero-about { color: var(--ink); background: var(--brand); }
.about-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; min-height: inherit; align-items: center; }
.about-hero-copy { position: relative; z-index: 2; }
.about-hero-copy h1 { font-size: clamp(3.2rem, 7vw, 7.5rem); }
.about-hero-copy h1 span { display: block; }
.about-hero-copy h1 span:nth-child(2) { margin-left: clamp(0px, 8vw, 100px); color: #fff; -webkit-text-stroke: 2px var(--ink); }
.about-collage { position: relative; min-height: 560px; }
.about-collage .image-a { position: absolute; top: 0; right: 0; width: 78%; height: 82%; object-fit: cover; box-shadow: var(--shadow); }
.about-collage .image-b { position: absolute; bottom: 0; left: 0; width: 48%; height: 48%; object-fit: cover; border: 12px solid var(--brand); }
.about-collage::after { content: "MO-BUD"; position: absolute; right: -20px; bottom: 24px; writing-mode: vertical-rl; font-family: var(--font-heading); font-size: 1rem; letter-spacing: .16em; }

.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 10vw, 150px); align-items: start; }
.story-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.story-copy { display: grid; gap: 28px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.story-copy strong { color: var(--ink); }
.signature { display: inline-flex; align-items: center; gap: 18px; margin-top: 18px; font-weight: 900; }
.signature::before { content: ""; width: 56px; height: 3px; background: var(--brand); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { min-height: 330px; padding: 38px; background: #fff; border-top: 8px solid var(--brand); }
.value-card .value-number { display: block; margin-bottom: 70px; color: var(--muted); font-size: .8rem; font-weight: 850; letter-spacing: .15em; }
.value-card p { margin-top: 18px; color: var(--muted); }
.photo-ribbon { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 12px; min-height: 450px; }
.photo-ribbon img { height: 100%; object-fit: cover; }
.photo-ribbon img:nth-child(2) { transform: translateY(42px); }

.hero-offer { color: #fff; background: var(--ink); overflow: hidden; }
.offer-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; min-height: inherit; gap: 70px; align-items: center; }
.offer-hero-copy h1 span { display: block; }
.offer-hero-copy h1 span:last-child { color: var(--brand); }
.offer-images { position: relative; min-height: 540px; }
.offer-images img:first-child { position: absolute; top: 0; right: 0; width: 72%; height: 78%; object-fit: cover; }
.offer-images img:last-child { position: absolute; bottom: 0; left: 0; width: 50%; height: 45%; object-fit: cover; border: 10px solid var(--ink); }
.offer-images::before { content: ""; position: absolute; inset: 12% -20% auto 20%; height: 3px; background: var(--brand); transform: rotate(-8deg); }

.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.offer-item { display: grid; grid-template-columns: 74px 1fr; gap: 28px; min-height: 330px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.25); transition: background .3s ease, transform .3s ease; }
.offer-item:hover { background: #fff; transform: translateY(-6px); }
.offer-icon { display: grid; place-items: center; width: 64px; height: 64px; color: var(--ink); background: var(--brand); font-family: var(--font-heading); font-size: 1.2rem; }
.offer-item p { margin-top: 16px; color: var(--muted); }
.offer-item ul { margin-top: 22px; list-style: none; }
.offer-item li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); font-size: .9rem; }
.offer-item li::before { content: "+"; position: absolute; left: 0; color: #9b7c00; font-weight: 900; }

.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope-card { min-height: 420px; padding: 48px; color: #fff; background: var(--ink); }
.scope-card:nth-child(2) { color: var(--ink); background: var(--brand); }
.scope-card small { display: block; margin-bottom: 90px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.scope-card p { margin-top: 20px; max-width: 530px; color: rgba(255,255,255,.68); }
.scope-card:nth-child(2) p { color: rgba(11,12,13,.7); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.faq-question span:first-child { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.15; }
.faq-plus { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--brand); font-size: 1.6rem; transition: transform .25s ease; }
.faq-question[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { max-width: 840px; padding: 0 0 30px; color: var(--muted); }

.hero-gallery {
  display: grid;
  place-items: center;
  min-height: 760px;
  color: #fff;
  text-align: center;
  background-image: linear-gradient(rgba(11,12,13,.64), rgba(11,12,13,.64)), url('/assets/img/wnetrze-z-parkietem.webp');
  background-size: cover;
  background-position: center;
}
.hero-gallery .container { display: grid; justify-items: center; }
.hero-gallery h1 { max-width: 1100px; }
.hero-gallery .lead { color: rgba(255,255,255,.8); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-item { position: relative; grid-column: span 4; min-height: 420px; padding: 0; border: 0; overflow: hidden; background: var(--ink); cursor: zoom-in; }
.gallery-item:nth-of-type(5n+1), .gallery-item:nth-of-type(5n+4) { grid-column: span 7; }
.gallery-item:nth-of-type(5n+2), .gallery-item:nth-of-type(5n+5) { grid-column: span 5; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .65s ease; }
.gallery-item::after { content: "+"; position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); background: var(--brand); font-size: 1.6rem; transform: translateY(80px); transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item:hover::after { transform: translateY(0); }
.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 34px; background: rgba(0,0,0,.94); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; width: auto; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border: 0; color: var(--ink); background: var(--brand); font-size: 1.8rem; cursor: pointer; }
.lightbox-caption { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; text-align: center; }

.hero-projects { padding: 0; color: #fff; background: var(--ink); }
.projects-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 700px; }
.projects-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px max(32px, calc((100vw - var(--container))/2)); padding-right: 60px; }
.projects-hero-image { position: relative; min-height: 600px; }
.projects-hero-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.projects-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 30%); }
.case-grid { display: grid; gap: 26px; }
.case-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 520px; background: #fff; }
.case-card:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.case-card:nth-child(even) .case-image { order: 2; }
.case-image { min-height: 420px; overflow: hidden; }
.case-image img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-card:hover .case-image img { transform: scale(1.035); }
.case-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 82px); }
.case-copy small { margin-bottom: 26px; color: #8a6f00; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.case-copy p { margin-top: 20px; color: var(--muted); }
.case-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.case-meta div { padding-top: 14px; border-top: 1px solid var(--line); }
.case-meta strong, .case-meta span { display: block; }
.case-meta span { color: var(--muted); font-size: .82rem; }

.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stage-card { background: #fff; }
.stage-card img { height: 300px; object-fit: cover; }
.stage-copy { padding: 32px; }
.stage-copy p { margin-top: 14px; color: var(--muted); }

.hero-contact { min-height: 560px; color: #fff; background: var(--ink); }
.hero-contact h1 { font-size: clamp(4.2rem, 13vw, 12rem); line-height: .78; letter-spacing: -.075em; }
.hero-contact h1 span { display: block; }
.hero-contact h1 span:last-child { color: var(--brand); text-align: right; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(44px, 9vw, 130px); align-items: start; }
.contact-data { display: grid; gap: 16px; }
.contact-card { padding: 30px; color: #fff; background: var(--ink); }
.contact-card small { display: block; margin-bottom: 20px; color: var(--brand); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.contact-card a { display: block; font-family: var(--font-heading); font-size: clamp(1.3rem, 2.3vw, 2.2rem); line-height: 1.15; overflow-wrap: anywhere; }
.contact-note { padding: 30px; border: 2px solid var(--ink); }
.contact-note p + p { margin-top: 14px; }
.contact-form-wrap { padding: clamp(28px, 5vw, 58px); background: #fff; box-shadow: var(--shadow); }
.contact-form-wrap h2 { font-size: clamp(2.3rem, 4.5vw, 4.5rem); }
.contact-form-wrap > p { margin-top: 16px; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 38px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(11,12,13,.28);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-hint { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244,196,0,.45); }
.checkbox-field { grid-column: 1 / -1; display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: .84rem; color: var(--muted); }
.checkbox-field input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand); }
.checkbox-field a { text-decoration: underline; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.form-status { min-height: 24px; font-weight: 750; }
.form-status.success { color: #176b32; }
.form-status.error { color: #a01818; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { color: #fff; background: var(--ink); border-top: 1px solid var(--line-light); }
.footer-main { display: grid; grid-template-columns: 1.05fr .65fr .65fr; gap: 70px; padding-block: 82px 58px; }
.footer-brand .brand { margin-bottom: 28px; }
.footer-brand p { max-width: 480px; color: rgba(255,255,255,.62); }
.footer-title { display: block; margin-bottom: 22px; color: var(--brand); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { width: fit-content; color: rgba(255,255,255,.74); transition: color .2s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 24px; border-top: 1px solid var(--line-light); color: rgba(255,255,255,.5); font-size: .76rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 4px; }

.consent {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2500;
  width: min(520px, calc(100% - 44px));
  padding: 28px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 25px 90px rgba(0,0,0,.35);
  transform: translateY(calc(100% + 50px));
  visibility: hidden;
  transition: transform .35s ease, visibility .35s ease;
}
.consent.is-visible { transform: translateY(0); visibility: visible; }
.consent strong { display: block; font-family: var(--font-heading); font-size: 1.45rem; }
.consent p { margin-top: 10px; color: rgba(255,255,255,.68); font-size: .85rem; }
.consent p a { text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.consent .button { min-height: 44px; padding: 11px 16px; font-size: .72rem; }
.consent .button-secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.4); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.error-page { min-height: 100svh; display: grid; place-items: center; padding: 50px 24px; color: #fff; background: var(--ink); text-align: center; }
.error-page strong { display: block; color: var(--brand); font-family: var(--font-heading); font-size: clamp(6rem, 25vw, 18rem); line-height: .75; }
.error-page h1 { margin-top: 28px; font-size: clamp(2rem, 5vw, 5rem); }
.error-page p { max-width: 620px; margin: 20px auto 0; color: rgba(255,255,255,.68); }
.error-page .button { margin-top: 30px; }

.privacy-page { min-height: 100svh; padding: 72px 24px; color: #1b1b1b; background: #fff; }
.privacy-document { width: min(100%, 820px); margin: 0 auto; text-align: center; }
.privacy-document h1 { margin-bottom: 36px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.12; letter-spacing: -.025em; }
.privacy-document h2 { margin: 42px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.015em; }
.privacy-document p { margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.75; }
.privacy-document a { text-decoration: underline; }
.privacy-back { display: inline-block; margin-top: 42px; font-weight: 700; }

@media (max-width: 1100px) {
  :root { --section-y: 92px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project-strip { grid-template-columns: 1fr 1fr; }
  .project-tile:first-of-type { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .offer-list { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-of-type(5n+1), .gallery-item:nth-of-type(5n+2), .gallery-item:nth-of-type(5n+4), .gallery-item:nth-of-type(5n+5) { grid-column: span 6; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; --section-y: 78px; }
  .container, .narrow { width: min(calc(100% - 40px), var(--container)); }
  .header-inner { width: calc(100% - 28px); }
  .desktop-nav, .header-contact { display: none; }
  .mobile-toggle { display: block; }
  .brand-sub { display: none; }
  .section-head, .statement-grid, .story-grid, .cta-grid, .contact-layout { grid-template-columns: 1fr; }
  .section-head { gap: 28px; margin-bottom: 46px; }
  .hero-home .container { grid-template-columns: 1fr; padding-block: 56px 46px; }
  .hero-home h1 span:last-child { margin-left: 0; }
  .hero-rail { align-self: auto; border-left: 0; border-top: 1px solid var(--line-light); padding: 24px 0 0; }
  .hero-rail ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-rail li { padding-right: 10px; }
  .hero-scroll { display: none; }
  .about-hero-grid, .offer-hero-grid { grid-template-columns: 1fr; }
  .about-collage, .offer-images { min-height: 460px; }
  .story-sticky { position: static; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 260px; }
  .value-card .value-number { margin-bottom: 42px; }
  .photo-ribbon { grid-template-columns: 1fr 1fr; }
  .photo-ribbon img:last-child { display: none; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-card { min-height: 340px; }
  .scope-card small { margin-bottom: 60px; }
  .projects-hero-grid { grid-template-columns: 1fr; }
  .projects-hero-copy { padding: 72px 28px; }
  .projects-hero-image { min-height: 480px; }
  .projects-hero-image::after { background: linear-gradient(0deg, var(--ink), transparent 30%); }
  .case-card, .case-card:nth-child(even) { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-image { order: 0; }
  .stage-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --section-y: 64px; --font-size-base: 17px; }
  .container, .narrow { width: min(calc(100% - 32px), var(--container)); }
  h1 { font-size: clamp(3.1rem, 16vw, 5.25rem); }
  h2 { font-size: clamp(2.25rem, 11.5vw, 3.85rem); }
  .section-index { margin-bottom: 20px; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .hero-home { background-position: 64% center; }
  .hero-home .container { padding-block: 46px 36px; }
  .hero-home .lead { font-size: 1rem; }
  .hero-rail ul { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 310px; padding: 30px 24px; }
  .service-no { margin-bottom: 50px; }
  .project-strip { grid-template-columns: 1fr; }
  .project-tile:first-of-type { grid-column: auto; }
  .project-tile { min-height: 460px; }
  .project-info p { max-height: none; margin-top: 12px; opacity: 1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(2) { min-height: 240px; border-right: 0; }
  .process-step .step-number { margin-bottom: 38px; }
  .page-hero { min-height: 520px; padding-block: 66px 50px; }
  .about-hero-copy h1 { font-size: clamp(3rem, 15vw, 5.5rem); }
  .about-hero-copy h1 span:nth-child(2) { margin-left: 0; }
  .about-collage, .offer-images { min-height: 390px; }
  .about-collage .image-a { width: 86%; height: 80%; }
  .about-collage .image-b { width: 55%; }
  .photo-ribbon { grid-template-columns: 1fr; min-height: auto; }
  .photo-ribbon img { height: 360px; }
  .photo-ribbon img:nth-child(2) { display: none; }
  .offer-item { grid-template-columns: 1fr; padding: 30px 24px; }
  .scope-card { padding: 34px 26px; }
  .hero-gallery { min-height: 620px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-of-type(5n+1), .gallery-item:nth-of-type(5n+2), .gallery-item:nth-of-type(5n+4), .gallery-item:nth-of-type(5n+5) { grid-column: 1; min-height: 390px; }
  .gallery-item::after { transform: translateY(0); }
  .case-image { min-height: 340px; }
  .case-copy { padding: 34px 24px; }
  .case-meta { grid-template-columns: 1fr; }
  .hero-contact h1 span:last-child { text-align: left; }
  .contact-form { grid-template-columns: 1fr; }
  .form-field.full, .checkbox-field, .form-actions { grid-column: 1; }
  .contact-form-wrap { padding: 30px 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 42px; padding-block: 64px 42px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .consent { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
/* PRJ-0090 VISUAL REFINEMENT V2 */
:root {
  --radius: 20px;
  --section-y: 84px;
  --font-body: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-heading: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-button: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-small: 13px;
  --font-size-h1: 72px;
  --font-size-h2: 50px;
  --container: 1180px;
  --header-h: 76px;
  --shadow: 0 18px 52px rgba(11, 12, 13, .13);
}

html { overflow-x: clip; }
body {
  font-size: var(--font-size-base);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  max-width: 100%;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(3rem, 6vw, var(--font-size-h1)); }
h2 { font-size: clamp(2.2rem, 4vw, var(--font-size-h2)); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.15; }
h4 { font-size: 1.15rem; line-height: 1.25; }

img {
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.container,
.narrow {
  width: min(calc(100% - 56px), var(--container));
}

.container > *,
.section-head > *,
.statement-grid > *,
.cta-grid > *,
.about-hero-grid > *,
.offer-hero-grid > *,
.story-grid > *,
.contact-layout > *,
.projects-hero-grid > *,
.case-card > * {
  min-width: 0;
}

.section { padding-block: var(--section-y); }
.section-index {
  gap: 12px;
  margin-bottom: 22px;
  font-size: .72rem;
  letter-spacing: .14em;
}
.section-index::before { width: 36px; }
.section-head {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .62fr);
  gap: clamp(32px, 6vw, 76px);
  margin-bottom: 46px;
}
.section-head p {
  max-width: 520px;
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
}
.lead {
  max-width: 680px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
}
.big-copy {
  max-width: 900px;
  font-size: clamp(1.45rem, 2.4vw, 2.6rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.025em;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: .76rem;
  letter-spacing: .075em;
}
.button-row { gap: 12px; margin-top: 28px; }

.site-header { height: var(--header-h); }
.header-inner {
  width: min(calc(100% - 40px), 1320px);
  gap: 28px;
}
.brand { gap: 11px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.brand-name { font-size: 1.15rem; letter-spacing: -.035em; }
.desktop-nav { gap: 24px; }
.desktop-nav a { font-size: .73rem; }
.header-contact { border-radius: 11px; }
.mobile-panel { padding-top: 28px; }
.mobile-nav a {
  padding: 18px 2px;
  font-size: clamp(1.45rem, 7vw, 2.15rem);
  line-height: 1.08;
}

/* Home hero with a contained image instead of a stretched full-screen photo */
.hero-home {
  min-height: 680px;
  background: var(--ink);
  overflow: hidden;
}
.hero-home::before {
  content: "";
  position: absolute;
  top: 28px;
  right: max(28px, calc((100vw - 1360px) / 2));
  bottom: 28px;
  width: min(50vw, 680px);
  border-radius: 28px;
  background-image: url('/assets/img/lazienka-z-lustrem-led.webp');
  background-size: cover;
  background-position: center 55%;
  box-shadow: var(--shadow);
}
.hero-home::after {
  content: "";
  position: absolute;
  top: 28px;
  right: max(28px, calc((100vw - 1360px) / 2));
  bottom: 28px;
  width: min(50vw, 680px);
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(11,12,13,.78), rgba(11,12,13,.18) 58%, rgba(11,12,13,.08));
  pointer-events: none;
}
.hero-home .container {
  min-height: 680px;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 42px;
  align-items: end;
  padding-block: 82px 62px;
}
.hero-copy { max-width: 720px; }
.hero-kicker {
  margin-bottom: 20px;
  font-size: .72rem;
  letter-spacing: .15em;
}
.hero-kicker::before { width: 42px; }
.hero-home h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hero-home h1 span:last-child { margin-left: 0; }
.hero-home .lead {
  max-width: 610px;
  margin-top: 22px;
  color: rgba(255,255,255,.84);
}
.hero-rail {
  align-self: end;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(11,12,13,.86);
  backdrop-filter: blur(8px);
}
.hero-rail strong { margin-bottom: 12px; }
.hero-rail li { padding: 11px 0; font-size: .9rem; }
.hero-scroll { display: none; }

.statement-grid {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 46px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border: 0;
}
.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: #151617;
}
.service-card::before { opacity: .6; }
.service-no { margin-bottom: 36px; }
.service-card p { margin-top: 14px; }
.service-card .text-link { margin-top: 22px; }

.project-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-tile,
.project-tile:first-of-type {
  grid-column: auto;
  min-height: 0;
  aspect-ratio: 1 / 1.08;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.project-tile img { object-position: center; }
.project-tile:nth-child(2) img { object-position: center 40%; }
.project-tile::after { background: linear-gradient(0deg, rgba(11,12,13,.88), rgba(11,12,13,.08) 72%); }
.project-info { padding: 24px; }
.project-info h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.project-info p {
  max-height: none;
  margin-top: 10px;
  color: rgba(255,255,255,.76);
  font-size: .9rem;
  opacity: 1;
}

.process-grid { gap: 14px; }
.process-step,
.process-step:nth-child(2) {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.42);
}
.process-step .step-number { margin-bottom: 34px; font-size: 1.8rem; }
.process-step p { margin-top: 12px; }

.cta-band { padding-block: 68px; }
.cta-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 48px;
}
.cta-grid h2 { font-size: clamp(2.1rem, 4vw, 3.35rem); line-height: 1.08; }

/* Shared page heroes */
.page-hero {
  min-height: 540px;
  padding-block: 68px 58px;
}
.page-hero .container { min-height: inherit; }
.page-hero .lead { margin-top: 20px; }

.about-hero-grid,
.offer-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  gap: 54px;
}
.about-hero-copy h1,
.offer-hero-copy h1 {
  font-size: clamp(3.1rem, 5.7vw, 5.4rem);
  line-height: 1.02;
}
.about-hero-copy h1 span:nth-child(2) {
  margin-left: 0;
  color: rgba(11,12,13,.68);
  -webkit-text-stroke: 0;
}
.about-collage,
.offer-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  align-items: center;
}
.about-collage .image-a,
.about-collage .image-b,
.offer-images img:first-child,
.offer-images img:last-child {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-collage .image-b,
.offer-images img:last-child { transform: translateY(20px); }
.about-collage::after,
.offer-images::before { display: none; }

.story-grid { gap: clamp(42px, 8vw, 100px); }
.story-copy {
  gap: 22px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}
.values-grid { gap: 16px; }
.value-card {
  min-height: 260px;
  padding: 30px;
  border-top-width: 6px;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(11,12,13,.07);
}
.value-card .value-number { margin-bottom: 38px; }
.value-card p { margin-top: 14px; }

.photo-ribbon {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  margin-top: 44px !important;
}
.photo-ribbon img,
.photo-ribbon img:nth-child(2),
.photo-ribbon img:last-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  object-fit: cover;
  transform: none;
  box-shadow: 0 14px 40px rgba(0,0,0,.2);
}

.offer-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
}
.offer-item {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.58);
}
.offer-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-size: 1rem;
}
.offer-item p { margin-top: 12px; }
.offer-item ul { margin-top: 18px; }
.offer-item li { padding-block: 7px; }

.scope-grid { gap: 18px; }
.scope-card {
  min-height: 310px;
  padding: 38px;
  border-radius: 22px;
}
.scope-card small { margin-bottom: 48px; }
.faq-question { padding: 23px 0; }
.faq-question span:first-child { font-size: clamp(1.15rem, 1.65vw, 1.5rem); }

.hero-gallery {
  min-height: 540px;
  background-position: center 46%;
}
.hero-gallery h1 { max-width: 820px; font-size: clamp(3.1rem, 5.7vw, 5.4rem); }
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-item,
.gallery-item:nth-of-type(5n+1),
.gallery-item:nth-of-type(5n+2),
.gallery-item:nth-of-type(5n+4),
.gallery-item:nth-of-type(5n+5) {
  grid-column: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(11,12,13,.1);
}
.gallery-item::after {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  transform: translateY(64px);
}
.lightbox img { border-radius: 16px; }
.lightbox-close { border-radius: 13px; }

/* Realizations */
.projects-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  min-height: 560px;
}
.projects-hero-copy { padding-block: 70px; padding-right: 50px; }
.projects-hero-copy h1 { font-size: clamp(3.2rem, 5.8vw, 5.7rem); }
.projects-hero-image {
  min-height: 500px;
  margin: 24px 24px 24px 0;
  border-radius: 24px;
  overflow: hidden;
}
.projects-hero-image::after { background: linear-gradient(90deg, rgba(11,12,13,.45), transparent 34%); }
.case-grid { gap: 22px; }
.case-card,
.case-card:nth-child(even) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(11,12,13,.08);
}
.case-image {
  min-height: 0;
  margin: 16px;
  aspect-ratio: 4 / 3;
  border-radius: 17px;
  overflow: hidden;
}
.case-copy { padding: clamp(32px, 4.5vw, 58px); }
.case-copy small { margin-bottom: 18px; }
.case-copy p { margin-top: 14px; }
.case-meta { margin-top: 22px; }
.stage-grid { gap: 16px; }
.stage-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(11,12,13,.08);
}
.stage-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
.stage-copy { padding: 26px; }

/* Contact */
.hero-contact {
  min-height: 430px;
  padding-block: 72px 58px;
}
.hero-contact h1 {
  max-width: 1050px;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero-contact h1 span:last-child {
  margin-left: clamp(0px, 10vw, 130px);
  text-align: left;
}
.contact-layout { gap: clamp(38px, 7vw, 90px); }
.contact-card,
.contact-note,
.contact-form-wrap { border-radius: 20px; }
.contact-card { padding: 26px; }
.contact-card a { font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
.contact-note { padding: 26px; }
.contact-form-wrap { padding: clamp(28px, 4vw, 48px); }
.contact-form-wrap h2 { font-size: clamp(2.1rem, 3.5vw, 3.3rem); }
.contact-form { margin-top: 30px; }
.form-field input,
.form-field textarea,
.form-field select { border-radius: 12px; }

.footer-main { gap: 54px; padding-block: 68px 48px; }
.consent {
  width: min(460px, calc(100% - 36px));
  padding: 22px;
  border-radius: 18px;
}
.consent strong { font-size: 1.25rem; }

@media (max-width: 1100px) {
  :root { --section-y: 72px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-tile:first-of-type { grid-column: auto; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-item,
  .gallery-item:nth-of-type(5n+1),
  .gallery-item:nth-of-type(5n+2),
  .gallery-item:nth-of-type(5n+4),
  .gallery-item:nth-of-type(5n+5) { grid-column: auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; --section-y: 64px; }
  .container,
  .narrow { width: min(calc(100% - 36px), var(--container)); }
  .header-inner { width: calc(100% - 28px); }
  .section-head,
  .statement-grid,
  .story-grid,
  .cta-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .section-head { gap: 20px; margin-bottom: 36px; }

  .hero-home {
    min-height: 0;
    background: var(--ink);
  }
  .hero-home::before,
  .hero-home::after {
    top: 18px;
    right: 18px;
    bottom: auto;
    left: 18px;
    width: auto;
    height: 300px;
    border-radius: 22px;
  }
  .hero-home::after { background: linear-gradient(0deg, rgba(11,12,13,.42), transparent 62%); }
  .hero-home .container {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 350px 44px;
    padding-bottom: 44px;
  }
  .hero-home h1 { font-size: clamp(3rem, 9vw, 4.4rem); }
  .hero-rail {
    align-self: auto;
    margin-top: 4px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .hero-rail ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-rail li { padding: 10px 6px 6px 0; }

  .about-hero-grid,
  .offer-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-collage,
  .offer-images { width: min(100%, 620px); }
  .story-sticky { position: static; }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .projects-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .projects-hero-copy { padding: 64px 24px 40px; }
  .projects-hero-image {
    min-height: 0;
    margin: 0 18px 18px;
    aspect-ratio: 4 / 3;
  }
  .projects-hero-image::after { background: linear-gradient(0deg, rgba(11,12,13,.34), transparent 46%); }
  .case-card,
  .case-card:nth-child(even) { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-image { order: 0; }
  .case-image { aspect-ratio: 4 / 3; }
  .stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root {
    --section-y: 54px;
    --font-size-base: 16px;
  }
  .container,
  .narrow { width: min(calc(100% - 28px), var(--container)); }
  h1 { font-size: clamp(2.45rem, 11vw, 3.25rem); line-height: 1.04; }
  h2 { font-size: clamp(1.9rem, 8.5vw, 2.65rem); line-height: 1.08; }
  h3 { font-size: 1.25rem; }
  .section-index { margin-bottom: 16px; }
  .lead { font-size: 1rem; }
  .big-copy { font-size: clamp(1.35rem, 6.5vw, 1.75rem); line-height: 1.3; }
  .button-row { display: grid; gap: 10px; }
  .button { width: 100%; }

  .hero-home::before,
  .hero-home::after {
    top: 14px;
    right: 14px;
    left: 14px;
    height: 236px;
    border-radius: 18px;
  }
  .hero-home .container { padding-top: 286px; padding-bottom: 38px; }
  .hero-kicker { font-size: .66rem; }
  .hero-home h1 { font-size: clamp(2.55rem, 12vw, 3.35rem); line-height: 1.02; }
  .hero-home .lead { margin-top: 18px; font-size: .98rem; }
  .hero-rail { padding: 18px; }
  .hero-rail ul { grid-template-columns: 1fr; gap: 0; }
  .hero-rail li { padding: 8px 0; }

  .statement-grid { gap: 18px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 24px; }
  .service-no { margin-bottom: 26px; }

  .project-strip { grid-template-columns: 1fr; gap: 14px; }
  .project-tile,
  .project-tile:first-of-type {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .project-info { padding: 20px; }
  .project-info h3 { font-size: 1.4rem; }
  .project-info p { font-size: .84rem; }

  .process-grid { grid-template-columns: 1fr; gap: 10px; }
  .process-step,
  .process-step:nth-child(2) { min-height: 0; padding: 24px; }
  .process-step .step-number { margin-bottom: 22px; }
  .cta-band { padding-block: 52px; }
  .cta-grid { gap: 28px; }
  .cta-grid h2 { font-size: clamp(2rem, 9vw, 2.7rem); }

  .page-hero { min-height: 0; padding-block: 52px 46px; }
  .about-hero-copy h1,
  .offer-hero-copy h1 { font-size: clamp(2.65rem, 12vw, 3.55rem); }
  .about-collage,
  .offer-images { gap: 10px; }
  .about-collage .image-a,
  .about-collage .image-b,
  .offer-images img:first-child,
  .offer-images img:last-child {
    aspect-ratio: 3 / 4;
    border-radius: 15px;
  }
  .about-collage .image-b,
  .offer-images img:last-child { transform: translateY(12px); }

  .story-copy { gap: 18px; font-size: 1rem; }
  .values-grid { grid-template-columns: 1fr; gap: 12px; }
  .value-card { min-height: 0; padding: 24px; }
  .value-card .value-number { margin-bottom: 24px; }

  .photo-ribbon {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    padding-bottom: 8px;
  }
  .photo-ribbon img,
  .photo-ribbon img:nth-child(2),
  .photo-ribbon img:last-child {
    flex: 0 0 78%;
    width: 78%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }

  .offer-list { grid-template-columns: 1fr; gap: 12px; }
  .offer-item { grid-template-columns: 50px minmax(0, 1fr); min-height: 0; gap: 16px; padding: 24px; }
  .offer-icon { width: 48px; height: 48px; }
  .scope-grid { grid-template-columns: 1fr; gap: 12px; }
  .scope-card { min-height: 0; padding: 28px 24px; }
  .scope-card small { margin-bottom: 34px; }
  .faq-question { padding: 20px 0; }
  .faq-question span:first-child { font-size: 1.15rem; }
  .faq-plus { width: 38px; height: 38px; }

  .hero-gallery { min-height: 430px; }
  .hero-gallery h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-item,
  .gallery-item:nth-of-type(5n+1),
  .gallery-item:nth-of-type(5n+2),
  .gallery-item:nth-of-type(5n+4),
  .gallery-item:nth-of-type(5n+5) {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }
  .gallery-item::after {
    right: 9px;
    bottom: 9px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.15rem;
    transform: none;
  }
  .lightbox { padding: 18px; }

  .projects-hero-copy { padding: 52px 18px 34px; }
  .projects-hero-copy h1 { font-size: clamp(2.7rem, 12vw, 3.65rem); }
  .projects-hero-image { margin: 0 14px 14px; border-radius: 18px; }
  .case-image { margin: 12px; border-radius: 14px; }
  .case-copy { padding: 26px 22px 30px; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .stage-grid { grid-template-columns: 1fr; gap: 12px; }
  .stage-card img { aspect-ratio: 4 / 3; }
  .stage-copy { padding: 22px; }

  .hero-contact { min-height: 0; padding-block: 54px 46px; }
  .hero-contact h1 {
    font-size: clamp(2.65rem, 13vw, 3.65rem);
    line-height: 1.02;
  }
  .hero-contact h1 span:last-child { margin-left: 0; text-align: left; }
  .contact-form-wrap { padding: 26px 20px; }
  .contact-form-wrap h2 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .contact-form { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .form-field.full,
  .checkbox-field,
  .form-actions { grid-column: 1; }

  .footer-main { grid-template-columns: 1fr; gap: 34px; padding-block: 52px 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .consent {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 18px;
    border-radius: 15px;
  }
  .consent-actions { display: grid; }
}


/* Final text wrapping safeguard */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-contact h1 span { white-space: nowrap; }

@media (max-width: 640px) {
  .hero-contact h1 {
    font-size: clamp(2.15rem, 10.2vw, 2.75rem);
    letter-spacing: -.035em;
  }
}

/* Final scale adjustment after multi-viewport review */
.hero-home h1 { font-size: clamp(3.1rem, 5.2vw, 5rem); }
.about-hero-copy h1,
.offer-hero-copy h1,
.hero-gallery h1 { font-size: clamp(2.9rem, 5vw, 4.8rem); }
.projects-hero-copy h1 { font-size: clamp(3rem, 5.1vw, 5.1rem); }
.hero-contact h1 { font-size: clamp(3.2rem, 5.8vw, 5.3rem); }

@media (max-width: 800px) {
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-home h1 { font-size: clamp(2.5rem, 11.5vw, 3.15rem); }
  .about-hero-copy h1,
  .offer-hero-copy h1,
  .hero-gallery h1,
  .projects-hero-copy h1 { font-size: clamp(2.5rem, 11.5vw, 3.25rem); }
  .hero-contact h1 { font-size: clamp(2.15rem, 10.2vw, 2.75rem); }
}


/* Home hero alignment correction */
.hero-home {
  min-height: 0;
  padding: 0;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-home::before,
.hero-home::after {
  content: none;
  display: none;
}
.hero-home .container {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding-block: 68px 64px;
}
.hero-copy {
  width: min(100%, 880px);
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.hero-kicker {
  justify-content: center;
  margin-bottom: 16px;
  font-size: .7rem;
  letter-spacing: .15em;
}
.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 38px;
  height: 2px;
  flex: 0 0 38px;
  background: var(--brand);
}
.hero-home h1 {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(3rem, 4.9vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-align: center;
}
.hero-home h1 span,
.hero-home h1 span:last-child {
  display: block;
  margin-left: 0;
  text-align: center;
}
.hero-home .lead {
  max-width: 700px;
  margin: 18px auto 0;
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.58;
  text-align: center;
}
.hero-home .button-row {
  justify-content: center;
  margin-top: 26px;
}
.hero-visual {
  position: relative;
  width: min(100%, 960px);
  height: 320px;
  margin: 4px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: #171819;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(11,12,13,.22));
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-rail {
  width: min(100%, 960px);
  align-self: center;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: #151617;
  backdrop-filter: none;
}
.hero-rail strong {
  margin: 0;
  text-align: left;
}
.hero-rail ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}
.hero-rail li {
  padding: 7px 14px;
  border-top: 0;
  border-left: 1px solid rgba(255,255,255,.14);
  font-size: .88rem;
  line-height: 1.35;
  text-align: center;
}
.hero-scroll { display: none; }

@media (max-width: 900px) {
  .hero-home .container {
    gap: 22px;
    padding-block: 52px 52px;
  }
  .hero-home h1 {
    font-size: clamp(2.75rem, 8.4vw, 4rem);
  }
  .hero-visual {
    width: min(100%, 760px);
    height: 280px;
  }
  .hero-rail {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .hero-rail strong { text-align: center; }
  .hero-rail li:first-child { border-left: 0; }
}

@media (max-width: 640px) {
  .hero-home .container {
    gap: 18px;
    padding-block: 40px 42px;
  }
  .hero-copy { width: 100%; }
  .hero-kicker {
    gap: 10px;
    margin-bottom: 14px;
    font-size: .61rem;
    letter-spacing: .11em;
    line-height: 1.35;
  }
  .hero-kicker::before,
  .hero-kicker::after {
    width: 20px;
    flex-basis: 20px;
  }
  .hero-home h1 {
    max-width: 360px;
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.035em;
  }
  .hero-home .lead {
    max-width: 430px;
    margin-top: 16px;
    font-size: .96rem;
    line-height: 1.55;
  }
  .hero-home .button-row { margin-top: 22px; }
  .hero-visual {
    width: 100%;
    height: 215px;
    margin-top: 2px;
    border-radius: 18px;
  }
  .hero-visual img { object-position: center 50%; }
  .hero-rail {
    width: 100%;
    gap: 10px;
    padding: 16px;
    border-radius: 15px;
  }
  .hero-rail ul { grid-template-columns: 1fr; }
  .hero-rail li,
  .hero-rail li:first-child {
    padding: 9px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }
}


/* PRJ-0090: selected portfolio photos and wider navigation */
@media (max-width: 1140px) {
  .desktop-nav,
  .header-contact { display: none; }
  .mobile-toggle { display: inline-flex; margin-left: auto; }
}

.hero-gallery {
  background-image: linear-gradient(rgba(11, 12, 13, .68), rgba(11, 12, 13, .68)), url('/assets/img/realizacje/salon-z-oswietleniem-led.webp');
  background-position: center 48%;
}

.gallery-item,
.project-tile,
.case-image,
.stage-card {
  overflow: hidden;
}

.gallery-item img,
.project-tile img,
.case-image img,
.stage-card img,
.about-collage img,
.offer-images img,
.projects-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item img { object-position: center; }
