/* Общая основа всех вариантов: сброс, чертёж, расписание, просмотр картинок. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }
body { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus, #ffd23f); outline-offset: 3px; }

/* --- чертёж «Прео 8» --- */
.plan { display: block; width: 100%; height: auto; overflow: visible; }
.plan .L-arch .s.t { stroke: var(--p-arch, #000); stroke-width: var(--p-arch-w, 1.8); }
.plan .L-arch .s.b { stroke: var(--p-arch-b, var(--p-arch, #000)); stroke-width: var(--p-arch-bw, 3.6); }
.plan .L-wire .s { stroke: var(--p-wire, #000); stroke-width: var(--p-wire-w, 3.2); }
.plan .L-wire .f { fill: var(--p-wire, #000); }
.plan .L-lamp .s { stroke: var(--p-lamp, #000); stroke-width: 6; }
.plan .L-emerg .s { stroke: var(--p-emerg, #000); stroke-width: 2.6; }
.plan .L-tray .s { stroke: var(--p-tray, #000); stroke-width: 2.6; }
.plan .L-zone .s { stroke: var(--p-zone, #000); stroke-width: 2; }
.plan .lamps circle { fill: var(--p-glow, #ffd23f); opacity: 0; }

/* чертёж рисуется сам: секторы слева направо по дуге */
.plan.draw .L-arch .s { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: esn-draw var(--draw-dur, 1.1s) cubic-bezier(.55, .1, .3, 1) calc(var(--i) * var(--draw-step, .12s)) forwards; }
@keyframes esn-draw { to { stroke-dashoffset: 0; } }

/* --- расписание --- */
.sched-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.sched-days { list-style: none; padding: 0; }
.tp-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.tp-bar span { display: block; }

/* --- вопросы --- */
.faq details summary { cursor: pointer; list-style: none; }
.faq details summary::-webkit-details-marker { display: none; }

/* --- просмотр картинок --- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 10, 20, .92); display: grid; place-items: center; padding: 56px 16px 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb figure { max-width: min(1600px, 100%); max-height: 100%; display: grid; gap: 10px; }
.lb img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; margin: 0 auto; background: #fff; border-radius: 4px; }
.lb figcaption { color: #cfd8ea; text-align: center; font-size: 14px; }
.lb-close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; border-radius: 50%; }

/* --- метка прототипа: места, которые заказчик заполнит в админке --- */
.todo { outline: 1px dashed rgba(255, 140, 0, .9); outline-offset: 2px; border-radius: 2px; }
.proto-bar { position: fixed; left: 12px; bottom: 12px; z-index: 900; font: 12px/1.3 system-ui, sans-serif; background: rgba(20, 20, 20, .85); color: #fff; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.proto-bar:hover { background: #000; }
/* режим снимка прототипа (?shot=) */
html.proto-shot .proto-bar { display: none; }
html.proto-shot * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.proto-shot *, html.proto-shot *::before, html.proto-shot *::after { transition: none !important; }
h1, h2, h3 { overflow-wrap: break-word; }
.burger { flex: none; }
.btn { text-align: center; }
