/* МАЙТ — коледна украса 2026/27 „Зимна нощ над Варна“ (WebFactor) — v4 (03.12): ефектна версия
   Зарежда се само от xmas.js (той проверява датата: до 10.01.2027 вкл., Europe/Sofia).
   Всичко е с префикс .mx-, pointer-events:none, aria-hidden, абсолютно позиционирано → без layout shift.
   Състав: (1) живо сияние + звезди + снежен прах (canvas) в hero-то; (2) лампички между сградите, които се палят; (3) звезда над △ в логото
   (+ голямата звезда над голямото лого); (4) ключодържател „Весели празници“; (5) скреж + кристали по картите; (6) сияние + снежен прах
   в тъмните зони и страничните ленти; (7) звезда към заглавията; (8) блестящ поздрав във футъра. */

.mx-on [class^="mx-"], .mx-on [class*=" mx-"] { pointer-events: none; box-sizing: border-box; }
.mx-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- 1. Зимна нощ + живо северно сияние в hero-то (вътре във всеки панел, под надписите) ---------- */
.mx-sky {
  position: absolute; top: 0; height: 100%;
  left: var(--mx-x, 0px); width: var(--mx-w, 100%);
  z-index: 16; /* над снимката (auto) и тъмния градиент (15), под надписите (30) */
  overflow: hidden;
}
.mx-sky__night {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 12, 28, .84) 0%, rgba(6, 26, 52, .62) 22%, rgba(9, 44, 83, .28) 45%, rgba(9, 44, 83, 0) 68%);
}
.mx-sky__au {
  position: absolute; left: -30%; width: 160%; top: -6%; height: 48%;
  opacity: .6; /* v9: без filter:blur и mix-blend-mode и НЕПОДВИЖНО (както при reduced-motion) — огромните движещи се слоеве (5 панела × 4) бяха най-тежкото;
                   движението в небето остава от платното: прах, проблясващи и падащи звезди */
}
.mx-sky__au--1 {
  background:
    radial-gradient(60% 38% at 30% 62%, rgba(60, 235, 190, .9), rgba(60, 235, 190, 0) 70%),
    radial-gradient(45% 30% at 58% 48%, rgba(25, 204, 120, .8), rgba(25, 204, 120, 0) 72%),
    radial-gradient(40% 34% at 82% 58%, rgba(70, 150, 255, .75), rgba(70, 150, 255, 0) 70%);
  transform: skewY(-6deg);
}
.mx-sky__au--2 {
  top: 4%; height: 36%; opacity: .22;
  background:
    radial-gradient(50% 40% at 20% 50%, rgba(140, 110, 255, .75), rgba(140, 110, 255, 0) 70%),
    radial-gradient(55% 36% at 64% 40%, rgba(90, 230, 255, .75), rgba(90, 230, 255, 0) 72%);
  transform: skewY(5deg);
}
@media (max-width: 1023px) { .mx-sky__au { opacity: .74; } .mx-sky__au--2 { opacity: .5; } } /* v9: на тесен екран без screen-смесването сиянието иначе е по-бледо от преди */
/* вълна, която „пулсира“ през небето */
.mx-sky__au--3 {
  top: 10%; height: 22%; opacity: .0;
  background: radial-gradient(42% 46% at 50% 50%, rgba(120, 255, 215, .85), rgba(120, 255, 215, 0) 70%);
  display: none; /* v9: беше само анимирана вълна (иначе невидима) */
}
/* тънки „завеси“ — вертикални лъчи, характерни за сиянието; вълнуват се */
.mx-sky__rays {
  position: absolute; left: -20%; width: 140%; top: 0; height: 40%;
  opacity: .14; /* v9: без blur лъчите иначе изглеждат като райета */
  background:
    repeating-linear-gradient(90deg, rgba(120, 255, 210, 0) 0 20px, rgba(120, 255, 210, .45) 28px, rgba(120, 255, 210, 0) 39px, rgba(120, 255, 210, 0) 61px),
    repeating-linear-gradient(90deg, rgba(150, 230, 255, 0) 0 38px, rgba(150, 230, 255, .3) 47px, rgba(150, 230, 255, 0) 58px, rgba(150, 230, 255, 0) 97px);
  -webkit-mask-image: radial-gradient(42% 58% at 42% 38%, #000 10%, transparent 72%);
          mask-image: radial-gradient(42% 58% at 42% 38%, #000 10%, transparent 72%);
}
/* фини звезди в горната част (два слоя, мигат на различен ритъм) */
.mx-sky__stars {
  position: absolute; left: 0; right: 0; top: 86px; height: 36%;
  background-image:
    radial-gradient(1.2px 1.2px at 7% 18%, #fff 98%, transparent),
    radial-gradient(1px 1px at 16% 8%, #dff4ff 98%, transparent),
    radial-gradient(1.4px 1.4px at 27% 30%, #fff 98%, transparent),
    radial-gradient(1px 1px at 38% 12%, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 51% 24%, #e8fbff 98%, transparent),
    radial-gradient(1px 1px at 63% 6%, #fff 98%, transparent),
    radial-gradient(1.4px 1.4px at 72% 20%, #fff 98%, transparent),
    radial-gradient(1px 1px at 84% 11%, #dff4ff 98%, transparent),
    radial-gradient(1.2px 1.2px at 93% 28%, #fff 98%, transparent),
    radial-gradient(1px 1px at 46% 38%, #fff 98%, transparent),
    radial-gradient(1px 1px at 22% 44%, #fff 98%, transparent),
    radial-gradient(1px 1px at 88% 42%, #fff 98%, transparent);
  opacity: .85; /* v9: неподвижни (проблясванията са в платното) */
}
.mx-sky__stars--2 {
  top: 70px;
  background-image:
    radial-gradient(1.6px 1.6px at 11% 33%, #fff 98%, transparent),
    radial-gradient(1px 1px at 33% 4%, #e8fbff 98%, transparent),
    radial-gradient(1.6px 1.6px at 57% 15%, #fff 98%, transparent),
    radial-gradient(1px 1px at 68% 36%, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 79% 3%, #fff 98%, transparent),
    radial-gradient(1px 1px at 97% 17%, #dff4ff 98%, transparent),
    radial-gradient(1.2px 1.2px at 3% 6%, #fff 98%, transparent),
    radial-gradient(1px 1px at 42% 27%, #fff 98%, transparent);
}

/* снежен прах в hero-то: над снимката/сиянието, под надписите (30) */
.mx-fx--hero { z-index: 17; }

/* ---------- 2. Лампички по фасадните линии между панелите (компютър) — палят се една след друга ---------- */
.mx-lights { position: absolute; top: 0; left: 0; width: 0; height: 100%; z-index: 20; }
.mx-strand {
  position: absolute; top: 0; width: 14px; margin-left: -7px; height: var(--mx-len, 40%);
  background: linear-gradient(90deg, transparent 6.5px, rgba(255, 255, 255, .35) 6.5px, rgba(255, 255, 255, .35) 7.5px, transparent 7.5px);
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent);
          mask-image: linear-gradient(180deg, #000 85%, transparent);
}
.mx-strand i {
  position: absolute; left: 3.5px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffbe9, #ffd98a 60%, #f3b14b);
  box-shadow: 0 0 6px 2px rgba(255, 214, 140, .8), 0 0 18px 5px rgba(255, 200, 110, .38);
  opacity: 0;
  animation: mx-lit .7s ease-out var(--d, 0s) forwards; /* v9: палят се една след друга и остават да светят (без безкрайно мигане на всяка — по един композитен слой на лампичка + застъпване с надписите) */
}
.mx-strand i.mx-b { background: radial-gradient(circle at 40% 35%, #f4fdff, #b9e6ff 60%, #78c6f5); box-shadow: 0 0 6px 2px rgba(170, 225, 255, .8), 0 0 18px 5px rgba(150, 210, 255, .38); }
@keyframes mx-lit { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
@media (min-width: 1800px) { .mx-strand i { width: 8px; height: 8px; left: 3px; } }

/* ---------- 3. Кристална звезда над △ в логото (с периодичен отблясък) ---------- */
.mx-star {
  position: absolute; z-index: 11; width: var(--mx-s, 20px); height: var(--mx-s, 20px);
  left: var(--mx-sx, 0); top: var(--mx-sy, 0);
  transform: translate(-50%, -50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.55' stop-color='%23eaf8ff'/%3E%3Cstop offset='1' stop-color='%23a9dcff'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0-48 L6-6 L48 0 L6 6 L0 48 L-6 6 L-48 0 L-6-6Z'/%3E%3Cpath fill='url(%23g)' opacity='.85' d='M0 0 L22-22 L4 0 L22 22 L0 4 L-22 22 L-4 0 L-22-22 L0-4 Z' transform='scale(1.05)'/%3E%3Ccircle r='5' fill='%23fff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 3px rgba(180, 230, 255, .95)) drop-shadow(0 0 9px rgba(120, 200, 255, .6));
  animation: mx-star 4.5s ease-in-out infinite;
}
.mx-star::after { /* фин ореол */
  content: ""; position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 240, 255, .38), rgba(200, 240, 255, 0) 62%);
}
/* отблясък: дълги тънки лъчи, които проблясват на всеки ~6 s */
.mx-star__fl, .mx-bigstar__fl {
  position: absolute; left: 50%; top: 50%; width: 520%; height: 520%; transform: translate(-50%, -50%) scale(0);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(220, 245, 255, .95) 50%, rgba(255, 255, 255, 0)) center/100% 1.5px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(220, 245, 255, .85) 50%, rgba(255, 255, 255, 0)) center/1.5px 70% no-repeat,
    radial-gradient(circle, rgba(220, 245, 255, .55), rgba(220, 245, 255, 0) 22%);
  animation: mx-flare 6.5s ease-in-out 1.2s infinite;
}
.mx-star--dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23bfe6ff'/%3E%3Cstop offset='.5' stop-color='%233d93d6'/%3E%3Cstop offset='1' stop-color='%23092c53'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0-48 L6-6 L48 0 L6 6 L0 48 L-6 6 L-48 0 L-6-6Z'/%3E%3Cpath fill='url(%23g)' opacity='.85' d='M0 0 L22-22 L4 0 L22 22 L0 4 L-22 22 L-4 0 L-22-22 L0-4 Z' transform='scale(1.05)'/%3E%3Ccircle r='5' fill='%23e9f7ff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 2px rgba(120, 200, 255, .9)) drop-shadow(0 0 6px rgba(80, 170, 255, .55));
}
.mx-star--dark::after { background: radial-gradient(circle, rgba(120, 200, 255, .30), rgba(120, 200, 255, 0) 62%); }
.mx-star--lt { filter: drop-shadow(0 0 .6px rgba(8, 40, 80, .75)) drop-shadow(0 1px 2px rgba(8, 40, 80, .28)); }
.mx-star--lt.mx-star--dark { filter: drop-shadow(0 0 1.5px rgba(60, 150, 230, .45)); }
.mx-star--lt::after { display: none; }
.mx-star--lt .mx-star__fl, .mx-bigstar__fl {
  background:
    linear-gradient(90deg, rgba(42, 120, 200, 0), rgba(42, 140, 210, .75) 50%, rgba(42, 120, 200, 0)) center/100% 1.5px no-repeat,
    linear-gradient(180deg, rgba(42, 120, 200, 0), rgba(42, 140, 210, .6) 50%, rgba(42, 120, 200, 0)) center/1.5px 70% no-repeat,
    radial-gradient(circle, rgba(90, 180, 240, .35), rgba(90, 180, 240, 0) 22%);
}
@keyframes mx-star { 0%, 100% { transform: translate(-50%, -50%) scale(.86) rotate(0deg); } 50% { transform: translate(-50%, -50%) scale(1.06) rotate(12deg); } }
@keyframes mx-flare { 0%, 76%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; } 84% { transform: translate(-50%, -50%) scale(1) rotate(8deg); opacity: 1; } 92% { transform: translate(-50%, -50%) scale(.6) rotate(14deg); opacity: .4; } }

/* голямата звезда над △ на голямото лого (начална, бяла секция) */
.mx-bigstar {
  position: absolute; z-index: 3; width: var(--mx-s, 30px); height: var(--mx-s, 30px); transform: translate(-50%, -50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2314a88f'/%3E%3Cstop offset='.55' stop-color='%232a78c8'/%3E%3Cstop offset='1' stop-color='%231d4f8f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0-50C2.6-9 9-2.6 50 0 9 2.6 2.6 9 0 50-2.6 9-9 2.6-50 0-9-2.6-2.6-9 0-50Z'/%3E%3Cpath fill='url(%23g)' opacity='.55' transform='rotate(45) scale(.5)' d='M0-50C2.6-9 9-2.6 50 0 9 2.6 2.6 9 0 50-2.6 9-9 2.6-50 0-9-2.6-2.6-9 0-50Z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 6px rgba(60, 160, 230, .45));
  animation: mx-big 5s ease-in-out infinite;
}
.mx-bigstar__fl { animation-delay: 3s; animation-duration: 7s; }
@keyframes mx-big { 0%, 100% { transform: translate(-50%, -50%) scale(.9) rotate(0deg); } 50% { transform: translate(-50%, -50%) scale(1.06) rotate(8deg); } }

/* ---------- 4. Ключодържател-къщичка „Весели празници“ (с блясък, който минава по него) ---------- */
.mx-tag { position: absolute; z-index: 31; width: 40px; transform-origin: 50% 0; animation: mx-sway 5.5s ease-in-out infinite alternate; }
.mx-tag__str { position: absolute; z-index: 2; left: 50%; top: 0; width: 1px; height: calc(var(--mx-str, 18px) + 11px); background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(220, 240, 255, .95)); }
.mx-tag__ring { position: absolute; z-index: 3; left: 50%; top: calc(var(--mx-str, 18px) + 10px); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #d7eefb; box-shadow: 0 0 6px rgba(160, 215, 255, .75); }
.mx-tag__body {
  position: relative; display: block; margin-top: var(--mx-str, 18px); width: 40px; height: 196px; overflow: hidden;
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 196'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='.35' y2='1'%3E%3Cstop offset='0' stop-color='%23123d6b'/%3E%3Cstop offset='1' stop-color='%23061629'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 1 L39 16 V191 Q39 195 35 195 H5 Q1 195 1 191 V16 Z' fill='url(%23b)' stroke='%23bfe3fa' stroke-width='1.2'/%3E%3Cpath d='M20 5.5 L35 17.5 V188 Q35 191 32 191 H8 Q5 191 5 188 V17.5 Z' fill='none' stroke='%23bfe3fa' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='20' cy='17' r='4' fill='%23030b16' stroke='%23bfe3fa' stroke-width='.8'/%3E%3C/svg%3E");
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}
.mx-tag__gl { position: absolute; inset: 1px; overflow: hidden; -webkit-clip-path: polygon(50% 0, 100% 8%, 100% 100%, 0 100%, 0 8%); clip-path: polygon(50% 0, 100% 8%, 100% 100%, 0 100%, 0 8%); }
.mx-tag__gl::before { content: ""; position: absolute; left: -20%; width: 140%; top: 0; height: 70px; transform: translateY(-80px) skewY(-28deg);
  background: linear-gradient(180deg, rgba(200, 240, 255, 0), rgba(200, 240, 255, .30) 50%, rgba(200, 240, 255, 0));
  animation: mx-tshine 7s ease-in-out 2s infinite; }
@keyframes mx-tshine { 0% { transform: translateY(-80px) skewY(-28deg); } 30%, 100% { transform: translateY(240px) skewY(-28deg); } }
.mx-tag__txt {
  position: absolute; left: 0; right: 0; top: 30px; bottom: 30px;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .2em; line-height: 1;
  text-transform: uppercase; color: #fff; white-space: nowrap;
}
.mx-tag__flake { position: absolute; left: 50%; bottom: 10px; width: 13px; height: 13px; margin-left: -6.5px; opacity: .9; }
@keyframes mx-sway { 0% { transform: rotate(-3deg); } 100% { transform: rotate(3deg); } }
.side--l > .mx-tag { left: 20px; top: 80px; }
.mx-tag--m { left: 22px; top: 80px; width: 36px; }
.mx-tag--m .mx-tag__body { width: 36px; height: 168px; }
.mx-tag--m .mx-tag__txt { font-size: 9px; top: 27px; bottom: 27px; }
.mx-tag--m .mx-tag__ring { top: calc(var(--mx-str, 18px) + 8px); width: 13px; height: 13px; margin-left: -6.5px; }
.mx-tag--m .mx-tag__flake { bottom: 8px; width: 11px; height: 11px; margin-left: -5.5px; }
@media (max-height: 600px) { .side--l > .mx-tag { display: none; } }
.mx-tag--off { display: none !important; }
.mx-tag--foot { left: 34%; top: 0; z-index: 1; } /* под фиксираните бутони (търсене, телефон) */

/* ---------- 5. Ледени кристали + скреж по картите с проекти ---------- */
.mx-flake {
  position: absolute; z-index: 31; top: 12px; left: 12px; width: 46px; height: 46px; opacity: .9;
  filter: drop-shadow(0 0 4px rgba(160, 220, 255, .8));
  animation: mx-flake 9s ease-in-out infinite;
}
.mx-flake--s { top: 62px; left: 40px; width: 20px; height: 20px; opacity: .7; animation-duration: 12s; animation-direction: reverse; }
.mx-on svg.mx-fl { display: block !important; position: static !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; overflow: visible; fill: none !important; }
@keyframes mx-flake { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(30deg) scale(1.06); } }
.mx-frost {
  position: absolute; z-index: 16; left: 0; right: 0; top: 0; height: 26px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26' viewBox='0 0 120 26'%3E%3Cg stroke='%23f2fbff' stroke-linecap='round' fill='none'%3E%3Cpath stroke-width='1' d='M8 0v10M8 5l-3 3M8 5l3 3M8 8l-2 2M8 8l2 2'/%3E%3Cpath stroke-width='.8' d='M26 0v6M26 3l-2 2M26 3l2 2'/%3E%3Cpath stroke-width='1' d='M43 0v14M43 4l-4 4M43 4l4 4M43 9l-3 3M43 9l3 3'/%3E%3Cpath stroke-width='.8' d='M61 0v7M61 3l-2 2M61 3l2 2'/%3E%3Cpath stroke-width='1' d='M79 0v11M79 5l-3 3M79 5l3 3'/%3E%3Cpath stroke-width='.8' d='M97 0v5'/%3E%3Cpath stroke-width='1' d='M110 0v9M110 4l-3 3M110 4l3 3'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 120px 26px,
    linear-gradient(180deg, rgba(235, 248, 255, .55), rgba(235, 248, 255, .12) 40%, rgba(235, 248, 255, 0));
  opacity: .8;
}
.mx-frost::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 6px rgba(200, 235, 255, .9); }

/* ---------- 6. Тъмните зони: живо сияние + звезди + снежен прах (под съдържанието — не може да закрие нищо) ---------- */
.mx-on .buildings_slid.dark { position: relative; z-index: 0; } /* собствен слой → фонът е под картите и заглавието */
.mx-back { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.buildings_slid.dark > .mx-back {
  background-image:
    radial-gradient(1.3px 1.3px at 6% 6%, rgba(255, 255, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 14% 13%, rgba(220, 244, 255, .8) 98%, transparent),
    radial-gradient(1.5px 1.5px at 23% 4%, rgba(255, 255, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 72% 5%, rgba(255, 255, 255, .8) 98%, transparent),
    radial-gradient(1.4px 1.4px at 81% 12%, rgba(220, 244, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 93% 7%, rgba(255, 255, 255, .8) 98%, transparent),
    radial-gradient(45% 120px at 50% 100%, rgba(40, 140, 210, .16), transparent 75%);
}
/* футърът: черният фон минава в слоя под съдържанието (z -1) */
.mx-on:not(.mx-lite) footer.f { background-color: transparent; } /* v10: в LITE футърът е с черния си фон (няма .mx-back) */
.mx-back--f {
  background-color: #000;
  background-image:
    radial-gradient(1.3px 1.3px at 8% 4%, rgba(255, 255, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 17% 10%, rgba(220, 244, 255, .8) 98%, transparent),
    radial-gradient(1.5px 1.5px at 31% 3%, rgba(255, 255, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 44% 11%, rgba(255, 255, 255, .7) 98%, transparent),
    radial-gradient(1.2px 1.2px at 58% 5%, rgba(255, 255, 255, .8) 98%, transparent),
    radial-gradient(1px 1px at 69% 12%, rgba(220, 244, 255, .8) 98%, transparent),
    radial-gradient(1.5px 1.5px at 79% 4%, rgba(255, 255, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 91% 9%, rgba(255, 255, 255, .8) 98%, transparent),
    radial-gradient(60% 200px at 50% 100%, rgba(20, 110, 160, .18), transparent 75%);
}
/* сиянието: меки вълни в горната част, бавно се движат */
.mx-aura { position: absolute; left: -25%; width: 150%; top: -40px; height: 300px; opacity: .85; } /* v9: без blur/mix-blend, неподвижно */
.mx-aura--1 {
  background:
    radial-gradient(34% 40% at 24% 48%, rgba(40, 220, 180, .55), rgba(40, 220, 180, 0) 72%),
    radial-gradient(30% 34% at 56% 42%, rgba(25, 204, 120, .30), rgba(25, 204, 120, 0) 72%),
    radial-gradient(30% 40% at 84% 50%, rgba(90, 120, 255, .45), rgba(90, 120, 255, 0) 72%);
  transform: skewY(-4deg);
}
.mx-aura--2 {
  top: -10px; height: 220px; opacity: .6;
  background:
    radial-gradient(30% 40% at 38% 50%, rgba(90, 230, 255, .45), rgba(90, 230, 255, 0) 72%),
    radial-gradient(26% 40% at 70% 46%, rgba(140, 110, 255, .40), rgba(140, 110, 255, 0) 72%);
  transform: skewY(3deg);
}
.mx-aura--3 { /* футър: лъчи-завеси */
  top: -20px; height: 260px; opacity: .14;
  background: repeating-linear-gradient(90deg, rgba(120, 255, 210, 0) 0 22px, rgba(120, 255, 210, .5) 27px, rgba(120, 255, 210, 0) 36px, rgba(120, 255, 210, 0) 58px);
  -webkit-mask-image: radial-gradient(50% 50% at 40% 30%, #000 15%, transparent 75%); mask-image: radial-gradient(50% 50% at 40% 30%, #000 15%, transparent 75%);
}
.mx-back > .mx-fx { z-index: 1; }

/* страничните ленти (фиксирани, компютър) и хедърът на телефон: снежен прах под иконите/надписите */
.mx-fx--side { z-index: -1; }

/* снимката на сградата (страница на сграда): зимна нощ над снимката, под бутоните/надписите на страницата */
.mx-ph { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.mx-ph .mx-sky__night { background: linear-gradient(180deg, rgba(3, 12, 28, .78) 0%, rgba(6, 26, 52, .5) 24%, rgba(9, 44, 83, .18) 48%, rgba(9, 44, 83, 0) 66%); }
.mx-ph .mx-sky__stars { top: 4%; }
.mx-ph .mx-sky__au { top: -14%; }

/* ---------- 6б. Снимките и картите по всички страници: зимен отблясък ---------- */
.mx-pf { position: absolute; z-index: 1; overflow: hidden; pointer-events: none; }
.mx-pf--list, .mx-pf--map { left: 0; top: 0; width: 100%; height: 100%; }
.mx-pf--map { z-index: 450; } /* Leaflet: над плочките (200), под маркерите (600) и бутоните (800+) */
.mx-pf__tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 58, .30), rgba(6, 28, 58, .08) 30%, rgba(6, 28, 58, 0) 48%); }
.mx-pf--map .mx-pf__tint { background: linear-gradient(180deg, rgba(10, 50, 90, .16), rgba(10, 50, 90, 0) 35%); }
.mx-pf__sh { /* светлина, която минава през снимката (като отблясък по стъкло) */
  position: absolute; top: -30%; left: 0; width: 34%; height: 160%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(235, 248, 255, .16) 40%, rgba(255, 255, 255, .30) 50%, rgba(235, 248, 255, .16) 60%, rgba(255, 255, 255, 0));
  transform: translateX(-120%) skewX(-18deg);
  animation: mx-sheen 9s ease-in-out var(--mx-dl, 0s) infinite;
}
.mx-pf--map .mx-pf__sh { display: none; }
@keyframes mx-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 28%, 100% { transform: translateX(420%) skewX(-18deg); } }
.mx-pf .mx-frost { z-index: 2; }
.mx-pf .mx-flake { z-index: 3; }
.mx-pf--sm .mx-flake { width: 30px; height: 30px; top: 10px; left: 10px; }
.mx-pf--sm .mx-flake--s { width: 14px; height: 14px; top: 42px; left: 30px; }
.mx-pf > .mx-fx { z-index: 1; }

/* ---------- 6в. (старият гирлянд .mx-gar — махнат във v9; ползва се .mx-g7) ---------- */

/* ---------- 7. Знак-звезда към заглавията на секциите (същият мотив като звездата на логото) ---------- */
.mx-hs { position: absolute; display: block; width: 16px; height: 16px; margin: 0; font-style: normal; line-height: 0; }
.mx-hs .mx-g { animation: mx-hs 5.5s ease-in-out var(--mx-dl, 0s) infinite; }
.mx-hs::before { /* искра: кратък отблясък от време на време */
  content: ""; position: absolute; left: 50%; top: 50%; width: 360%; height: 360%; transform: translate(-50%, -50%) scale(0); opacity: 0;
  background:
    linear-gradient(90deg, rgba(42, 140, 210, 0), rgba(42, 140, 210, .6) 50%, rgba(42, 140, 210, 0)) center/100% 1px no-repeat,
    radial-gradient(circle, rgba(60, 180, 220, .28), rgba(60, 180, 220, 0) 30%);
  animation: mx-flare 7s ease-in-out var(--mx-dl, 0s) infinite;
}
.mx-hs--d::before {
  background:
    linear-gradient(90deg, rgba(220, 245, 255, 0), rgba(220, 245, 255, .85) 50%, rgba(220, 245, 255, 0)) center/100% 1px no-repeat,
    radial-gradient(circle, rgba(200, 240, 255, .35), rgba(200, 240, 255, 0) 30%);
}
.mx-hs--off { display: none !important; }
@keyframes mx-hs { 0%, 100% { opacity: .8; transform: scale(.86) rotate(0deg); } 50% { opacity: 1; transform: scale(1.04) rotate(10deg); } }

.mx-on svg.mx-g { /* защитено от стиловете на сайта за svg (напр. във футъра) */
  display: block !important; position: static !important; width: 100% !important; height: 100% !important;
  min-width: 0 !important; max-width: none !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: visible; stroke: none !important; }
.mx-g path { fill: url(#mx-gl); }
.mx-hs--d .mx-g path, .mx-greet .mx-g path { fill: url(#mx-gd); }
.mx-hs--d .mx-g, .mx-greet .mx-g { filter: drop-shadow(0 0 3px rgba(170, 225, 255, .8)); }

/* ---------- 8. Блестящ поздрав във футъра (светлина минава през буквите) ---------- */
.mx-greet {
  position: absolute; left: 0; right: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap;
}
.mx-greet__t {
  display: flex; align-items: center; gap: 18px;
  font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 21px; line-height: 1.25; letter-spacing: .32em;
  text-transform: uppercase; color: #f2fbff; padding-left: .32em;
}
.mx-greet__w {
  color: #eaf8ff;
  background: linear-gradient(100deg, #bfe9ff 0%, #ffffff 30%, #bfe9ff 42%, #fff3d6 50%, #bfe9ff 58%, #ffffff 70%, #bfe9ff 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(120, 220, 255, .45));
  animation: mx-shine 6s linear infinite;
}
@keyframes mx-shine { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.mx-greet__t i { display: block; width: 14px; height: 14px; flex: none; animation: mx-hs 4s ease-in-out infinite; }
.mx-greet__t i + span + i { animation-delay: -2s; }
.mx-greet__s {
  margin-top: 11px; padding-left: .3em;
  font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(159, 233, 216, .95);
}
.mx-greet--sm .mx-greet__t { font-size: 16px; gap: 13px; }
.mx-greet--sm .mx-greet__t i { width: 11px; height: 11px; }
.mx-greet--sm .mx-greet__s { font-size: 9.5px; margin-top: 8px; }
@media (min-width: 1800px) {
  .mx-greet__t { font-size: 26px; gap: 22px; }
  .mx-greet__t i { width: 17px; height: 17px; }
  .mx-greet__s { font-size: 13px; }
}
@media (max-width: 767px) {
  .mx-greet__t { font-size: 14.5px; letter-spacing: .24em; gap: 11px; padding-left: .24em; }
  .mx-greet__t i { width: 10px; height: 10px; }
  .mx-greet__s { font-size: 9px; margin-top: 7px; letter-spacing: .26em; }
}

/* ---------- достъпност: без движение (canvas-ът рисува един неподвижен кадър) ---------- */
@media (prefers-reduced-motion: reduce) {
  .mx-on [class^="mx-"], .mx-on [class*=" mx-"], .mx-on [class^="mx-"] *, .mx-on [class*=" mx-"]::before, .mx-on [class*=" mx-"]::after, .mx-on [class^="mx-"]::before { animation: none !important; transition: none !important; }
  .mx-strand i, .mx-gar i { opacity: .95; }
  .mx-hs .mx-g { opacity: 1; transform: none; }
  .mx-star__fl, .mx-bigstar__fl, .mx-hs::before, .mx-tag__gl, .mx-pf__sh { display: none; }
  .mx-sky__au--3 { display: none; }
}
@media print { .mx-gar, .mx-pf, .mx-sky, .mx-lights, .mx-star, .mx-bigstar, .mx-tag, .mx-flake, .mx-frost, .mx-hs, .mx-greet, .mx-defs, .mx-fx, .mx-back { display: none !important; } .mx-on footer.f { background-color: #000; } }

/* ===== v7 (03.12): ясно видима украса — от първия кадър ===== */
/* v8 (04.12): без топки и клонки — само лампички + сняг */
.mx-g7 { position: absolute; left: 0; top: 0; width: 100%; height: 15px; z-index: 9; pointer-events: none; overflow: visible; }
.mx-on svg.mx7-wire { display: block !important; position: absolute !important; left: 0; top: 0; max-width: none !important; margin: 0 !important; overflow: visible; fill: none !important; }
.mx7-wire path { fill: none; stroke: #20402c; stroke-width: 1.6; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .5)); }
.mx7-bulb { position: absolute; width: 8px; height: 12px; margin-left: -4px; transform-origin: 50% 0; pointer-events: none; }
.mx7-bulb::before { content: ''; position: absolute; left: 1.5px; top: 0; width: 5px; height: 3.5px; border-radius: 1px; background: linear-gradient(90deg, #2b3a30, #6f7d72, #2b3a30); }
.mx7-bulb b { position: absolute; left: 0; top: 3px; width: 8px; height: 10px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: radial-gradient(circle at 38% 30%, #fff 0 12%, var(--c1) 34%, var(--c2) 100%);
  box-shadow: 0 0 6px 2px var(--g1), 0 0 16px 5px var(--g2); }
/* v9: трептят групите (всяка 3-та лампичка), а не всяка лампичка поотделно → 2 композитни слоя на низ вместо ~50; само opacity */
.mx7-grp { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.mx7-g1 { animation: mx7-tw 3.1s ease-in-out infinite; }
.mx7-g2 { animation: mx7-tw 3.7s ease-in-out -1.6s infinite; }
.mx7-side .mx7-grp { animation: none; } /* v9: лампичките по страничните ленти светят неподвижно (завъртени слоеве във фиксираните ленти — скъпи при скрол); трепти горният низ */
.mx7-c1 { --c1: #ffe9a8; --c2: #f0a92a; --g1: rgba(255, 205, 100, .95); --g2: rgba(255, 190, 80, .45); }
.mx7-c2 { --c1: #ff9b9b; --c2: #d5182f; --g1: rgba(255, 70, 80, .9); --g2: rgba(255, 60, 70, .4); }
.mx7-c3 { --c1: #d8f3ff; --c2: #3f9be0; --g1: rgba(120, 200, 255, .95); --g2: rgba(100, 180, 255, .42); }
.mx7-c4 { --c1: #c6ffd2; --c2: #1fa356; --g1: rgba(90, 230, 140, .9); --g2: rgba(70, 220, 120, .38); }
.mx7-c5 { --c1: #fff; --c2: #d9c7ff; --g1: rgba(230, 215, 255, .95); --g2: rgba(210, 190, 255, .42); }
@keyframes mx7-tw { 0%, 100% { opacity: 1; } 45% { opacity: .62; } 55% { opacity: 1; } }
@media (min-width: 1800px) { .mx7-bulb { width: 9px; height: 14px; margin-left: -4.5px; } .mx7-bulb b { width: 9px; height: 11px; } .mx7-bulb::before { left: 2px; } }
/* рамка от лампички по вътрешния ръб на страничните ленти (компютър) */
.mx7-side { position: absolute; top: 22px; pointer-events: none; z-index: 3; }
.mx7-side--l { left: 100%; transform: rotate(90deg); transform-origin: 0 0; }
.mx7-side--r { left: 0; top: 100%; transform: rotate(-90deg) translateX(0); transform-origin: 0 0; margin-top: 0; }
/* сняг по целия прозорец */
canvas.mx7-snow { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 54; pointer-events: none; }
/* сняг по бутоните */
.mx7-cap { position: absolute; left: -3px; right: -3px; top: -8px; height: 14px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M0 9C6 3 14 2 22 5S36 1 48 3s16 5 26 2 20-4 30-1 18 3 28 0 22-3 32 1 16 2 24-1 10 2 12 4V10c-3 2-6 3-8 2s-4 4-7 3-2-4-6-3-8 1-12 0-6 3-9 3-3-3-7-3-14 1-20 0-6 3-9 3-3-3-8-3-12 1-18 0-8 2-11 2-2-4-6-3-10 1-15 0-8 3-11 3-4-3-8-3-6 2-10 1z' fill='%23fff'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(30, 60, 100, .55)); }
.mx7-cap--out { right: auto; } /* v9: бутон с overflow:hidden → шапката е в offsetParent-а (left/top/width от JS) */
@media (max-width: 767px) { .mx7-bulb { width: 7px; height: 11px; margin-left: -3.5px; } .mx7-bulb b { width: 7px; height: 9px; } .mx7-bulb::before { left: 1px; } }
.mx-rm .mx7-bulb b, .mx-rm .mx7-grp { animation: none !important; }
@media print { .mx-g7, .mx7-side, .mx7-snow, .mx7-cap { display: none !important; } }

/* v9: анимациите на украсата извън екрана са спрени (класът се слага от IntersectionObserver) → без композитни слоеве и работа за тях;
   при връщане в екрана тръгват отначало от началното си (невидимо) положение */
.mx-zz, .mx-zz *, .mx-zz::before, .mx-zz::after, .mx-zz *::before, .mx-zz *::after { animation: none !important; }

/* ===== v10 (04.12): LITE — секциите при скрол да се рисуват веднага (виж xmas.js) ===== */
/* неподвижни: звездата над △, голямата звезда, ключодържателят, звездите към заглавията, поздравът (без безкрайни анимации и отблясъци) */
.mx-lite .mx-star, .mx-lite .mx-bigstar, .mx-lite .mx-tag, .mx-lite .mx-tag *, .mx-lite .mx-tag__gl::before, .mx-lite .mx-hs .mx-g, .mx-lite .mx-hs::before,
.mx-lite .mx-greet__w, .mx-lite .mx-greet__t i, .mx-lite .mx-flake { animation: none !important; }
.mx-lite .mx-star__fl, .mx-lite .mx-bigstar__fl, .mx-lite .mx-hs::before, .mx-lite .mx-tag__gl { display: none; }
.mx-lite .mx-hs .mx-g { opacity: 1; }
.mx-lite .mx-greet__w { background-position: 30% 0; }
/* лекият сняг: 6–14 снежинки, движат се само с transform (compositor), без платно */
.mx7-snow--lite { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 54; pointer-events: none; overflow: hidden; contain: strict; }
.mx7-sf { position: absolute; top: -40px; display: block; will-change: transform; animation: mx7-fall 14s linear infinite; }
.mx7-sf b { display: block; width: 100%; height: 100%; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='none' stroke-linecap='round' stroke='%23284f7d' stroke-opacity='.45' stroke-width='14'%3E%3Cpath transform='rotate(0)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(60)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(120)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(180)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(240)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(300)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3C/g%3E%3Cg fill='none' stroke-linecap='round' stroke='%23fff' stroke-width='7'%3E%3Cpath transform='rotate(0)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(60)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(120)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(180)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(240)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3Cpath transform='rotate(300)' d='M0 0V-44M0-24L-13-37M0-24L13-37M0-11L-8-19M0-11L8-19'/%3E%3C/g%3E%3C/svg%3E");
  animation: mx7-sway 4.5s ease-in-out infinite alternate; }
.mx7-sf--0 b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Ccircle r='30' fill='%23fff' stroke='%23284f7d' stroke-opacity='.4' stroke-width='9'/%3E%3C/svg%3E"); }
@keyframes mx7-fall { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(0, calc(100vh + 80px), 0); } }
@keyframes mx7-sway { 0% { transform: translate3d(-12px, 0, 0) rotate(-30deg); } 100% { transform: translate3d(12px, 0, 0) rotate(30deg); } }
.mx-rm .mx7-sf { top: var(--t, 30%); animation: none !important; }
.mx-rm .mx7-sf b { animation: none !important; transform: none; }
@media (prefers-reduced-motion: reduce) { .mx7-sf { top: var(--t, 30%); } }
