/* ============ новогодний слой бани «ЖАРА»: снег, гирлянда, иней ============
   Отдельный файл поверх style.css + bani.css — весь праздничный декор
   отключается/снимается удалением одной строки link в index.html. */

/* ── снег: канвас создаёт js/ny.js ──────────────────────────────────────── */
#snow{position:fixed;inset:0;z-index:76;pointer-events:none}

/* ── гирлянда: висит под навбаром по всей ширине ────────────────────────── */
#nyGarland{position:fixed;left:0;right:0;top:72px;height:34px;z-index:59;pointer-events:none}
#nyGarland::before{content:'';position:absolute;left:0;right:0;top:0;height:34px;opacity:.85;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 34'%3E%3Cpath d='M0 14 Q50 6 100 14 T200 14 T300 14 T400 14' fill='none' stroke='%237a6548' stroke-width='1.4'/%3E%3Cpath d='M0 26 Q50 18 100 26 T200 26 T300 26 T400 26' fill='none' stroke='%237a6548' stroke-width='1.1' opacity='.75'/%3E%3C/svg%3E") repeat-x;
  background-size:400px 34px}
#nyGarland i{position:absolute;width:8px;height:8px;border-radius:50%;transform:translate(-50%,-50%);
  animation:bulbTw 2.8s ease-in-out infinite}
#nyGarland i:nth-child(3n+1){background:radial-gradient(circle at 35% 30%,#ff9d8c,#c8362b);
  box-shadow:0 0 10px 2px rgba(224,80,60,.5)}
#nyGarland i:nth-child(3n+2){background:radial-gradient(circle at 35% 30%,#f7e2b8,#d4a05c);
  box-shadow:0 0 10px 2px rgba(224,180,120,.45)}
#nyGarland i:nth-child(3n){background:radial-gradient(circle at 35% 30%,#fffdf6,#ccd5de);
  box-shadow:0 0 10px 2px rgba(235,240,245,.45)}
@keyframes bulbTw{0%,100%{opacity:.45;filter:saturate(.85)}50%{opacity:1;filter:saturate(1.2)}}
@media(max-width:880px){#nyGarland{top:62px}}

/* ── снежинка рядом с кикерами секций ───────────────────────────────────── */
.kicker::after{content:'';display:inline-block;width:13px;height:13px;margin-left:10px;flex:none;
  background:#d7e2ee;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M5 4.9l14 14.2M19 4.9L5 19.1M2 12h20M4.9 5l14.2 14M19.1 5 4.9 19' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%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'%3E%3Cpath d='M12 2v20M5 4.9l14 14.2M19 4.9L5 19.1M2 12h20M4.9 5l14.2 14M19.1 5 4.9 19' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* ── иней по верхней кромке карточек ────────────────────────────────────── */
.space::before,.promo::before,.rev::after,.feat::before,.step::before,
.book-card::before,.book-aside::before{content:'';position:absolute;left:14px;right:14px;top:0;
  height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(219,230,240,.3) 30%,rgba(219,230,240,.3) 70%,transparent)}
.promo,.feat,.step,.book-card,.book-aside{position:relative}

/* ── точка у «Можно со своей едой» — ледяная вместо золотой ─────────────── */
.hero-note::before{background:radial-gradient(circle at 40% 35%,#fdfaf3,#c3ccd6);
  box-shadow:0 0 10px rgba(230,238,246,.55)}

/* ── мягкое зимнее свечение золотых слов в заголовках ───────────────────── */
h2 .glow-txt{text-shadow:0 0 28px rgba(224,180,120,.3)}

/* ── первый экран: иней по углам ────────────────────────────────────────── */
.ny-frost{position:absolute;top:0;left:0;width:min(240px,30vw);height:min(220px,28vw);
  z-index:3;pointer-events:none;opacity:.5;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 200'%3E%3Cg fill='none' stroke='%23dbe8f2' stroke-linecap='round'%3E%3Cg stroke-width='1.6' opacity='.75'%3E%3Cpath d='M4,0C22,10 46,26 74,56'/%3E%3Cpath d='M22,10C30,18 42,32 56,52'/%3E%3Cpath d='M46,22C54,32 62,46 68,64'/%3E%3Cpath d='M74,56C86,68 96,80 102,96'/%3E%3Cpath d='M0,24C14,28 30,36 48,50'/%3E%3C/g%3E%3Cg stroke-width='1.1' opacity='.5'%3E%3Cpath d='M22,10L30,16M30,16L40,26'/%3E%3Cpath d='M46,22L54,30M54,30L62,42'/%3E%3Cpath d='M74,56L84,62M84,62L92,74'/%3E%3Cpath d='M10,34L18,40M18,40L26,50'/%3E%3Cpath d='M60,74L66,82M66,82L72,92'/%3E%3Cpath d='M0,46L10,50M10,50L18,58'/%3E%3Cpath d='M100,12C108,18 116,28 122,40'/%3E%3Cpath d='M130,4C136,12 140,22 142,34'/%3E%3C/g%3E%3Cg fill='%23dbe8f2'%3E%3Ccircle cx='48' cy='50' r='1.6' opacity='.7'/%3E%3Ccircle cx='74' cy='56' r='1.8' opacity='.8'/%3E%3Ccircle cx='102' cy='96' r='1.5' opacity='.7'/%3E%3Ccircle cx='122' cy='40' r='1.5' opacity='.6'/%3E%3Ccircle cx='142' cy='34' r='1.4' opacity='.6'/%3E%3Ccircle cx='18' cy='58' r='1.3' opacity='.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat;
  background-size:100% 100%}
.ny-frost-r{left:auto;right:0;transform:scaleX(-1)}

/* ── первый экран: ёлочные шары на нитях ────────────────────────────────── */
.ny-balls i{position:absolute;top:0;left:7%;width:1px;height:150px;z-index:3;
  pointer-events:none;transform-origin:top center;animation:ballSway 7s ease-in-out infinite alternate}
.ny-balls i::before{content:'';position:absolute;left:0;top:0;width:1px;height:150px;
  background:linear-gradient(180deg,rgba(224,180,120,0),rgba(224,180,120,.55))}
.ny-balls i::after{content:'';position:absolute;left:-15px;bottom:-2px;width:30px;height:32px;
  border-radius:50%;background:radial-gradient(circle at 34% 28%,#f7e3b8,#d4a05c 46%,#8a5a26 92%);
  box-shadow:0 0 16px rgba(224,180,120,.45)}
.ny-balls i b{position:absolute;left:-2.4px;bottom:26px;width:4.8px;height:4px;border-radius:1px;
  background:#caa96a}
.ny-balls i:last-child{left:auto;right:8%;animation-delay:-3.5s;animation-name:ballSway2}
.ny-balls i:last-child::after{background:radial-gradient(circle at 34% 28%,#e8a3a0,#a03941 48%,#5f1f26 94%);
  box-shadow:0 0 16px rgba(200,80,90,.4)}
@keyframes ballSway{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}
@keyframes ballSway2{from{transform:rotate(6deg)}to{transform:rotate(-6deg)}}

/* ── первый экран: сугробы и еловая ветка с шарами ──────────────────────── */
.ny-snowdrift{position:absolute;left:0;right:0;bottom:-1px;height:64px;z-index:4;
  pointer-events:none;background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,64L0,40Q120,26 260,36T560,30T860,34T1160,28T1440,32L1440,64Z' fill='%23dfe7ee'/%3E%3Cpath d='M0,64L0,48Q180,34 380,42T760,38T1120,42T1440,36L1440,64Z' fill='%23c6d2dd' opacity='.9'/%3E%3C/svg%3E") 0 100%/100% 100% no-repeat}
.ny-branch{position:absolute;left:0;right:0;bottom:26px;height:90px;z-index:5;
  pointer-events:none;background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3CradialGradient id='gb' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23f2cf95'/%3E%3Cstop offset='.55' stop-color='%23d4a05c'/%3E%3Cstop offset='1' stop-color='%238a5a26'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg stroke='%23354f3b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-6,54C30,40 74,56 112,46C134,41 150,44 166,48' fill='none'/%3E%3Cpath d='M10,51L15,38M10,51L14,62'/%3E%3Cpath d='M30,47L35,34M30,47L34,58'/%3E%3Cpath d='M50,51L55,38M50,51L54,62'/%3E%3Cpath d='M70,50L75,37M70,50L74,61'/%3E%3Cpath d='M90,49L95,36M90,49L94,60'/%3E%3Cpath d='M110,47L115,34M110,47L114,58'/%3E%3Cpath d='M130,45L135,32M130,45L134,56'/%3E%3Cpath d='M150,47L155,34M150,47L154,58'/%3E%3C/g%3E%3Cpath d='M86,50L86,64' stroke='%23b98d4f' stroke-width='1.2' fill='none'/%3E%3Crect x='83.6' y='64' width='4.8' height='3.4' rx='1' fill='%23caa96a'/%3E%3Ccircle cx='86' cy='76' r='8' fill='url(%23gb)'/%3E%3Ccircle cx='83.2' cy='73' r='2.2' fill='%23fff' opacity='.75'/%3E%3C/svg%3E") repeat-x;
  background-size:160px 90px}
.ny-branch::after{content:'';position:absolute;left:80px;top:0;bottom:0;width:160px;opacity:.5;
  background:inherit;background-size:160px 90px}

/* ── золотые искры по всей странице (создаёт js/ny.js) ──────────────────── */
#sparkles{position:fixed;inset:0;z-index:77;pointer-events:none}
#sparkles i{position:absolute;border-radius:50%;opacity:0;
  background:radial-gradient(circle at 40% 35%,#ffe9c0,#e0b478 55%,transparent 78%);
  box-shadow:0 0 8px 2px rgba(224,180,120,.35);
  animation:sparkTw 3.2s ease-in-out infinite}
@keyframes sparkTw{0%,100%{opacity:0;transform:scale(.6)}50%{opacity:.85;transform:scale(1.15)}}

/* ── счётчик до Нового года под первым экраном ──────────────────────────── */
.ny-count{display:flex;align-items:baseline;justify-content:center;gap:14px;
  padding:18px 12px;border-bottom:1px solid rgba(224,180,120,.18);
  background:linear-gradient(180deg,rgba(224,180,120,.06),transparent)}
.ny-count .nyc-cap{font-size:12.5px;letter-spacing:.28em;text-transform:uppercase;
  color:var(--mut);font-weight:800}
.ny-count b{font-family:'Unbounded',sans-serif;font-size:26px;line-height:1;color:var(--gold);
  text-shadow:0 0 24px rgba(224,180,120,.5)}
.ny-count .nyc-word{font-size:14.5px;color:var(--mut);font-weight:700}

/* ── мобильный: декор компактнее ────────────────────────────────────────── */
@media(max-width:880px){
  .ny-frost{width:150px;height:140px;opacity:.42}
  .ny-balls i{height:120px}
  .ny-balls i::before{height:120px}
  .ny-balls i::after{width:24px;height:26px;left:-12px}
  .ny-balls i b{bottom:21px}
  .ny-balls i{left:4%}
  .ny-balls i:last-child{right:5%}
  .ny-snowdrift{height:44px}
  .ny-branch{bottom:16px;height:70px;background-size:160px 70px}
  .ny-branch::after{background-size:160px 70px}
  .ny-count b{font-size:21px}
  .ny-count .nyc-cap{font-size:11px}
  .ny-count .nyc-word{font-size:13.5px}
}

/* ── уважение к настройке «меньше движения» ─────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  #nyGarland i{animation:none;opacity:.8}
}
