:root {
  --ink: #171817;
  --charcoal: #242624;
  --slate: #5f625e;
  --paper: #f6f5f1;
  --white: #fff;
  --gold: #b89452;
  --gold-light: #d6bc82;
  --line: rgba(23, 24, 23, .14);
  --serif: Georgia, serif;
  --sans: Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#oferta, #kontakt { scroll-margin-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.75; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
picture { display: contents; }
button, input, textarea, select { font: inherit; }
.skip-link { position: fixed; z-index: 2000; top: 12px; left: 12px; padding: 10px 16px; background: var(--gold-light); color: var(--ink); font-weight: 700; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; }
h1 { font-size: clamp(54px, 7.3vw, 108px); }
h2 { font-size: clamp(42px, 5vw, 70px); }
h3 { font-size: 28px; }
p { margin: 0; }
.lead { max-width: 650px; color: #6e716d; font-size: 17px; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 26px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: .25s ease; cursor: pointer; }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); }
.btn-outline:hover { color: var(--ink); }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; color: var(--white); transition: background .3s, box-shadow .3s; }
.site-header.scrolled, .site-header.light-page { background: rgba(23,24,23,.96); box-shadow: 0 10px 35px rgba(0,0,0,.12); }
.nav-wrap { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { position: relative; width: 158px; height: 66px; overflow: hidden; background: #eee; flex: 0 0 auto; }
.brand img { position: absolute; width: 250px; max-width: none; height: 143px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav { display: flex; align-items: center; gap: clamp(8px, .8vw, 14px); }
.nav a { position: relative; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { min-height: 44px; padding-inline: 14px; color: var(--ink); }
.menu-toggle { display: none; border: 1px solid rgba(214,188,130,.72); background: rgba(15,16,15,.62); color: white; width: 112px; height: 48px; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.menu-toggle::before { content: "Menu"; position: absolute; left: 16px; top: 50%; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transform: translateY(-50%); }
.menu-toggle span { position: absolute; right: 16px; display: block; width: 25px; height: 2px; margin: 0; background: currentColor; transition: top .25s, transform .25s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle:hover { border-color: var(--gold-light); background: var(--gold-light); color: var(--ink); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: #171817 url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg') center/cover no-repeat; background-image: image-set(url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka-1800.avif') type('image/avif'), url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg') type('image/jpeg')); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,8,.8) 0%, rgba(8,9,8,.38) 55%, rgba(8,9,8,.15)), linear-gradient(0deg, rgba(8,9,8,.62), transparent 50%); }
.hero-content { position: relative; z-index: 1; padding: 210px 0 104px; }
.hero h1 { max-width: 1100px; font-size: clamp(46px, 5.8vw, 86px); }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-tagline { margin-top: 24px; color: rgba(255,255,255,.82); font-family: var(--serif); font-size: clamp(21px, 2vw, 30px); font-style: italic; }
.hero-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-copy p { max-width: 560px; color: rgba(255,255,255,.74); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.numbers { background: var(--ink); color: white; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.number { padding: 34px 5vw; border-right: 1px solid rgba(255,255,255,.12); }
.number:first-child { padding-left: 0; }
.number:last-child { border-right: 0; }
.number strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 31px; font-weight: 500; }
.number span { color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.section { padding: 120px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 58px; }
.section-head h2 { max-width: 680px; }
.section-head .lead { max-width: 400px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.product-card { position: relative; min-height: 510px; overflow: hidden; color: white; }
.product-card.product-wide { grid-column: 1 / -1; min-height: 430px; }
.product-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .7s ease; }
.product-card img[src*="drzwi-zewnetrzne"] { object-position: center 42%; }
.product-card img[src*="drzwi-wewnetrzne"] { object-position: center; }
.product-card img[src*="realizacja-"] { object-position: center 38%; }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,10,.86), rgba(10,11,10,.02) 65%); }
.product-card:hover img { transform: scale(1.035); }
.product-content { position: absolute; z-index: 2; left: 36px; right: 36px; bottom: 32px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.product-content small { color: var(--gold-light); letter-spacing: .15em; text-transform: uppercase; }
.product-content h3 { margin-top: 5px; font-size: 38px; }
.arrow { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 22px; transition: .25s; }
.product-card:hover .arrow { border-color: var(--gold); background: var(--gold); color: var(--ink); transform: translateX(4px); }

.about { background: white; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(60px, 8vw, 120px); align-items: center; }
.image-frame { position: relative; }
.image-frame::before { content: ""; position: absolute; left: -18px; top: -18px; width: 34%; height: 40%; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.image-frame img { position: relative; height: 640px; object-fit: cover; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy .lead { margin-bottom: 34px; }
.ticks { display: grid; gap: 15px; margin: 0 0 40px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 15px; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: "◆"; color: var(--gold); font-size: 8px; }

.process { background: var(--charcoal); color: white; }
.process .section-head .lead { color: rgba(255,255,255,.58); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; min-height: 250px; padding: 32px 30px; border: 1px solid rgba(255,255,255,.13); border-right: 0; counter-increment: step; }
.step:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.step::before { content: "0" counter(step); color: var(--gold); font-size: 12px; letter-spacing: .15em; }
.step h3 { margin: 74px 0 12px; font-size: 25px; }
.step p { color: rgba(255,255,255,.72); font-size: 13px; }

.contact { background: #e9e6df; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy .lead { margin-bottom: 38px; }
.contact-note { padding-top: 24px; border-top: 1px solid var(--line); color: var(--slate); font-size: 13px; }
.contact-method { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-method span:first-child { grid-column: 1; color: var(--slate); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact-method strong { grid-column: 1; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; overflow-wrap: anywhere; }
.contact-method span:last-child { grid-column: 2; grid-row: 1 / 3; color: var(--gold); font-size: 24px; }
.contact-method:hover strong { color: var(--gold); }
.contact-tip { margin-top: 20px; color: var(--slate); font-size: 13px; }
.contact-copy .lead + .contact-tip { margin: -18px 0 20px; }
.contact-tip strong { color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form { padding: clamp(28px, 4vw, 55px); background: #f5f3ee; }
.contact-form > .full { grid-column: 1 / -1; }
.contact-form > .eyebrow { margin-bottom: 6px; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid #a7a59f; border-radius: 0; padding: 13px 0; background: transparent; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.form-status { grid-column: 1/-1; min-height: 24px; color: #566052; font-size: 13px; }
.form-privacy { grid-column: 1/-1; display: flex; align-items: flex-start; gap: 9px; color: var(--slate); font-size: 12px; line-height: 1.6; }
.form-privacy input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--gold); }
.form-note { margin: 0; color: var(--slate); font-size: 12px; line-height: 1.6; }
.form-note a, .form-privacy a, .legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turnstile-wrap { min-height: 65px; }
.form-status.is-error { color: #9c3932; }
.form-status.is-success { color: #3b6244; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }

.cookie-consent { display: none; position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; padding: 20px; background: #171817; color: white; box-shadow: 0 -12px 45px rgba(0,0,0,.25); }
.cookie-consent.is-visible { display: block; }
.cookie-consent-inner { width: min(1180px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cookie-copy { max-width: 700px; }
.cookie-copy strong { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 24px; font-weight: normal; }
.cookie-copy p { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.55; }
.cookie-copy a { color: var(--gold-light); text-decoration: underline; }
.cookie-options { margin-top: 15px; }
.cookie-options label { display: block; margin: 7px 0; font-size: 13px; cursor: pointer; }
.cookie-options input { accent-color: var(--gold); margin-right: 7px; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 320px; }
.cookie-button { padding: 9px 12px; border: 1px solid var(--gold-light); background: transparent; color: white; cursor: pointer; font-size: 12px; }
.cookie-button:hover, .cookie-button:focus-visible { background: var(--gold-light); color: var(--ink); }
.cookie-reject, .cookie-accept { min-width: 148px; background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cookie-settings-link { border: 0; padding: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.legal-content { max-width: 850px; }
.legal-content h2 { margin: 44px 0 14px; font-size: 32px; }
.legal-content p, .legal-content li { margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal-content th, .legal-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-placeholder { padding: 14px 18px; border-left: 3px solid var(--gold); background: #eee9df; }
@media (max-width: 760px) { .cookie-consent-inner { display: block; } .cookie-actions { justify-content: flex-start; min-width: 0; margin-top: 16px; } .cookie-button { flex: 1 1 140px; } .legal-content table { display: block; overflow-x: auto; } }

.site-footer { padding: 55px 0 28px; background: var(--ink); color: white; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; padding-bottom: 45px; }
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand p { max-width: 330px; color: rgba(255,255,255,.75); font-size: 13px; }
.footer-title { margin-bottom: 16px; color: var(--gold-light); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; color: rgba(255,255,255,.82); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.68); font-size: 12px; }

.page-hero { position: relative; min-height: 690px; display: flex; align-items: flex-end; background: #222 center/cover no-repeat; color: white; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,10,.82), rgba(10,11,10,.18)), linear-gradient(0deg, rgba(10,11,10,.65), transparent); }
.page-hero-content { position: relative; z-index: 1; padding: 220px 0 80px; }
.page-hero h1 { max-width: 840px; }
.page-hero p { max-width: 570px; margin-top: 25px; color: rgba(255,255,255,.72); font-size: 17px; }
.page-hero.windows { background-image: url('../images/okna-panoramiczne-nowoczesny-salon-bialystok-sokolka.jpg'); background-image: image-set(url('../images/okna-panoramiczne-nowoczesny-salon-bialystok-sokolka-1500.avif') type('image/avif'), url('../images/okna-panoramiczne-nowoczesny-salon-bialystok-sokolka.jpg') type('image/jpeg')); }
.page-hero.external { background-image: url('../images/drzwi-zewnetrzne-drewnopodobne-dom-z-cegly-bialystok-sokolka.jpg'); background-image: image-set(url('../images/drzwi-zewnetrzne-drewnopodobne-dom-z-cegly-bialystok-sokolka-1200.avif') type('image/avif'), url('../images/drzwi-zewnetrzne-drewnopodobne-dom-z-cegly-bialystok-sokolka.jpg') type('image/jpeg')); background-position: center 44%; }
.page-hero.internal { background-image: url('../images/drzwi-wewnetrzne-biale-klasyczne-bialystok-sokolka.jpg'); background-position: center; }
.page-hero.garage { background-image: url('../images/przeszklenia-tarasowe-nowoczesny-salon-bialystok-sokolka.jpg'); background-image: image-set(url('../images/przeszklenia-tarasowe-nowoczesny-salon-bialystok-sokolka-1500.avif') type('image/avif'), url('../images/przeszklenia-tarasowe-nowoczesny-salon-bialystok-sokolka.jpg') type('image/jpeg')); }
.page-hero.railings { background-image: url('../images/balustrada-szklana-taras-nowoczesny-dom-bialystok-sokolka.jpg'); background-image: image-set(url('../images/balustrada-szklana-taras-nowoczesny-dom-bialystok-sokolka-928.avif') type('image/avif'), url('../images/balustrada-szklana-taras-nowoczesny-dom-bialystok-sokolka.jpg') type('image/jpeg')); background-position: center 45%; }
.page-hero.showers { background-image: url('../images/kabina-prysznicowa-walk-in-szklana-bialystok-sokolka.png'); background-image: image-set(url('../images/kabina-prysznicowa-walk-in-szklana-bialystok-sokolka-1320.avif') type('image/avif'), url('../images/kabina-prysznicowa-walk-in-szklana-bialystok-sokolka.png') type('image/png')); background-position: center 45%; }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 130px); }
.intro-grid h2 { position: sticky; top: 130px; }
.intro-text { display: grid; gap: 28px; }
.intro-text p { color: var(--slate); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { min-height: 275px; padding: 36px; background: var(--paper); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 65px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 19px; }
.feature h3 { margin-bottom: 12px; font-size: 25px; }
.feature p { color: var(--slate); font-size: 13px; }
.options { background: white; }
.option-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.option { padding: 34px; border: 1px solid var(--line); }
.option small { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.option h3 { margin: 14px 0 10px; }
.option p { color: var(--slate); font-size: 14px; }
.cta-band { padding: 85px 0; background: var(--gold); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { max-width: 750px; font-size: clamp(38px, 4.3vw, 62px); }
.cta-inner .btn { border-color: var(--ink); background: var(--ink); color: white; }

.projects { background: var(--charcoal); color: white; }
.projects .section-head .lead { color: rgba(255,255,255,.56); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-item { position: relative; grid-column: span 6; aspect-ratio: 1; overflow: hidden; background: #111; cursor: zoom-in; }
.gallery-item.wide { grid-column: span 6; }
.gallery-item:last-child:nth-child(odd) { grid-column: 4 / span 6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform .55s ease, opacity .25s; }
.gallery-item::after { content: "Powiększ  +"; position: absolute; right: 20px; bottom: 18px; padding: 8px 12px; background: rgba(15,16,15,.88); color: white; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.gallery-item:hover img { transform: scale(1.025); opacity: .88; }
.gallery-caption { position: absolute; z-index: 1; left: 20px; bottom: 20px; max-width: calc(100% - 175px); color: rgba(255,255,255,.92); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 12px #000; }
.gallery-page-hero { min-height: 560px; background-image: url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg'); background-image: image-set(url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka-1800.avif') type('image/avif'), url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg') type('image/jpeg')); background-position: center 45%; }
.portfolio-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.portfolio-intro .lead { max-width: 520px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.portfolio-card { position: relative; display: block; aspect-ratio: 1; align-self: start; overflow: hidden; background: var(--charcoal); color: white; cursor: zoom-in; }
.portfolio-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, opacity .3s ease; }
.portfolio-card::before { content: ""; position: absolute; z-index: 1; inset: 35% 0 0; background: linear-gradient(0deg, rgba(10,11,10,.94), rgba(10,11,10,.62) 55%, transparent); pointer-events: none; }
.portfolio-card::after { content: "+"; position: absolute; z-index: 3; right: 12px; top: 12px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.5); background: rgba(15,16,15,.72); font-size: 18px; line-height: 1; }
.portfolio-card:hover img { transform: scale(1.035); opacity: .88; }
.portfolio-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 24px 16px 16px; }
.portfolio-copy strong { color: var(--gold); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.portfolio-copy span { color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.45; }
.portfolio-card:focus-visible { outline-offset: 5px; }
.portfolio-note { margin-top: 28px; color: var(--slate); font-size: 13px; }
.lightbox { position: fixed; z-index: 1000; inset: 0; display: none; place-items: center; padding: 30px 84px; background: rgba(6,7,6,.94); }
.lightbox.open { display: grid; }
.lightbox-figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.lightbox img { width: auto; max-width: min(1200px, calc(100vw - 168px)); max-height: calc(90vh - 40px); object-fit: contain; }
.lightbox-caption { color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.lightbox-close { position: fixed; top: 24px; right: 28px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: white; font-size: 25px; line-height: 1; cursor: pointer; }
.lightbox-nav { position: fixed; top: 50%; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(15,16,15,.65); color: white; font-size: 38px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-nav:hover, .lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1450px) {
  .nav { position: fixed; inset: 0; padding: 120px 30px 40px; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 25px; transform: translateX(100%); transition: transform .3s; }
  .nav.open { transform: none; }
  .nav a { font-size: 18px; }
  .nav .btn { margin-top: 12px; }
  .menu-toggle { position: relative; z-index: 2; display: block; }
  .menu-toggle.active span:first-child, .menu-toggle.active span:last-child { top: 22px; }
  .menu-toggle.active span:first-child { transform: rotate(45deg); }
  .menu-toggle.active span:last-child { transform: rotate(-45deg); }
  .hero-copy, .section-head, .cta-inner { align-items: flex-start; flex-direction: column; }
  .split, .contact-grid, .intro-grid { grid-template-columns: 1fr; }
  .image-frame img { height: 520px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 1px solid rgba(255,255,255,.13); }
  .intro-grid h2 { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .container { width: min(100% - 30px, 1180px); }
  .section { padding: 84px 0; }
  .nav-wrap { height: 78px; }
  .brand { width: 128px; height: 54px; }
  .brand img { width: 205px; height: 117px; }
  .menu-toggle { width: 50px; height: 46px; }
  .menu-toggle::before { display: none; }
  .menu-toggle span { right: 12px; }
  .hero { background-image: url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg'); background-image: image-set(url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka-640.avif') type('image/avif'), url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg') type('image/jpeg')); }
  .page-hero.windows { background-image: url('../images/okna-panoramiczne-nowoczesny-salon-bialystok-sokolka.jpg'); background-image: image-set(url('../images/okna-panoramiczne-nowoczesny-salon-bialystok-sokolka-640.avif') type('image/avif'), url('../images/okna-panoramiczne-nowoczesny-salon-bialystok-sokolka.jpg') type('image/jpeg')); }
  .page-hero.external { background-image: url('../images/drzwi-zewnetrzne-drewnopodobne-dom-z-cegly-bialystok-sokolka.jpg'); background-image: image-set(url('../images/drzwi-zewnetrzne-drewnopodobne-dom-z-cegly-bialystok-sokolka-640.avif') type('image/avif'), url('../images/drzwi-zewnetrzne-drewnopodobne-dom-z-cegly-bialystok-sokolka.jpg') type('image/jpeg')); }
  .page-hero.internal { background-image: url('../images/drzwi-wewnetrzne-biale-klasyczne-bialystok-sokolka.jpg'); }
  .page-hero.garage { background-image: url('../images/przeszklenia-tarasowe-nowoczesny-salon-bialystok-sokolka.jpg'); background-image: image-set(url('../images/przeszklenia-tarasowe-nowoczesny-salon-bialystok-sokolka-640.avif') type('image/avif'), url('../images/przeszklenia-tarasowe-nowoczesny-salon-bialystok-sokolka.jpg') type('image/jpeg')); }
  .page-hero.railings { background-image: url('../images/balustrada-szklana-taras-nowoczesny-dom-bialystok-sokolka.jpg'); background-image: image-set(url('../images/balustrada-szklana-taras-nowoczesny-dom-bialystok-sokolka-640.avif') type('image/avif'), url('../images/balustrada-szklana-taras-nowoczesny-dom-bialystok-sokolka.jpg') type('image/jpeg')); }
  .page-hero.showers { background-image: url('../images/kabina-prysznicowa-walk-in-szklana-bialystok-sokolka.png'); background-image: image-set(url('../images/kabina-prysznicowa-walk-in-szklana-bialystok-sokolka-640.avif') type('image/avif'), url('../images/kabina-prysznicowa-walk-in-szklana-bialystok-sokolka.png') type('image/png')); }
  .gallery-page-hero { background-image: url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg'); background-image: image-set(url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka-640.avif') type('image/avif'), url('../images/stolarka-okienna-nowoczesny-dom-bialystok-sokolka.jpg') type('image/jpeg')); }
  .portfolio-intro { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 74px 14px 78px; }
  .lightbox img { max-width: calc(100vw - 28px); max-height: calc(100vh - 170px); }
  .lightbox-nav { top: auto; bottom: 14px; width: 46px; height: 46px; transform: none; }
  .lightbox-prev { left: calc(50% - 58px); }
  .lightbox-next { right: calc(50% - 58px); }
  .hero-content { padding: 145px 0 45px; }
  .hero h1 { font-size: clamp(40px, 11vw, 44px); }
  .hero-tagline { margin-top: 18px; font-size: 20px; }
  .hero-copy { margin-top: 20px; padding-top: 20px; gap: 20px; }
  .hero-copy p { font-size: 15px; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .numbers-grid { grid-template-columns: 1fr; }
  .number { padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .product-grid, .feature-grid, .option-list, .form { grid-template-columns: 1fr; }
  .product-card.product-wide { grid-column: auto; }
  .product-card { min-height: 410px; }
  .product-content { left: 22px; right: 22px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2) { border-right: 1px solid rgba(255,255,255,.13); border-bottom: 0; }
  .step:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
  .image-frame img { height: 430px; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page-hero { min-height: 610px; }
  .page-hero-content { padding: 180px 0 65px; }
  .field.full { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.wide, .gallery-item:last-child:nth-child(odd) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
