/* Постройки деревень в 3D (build3d.js) */
.b3d{--b3d-sky:#9cc4e4;margin:18px 0}
.b3d-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px;margin-bottom:10px}
.b3d-bar label{display:flex;flex-direction:column;gap:4px;font-size:.9rem;color:var(--ink-2,inherit)}
.b3d-bar select{width:100%}
.b3d-stage{position:relative;aspect-ratio:4/3;max-height:520px;width:100%;background:var(--b3d-sky);overflow:hidden;touch-action:none;box-shadow:inset 0 0 0 2px rgba(0,0,0,.25)}
.b3d-pv{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:auto}
.b3d-go{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:2}
.b3d.is-on .b3d-go,.b3d.is-on .b3d-pv{display:none}
.b3d-canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block}
.b3d-reset{position:absolute;z-index:2;right:10px;top:10px;display:none}
.b3d.is-on .b3d-reset{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:0;min-height:0;padding:0}
/* иконка «вернуть вид»: Lucide rotate-ccw v0.468.0 (ISC), цвет из currentColor кнопки */
.b3d-reset::before{content:'';width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat}
.b3d-ctl{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:12px 0 4px}
.b3d-ctl input[type=range]{width:100%;accent-color:var(--grass,#86d562)}
.b3d:not(.is-on) .b3d-ctl{opacity:.55}
.b3d-info{margin:8px 0}
.b3d-mats-h{margin:10px 0 6px;font-weight:600}
.b3d-mats ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:4px 16px}
.b3d-mats li,.entry .b3d-mats li{margin:0;padding-left:0;display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-bottom:1px solid rgba(127,127,127,.2);font-variant-numeric:tabular-nums}
.b3d-mats li::before{display:none!important}
.b3d-tbl td,.b3d-tbl th{font-variant-numeric:tabular-nums}
@media (max-width:560px){.b3d-bar{grid-template-columns:minmax(0,1fr)}}
