/* Подключается сервером только для зимнего оформления. */
:root.polar {
  --ink: #07101f;
  --ink-2: #101e32;
  --ink-3: #1c3049;
  --line: #32465e;
  --paper: #f3f8ff;
  --muted: #b6c6d9;
  --dim: #94a6bb;
  --ice: #a4dfff;
}
.polar body {
  background: radial-gradient(ellipse at 92% 40%, #102844, transparent 48%), var(--ink);
}
.polar .topbar,
.polar .topbar.scrolled {
  background: #081324;
  border-color: #314863;
}
/* Два слоя: провисающий провод и лампы разных цветов по его дуге. */
.polar .topbar::before,
.polar .topbar::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 23px;
  pointer-events: none;
  background-size: 108px 23px;
  background-repeat: repeat-x;
}
.polar .topbar::before {
  background-image: radial-gradient(ellipse 66px 13px at 50% -6px, transparent 94%, #648099 98%, #263c4b 104%, transparent 113%);
}
.polar .topbar::after {
  background-image:
    radial-gradient(ellipse 4px 5px at 18% 8px, #fff8cc 35%, #ffc265 85%, transparent),
    radial-gradient(ellipse 4px 5px at 50% 11px, #eefaff 35%, #74caff 85%, transparent),
    radial-gradient(ellipse 4px 5px at 82% 8px, #f1ffd6 35%, #baff63 85%, transparent);
  filter: drop-shadow(0 1px 3px #abdfff);
  /* Свет бежит по неподвижным лампам. Провод остаётся видимым. */
  --wave: 216px;
  mask-image: linear-gradient(90deg, #0002 0% 12%, #000 36% 58%, #0002 82% 100%);
  mask-size: var(--wave) 100%;
  mask-repeat: repeat-x;
  animation: polar-lights 1.65s linear infinite;
}
@keyframes polar-lights {
  from { mask-position: 0 0; }
  to { mask-position: var(--wave) 0; }
}
.polar .cx-stage { background: radial-gradient(ellipse at 80% 75%, #112c4a, #040811 65%); }
.polar .cx-steps span { -webkit-text-stroke-color: var(--ice); }
.polar .cx-steps span::after { color: var(--ice); text-shadow: 0 0 12px #509cfe; }
.polar .ticker { background: #b4e6ff; color: #0c1932; }
.polar .ticker-track span::after { content: "❄"; color: #24579e; }
.polar .card { border-color: #415f7c; }
.polar .card:focus-visible,
.polar #cxTiles .cx-active { box-shadow: 0 0 0 2px var(--ice), 0 0 22px #559bfa44; }
.polar .btn-lime,
.polar .chip.active { background: var(--lime); color: #10160b; }
.polar #how .step,
.polar .cx-faq details,
.polar .sheet-panel:not(.story-panel),
.polar .account-empty {
  background: linear-gradient(130deg, #182d46, #0d192a 75%);
  border-color: #3a526e;
}
.polar .cx-faq details[open] { border-color: #83b4da; }
.polar .cx-faq details p { color: #d3e2f1; }
.polar .cx-cta-card {
  background: linear-gradient(115deg, #b9e8ff, #d9f6fc 43%, #8abcee 82%, #748fe0);
  color: #101c30;
}
.polar .cx-footer {
  border-color: #365679;
  background: radial-gradient(ellipse at 84% 100%, #153966, transparent 60%), #091525;
}
@media (max-width:760px) {
  .polar .cx-stage { background: var(--ink); }
  .polar .cx-stage img {
    content: normal;
    object-fit: contain;
    mask-image: linear-gradient(#000 72%, transparent);
  }
  .polar .topbar::before,
  .polar .topbar::after { background-size: 84px 21px; height: 21px; --wave: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  .polar .topbar::after { animation: none; mask-image: none; }
}
/* Пара стеклянных шаров рядом с подписью каталога. */
.polar #trends .kicker::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 28px;
  margin-inline-start: 10px;
  vertical-align: middle;
  background:
    radial-gradient(circle at 9px 14px, white 1px, transparent 2px),
    radial-gradient(circle at 11px 17px, #b8edff, #397bd0 5px, #153967 7px, transparent 8px),
    radial-gradient(circle at 28px 8px, white 1px, transparent 2px),
    radial-gradient(circle at 30px 11px, #f1ffc2, #9fb930 4px, #41551b 6px, transparent 7px),
    linear-gradient(#8aa6bf, #8aa6bf) 11px 0 / 1px 10px no-repeat,
    linear-gradient(#8aa6bf, #8aa6bf) 30px 0 / 1px 6px no-repeat;
}
.polar .brand .crown { color: #769dff; filter: drop-shadow(0 -1px 0 #d9f4ff); }
.polar .cx-cta-card::before {
  background:
    radial-gradient(circle, #fff8 1px, transparent 2px) 6px 12px / 47px 37px,
    radial-gradient(circle, #fff9 1.5px, transparent 3px) 30px 19px / 73px 61px;
}

/* Личный кабинет, заказ и оплата */
.polar .wallet,
.polar .pp-spec {
  background: linear-gradient(125deg, #ddf5ff, #a5d9fa 55%, #93aef2);
  color: #0b1c34;
}
.polar .order, .polar .help-card, .polar .pp-maker,
.polar .pp-rule-grid article, .polar .pp-need {
  background: linear-gradient(135deg, #182f4b, #101d31);
  border-color: #3b5b79;
}
.polar .pay-box .amounts button.active,
.polar .pp-steps li.active {
  background: #193753;
  border-color: var(--ice);
  color: #eef9ff;
}
.polar .pay-box .field:not(.invalid) input:focus { border-color: var(--ice); }
.polar .trend-view .trend-desc, .polar .pp-lead, .polar .doc p { color: #d3e2ef; }
.polar .chat-head { background: linear-gradient(110deg, #1a3756, #101c31); }
.polar .chat-feed { background: radial-gradient(ellipse at top right, #162e49, #0b1727 72%); }
.polar .chat-msg.mine { background: #243f5e; }
.polar .chat-msg.team { color: #0b192c; background: #c6e8fa; }
.polar .doc-tabs a[aria-current] { color: #0c1932; background: var(--ice); }
.polar .doc h2 span, .polar .pp-rules .hl { color: var(--ice); }
