.site-header { height: 80px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; position: absolute; z-index: 10; inset: 0 0 auto; background: #e0ded8; }
.brand { font-family: var(--font-legquinne-vf); font-size: 32px; letter-spacing: .14em; text-decoration: none; }
.header-right, .site-switch { display: flex; align-items: center; gap: 12px; }
.header-right { gap: 40px; }
.nav-cta { min-height: 48px; display: inline-flex; align-items: center; }
.site-switch a { width: 48px; height: 48px; display: grid; place-items: center; position: relative; }
.site-switch [aria-current]::after { content: ''; position: absolute; height: 1px; background: currentColor; bottom: 0; left: 12px; right: 12px; }
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 160px 24px 80px; background: #262626; color: #fff; }
.hero-plane { position: absolute; inset: 80px 0 -8%; transform: translateY(var(--parallax, 0px)); }
.hero-image, .hero-plane video { width: 100%; height: 100%; object-fit: cover; }
.home-hero .hero-image, .home-hero video { animation: breathe 20s ease-in-out infinite alternate; }
.hero-plane video { position: absolute; inset: 0; }
.hero::after { content: ''; position: absolute; inset: 80px 0 0; background: rgba(38,38,38,0.30); }
.hero-copy { position: relative; z-index: 1; text-align: center; }
.hero h1 { margin: 0 0 40px; }
.hero-cta { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 16px; border: 1px solid #fff; background: transparent; color: #fff; text-decoration: none; }
.hero-cta:hover { background: #fff; color: #262626; }
.film { position: relative; color: #fff; background: #262626; }
.film-sticky { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.film-fallback, .film-video, .film-start, .film-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-fallback { visibility: hidden; }
.film-static .film-fallback { visibility: visible; }
.film-static .film-start { display: none; }
.film-video { display: none; }
.film-copy { position: absolute; inset: auto 0 0; padding: 48px 24px max(48px, env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.film-tagline { max-width: 40ch; margin: 0 auto 16px; text-wrap: balance; font-size: clamp(16px, 2vw, 24px); letter-spacing: .04em; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.film-copy h1 { max-width: 24ch; margin: 0 auto 32px; font-size: clamp(28px, 4vw, 46px); }
@media (max-width: 767px) { .film-fallback { object-position: 50% center; } }
@media (prefers-reduced-motion: reduce) { .film-start { display: none; } .film-fallback { visibility: visible; } }
@media (prefers-reduced-motion: no-preference) {
 .film-ready { height: 350vh; }
 .film-ready .film-sticky { position: sticky; top: 0; }
 .film-ready .film-video { display: block; }
 .film-ready .film-start { visibility: hidden; }
 /* Nagłówek nie miga przed startem filmu: jest ukryty od pierwszego rysowania, a pojawia się dopiero na końcu przewijania (kuchnia). */
 .film:not(.film-static) .film-copy h1 { opacity: 0; transform: translateY(10px); transition: opacity 600ms ease, transform 600ms ease; }
 .film.film-end .film-copy h1 { opacity: 1; transform: none; }
}
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.promises { padding-block: 120px; }
.promises p:not(.eyebrow) { font-family: var(--font-legquinne-vf); font-size: clamp(32px,4vw,46px); line-height: 1.2; letter-spacing: .022em; max-width: 29ch; margin: 32px 0; }
.promises .eyebrow { text-align: left; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.caption { margin: 16px 0 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid #262626; }
.contact-phone { font: 500 clamp(32px,4vw,46px)/1.2 var(--font-legquinne-vf); letter-spacing: .022em; }
.footer { padding: 64px 5vw; background: #38141b; color: #fff; display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 32px; align-items: start; }
.footer p, .footer address { margin-bottom: 12px; }
.footer > p { font-size: 13px; }
.memorial-intro p { max-width: 640px; margin: auto; font-size: 20px; line-height: 1.7; }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity 600ms, transform 600ms; }
.memorial .reveal { transform: none; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 767px) {
 .site-header { padding: 0 24px; } .header-right { gap: 16px; } .site-switch { gap: 0; }
 .hero-copy { width: 100%; } .hero h1 { max-width: 16ch; margin-inline: auto; }
 .section-heading { display: block; } .section-heading .eyebrow { margin-bottom: 16px; }
 .contact, .footer { grid-template-columns: 1fr; }
 .footer { padding: 64px 24px; } .gallery { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; }
 .hero-plane { transform: none; } .reveal.pending { opacity: 1; transform: none; }
}
.contact a[data-map], .footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 48px; }

/* Cyfry w kroju szeryfowym: rowne (lining), zeby ceny byly czytelne */
h1, h2, h3, [aria-live] { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* Treść strony głównej po filmie. */
.home-content { line-height: 1.4; text-align: left; }
.home-content > h2 { margin-bottom: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 24px; }
.product-card h3, .stone-card h3 { margin-bottom: 16px; }
.product-card p, .stone-card p { margin-bottom: 16px; }
.offer { border-top: 1px solid #262626; }
.offer-steps { list-style: none; padding: 0; margin: 0; }
.offer-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid #262626; align-items: baseline; }
.offer-steps h3, .offer-steps p { margin: 0; }
.step-number { font: 400 13px/1.4 var(--font-basis-grotesque-pro); font-variant-numeric: lining-nums; }
.philosophy h2 { font-size: 46px; max-width: 22ch; }
.philosophy > p:not(.eyebrow) { max-width: 64ch; margin-bottom: 0; }
.assortment-note { font-size: 13px; }
.stone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
.stone-card { min-width: 0; }
.stone-sample { width: 240px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #262626; margin-bottom: 24px; }
.stone-price { font-variant-numeric: lining-nums; }
.stone-price span { display: block; font-size: 13px; margin-top: 4px; }
.granite-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 240px; margin-top: 24px; }
.granite-samples figure { margin: 0; min-width: 0; }
.granite-samples img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #262626; }
.granite-samples figcaption { font-size: 12px; margin-top: 8px; }
.quote-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; border-block: 1px solid #262626; background: #e0ded8; }
.quote-band h2 { max-width: 22ch; }
.quote-band p { max-width: 64ch; margin: 0; }
.quote-cta { padding: 10px 16px; }
.quote-cta:hover { background: #262626; color: #e0ded8; }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .stone-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
 .product-grid, .stone-grid, .quote-band, .home .gallery { grid-template-columns: minmax(0, 1fr); }
 .offer-steps li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
 .quote-cta { justify-self: start; }
 .home .promises { padding-block: 80px; }
}

/* Mapa dojazdu w kontakcie (strona domowa i nagrobki) */
.contact-map { grid-column: 1 / -1; }
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.contact address a, .footer address a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* Kafelki produktów i zwarty asortyment generowany z cennika domu. */
#produkty .product-card { position: relative; display: flex; flex-direction: column; }
#produkty .product-quote { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; text-decoration: underline; text-underline-offset: 4px; }
#produkty .product-quote::after { content: ''; position: absolute; inset: 0; }
#produkty .product-card:focus-within { outline: 2px solid currentColor; outline-offset: 6px; }
#asortyment .stone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
#asortyment .stone-card { border-top: 1px solid #262626; padding-top: 20px; }
#asortyment .stone-card h3 { font-size: clamp(26px, 2.5vw, 34px); overflow-wrap: anywhere; }
#asortyment .assortment-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
#asortyment .assortment-samples figure { margin: 0; min-width: 0; }
#asortyment .assortment-samples img { display: block; width: 100%; height: 80px; object-fit: cover; border: 1px solid #262626; }
#asortyment .assortment-samples figcaption { font-size: 12px; line-height: 1.4; margin-top: 8px; overflow-wrap: anywhere; }
@media (max-width: 1099px) { #asortyment .stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { #asortyment .stone-grid { grid-template-columns: minmax(0, 1fr); } }

.product-price { margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.product-price strong { font-weight: 600; white-space: nowrap; }
.product-note { margin: 28px 0 0; font-size: 14px; max-width: 70ch; }
