/* Propozycja: strona główna poniżej filmu. Film (.film*) i shared/home.css są nietknięte;
   wszystko tutaj działa tylko na klasach z prefiksem dw-. */

body.dw { font-size: 18px; line-height: 1.6; }
.dw h2 { font-size: clamp(34px, 3.8vw, 54px); letter-spacing: .012em; line-height: 1.08; margin-bottom: 28px; }
.dw h3 { font-size: 28px; letter-spacing: .01em; margin-bottom: 12px; }
.dw p { max-width: 62ch; }
.dw h2, .dw h3 { text-wrap: balance; }

.dw-sec { padding: 120px max(5vw, calc((100vw - 1240px) / 2)); }
.dw-eyebrow { font-size: 16px; letter-spacing: .04em; margin: 0 0 20px; }
.dw-head { max-width: 760px; margin-bottom: 56px; }
.dw-head > :last-child { margin-bottom: 0; }
.dw-fine { font-size: 16px; line-height: 1.5; color: #262626; margin: 32px 0 0; max-width: 72ch; }
.dw-hint { font-size: 16px; margin: 16px 0 0; }

/* Przyciski i linki: prostokąt z cienką ramką, link z podkreśleniem. */
.dw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 1px solid #262626; background: #262626; color: #e0ded8; text-decoration: none; font-size: 17px; border-radius: 0; cursor: pointer; }
.dw-btn:hover { background: transparent; color: #262626; }
.dw-btn-quiet { background: transparent; color: #262626; }
.dw-btn-quiet:hover { background: #262626; color: #e0ded8; }
.dw-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* 1. Wstęp */
.dw-intro { padding-block: 112px 120px; }
.dw-intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.dw-intro h2 { max-width: 18ch; margin: 0; font-size: clamp(38px, 4.6vw, 66px); }
.dw-intro-text > p:first-child { font-size: 20px; margin-bottom: 32px; }
.dw-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0; }

/* 2. WOW: płyta kamienia */
.dw-stone { background: #262626; color: #fff; padding-block: 112px 96px; }
.dw-stone-head { max-width: 760px; margin-bottom: 56px; }
.dw-stone-head h2 { color: #fff; }
.dw-stone-head p:last-child { margin-bottom: 0; }
.dw-stone .dw-fine { color: #cfcdc7; }
.dw-stone :focus-visible { outline-color: #fff; }

.dw-stones-static { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.dw-stones-static li { display: flex; gap: 16px; align-items: center; }
.dw-stones-static img { width: 72px; height: 72px; object-fit: cover; border: 1px solid rgba(255,255,255,.4); flex: none; }
.dw-stones-static strong { display: block; font-weight: 500; }
.dw-js .dw-stones-static { display: none; }

.dw-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.dw-stage { --cm: 18px; position: relative; height: 480px; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.dw-stage:active { cursor: grabbing; }
.dw-scene { perspective: 1200px; width: 100%; height: 100%; display: grid; place-items: center; }

@property --th { syntax: '<number>'; inherits: true; initial-value: 3; }
.dw-slab { --t: calc(var(--th) * var(--cm)); --w: calc(20 * var(--cm)); --rx: -30deg; --ry: -28deg; position: relative; width: var(--w); height: var(--t); transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: --th 520ms cubic-bezier(.2,.7,.2,1); will-change: transform; }
.dw-face { position: absolute; left: 0; width: var(--w); background-color: #555; background-image: var(--tex); background-size: var(--w) var(--w); backface-visibility: hidden; }
.dw-top { height: var(--w); top: calc((var(--t) - var(--w)) / 2); transform: rotateX(90deg) translateZ(calc(var(--t) / 2)); background-position: center; overflow: hidden; }
.dw-top::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--lx, 35%) var(--ly, 30%), rgba(255,255,255,.38), rgba(255,255,255,.08) 38%, transparent 62%); pointer-events: none; }
.dw-front, .dw-right, .dw-left, .dw-back { height: var(--t); top: 0; background-position: 0 100%; }
.dw-front { transform: translateZ(calc(var(--w) / 2)); }
.dw-front::after, .dw-right::after, .dw-left::after { content: ''; position: absolute; inset: 0; }
.dw-front::after { background: rgba(0,0,0,.34); }
.dw-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background-position: 40% 100%; }
.dw-right::after { background: rgba(0,0,0,.5); }
.dw-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.dw-left::after { background: rgba(0,0,0,.45); }
.dw-back { transform: rotateY(180deg) translateZ(calc(var(--w) / 2)); }
.dw-front { border-top: 1px solid rgba(255,255,255,.5); }
.dw-ground { position: absolute; left: 50%; top: 62%; width: calc(20 * var(--cm) * 1.45); height: calc(20 * var(--cm) * .42); transform: translate(-50%, -50%); background: rgba(0,0,0,.4); border-radius: 50%; filter: blur(14px); pointer-events: none; }
.dw-readout { position: absolute; left: 0; bottom: 12px; font-size: 16px; letter-spacing: .02em; color: #e8e6e0; }
.dw-readout strong { font-weight: 500; color: #fff; }

.dw-panel { min-width: 0; }
.dw-panel fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.dw-panel legend { padding: 0; margin-bottom: 14px; font-size: 16px; letter-spacing: .04em; }
.dw-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dw-swatch, .dw-thick label { position: relative; display: block; }
.dw-swatch input, .dw-thick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dw-swatch input + span { display: block; aspect-ratio: 1; min-height: 56px; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.4); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 150ms; }
.dw-swatch input:checked + span { outline-color: #fff; }
.dw-swatch input:focus-visible + span, .dw-thick input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.dw-thick { display: flex; gap: 12px; }
.dw-thick label { flex: 1; }
.dw-thick span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid rgba(255,255,255,.5); font-size: 17px; }
.dw-thick input:checked + span { background: #fff; color: #262626; }
.dw-stone-name { font-size: 34px; margin: 0 0 8px; color: #fff; }
.dw-stone-desc { margin: 0 0 12px; }
.dw-stone-price { margin: 0 0 24px; font-size: 17px; }
.dw-stone .dw-btn { background: #e0ded8; color: #262626; border-color: #e0ded8; }
.dw-stone .dw-btn:hover { background: transparent; color: #fff; border-color: #fff; }
.dw-thick-note { font-size: 16px; margin: 14px 0 0; }

/* 3. Produkty */
.dw-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; }
.dw-product { position: relative; display: flex; flex-direction: column; }
.dw-product img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 24px; }
.dw-product p { margin: 0 0 12px; }
.dw-product .dw-price { font-size: 16px; }
.dw-product .dw-price strong { font-weight: 600; white-space: nowrap; }
.dw-product .dw-link { align-self: flex-start; margin-top: auto; }
.dw-product .dw-link::after { content: ''; position: absolute; inset: 0; }
.dw-product:focus-within { outline: 2px solid currentColor; outline-offset: 8px; }
.dw-product:focus-within .dw-link:focus-visible { outline: none; }

/* 4. Proces */
.dw-process { border-top: 1px solid #262626; }
.dw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.dw-steps li { border-top: 1px solid #262626; padding-top: 24px; }
.dw-num { display: block; font: 500 17px/1 var(--font-basis-grotesque-pro); margin-bottom: 20px; }
.dw-steps h3 { font-size: 26px; }
.dw-steps p { margin: 0; font-size: 17px; }

/* 5. Ilustracje */
.dw-examples { padding-top: 40px; }
.dw-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dw-gallery figure { margin: 0; min-width: 0; }
.dw-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.dw-gallery figcaption { margin-top: 12px; font-size: 16px; }

/* 6. Kontakt */
.dw-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 72px; border-top: 1px solid #262626; }
.dw-phone { display: inline-flex; align-items: center; min-height: 56px; font: 500 clamp(36px, 4.2vw, 56px)/1.1 var(--font-legquinne-vf); letter-spacing: .02em; margin-bottom: 8px; }
.dw-mail { margin: 0 0 20px; overflow-wrap: anywhere; }
.dw-mail a, .dw .footer div > a[data-firma="email"] { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.dw-contact address { margin-bottom: 20px; }
.dw-contact address a { text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.dw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; max-width: none; }
.dw-map { grid-column: 1 / -1; min-height: 120px; }
.dw-map iframe { display: block; width: 100%; height: 360px; border: 0; }
.dw-map .dw-fine { margin-top: 12px; }

/* Wejście sekcji: tylko opacity, bez ruchu (home.js dodaje .pending). */
.dw .reveal.pending { transform: none; }

@media (max-width: 1099px) {
  .dw-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .dw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.dw { font-size: 17px; }
  .dw-sec { padding: 72px 24px; }
  .dw-intro { padding-block: 72px; }
  .dw-intro-grid, .dw-contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dw-intro-text > p:first-child { font-size: 18px; }
  .dw-head, .dw-stone-head { margin-bottom: 36px; }
  .dw-stone { padding-block: 72px; }
  .dw-stones-static { grid-template-columns: minmax(0, 1fr); }
  .dw-stage { --cm: 11px; height: 330px; }
  .dw-product-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .dw-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dw-gallery { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dw-cta-row .dw-btn { width: 100%; }
  .dw-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .dw-actions .dw-btn { width: 100%; }
  .dw-examples { padding-top: 24px; }
}
@media (max-width: 359px) { .dw-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .dw-stage { --cm: 9px; } }
/* Stopka z home.css ma 13 px; w propozycji 16 px (czytelność). */
.dw .footer > p { font-size: 16px; }
.dw .footer > p a { display: inline-flex; align-items: center; min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
  .dw-slab { transition: none; }
  .dw-stage { cursor: default; }
}
