/* Сезонное оформление «Зима». Включается в админке: Сайт → Название сайта → Сезонное оформление.
   Сервер добавляет на <body> класс season-winter. Всё зимнее — на первом экране,
   ниже по странице только редкие снежинки (их рисует winter.js). Структура сайта не меняется. */

/* ───── плашка сезона над заголовком ───── */
.season-chip {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; max-width: 100%;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid rgba(207, 227, 255, .26); background: rgba(207, 227, 255, .06);
  color: #cfe3ff; font-size: 13.5px; font-weight: 500; line-height: 1.3;
}
.season-chip svg { width: 17px; height: 17px; flex: none; }
.season-chip b { color: #fff; font-weight: 700; }
/* плашка с промокодом — кнопка: клик копирует код */
button.season-chip { font: inherit; font-size: 14px; cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease, transform .15s ease; }
button.season-chip:hover { border-color: rgba(207, 227, 255, .5); background: rgba(207, 227, 255, .1); }
button.season-chip:active { transform: scale(.98); }
.season-code {
  display: inline-block; margin-left: 4px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent, #4d7dff); color: #fff; font-weight: 700; letter-spacing: .03em;
}

/* ───── северное сияние: приглушённое, справа сверху, за карточками (не под текстом) ───── */
.season-winter .hero { isolation: isolate; }
.season-winter .hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -10%; right: -8%; width: 72%; height: 78%;
  background:
    radial-gradient(42% 34% at 38% 46%, rgba(70, 225, 180, .2), transparent 72%),
    radial-gradient(40% 40% at 66% 30%, rgba(110, 120, 255, .2), transparent 72%);
  filter: blur(10px);
  animation: season-aurora 26s ease-in-out infinite alternate;
}
@keyframes season-aurora {
  0% { transform: translate3d(-2%, 0, 0) scale(1); opacity: .85; }
  100% { transform: translate3d(2%, 2%, 0) scale(1.06); opacity: 1; }
}
/* холодное свечение вместо синего */
.season-winter .hero::before {
  background:
    radial-gradient(46% 52% at 58% 52%, rgba(110, 160, 255, .17), transparent 70%),
    radial-gradient(30% 30% at 8% 95%, rgba(110, 160, 255, .06), transparent 70%);
}
.season-winter .hero-visual::after { background: rgba(140, 190, 255, .3); }

/* ───── снег на огромном слове «ЗАЧЁТКА» ─────
   Верх заглавных букв Unbounded — 0.108em от верха строки: снег лежит ровно там, с неровным краем. */
.season-winter:not(.theme-grotesk) .hero-word {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V8Q113 13 104 9T86 10Q80 16 73 10T55 9T38 11Q33 17 27 11T12 9T0 9Z' fill='%23eef4ff'/%3E%3C/svg%3E") 0 .106em / .62em .075em repeat-x,
    linear-gradient(180deg, #eef4ff 0, #eef4ff .112em, transparent .112em),
    linear-gradient(180deg, #5d76a3 .11em, #2b3d66 .22em, #1a2747 .45em, #0b1122 1em);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───── снежные шапки на карточках веера ───── */
.season-winter .fan-face { overflow: visible; }
.season-winter .fan-front::before {
  content: ""; position: absolute; left: -3px; right: -3px; top: -11px; height: 26px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M2 15Q4 4 22 6Q40 0 62 6Q84 2 104 7Q130 1 154 6Q176 3 196 7Q222 0 248 6Q270 2 292 7Q318 1 340 6Q364 2 382 7Q399 6 398 15Q396 21 384 19Q378 25 370 19Q340 22 312 18Q300 24 292 18Q250 21 210 18Q198 25 188 18Q150 21 112 18Q100 23 92 18Q56 21 24 18Q14 22 8 19Q1 20 2 15Z' fill='%23dfe9f8'/%3E%3Cpath d='M4 13Q6 4 22 6Q40 0 62 6Q84 2 104 7Q130 1 154 6Q176 3 196 7Q222 0 248 6Q270 2 292 7Q318 1 340 6Q364 2 382 7Q397 7 396 13Q350 16 300 14Q250 17 200 14Q150 17 100 14Q50 17 4 13Z' fill='%23f7faff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(5, 12, 35, .35));
}

/* ───── снег на кнопке поддержки ───── */
.season-winter .zk-sup-btn { overflow: visible; }
.season-winter .zk-sup-btn::before {
  content: ""; position: absolute; left: 3px; right: 3px; top: -6px; height: 20px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' preserveAspectRatio='none'%3E%3Cpath d='M3 15Q2 5 14 4Q22 0 30 3Q40 0 47 4Q58 5 57 15Q55 19 50 16Q46 20 42 15Q30 13 18 15Q14 20 10 16Q4 19 3 15Z' fill='%23f2f7ff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(5, 12, 35, .4));
  transition: opacity .2s ease;
}
.season-winter .zk-sup-btn.is-open::before { opacity: 0; }

/* ───── снегопад (холст рисует winter.js) ───── */
.season-snow { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* светлые темы: сияние и ледяное слово там не смотрятся — оставляем только шапки и снег */
.season-winter.theme-grotesk .hero::after { display: none; }
.season-winter.theme-belyj .season-chip { color: #1a3cc4; border-color: rgba(26, 60, 196, .25); background: rgba(26, 60, 196, .05); }
.season-winter.theme-belyj .season-chip b { color: #0b1a5c; }

@media (max-width: 720px) {
  .season-chip { font-size: 12.5px; margin-bottom: 14px; }
  .season-winter .hero::after { width: 110%; height: 55%; right: -30%; }
  .season-winter .fan-front::before { top: -9px; height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .season-winter .hero::after { animation: none; }
  .season-snow { display: none; }
}
