/* ============================================================
   Lapin Cherry v9 - core.css
   Только структурные правила ядра (виды, печать, canvas, модалки, тост).
   Визуальный стиль chic - в base.css, детский - в kids.css.
   ============================================================ */

/* виды: неактивные панели скрыты */
[data-view-pane][hidden]{ display:none !important; }

/* в детском виде chic-шапка и chic-футер не показываются: у kids свои */
html[data-view="kids"] .site-header,
html[data-view="kids"] .site-footer{ display:none !important; }

/* пока ядро не выбрало вид, не мигаем чужими панелями */
html:not(.lc-ready) [data-view-pane]:not([data-view-pane="main"]){ display:none; }
/* a deep link to another view (/eventy, /detske-oslavy): the main pane is not painted (nor its images fetched)
   before core shows the right one */
html:not(.lc-ready):not([data-view="main"]) :is([data-view-pane="main"], .site-footer){ display:none; }

/* canvas конфетти поверх всего, не ловит клики */
#confetti-canvas{ position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:300; }

/* модалки: фиксированный слой; скрытие через [hidden] */
.modal{ position:fixed; inset:0; z-index:250; display:grid; place-items:center; padding:16px; }
.modal[hidden]{ display:none; }
.modal .modal-back{ position:absolute; inset:0; border:0; padding:0; margin:0; cursor:pointer; background:rgba(20,12,14,.5); }
.modal .modal-card{ position:relative; max-height:calc(100dvh - 32px); overflow:auto; }
html.modal-open, html.modal-open body{ overflow:hidden; }

/* тост */
#toast{ position:fixed; left:50%; bottom:24px; z-index:320; transform:translate(-50%, 140%); opacity:0; pointer-events:none; }
#toast.show{ transform:translate(-50%, 0); opacity:1; }
@media (prefers-reduced-motion:no-preference){ #toast{ transition:transform .35s ease, opacity .35s ease; } }

/* печатная смета: на экране не видна */
#print-quote{ display:none; }
@media print{
  body.print-quote > *{ display:none !important; }
  body.print-quote > #print-quote{ display:block !important; }
  body.print-quote{ background:#fff !important; }
  html.lc-printing{ background:#fff !important; }   /* <html> carries the scroll world's colour (night under the adult hero) */
  #print-quote{ font-family:Georgia, 'Times New Roman', serif; color:#222; padding:20px; }
  #print-quote h1{ font-size:22px; margin:0 0 6px; }
  #print-quote h2{ font-size:15px; margin:18px 0 6px; }
  #print-quote table{ width:100%; border-collapse:collapse; margin-top:12px; font-size:14px; }
  #print-quote td{ padding:6px 4px; border-bottom:1px solid #ddd; vertical-align:top; }
  #print-quote td:last-child{ text-align:right; white-space:nowrap; }
  #print-quote .pq-total td{ font-weight:700; font-size:16px; border-bottom:2px solid #222; }
  #print-quote .pq-note{ margin-top:18px; font-size:12px; color:#555; }
}

/* ссылка «к содержанию» */
.skip-link{ position:absolute; left:-9999px; top:8px; z-index:400; }
.skip-link:focus{ left:8px; }
