/* Пакет 48: сезонный декор, куки-панель, виджет контактов. Стилистика 46-й. */

/* --- Куки-панель: маленькая, аккуратная --- */
.cookie-panel48 { position: fixed; z-index: 140; left: 16px; right: 16px; bottom: 16px; display: none; max-width: 380px; margin-inline: auto; padding: 18px 20px; border: 1px solid rgba(255, 122, 0, 0.35); border-radius: 18px; background: #14100c; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55); }
.cookie-panel48.is-visible { display: block; }
.cookie-panel48 h2 { margin: 0 0 6px; font: 700 15px/1.3 Manrope, sans-serif; color: #fff; }
.cookie-panel48 p { margin: 0 0 12px; font: 400 12.5px/1.5 Manrope, sans-serif; color: rgba(255, 255, 255, 0.6); }
.cookie-panel48 .cookie-actions48 { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-panel48 .cookie-actions48 button { flex: 1 1 120px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.75); font: 700 12px Manrope, sans-serif; cursor: pointer; transition: all 0.2s; }
.cookie-panel48 .cookie-actions48 button:hover { border-color: rgba(255, 122, 0, 0.6); color: #fff; }
.cookie-panel48 .cookie-actions48 button.primary48 { background: #ff7a00; border-color: #ff7a00; color: #fff; }
.cookie-panel48 .cookie-actions48 button.primary48:hover { background: #ff8f26; }

/* --- Сезонный слой (снег 1.12-31.01, гирлянды 15.12-15.01) --- */
.season-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.snowflake { position: absolute; top: -8%; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%; background: rgba(255, 255, 255, var(--alpha)); filter: blur(var(--blur)); animation: snow-fall var(--duration) linear var(--delay) infinite; }
.season-lights { position: absolute; top: 8px; right: 0; left: 0; display: flex; justify-content: space-around; padding: 0 3%; }
.season-lights::before { position: absolute; top: 6px; right: 0; left: 0; height: 1px; background: rgba(255, 255, 255, 0.36); content: ""; }
.season-light { position: relative; width: 8px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--bulb); box-shadow: 0 0 14px 4px var(--bulb); animation: bulb-glow 1.8s ease-in-out var(--delay) infinite alternate; }
@keyframes snow-fall { to { transform: translate3d(var(--drift), 115vh, 0) rotate(270deg); } }
@keyframes bulb-glow { to { opacity: 0.38; box-shadow: 0 0 5px 1px var(--bulb); } }

/* --- Виджет контактов: одна кнопка, по клику раскрываются остальные --- */
.contact-fab48 { position: fixed; z-index: 110; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-fab48 .fab-items48 { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-fab48 .fab-items48 > a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(20, 16, 12, 0.95); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(10px) scale(0.85); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; }
.contact-fab48 .fab-items48 > a:hover { border-color: #ff7a00; background: #ff7a00; }
.contact-fab48 .fab-items48 > a svg { width: 20px; height: 20px; }
.contact-fab48.is-open .fab-items48 > a { opacity: 1; transform: none; pointer-events: auto; }
.contact-fab48.is-open .fab-items48 > a:nth-child(1) { transition-delay: 0.10s; }
.contact-fab48.is-open .fab-items48 > a:nth-child(2) { transition-delay: 0.07s; }
.contact-fab48.is-open .fab-items48 > a:nth-child(3) { transition-delay: 0.04s; }
.contact-fab48.is-open .fab-items48 > a:nth-child(4) { transition-delay: 0.01s; }
.contact-fab48 .fab-main48 { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: none; background: #ff7a00; color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 122, 0, 0.45); transition: transform 0.2s ease, background 0.2s ease; }
.contact-fab48 .fab-main48:hover { background: #ff8f26; transform: scale(1.05); }
.contact-fab48 .fab-main48 svg { width: 26px; height: 26px; transition: transform 0.25s ease; }
.contact-fab48.is-open .fab-main48 svg { transform: rotate(135deg); }

@media (max-width: 640px) {
    .contact-fab48 { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .cookie-panel48 { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .snowflake, .season-light { animation: none !important; }
    .contact-fab48 .fab-items48 > a { transition: none !important; }
}

/* --- Боковой скролл: AOS-предпозиции не должны вылезать за экран (дизайн не меняют) --- */
html, body { overflow-x: hidden; overflow-x: clip; }

/* --- Верхние слои (меню на мобиле, модалка брони): куки-баннер и виджет контактов
       не перекрывают пункты меню и кнопки диалога. Возвращаются после закрытия. --- */
body:has(header [x-show="mobileMenu"]:not([style*="display: none"])) .cookie-panel48,
body:has(header [x-show="mobileMenu"]:not([style*="display: none"])) .contact-fab48,
body:has(#vorsino-booking [role="dialog"]:not([style*="display: none"])) .cookie-panel48,
body:has(#vorsino-booking [role="dialog"]:not([style*="display: none"])) .contact-fab48 {
    display: none !important;
}

