/* ADU Clean – podstrona „Montaż mebli i zabudów”. Ładowany tylko na tej stronie, po site.css. */

/* oś strony: „system 32”, rząd otworów pod półki jak w korpusie meblowym */
[data-motyw="system32"] { --tor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20'%3E%3Ccircle cx='8' cy='10' r='2.6'/%3E%3C/svg%3E"); --w-sz: 34px; --w-wy: 34px; --w-clip: none; --w-rad: 3px; --w-rot: rotate(0deg); --li: solid; }
.mz .sv-b figure { margin: 0; }
.mz .sv-b > .mz-uw { margin: clamp(22px, 2.2vw, 32px) 0 0; max-width: 82ch; }
.mz-uw a, .mz .sv-meta a, .mz-uklady a { color: #ffe2b5; text-decoration-color: rgba(242, 184, 102, .6); text-underline-offset: 3px; }
.mz .is-cena .sv-meta a { color: var(--lampa-t); text-decoration-color: currentColor; }

/* rodzaje mebli: dwie główne zabudowy i spis pozostałych */
.mz-glowne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.mz-foto { position: relative; overflow: hidden; border-radius: 16px; background: #0d222c; }
.mz-foto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mz-foto > div { padding: clamp(16px, 1.6vw, 22px) clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 24px); }
.mz-foto h3 { margin: 0 0 4px; font-size: clamp(22px, 2vw, 28px); font-weight: 300; }
.mz-foto p { margin: 0; font-size: 15px; line-height: 1.5; color: #dbe7ec; }
.mz-spis { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3.2vw, 46px); align-items: start; }
.mz-spis h3 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(242, 184, 102, .6); font-size: 19px; }
.mz-spis dl { margin: 0; }
.mz-spis dl > div { padding: 12px 0; border-bottom: 1px solid var(--kreska); }
.mz-spis dt { font-size: 16px; line-height: 1.35; color: #fff; }
.mz-spis dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }

/* schemat zabudowy */
.mz-anatomia { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.mz-rys { position: sticky; top: calc(var(--hdr-total) + 70px); padding: clamp(12px, 1.6vw, 24px); border: 1px solid var(--kreska); border-radius: 16px; background: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 28px 100%, #081c27; }
.mz-rys svg { display: block; width: 100%; height: auto; stroke: rgba(226, 238, 244, .82); stroke-width: 2.6; }
.mz-tlo { stroke: rgba(219, 234, 241, .42); }
.mz-korpus { stroke: rgba(226, 238, 244, .78); }
.mz-system { stroke: none; fill: rgba(219, 234, 241, .5); }
.mz-system path { stroke: rgba(219, 234, 241, .4); fill: none; }
.mz-pole { fill: rgba(219, 234, 241, .05); transition: fill .35s; }
.mz-laser { stroke-dasharray: 7 7; }
.mz-szyna { stroke-width: 5; }
.mz-rys [data-cz] { transition: opacity .35s, stroke .35s; }
.mz-nr circle { fill: #0c2531; stroke: rgba(242, 184, 102, .75); stroke-width: 1.6; transition: fill .35s; }
.mz-nr text { fill: var(--lampa); stroke: none; font: 600 22px var(--f-head); text-anchor: middle; transition: fill .35s; }
.mz-anatomia.is-zywa .mz-rys > svg > [data-cz]:not(.is-akt) { opacity: .62; }
.mz-anatomia.is-zywa .mz-rys > svg > [data-cz].is-akt { stroke: var(--lampa); stroke-width: 4; }
.mz-anatomia.is-zywa .mz-rys .is-akt .mz-pole { fill: rgba(242, 184, 102, .17); }
.mz-anatomia.is-zywa .mz-rys .is-akt .mz-szyna { stroke-width: 6; }
.mz-nr .is-akt circle { fill: var(--lampa); }
.mz-nr .is-akt text { fill: #241604; }
.mz-etapy { margin: 0; padding: 0; list-style: none; counter-reset: e; }
.mz-etapy li { position: relative; counter-increment: e; padding: 18px 0 18px 54px; border-top: 1px solid var(--kreska); }
.mz-etapy li:first-child { border-top: 0; padding-top: 4px; }
.mz-etapy li::before { content: counter(e); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(242, 184, 102, .65); border-radius: 3px; color: var(--lampa); font-size: 15px; font-weight: 600; transition: background .3s, color .3s; }
.mz-etapy li:first-child::before { top: 2px; }
.mz-etapy li.is-akt::before { background: var(--lampa); color: #241604; }
.mz-etapy h3 { margin: 0 0 4px; font-size: 19px; }
.mz-etapy p { margin: 0; font-size: 15px; line-height: 1.6; }

/* różnice w montażu */
.mz-tab { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.mz-tab thead th { padding: 0 20px 12px 0; border-bottom: 1px solid rgba(242, 184, 102, .55); font-size: 14px; font-weight: 400; text-align: left; color: #a9bdc7; }
.mz-tab tbody th, .mz-tab td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--kreska); text-align: left; vertical-align: top; }
.mz-tab tbody th { width: 23%; font-size: clamp(17px, 1.4vw, 19px); font-weight: 400; line-height: 1.3; color: #fff; }
.mz-tab td:nth-of-type(1) { width: 43%; color: #e2ecf0; }

/* drobne prace stolarskie */
.mz-stol { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); grid-template-rows: auto 1fr; gap: clamp(20px, 2.4vw, 36px) clamp(22px, 2.8vw, 46px); align-items: start; }
.mz-stol img, .mz-dem img { width: 100%; height: auto; border-radius: 16px; background: #0d222c; object-fit: cover; }
.mz-stol-b { grid-row: 1 / span 2; }
.mz-stol-b img { aspect-ratio: 4 / 5; }
.mz-stol-t { grid-column: 2 / -1; }
.mz-stol-t .sv-duzy { margin-bottom: 14px !important; }
.mz-stol-l .sv-zn { grid-template-columns: 1fr; }
/* demontaż */
.mz-dem { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 3.2vw, 52px); align-items: center; }
.mz-dem img { aspect-ratio: 4 / 3; }
.mz-lista { margin: 0; padding: 0; list-style: none; counter-reset: d; }
.mz-lista li { position: relative; counter-increment: d; padding: 0 0 18px 46px; line-height: 1.55; }
.mz-lista li:last-child { padding-bottom: 0; }
.mz-lista li::before { content: counter(d); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(242, 184, 102, .65); border-radius: 3px; background: #0c2531; color: var(--lampa); font-size: 13px; font-weight: 600; }
.mz-lista li::after { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 2px; width: 1px; background: rgba(242, 184, 102, .35); }
.mz-lista li:last-child::after { display: none; }
.mz-lista b { font-weight: 500; color: #fff; }

/* trzy układy prac */
.mz-uklady { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.mz-uklady h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(242, 184, 102, .6); font-size: clamp(19px, 1.6vw, 22px); }
.mz-uklady ol { margin: 0; padding: 0; list-style: none; }
.mz-uklady li { position: relative; padding: 7px 0 7px 34px; font-size: 15.5px; line-height: 1.45; color: #e2ecf0; }
.mz-uklady li::before { content: ""; position: absolute; left: 5px; top: 13px; width: 9px; height: 9px; border-radius: 2px; background: var(--lampa); }
.mz-uklady li.is-plus { color: #b9cad3; }
.mz-uklady li.is-plus::before { content: "+"; left: 0; top: 7px; display: grid; place-items: center; width: 19px; height: 19px; border: 1px dashed rgba(242, 184, 102, .75); border-radius: 3px; background: none; color: var(--lampa); font-size: 15px; line-height: 1; }
.mz-uklady li.is-kon { color: #fff; font-weight: 500; }
.mz-uklady li.is-kon::before { content: "✓"; left: 0; top: 7px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 3px; color: #241604; font-size: 12px; }

.mz .is-cena .sv-c-a .sv-duzy { margin-bottom: 18px; }
.mz .is-cena .sv-c-a .sv-zn { grid-template-columns: 1fr; }
.mz .is-cena .sv-c-a .sv-meta { margin: 18px 0 0; }
.mz .is-cena .sv-c-a .btn-row { margin-top: 24px; }

@media (max-width: 1100px) {
  .mz-spis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mz-anatomia, .mz-dem, .mz-uklady { grid-template-columns: minmax(0, 1fr); }
  .mz-rys { top: calc(var(--hdr-total) + 4px); z-index: 5; padding: 10px; border-radius: 12px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .85); }
  .mz-nr circle { r: 27px; }
  .mz-nr text { font-size: 28px; transform: translateY(3px); }
  .mz-rys svg { stroke-width: 3; }
  .mz-tab, .mz-tab tbody, .mz-tab tr, .mz-tab th, .mz-tab td { display: block; width: auto; }
  .mz-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mz-tab tbody tr { padding: 16px 0; border-top: 1px solid var(--kreska); }
  .mz-tab tbody tr:first-child { padding-top: 0; border-top: 0; }
  .mz-tab tbody th, .mz-tab td { width: auto !important; padding: 0; border: 0; }
  .mz-tab tbody th { margin-bottom: 8px; }
  .mz-tab td + td { margin-top: 10px; }
  .mz-tab td::before { content: attr(data-l); display: block; margin-bottom: 2px; font-size: 13px; color: #8fa7b2; }
  .mz-stol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-stol-b { grid-row: auto; }
  .mz-stol-t { grid-column: auto; align-self: center; }
}
@media (max-width: 640px) {
  .mz-glowne, .mz-spis { grid-template-columns: minmax(0, 1fr); }
  .mz-stol { grid-template-columns: minmax(0, 1fr); }
  .mz-stol-b img { aspect-ratio: 4 / 3; object-position: 50% 47%; }
}
@media (max-height: 560px) { .mz-rys { position: static; } }
@media (prefers-reduced-motion: reduce) { .mz-rys [data-cz], .mz-pole, .mz-nr circle, .mz-nr text, .mz-etapy li::before { transition: none; } }
