/* Ограничиваю стили съёмным новогодним слоем и его настройками. */
#winter-scene {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
#winter-scene[hidden] {
  display: none;
}
#winter-scene *,
#winter-scene *::before,
#winter-scene *::after {
  pointer-events: none;
}
.winter-garland {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 55px;
}
.winter-wire {
  fill: none;
  stroke: url('#winter-wire');
  stroke-width: 1.2;
  opacity: 0.8;
}
.winter-light {
  filter: drop-shadow(0 0 3px #ffdf9a);
  animation: winter-glimmer 4.8s ease-in-out infinite;
  animation-delay: var(--winter-delay);
}
.winter-sprig {
  position: absolute;
  top: -18px;
  width: 235px;
  height: 44px;
  opacity: 0.95;
}
.winter-sprig-left {
  left: -30px;
  transform: rotate(-4deg);
}
.winter-sprig-right {
  right: -22px;
  transform: scaleX(-1) rotate(-4deg);
}
.winter-ornaments {
  position: absolute;
  right: 99px;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 27px;
}
body:has(.site-rail) .winter-ornaments {
  left: 44%;
  right: auto;
}
.winter-bauble {
  position: relative;
  display: block;
  width: 27px;
  height: 31px;
  margin-top: 34px;
  border-radius: 48% 48% 50% 50%;
  transform-origin: 50% -30px;
  animation: winter-sway 9s ease-in-out infinite;
  box-shadow:
    inset -5px -6px 9px #260b2655,
    0 3px 8px #0005;
}
.winter-bauble::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 30px;
  background: #b8a57d;
  left: 50%;
  top: -34px;
}
.winter-bauble::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #8a6e43, #efd4a0, #8a6e43);
  left: calc(50% - 4.5px);
  top: -4px;
}
.winter-bauble-rose {
  background:
    radial-gradient(ellipse at 31% 23%, #fff7 0, #fff3 12%, transparent 24%),
    radial-gradient(circle at 40% 35%, #f3a7c0, #bb3b67 55%, #542038);
}
.winter-bauble-gold {
  width: 21px;
  height: 24px;
  margin-top: 20px;
  animation-delay: -4s;
  background:
    radial-gradient(ellipse at 29% 20%, #fff8, transparent 30%),
    radial-gradient(circle at 35% 32%, #f1d8a5, #b58c4e 65%, #64431f);
}
.winter-bauble-gold::before {
  height: 16px;
  top: -20px;
}
body:not(:has(.site-rail)) .winter-garland {
  height: 42px;
}
.winter-frost {
  position: absolute;
  inset: 0;
  border: 1px solid #d7f3ff22;
  background:
    radial-gradient(ellipse at 0 0, #deefff24 0, transparent 20%),
    radial-gradient(ellipse at 100% 100%, #e2efff18 0, transparent 19%);
  box-shadow: inset 0 0 19px #c6e9ff0c;
}
.winter-frost::before,
.winter-frost::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 70px;
  height: 125px;
  opacity: 0.28;
  background: repeating-conic-gradient(
    from 14deg at 0% 100%,
    transparent 0 11deg,
    #cbe9ff 11.3deg 11.7deg,
    transparent 12deg 25deg
  );
  mask-image: linear-gradient(to top, #000, transparent);
}
.winter-frost::before {
  left: 0;
}
.winter-frost::after {
  right: 0;
  transform: scaleX(-1);
}
.winter-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.winter-in-call .winter-ornaments {
  display: none;
}
.winter-in-call .winter-frost {
  opacity: 0.5;
}
.winter-still .winter-light,
.winter-still .winter-bauble {
  animation-play-state: paused;
}
@keyframes winter-glimmer {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
@keyframes winter-sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
.winter-settings-card {
  padding: 25px;
  border: 1px solid #5a5d5d;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top right, #466b5d35, transparent 65%),
    linear-gradient(135deg, #2c3035, #25252e);
}
.winter-settings-card h3 {
  margin: 10px 0;
  font-size: 23px;
  letter-spacing: -0.025em;
  color: #f6efe2;
}
.winter-settings-card p {
  color: #babec7;
  font-size: 14px;
  line-height: 1.7;
}
.winter-settings-card .settings-eyebrow {
  color: #d8c39a;
}
.winter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 23px 0;
  cursor: pointer;
}
.winter-toggle strong,
.winter-toggle small {
  display: block;
}
.winter-toggle strong {
  color: #f1f0f5;
  font-size: 15px;
}
.winter-toggle small {
  margin-top: 5px;
  color: #aeb7ba;
  font-weight: 400;
  font-size: 12px;
}
.winter-toggle input[type='checkbox'] {
  appearance: none;
  flex: 0 0 44px;
  width: 44px;
  height: 25px;
  margin: 0;
  padding: 0;
  border: 1px solid #687477;
  border-radius: 16px;
  background: #464c55;
  cursor: pointer;
}
.winter-toggle input::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  margin: 3px;
  border-radius: 50%;
  background: #f1f5f4;
  transition: transform 130ms;
}
.winter-toggle input:checked {
  background: #377960;
  border-color: #70b59a;
}
.winter-toggle input:checked::before {
  transform: translateX(19px);
}
.winter-toggle input:focus-visible {
  outline: 2px solid #e8ce99;
  outline-offset: 3px;
}
.winter-toggle input:disabled {
  opacity: 0.45;
  cursor: default;
}
.winter-quick {
  position: relative;
  margin-top: auto;
  margin-bottom: 12px;
}
.winter-quick summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #5e6864;
  border-radius: 14px;
  color: #e3dbc4;
  background: #222a28;
  cursor: pointer;
  font-size: 25px;
}
.winter-quick summary::-webkit-details-marker {
  display: none;
}
.winter-quick > div {
  position: absolute;
  bottom: 0;
  left: 55px;
  width: 242px;
  padding: 18px;
  border: 1px solid #59645d;
  border-radius: 14px;
  background: #22262c;
  box-shadow: 0 8px 32px #0007;
}
.winter-quick strong {
  color: #f1e2c2;
  font-size: 13px;
}
.winter-quick label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 0;
  font-size: 13px;
  color: #e5e5ea;
  cursor: pointer;
}
.winter-quick input {
  accent-color: #59a183;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
}
@media (prefers-reduced-motion: reduce) {
  .winter-toggle input::before {
    transition: none;
  }
}
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  #winter-scene,
  .winter-quick {
    display: none !important;
  }
}
