/* Новогоднее оформление: гирлянда сверху и лёгкий снег.
   Подключается на всех страницах сайта и в админке; включается скриптом newyear.js. */

#ny-garland {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1001; pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
}
#ny-garland svg { display: block; width: 100%; height: auto; overflow: visible; }

#ny-snow {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 998; pointer-events: none;
}

/* мерцание лампочек: три фазы, чтобы не мигали все разом */
.ny-b { animation: nyTw 2.6s ease-in-out infinite; }
.ny-b.t1 { animation-duration: 3.4s; animation-delay: -.9s; }
.ny-b.t2 { animation-duration: 2.1s; animation-delay: -1.5s; }
@keyframes nyTw { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }

/* шапка сайта чуть ниже, чтобы гирлянда не наезжала на логотип и меню */
html.ny-on .header { padding-top: 42px; }
html.ny-on .header.scrolled { padding-top: 36px; }

/* админка */
html.ny-on .wrap { padding-top: 54px; }
.ny-toggle[aria-pressed="false"] { opacity: .55; }

@media (max-width: 700px) {
  html.ny-on .header { padding-top: 36px; }
  html.ny-on .header.scrolled { padding-top: 32px; }
  html.ny-on .wrap { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ny-b { animation: none; }
  #ny-snow { display: none; }
}

/* ======================================================================
   Праздничные детали (рождественская тема)
   Всё скрыто, пока оформление выключено: html:not(.ny-on) .ny-x { display: none }.
   Рисунки подставляет newyear.js через переменные --ny-cap, --ny-div, --ny-hills, --ny-pines.
   ====================================================================== */
html:not(.ny-on) .ny-x { display: none !important; }

/* тёплый отсвет гирлянды сверху страницы */
html.ny-on::after {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 240px;
  background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(255, 205, 120, .13), transparent 72%);
  pointer-events: none; z-index: 997;
}
html.ny-on ::selection { background: rgba(160, 47, 56, .65); color: #fff; }

/* ---- шапка героя: звёзды, приветствие, шары и падуб ---- */
.ny-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ny-star { position: absolute; display: block; line-height: 0; opacity: .15; animation: nyStar 4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(255, 227, 163, .8)); }
@keyframes nyStar { 0%, 100% { opacity: .1; transform: scale(.6) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }

.ny-greet {
  position: relative; display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 9px 20px;
  font: 700 13px/1 'Manrope', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #ffe9b8;
  background: linear-gradient(90deg, rgba(160, 47, 56, .5), rgba(92, 31, 31, .35));
  border: 1px solid rgba(227, 201, 138, .5); border-radius: 999px; overflow: hidden;
  box-shadow: 0 8px 26px -10px rgba(160, 47, 56, .65), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.ny-greet svg { flex: none; }
.ny-short { display: none; }
.ny-greet::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .35), transparent);
  animation: nyShine 5.5s ease-in-out infinite;
}
@keyframes nyShine { 0%, 55% { left: -80px; } 100% { left: 110%; } }

.ny-hang { position: absolute; top: 0; z-index: 3; width: 40px; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0; animation: nySwing 5.2s ease-in-out infinite; pointer-events: none; }
.ny-hang i { display: block; width: 1px; background: linear-gradient(#e3c98a, #8a703f); }
.ny-hang svg { display: block; margin-top: -1px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
@keyframes nySwing { 0%, 100% { transform: rotate(3.5deg); } 50% { transform: rotate(-3.5deg); } }

.ny-holly { position: absolute; right: 26px; bottom: 22px; z-index: 3; width: 112px; pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transform: rotate(-4deg); }
.ny-holly svg { display: block; width: 100%; height: auto; }

/* ---- заголовки секций: разделитель со снежинкой ---- */
html.ny-on .section-head .section-title::after {
  content: ''; display: block; width: 280px; max-width: 80%; height: 24px; margin: 18px auto 0;
  background: var(--ny-div) no-repeat center / contain;
}
html.ny-on .section-head:not(.center) .section-title::after { margin-left: 0; background-position: left center; }

/* ---- карточки оформления и галереи: снежная шапка и тёплое свечение ---- */
html.ny-on .decor__card .decor__photo::after {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 30px; z-index: 3; pointer-events: none;
  background: var(--ny-cap) repeat-x left top / 140px 30px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4));
}
@media (hover: hover) and (pointer: fine) {
  html.ny-on .decor__card:hover {
    border-color: rgba(227, 201, 138, .55);
    box-shadow: 0 22px 44px -22px rgba(201, 160, 91, .45), 0 0 0 1px rgba(160, 47, 56, .28);
  }
}
html.ny-on .decor__price { text-shadow: 0 0 18px rgba(255, 214, 140, .28); }

/* ---- подвал: сугроб и ёлки ---- */
html.ny-on .footer { position: relative; }
.ny-snowline { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 74px; pointer-events: none; z-index: 2; }
.ny-snowline i { position: absolute; left: 0; right: 0; display: block; }
.ny-pines { bottom: 4px; height: 70px; background: var(--ny-pines) repeat-x left bottom / 440px 70px; opacity: .95; }
.ny-hills { bottom: 0; height: 40px; background: var(--ny-hills) no-repeat center bottom / 100% 100%;
  filter: drop-shadow(0 -4px 10px rgba(255, 240, 210, .18)); }
.ny-wish { flex-basis: 100%; text-align: center; padding-top: 10px; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; color: var(--gold-soft, #e3c98a); }
.ny-wish::before, .ny-wish::after { content: '\2726'; margin: 0 12px; color: var(--gold, #c9a05b); }

@media (max-width: 700px) {
  .ny-greet { font-size: 10.5px; letter-spacing: .06em; padding: 8px 12px; gap: 7px; margin-bottom: 18px; white-space: nowrap; max-width: 100%; }
  .ny-hang { display: none; }
  .ny-long { display: none; }
  .ny-short { display: inline; }
  .ny-holly { display: none; }
  .ny-snowline { height: 58px; }
  .ny-pines { height: 54px; background-size: 340px 54px; }
  .ny-hills { height: 30px; }
  html.ny-on .section-head .section-title::after { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .ny-star { animation: none; opacity: .6; }
  .ny-hang, .ny-greet::after { animation: none; }
}


/* ---- боке в первом экране ---- */
.ny-bokeh { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ny-bk { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; opacity: 0; filter: blur(3px);
  background: radial-gradient(circle, rgba(var(--c), .55) 0, rgba(var(--c), .22) 45%, rgba(var(--c), 0) 70%);
  animation: nyBokeh 12s ease-in-out infinite; }
@keyframes nyBokeh {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(.85); }
  50% { opacity: .75; transform: translate(14px, -18px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .ny-bk { animation: none; opacity: .35; } }

/* ---- рамка отзывов: тонкая золотая линия внутри и еловые веточки в углах ---- */
html.ny-on .review-card {
  position: relative;
  border-color: rgba(201, 160, 91, .38);
  box-shadow: inset 0 0 0 5px rgba(11, 10, 8, .55), inset 0 0 0 6px rgba(201, 160, 91, .26);
}
html.ny-on .review-card::before,
html.ny-on .review-card::after {
  content: ''; position: absolute; width: 58px; height: 58px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 58'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M3 3L36 36' stroke='%23c9a05b' stroke-width='1.2'/%3E%3Cpath d='M11 11l10-2M11 11l2-10M18 18l12-3M18 18l3-12M25 25l12-3M25 25l3-12' stroke='%232f7a58' stroke-width='2.4'/%3E%3Cpath d='M11 11l7-1.4M11 11l1.4-7M18 18l8.4-2M18 18l2-8.4M25 25l8.4-2M25 25l2-8.4' stroke='%2355b585' stroke-width='1'/%3E%3C/g%3E%3Ccircle cx='38' cy='38' r='3.4' fill='%23c4313b'/%3E%3Ccircle cx='44' cy='33' r='3' fill='%23a02f38'/%3E%3Ccircle cx='33' cy='44' r='3' fill='%23a02f38'/%3E%3Ccircle cx='37' cy='36.6' r='1' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") no-repeat center / contain;
}
html.ny-on .review-card::before { top: 5px; left: 5px; }
html.ny-on .review-card::after { bottom: 5px; right: 5px; transform: rotate(180deg); }


/* ======================================================================
   Праздничное оформление всплывающих окон: «Фотозона в подарок» и подсказка про VPN.
   Работает только при включённом оформлении (html.ny-on).
   ====================================================================== */
html.ny-on .promo-overlay,
html.ny-on .vpn-hint {
  background: radial-gradient(ellipse 70% 55% at 50% 28%, rgba(255, 205, 120, .12), transparent 72%), rgba(11, 10, 8, .8);
}
/* лёгкий снег за окном */
html.ny-on .promo-overlay::before,
html.ny-on .vpn-hint::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 110px 85px, rgba(255, 255, 255, .85), transparent),
    radial-gradient(2.4px 2.4px at 160px 20px, rgba(255, 255, 255, .9), transparent),
    radial-gradient(1.6px 1.6px at 70px 150px, rgba(255, 255, 255, .8), transparent),
    radial-gradient(2.2px 2.2px at 230px 190px, rgba(255, 255, 255, .85), transparent);
  background-size: 200px 200px, 200px 200px, 260px 260px, 260px 260px, 320px 320px;
  opacity: .75; animation: nyOvSnow 16s linear infinite;
}
@keyframes nyOvSnow {
  to { background-position: 30px 200px, 30px 200px, -40px 260px, -40px 260px, 50px 320px; }
}

/* само окно: золотая двойная рамка, звёздочки, сугроб снизу */
html.ny-on .promo-modal,
html.ny-on .vpn-hint__card {
  border-color: rgba(227, 201, 138, .75);
  padding-bottom: 46px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 width=%2214%22 height=%2214%22%3E%3Cpath d=%22M12 0l2.5 9.5L24 12l-9.5 2.5L12 24l-2.5-9.5L0 12l9.5-2.5z%22 fill=%22%23ffe3a3%22/%3E%3C/svg%3E") 7% 44% / 9px 9px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 width=%2214%22 height=%2214%22%3E%3Cpath d=%22M12 0l2.5 9.5L24 12l-9.5 2.5L12 24l-2.5-9.5L0 12l9.5-2.5z%22 fill=%22%23ffe3a3%22/%3E%3C/svg%3E") 93% 58% / 12px 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 width=%2214%22 height=%2214%22%3E%3Cpath d=%22M12 0l2.5 9.5L24 12l-9.5 2.5L12 24l-2.5-9.5L0 12l9.5-2.5z%22 fill=%22%23ffe3a3%22/%3E%3C/svg%3E") 14% 54px / 8px 8px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 width=%2214%22 height=%2214%22%3E%3Cpath d=%22M12 0l2.5 9.5L24 12l-9.5 2.5L12 24l-2.5-9.5L0 12l9.5-2.5z%22 fill=%22%23ffe3a3%22/%3E%3C/svg%3E") 10% 66% / 7px 7px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2216%22 viewBox=%220 0 120 16%22%3E%3Cdefs%3E%3ClinearGradient id=%22g%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23fffdf8%22/%3E%3Cstop offset=%221%22 stop-color=%22%23dcd6c9%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d=%22M0 16V9C8 4 18 4 26 8C36 13 42 3 54 4C66 5 72 13 84 9C94 6 102 5 110 7C114 8 117 9 120 9V16Z%22 fill=%22url%28%23g%29%22/%3E%3C/svg%3E") left bottom / 120px 16px repeat-x,
    linear-gradient(160deg, #2a251c, #15120d);
}
html.ny-on .promo-modal {
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(255, 205, 120, .25), inset 0 0 0 5px rgba(11, 10, 8, .55), inset 0 0 0 6px rgba(201, 160, 91, .3);
}
html.ny-on .vpn-hint__card {
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(255, 205, 120, .25), inset 0 0 0 5px rgba(11, 10, 8, .55), inset 0 0 0 6px rgba(201, 160, 91, .3);
}

/* гирлянда по верхнему краю окна */
html.ny-on .promo-modal::after,
html.ny-on .vpn-hint__card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; pointer-events: none;
  border-radius: 22px 22px 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2226%22 viewBox=%220 0 80 26%22%3E%3Cpath d=%22M0 1Q40 21 80 1%22 fill=%22none%22 stroke=%22%230e2a20%22 stroke-width=%224.2%22 stroke-linecap=%22round%22/%3E%3Cg fill=%22none%22 stroke=%22%23255c43%22 stroke-width=%221.7%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M6 4l-2.5 5M14 7l-2.5 5M22 9l-2 5.5M30 10.4l-1.4 5.4M40 11l0 5.6M50 10.4l1.4 5.4M58 9l2 5.5M66 7l2.5 5M74 4l2.5 5%22/%3E%3C/g%3E%3Cg fill=%22none%22 stroke=%22%233b8264%22 stroke-width=%221.1%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M10 5.4l3 4M18 8l3 4M26 10l3 4M36 11l-2 4.6M45 11l2 4.6M54 9.8l3 3.6M62 8l3 4M70 5.4l3 4%22/%3E%3C/g%3E%3Cpath d=%22M0 1Q40 21 80 1%22 fill=%22none%22 stroke=%22%23e3c98a%22 stroke-width=%221%22 stroke-dasharray=%221.6 3%22 stroke-linecap=%22round%22/%3E%3Ccircle cx=%2220%22 cy=%2212%22 r=%225%22 fill=%22%23ffd27a%22 opacity=%22.22%22/%3E%3Ccircle cx=%2220%22 cy=%2212%22 r=%222.6%22 fill=%22%23ffd27a%22/%3E%3Ccircle cx=%2219.2%22 cy=%2211.2%22 r=%22.8%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2240%22 cy=%2214.2%22 r=%225%22 fill=%22%23e8564c%22 opacity=%22.22%22/%3E%3Ccircle cx=%2240%22 cy=%2214.2%22 r=%222.6%22 fill=%22%23e8564c%22/%3E%3Ccircle cx=%2239.2%22 cy=%2213.4%22 r=%22.8%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2260%22 cy=%2212%22 r=%225%22 fill=%22%235fcf9f%22 opacity=%22.22%22/%3E%3Ccircle cx=%2260%22 cy=%2212%22 r=%222.6%22 fill=%22%235fcf9f%22/%3E%3Ccircle cx=%2259.2%22 cy=%2211.2%22 r=%22.8%22 fill=%22%23fff%22/%3E%3C/svg%3E") left top / 80px 26px repeat-x;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}
html.ny-on .promo-modal { padding-top: 58px; }
html.ny-on .vpn-hint__card { padding-top: 46px; }
html.ny-on .promo-modal__close { top: 30px; }

/* иконки в золотом пунктирном «венке», заголовок с мягким свечением */
html.ny-on .promo-modal__icon,
html.ny-on .vpn-hint__icon {
  outline: 1.5px dashed rgba(255, 227, 163, .7); outline-offset: 6px;
}
html.ny-on .promo-modal h3 span { text-shadow: 0 0 18px rgba(255, 214, 140, .4); }
html.ny-on .promo-modal__eyebrow::before,
html.ny-on .promo-modal__eyebrow::after { content: '\2726'; margin: 0 7px; color: var(--garnet, #a02f38); }

@media (max-width: 480px) {
  html.ny-on .promo-modal__eyebrow::before, html.ny-on .promo-modal__eyebrow::after { margin: 0 4px; }
  html.ny-on .promo-modal { padding-top: 54px; }
  html.ny-on .vpn-hint__card { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html.ny-on .promo-overlay::before, html.ny-on .vpn-hint::before { animation: none; }
}
