.wycena-nagrobkow .wp-intro { padding-bottom: 32px; max-width: 760px; }
.wycena-nagrobkow h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.1; letter-spacing: 0; margin-bottom: 20px; }
.wp-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 48px; align-items: start; padding-top: 24px; }
.wp-step { border: 0; padding: 0 0 36px; margin: 0 0 32px; border-bottom: 1px solid var(--memorial-line); min-width: 0; }
.wp-step legend { font: 500 30px/1.2 var(--font-legquinne-vf); padding: 0; margin-bottom: 20px; }
.wp-step legend span { margin-right: 10px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: flex; flex-direction: column; gap: 6px; min-height: 88px; padding: 16px; border: 1px solid var(--memorial-line); background: #fff; }
.choice input:checked + .choice-body { outline: 2px solid var(--color-ink-stone, #262626); outline-offset: -2px; }
.choice input:focus-visible + .choice-body { outline: 3px solid #1f5fbf; outline-offset: 2px; }
.choice-body strong { font-weight: 600; }
.choice-body small { font-size: 15px; line-height: 1.4; }
.choice-chip { display: block; height: 40px; margin: -4px -4px 4px; }
.wp-note { font-size: 15px; margin: 16px 0 0; }
.wp-card { position: sticky; top: 24px; padding: 32px; background: var(--memorial-muted); border: 1px solid var(--memorial-line); }
.wp-card h2 { font-size: 28px; margin-bottom: 16px; }
.wp-opis { margin-bottom: 8px; }
.wp-cena { font: 500 clamp(38px, 4vw, 52px)/1.1 var(--font-legquinne-vf); margin: 8px 0 0; }
.wp-brutto, .wp-wymiar { font-size: 15px; margin: 4px 0 16px; }
.wp-zakres { font-size: 16px; margin-bottom: 24px; }
.wp-demo { margin-top: 24px; font-size: 14px; }
.wp-card .actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
@media (max-width: 900px) {
 .wp-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .wp-card { position: static; padding: 24px; }
 .choices { grid-template-columns: minmax(0, 1fr); }
 .choices-granit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .wp-step legend { font-size: 26px; }
}

/* Podgląd ma stały rozmiar także podczas ładowania i zmiany materiału. */
.wycena-nagrobkow .wp-summary { min-width: 0; }
.wycena-nagrobkow .wp-preview { margin: 0; border: 1px solid var(--memorial-line); border-bottom: 0; background: var(--memorial-muted); }
.wycena-nagrobkow .wp-preview-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; background: linear-gradient(#f3f2eb, #d6d9cb); }
.wycena-nagrobkow .wp-preview-layer { position: absolute; inset: 0; }
.wycena-nagrobkow .wp-preview-layer svg { display: block; width: 100%; height: 100%; }
.wycena-nagrobkow .wp-preview figcaption { display: flex; align-items: center; min-height: 76px; padding: 16px 24px; font-size: 15px; line-height: 1.4; border-top: 1px solid var(--memorial-line); }
.wycena-nagrobkow .wp-card { position: static; overflow-wrap: anywhere; }
.wycena-nagrobkow .choice { min-width: 0; height: 100%; }
.wycena-nagrobkow .choice-body { height: 100%; min-width: 0; transition: background-color 180ms ease, box-shadow 180ms ease; }
.wycena-nagrobkow .choice-body strong,
.wycena-nagrobkow .choice-body small { overflow-wrap: anywhere; }
.wycena-nagrobkow .choice-photo { display: block; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: -16px -16px 10px; }
.wycena-nagrobkow .choice-chip { display: block; width: 100%; height: 56px; object-fit: cover; margin: 0 0 8px; }
.wycena-nagrobkow .choice input:checked + .choice-body { background-color: #f5f2eb; box-shadow: inset 0 0 0 2px var(--color-ink-stone, #262626); }
.wycena-nagrobkow .choice input { z-index: 1; }
.wycena-nagrobkow .choice input:focus-visible + .choice-body { outline-offset: 3px; }
.wycena-nagrobkow .wp-cena { min-height: 1.1em; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
 .wycena-nagrobkow .choice:hover .choice-body { background-color: var(--memorial-muted); }
}
@media (min-width: 901px) {
 .wycena-nagrobkow #rodzaje { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .wycena-nagrobkow #rodzaje .choice-body { padding: 12px; }
 .wycena-nagrobkow #rodzaje .choice-photo { width: calc(100% + 24px); margin: -12px -12px 8px; }
 .wycena-nagrobkow #rodzaje strong { font-size: 16px; line-height: 1.4; }
 .wycena-nagrobkow #rodzaje small { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .wycena-nagrobkow .choice-body { transition: none; }
}

.wp-back { margin: 0 0 28px; }
.wp-back a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--memorial-line); background: #fff; text-decoration: none; }
.wp-back a:hover, .wp-back a:focus-visible { border-color: var(--color-ink-stone, #262626); }
.wp-nav-back { margin: 40px 0 0; }

.choice-thumb { display: block; margin: -4px -4px 8px; border: 1px solid var(--memorial-line); overflow: hidden; aspect-ratio: 4 / 3; }
.choice-thumb svg { display: block; width: 100%; height: 100%; }
.choice-meta { font-weight: 600; }
#modele.choices { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
