/* =============================================================
   KNigga — тема «Зима» (knigga winter)

   Холодная бумага, хвойный зелёный, льдистый голубой и тёплый
   золотой свет гирлянды. Декор: снегопад, гирлянда, ёлочные
   шары, снеговик с мандаринами, ёлка с рождественскими книгами.
   Анимации — только в hero, без мигания и без горизонтального
   скролла.
   ============================================================= */

:root {
  --cream: #eef4f8;
  --cream-2: #e1ebf1;
  --paper: #fbfdff;
  --ink: #16282e;
  --ink-soft: #4e626b;
  --ink-mute: #7e9199;

  --green: #0a3b35;
  --green-2: #0f534a;
  --mint: #d6e8e4;
  --mint-2: #e9f3f1;
  --lime: #cfe8d9;
  --moss: #3d6f6a;
  --gold: #b3822f;
  --gold-light: #f0d79a;
  --terra: #a94d52;

  --line: rgba(10, 59, 53, 0.14);
  --line-strong: rgba(10, 59, 53, 0.28);

  --header-bg: rgba(238, 244, 248, 0.86);
  --wash-1: rgba(224, 240, 246, 0.95);
  --wash-2: rgba(120, 176, 201, 0.24);
  --wash-3: rgba(207, 232, 217, 0.55);
  --tint-a: #eaf3f7;
  --tint-b: #dfeaf0;

  --shadow-sm: 0 2px 10px rgba(10, 59, 53, 0.07);
  --shadow: 0 12px 34px rgba(10, 59, 53, 0.11);
  --shadow-lg: 0 28px 70px rgba(10, 59, 53, 0.17);

  --winter-ice: #9cc8dc;
  --winter-sky: #6fa9c4;
  --winter-silver: #c9dde6;
  --winter-berry: #a94d52;
  --winter-gold: #e8c47a;
  --winter-spruce: #0a3b35;
  --winter-snow: #f8fcff;
}

html { background: var(--cream); }

body {
  background:
    radial-gradient(52% 40% at 86% 0%, rgba(111, 169, 196, 0.13), transparent 70%),
    radial-gradient(44% 36% at 4% 22%, rgba(169, 77, 82, 0.05), transparent 72%),
    var(--cream);
}

/* ---------- Шапка ---------- */
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(10, 59, 53, 0.09);
}

/* ---------- Hero: зимнее небо и мягкое сияние ---------- */
.hero {
  background:
    linear-gradient(180deg, #e7f3f9 0%, rgba(255, 255, 255, 0) 46%, rgba(214, 232, 228, 0.78) 100%);
}

.hero__wash {
  background:
    radial-gradient(42% 46% at 12% 18%, rgba(236, 248, 252, 0.96) 0%, rgba(236, 248, 252, 0) 70%),
    radial-gradient(38% 40% at 86% 4%, rgba(111, 169, 196, 0.22) 0%, rgba(111, 169, 196, 0) 72%),
    radial-gradient(50% 46% at 68% 94%, rgba(184, 218, 226, 0.85) 0%, rgba(184, 218, 226, 0) 72%);
}

.hero__grain { opacity: 0.11; }

.hero__wash::after {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(28% 32% at 72% 20%, rgba(214, 232, 228, 0.55), transparent 70%),
    radial-gradient(24% 28% at 24% 78%, rgba(111, 169, 196, 0.18), transparent 72%),
    radial-gradient(20% 24% at 52% 40%, rgba(232, 196, 122, 0.12), transparent 72%);
  animation: winter-aurora 22s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

/* Рукописная строка: хвоя → лёд → ягодный акцент */
.hero__title .script {
  background: linear-gradient(100deg, #0f534a 0%, #2f7f8c 38%, #6fa9c4 64%, #a94d52 100%);
  background-size: 140% 100%;
  background-position: 100% 50%;
  padding-right: 0.3em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: winter-ink 20s ease-in-out infinite alternate;
}

/* Зимняя гамма логотипа: хвоя + льдистый голубой. */
.logo { color: var(--green); }
.logo em { color: var(--winter-sky); }

.place-pill {
  background: rgba(251, 253, 255, 0.82);
  border-color: rgba(111, 169, 196, 0.26);
}

/* ---------- Зимняя «ритуал»-плашка ---------- */
.season-ritual--winter {
  display: inline-flex;
  border-color: rgba(111, 169, 196, 0.3);
  background: rgba(251, 253, 255, 0.86);
  box-shadow: 0 4px 16px rgba(10, 59, 53, 0.08);
  color: #3b6f7f;
}

.season-ritual__cocoa {
  width: 36px;
  height: 36px;
  flex: none;
}

.season-ritual--winter .season-ritual__flake {
  color: var(--winter-sky);
  animation: flake-spin 14s linear infinite;
}

.collage__main {
  box-shadow:
    0 30px 80px rgba(10, 59, 53, 0.2),
    0 0 0 1px rgba(111, 169, 196, 0.12);
}

.collage__small {
  border-color: var(--paper);
  box-shadow: 0 12px 30px rgba(10, 59, 53, 0.15);
}

.hero__rating-chip {
  box-shadow: 0 0 0 1px rgba(111, 169, 196, 0.18);
}

/* ---------- Зимний слой ---------- */
.season-decor--winter {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Гирлянда: провисающая нить и разноцветные лампочки */
.garland {
  position: absolute;
  top: 0;
  left: -2%;
  right: -2%;
  height: 96px;
  pointer-events: none;
}

.garland__wire {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 34px;
  border-bottom: 2px solid rgba(10, 59, 53, 0.28);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.garland__bulb {
  position: absolute;
  width: 10px;
  height: 13px;
  border-radius: 50% 50% 45% 45%;
  background: var(--bulb, var(--winter-gold));
  box-shadow: 0 0 12px 4px var(--glow, rgba(232, 196, 122, 0.5));
  animation: bulb-twinkle 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.42s);
  transform-origin: 50% 0;
}

.garland__bulb:nth-child(2) { left: 3.0%; top: 32px; --bulb: #e8c47a; --glow: rgba(232, 196, 122, 0.55); }
.garland__bulb:nth-child(3) { left: 7.5%; top: 35px; --bulb: #9cc8dc; --glow: rgba(156, 200, 220, 0.55); }
.garland__bulb:nth-child(4) { left: 12.0%; top: 38px; --bulb: #a94d52; --glow: rgba(169, 77, 82, 0.45); }
.garland__bulb:nth-child(5) { left: 16.4%; top: 40px; --bulb: #cfe8d9; --glow: rgba(207, 232, 217, 0.55); }
.garland__bulb:nth-child(6) { left: 20.9%; top: 42px; --bulb: #e8c47a; --glow: rgba(232, 196, 122, 0.55); }
.garland__bulb:nth-child(7) { left: 25.4%; top: 44px; --bulb: #9cc8dc; --glow: rgba(156, 200, 220, 0.55); }
.garland__bulb:nth-child(8) { left: 29.9%; top: 46px; --bulb: #a94d52; --glow: rgba(169, 77, 82, 0.45); }
.garland__bulb:nth-child(9) { left: 34.3%; top: 47px; --bulb: #cfe8d9; --glow: rgba(207, 232, 217, 0.55); }
.garland__bulb:nth-child(10) { left: 38.8%; top: 48px; --bulb: #e8c47a; --glow: rgba(232, 196, 122, 0.55); }
.garland__bulb:nth-child(11) { left: 43.3%; top: 49px; --bulb: #9cc8dc; --glow: rgba(156, 200, 220, 0.55); }
.garland__bulb:nth-child(12) { left: 47.8%; top: 49px; --bulb: #a94d52; --glow: rgba(169, 77, 82, 0.45); }
.garland__bulb:nth-child(13) { left: 52.2%; top: 49px; --bulb: #cfe8d9; --glow: rgba(207, 232, 217, 0.55); }
.garland__bulb:nth-child(14) { left: 56.7%; top: 49px; --bulb: #e8c47a; --glow: rgba(232, 196, 122, 0.55); }
.garland__bulb:nth-child(15) { left: 61.2%; top: 48px; --bulb: #9cc8dc; --glow: rgba(156, 200, 220, 0.55); }
.garland__bulb:nth-child(16) { left: 65.7%; top: 47px; --bulb: #a94d52; --glow: rgba(169, 77, 82, 0.45); }
.garland__bulb:nth-child(17) { left: 70.1%; top: 46px; --bulb: #cfe8d9; --glow: rgba(207, 232, 217, 0.55); }
.garland__bulb:nth-child(18) { left: 74.6%; top: 44px; --bulb: #e8c47a; --glow: rgba(232, 196, 122, 0.55); }
.garland__bulb:nth-child(19) { left: 79.1%; top: 42px; --bulb: #9cc8dc; --glow: rgba(156, 200, 220, 0.55); }
.garland__bulb:nth-child(20) { left: 83.6%; top: 40px; --bulb: #a94d52; --glow: rgba(169, 77, 82, 0.45); }
.garland__bulb:nth-child(21) { left: 88.0%; top: 38px; --bulb: #cfe8d9; --glow: rgba(207, 232, 217, 0.55); }
.garland__bulb:nth-child(22) { left: 92.5%; top: 35px; --bulb: #e8c47a; --glow: rgba(232, 196, 122, 0.55); }
.garland__bulb:nth-child(23) { left: 96.0%; top: 32px; --bulb: #9cc8dc; --glow: rgba(156, 200, 220, 0.55); }

/* Ёлочные шары на нитях */
.ornament {
  position: absolute;
  top: 0;
  width: var(--o-size, 44px);
  height: calc(var(--o-size, 44px) * 1.5);
  color: var(--o-color, var(--winter-berry));
  transform-origin: 50% 0;
  animation: ornament-sway var(--o-dur, 8s) ease-in-out infinite alternate;
  pointer-events: none;
}

.ornament svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 10px rgba(10, 59, 53, 0.16));
}

.ornament--1 { left: 7%; --o-size: 48px; --o-color: #a94d52; --o-dur: 7s; }
.ornament--2 { left: 17%; top: -10px; --o-size: 38px; --o-color: #6fa9c4; --o-dur: 8.5s; animation-delay: -2s; }
.ornament--3 { right: 9%; --o-size: 54px; --o-color: #b3822f; --o-dur: 9s; animation-delay: -4s; }
.ornament--4 { left: 30%; --o-size: 40px; --o-color: #cfe8d9; --o-dur: 8s; animation-delay: -1s; }
.ornament--5 { left: 48%; top: -6px; --o-size: 46px; --o-color: #6fa9c4; --o-dur: 9.5s; animation-delay: -3s; }
.ornament--6 { left: 68%; --o-size: 38px; --o-color: #a94d52; --o-dur: 7.5s; animation-delay: -5s; }

/* Снежинки */
.snowflake {
  position: absolute;
  top: -12vh;
  left: var(--x);
  width: calc(var(--size) * 1.3);
  height: calc(var(--size) * 1.3);
  color: var(--flake);
  opacity: 0;
  animation: snow-fall var(--dur) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.snowflake svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(10, 59, 53, 0.24));
  animation: snow-sway var(--sway-dur, 6s) ease-in-out infinite alternate;
  animation-delay: var(--sway-delay, 0s);
  will-change: transform;
}

.snowflake--1  { --x: 93.34%; --y: 12%; --size: 22px; --dur: 24s; --delay: -10.16s; --drift: 8.0px; --spin: 167deg; --sway: 13px; --bob: 11px; --sway-dur: 7.1s; --sway-delay: -0.37s; --flake: #5f9dbb; }
.snowflake--2  { --x: 29.67%; --y: 54%; --size: 14px; --dur: 24s; --delay: -7.84s; --drift: -8.0px; --spin: -214deg; --sway: 18px; --bob: 9px; --sway-dur: 5.7s; --sway-delay: -0.74s; --flake: #ffffff; }
.snowflake--3  { --x: 74.76%; --y: 78%; --size: 28px; --dur: 24s; --delay: -16.16s; --drift: -24.8px; --spin: 261deg; --sway: 8px; --bob: 7px; --sway-dur: 7.8s; --sway-delay: -1.11s; --flake: #a9c9d8; }
.snowflake--4  { --x: 35.72%; --y: 28%; --size: 16px; --dur: 24s; --delay: -2.84s; --drift: 25.6px; --spin: -308deg; --sway: 13px; --bob: 5px; --sway-dur: 6.4s; --sway-delay: -1.48s; --flake: #6fa9c4; }
.snowflake--5  { --x: 21.23%; --y: 62%; --size: 20px; --dur: 24s; --delay: -20.16s; --drift: -23.8px; --spin: 355deg; --sway: 18px; --bob: 12px; --sway-dur: 5.0s; --sway-delay: -1.85s; --flake: #a9c9d8; }
.snowflake--6  { --x: 17.44%; --y: 8%; --size: 12px; --dur: 24s; --delay: -16.84s; --drift: -26.0px; --spin: -402deg; --sway: 8px; --bob: 10px; --sway-dur: 7.1s; --sway-delay: -2.22s; --flake: #ffffff; }
.snowflake--7  { --x: 63.07%; --y: 40%; --size: 26px; --dur: 24s; --delay: -6.16s; --drift: 17.9px; --spin: 449deg; --sway: 13px; --bob: 8px; --sway-dur: 5.7s; --sway-delay: -2.59s; --flake: #6fa9c4; }
.snowflake--8  { --x: 51.33%; --y: 70%; --size: 15px; --dur: 24s; --delay: -0.84s; --drift: -13.0px; --spin: -136deg; --sway: 18px; --bob: 6px; --sway-dur: 7.8s; --sway-delay: -2.96s; --flake: #a9c9d8; }
.snowflake--9  { --x: 14.89%; --y: 18%; --size: 30px; --dur: 24s; --delay: -13.16s; --drift: -8.0px; --spin: 183deg; --sway: 8px; --bob: 4px; --sway-dur: 6.4s; --sway-delay: -3.33s; --flake: #ffffff; }
.snowflake--10 { --x: 7.86%; --y: 50%; --size: 18px; --dur: 24s; --delay: -3.84s; --drift: 11.5px; --spin: -230deg; --sway: 13px; --bob: 11px; --sway-dur: 5.0s; --sway-delay: -3.70s; --flake: #5f9dbb; }
.snowflake--11 { --x: 39.89%; --y: 84%; --size: 24px; --dur: 24s; --delay: -15.16s; --drift: 8.6px; --spin: 277deg; --sway: 18px; --bob: 9px; --sway-dur: 7.1s; --sway-delay: -4.07s; --flake: #a9c9d8; }
.snowflake--12 { --x: 87.89%; --y: 32%; --size: 13px; --dur: 24s; --delay: -17.84s; --drift: 30.2px; --spin: -324deg; --sway: 8px; --bob: 7px; --sway-dur: 5.7s; --sway-delay: -4.44s; --flake: #ffffff; }
.snowflake--13 { --x: 42.83%; --y: 6%; --size: 21px; --dur: 24s; --delay: -22.16s; --drift: -28.9px; --spin: 371deg; --sway: 13px; --bob: 5px; --sway-dur: 7.8s; --sway-delay: -4.81s; --flake: #6fa9c4; }
.snowflake--14 { --x: 55.62%; --y: 58%; --size: 17px; --dur: 24s; --delay: -8.84s; --drift: -29.3px; --spin: -418deg; --sway: 18px; --bob: 12px; --sway-dur: 6.4s; --sway-delay: -5.18s; --flake: #ffffff; }
.snowflake--15 { --x: 27.45%; --y: 22%; --size: 19px; --dur: 24s; --delay: -5.16s; --drift: -8.0px; --spin: 465deg; --sway: 8px; --bob: 10px; --sway-dur: 5.0s; --sway-delay: -5.55s; --flake: #a9c9d8; }
.snowflake--16 { --x: 89.25%; --y: 74%; --size: 14px; --dur: 24s; --delay: -6.84s; --drift: 30.5px; --spin: -152deg; --sway: 13px; --bob: 8px; --sway-dur: 7.1s; --sway-delay: -5.92s; --flake: #5f9dbb; }
.snowflake--17 { --x: 47.84%; --y: 44%; --size: 27px; --dur: 24s; --delay: -23.16s; --drift: 32.6px; --spin: 199deg; --sway: 18px; --bob: 6px; --sway-dur: 5.7s; --sway-delay: -6.29s; --flake: #ffffff; }
.snowflake--18 { --x: 58.78%; --y: 10%; --size: 16px; --dur: 24s; --delay: -1.84s; --drift: -21.3px; --spin: -246deg; --sway: 8px; --bob: 4px; --sway-dur: 7.8s; --sway-delay: -6.66s; --flake: #a9c9d8; }
.snowflake--19 { --x: 79.35%; --y: 64%; --size: 22px; --dur: 24s; --delay: -0.16s; --drift: -8.0px; --spin: 293deg; --sway: 13px; --bob: 11px; --sway-dur: 6.4s; --sway-delay: -7.03s; --flake: #6fa9c4; }
.snowflake--20 { --x: 2.69%; --y: 30%; --size: 13px; --dur: 24s; --delay: -18.84s; --drift: -21.2px; --spin: -340deg; --sway: 18px; --bob: 9px; --sway-dur: 5.0s; --sway-delay: -7.40s; --flake: #ffffff; }
.snowflake--21 { --x: 71.34%; --y: 82%; --size: 25px; --dur: 24s; --delay: -12.16s; --drift: 29.1px; --spin: 387deg; --sway: 8px; --bob: 7px; --sway-dur: 7.1s; --sway-delay: -7.77s; --flake: #a9c9d8; }
.snowflake--22 { --x: 66.24%; --y: 48%; --size: 18px; --dur: 24s; --delay: -20.84s; --drift: -22.8px; --spin: -434deg; --sway: 13px; --bob: 5px; --sway-dur: 5.7s; --sway-delay: -8.14s; --flake: #5f9dbb; }
.snowflake--23 { --x: 10.16%; --y: 16%; --size: 20px; --dur: 24s; --delay: -14.16s; --drift: -33.7px; --spin: 121deg; --sway: 18px; --bob: 12px; --sway-dur: 7.8s; --sway-delay: -8.51s; --flake: #ffffff; }
.snowflake--24 { --x: 82.63%; --y: 68%; --size: 15px; --dur: 24s; --delay: -10.84s; --drift: -21.2px; --spin: -168deg; --sway: 8px; --bob: 10px; --sway-dur: 6.4s; --sway-delay: -8.88s; --flake: #a9c9d8; }
/* Снеговик с мандаринами, ёлка с книгами */
.winter-snowman-scene,
.winter-tree-scene {
  position: absolute;
  pointer-events: none;
}

.winter-snowman-scene {
  right: calc(50% + 596px);
  left: auto;
  bottom: 2%;
  width: clamp(70px, 5.5vw, 82px);
  aspect-ratio: 96 / 120;
}

.winter-tree-scene {
  left: calc(50% + 596px);
  bottom: 1%;
  width: clamp(70px, calc(50% - 596px), 132px);
  aspect-ratio: 2 / 3;
}

.winter-sticker {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(10, 59, 53, 0.16));
}

.winter-sticker svg {
  display: block;
  width: 100%;
  height: 100%;
}

.winter-sticker--snowman {
  inset: 0;
  width: 100%;
  height: 100%;
  animation: snowman-float 7s ease-in-out infinite;
}

.winter-sticker--tree {
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  animation: tree-sway 10s ease-in-out infinite alternate;
}

.winter-mandarin {
  position: absolute;
  filter: drop-shadow(0 5px 8px rgba(10, 59, 53, 0.14));
  pointer-events: none;
}

.winter-mandarin svg {
  display: block;
  width: 100%;
  height: 100%;
}

.winter-mandarin--1 {
  left: -8px;
  bottom: -5px;
  width: 24px;
  height: 24px;
  transform: rotate(-10deg);
}

.winter-mandarin--2 {
  left: 7px;
  bottom: -9px;
  width: 17px;
  height: 17px;
  transform: rotate(14deg);
}

.winter-mandarin--3 {
  left: 24px;
  bottom: -11px;
  width: 22px;
  height: 22px;
  transform: rotate(-18deg);
}

.winter-mandarin--4 {
  left: 44px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  transform: rotate(8deg);
}

.winter-mandarin--5 {
  left: 59px;
  bottom: -5px;
  width: 20px;
  height: 20px;
  transform: rotate(-6deg);
}

.winter-books {
  position: absolute;
  left: -52%;
  bottom: -1px;
  width: 78%;
  z-index: 2;
  filter: drop-shadow(0 5px 8px rgba(10, 59, 53, 0.16));
}

.winter-books svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Снежные наносы у нижнего края hero */
.snow-drift {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -46px;
  height: 130px;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(50% 100% at 50% 100%, rgba(248, 252, 255, 0.96), rgba(248, 252, 255, 0) 72%);
  filter: blur(2px);
  pointer-events: none;
}

.snow-drift--2 {
  left: 18%;
  right: -32%;
  bottom: -78px;
  height: 160px;
  opacity: 0.7;
}

/* ---------- Секции: холодная бумага и лёд ---------- */
.section--tinted {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(111, 169, 196, 0.09), transparent 70%),
    linear-gradient(180deg, var(--tint-a) 0%, var(--tint-b) 100%);
}

#schedule {
  background:
    radial-gradient(34% 42% at 92% 8%, rgba(111, 169, 196, 0.13), transparent 70%),
    linear-gradient(180deg, #e8f3f8 0%, rgba(251, 253, 255, 0) 380px),
    var(--paper);
}

#gallery {
  background:
    radial-gradient(26% 34% at 96% 8%, rgba(111, 169, 196, 0.08), transparent 70%),
    radial-gradient(22% 30% at 4% 88%, rgba(207, 232, 217, 0.2), transparent 70%),
    var(--paper);
}

.quote { border-left-color: var(--winter-ice); }

.note-card {
  background: #f7fbfd;
  border-color: rgba(111, 169, 196, 0.22);
}
.note-card__foot { border-top-color: rgba(111, 169, 196, 0.22); }

.price-card {
  background:
    radial-gradient(90% 70% at 90% 0%, rgba(111, 169, 196, 0.22), transparent 60%),
    linear-gradient(160deg, #0b3f3a 0%, #052a27 100%);
}

/* ---------- Контакты: зимняя ночь ---------- */
.cta {
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(111, 169, 196, 0.2), transparent 62%),
    linear-gradient(165deg, #083a35 0%, #041f1d 100%);
}

.cta::before {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -56px;
  width: 280px;
  height: 280px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9dde6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.8'%3E%3Cpath d='M32 4v56'/%3E%3Cpath d='M32 18l-7-7M32 18l7-7M32 9l-4-4M32 9l4-4M32 46l-7 7M32 46l7 7M32 55l-4 4M32 55l4 4'/%3E%3Cg transform='rotate(60 32 32)'%3E%3Cpath d='M32 4v56'/%3E%3Cpath d='M32 18l-7-7M32 18l7-7M32 9l-4-4M32 9l4-4M32 46l-7 7M32 46l7 7M32 55l-4 4M32 55l4 4'/%3E%3C/g%3E%3Cg transform='rotate(120 32 32)'%3E%3Cpath d='M32 4v56'/%3E%3Cpath d='M32 18l-7-7M32 18l7-7M32 9l-4-4M32 9l4-4M32 46l-7 7M32 46l7 7M32 55l-4 4M32 55l4 4'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='2.6' fill='%23c9dde6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.1;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Осенняя афиша — сезонный контент, в зимнем режиме скрываем. */
.season-poster[data-season="autumn"] { display: none; }
.season-poster[data-season="winter"] { display: block; }

/* ---------- Анимации ---------- */
@keyframes winter-aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.045); }
}

@keyframes winter-ink {
  from { background-position: 100% 50%; }
  to   { background-position: 66% 50%; }
}

@keyframes flake-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes snow-fall {
  0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { transform: translate3d(var(--drift, 20px), 122vh, 0) rotate(var(--spin, 300deg)); opacity: 0; }
}

/* Высокий мобильный hero: снег должен пролететь весь блок. */
@keyframes snow-fall-mobile {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { transform: translate3d(var(--drift, 20px), 190vh, 0) rotate(var(--spin, 300deg)); opacity: 0; }
}

@keyframes snow-sway {
  from { transform: translate3d(calc(0px - var(--sway, 8px)), calc(0px - var(--bob, 3px)), 0) rotate(-3deg); }
  to   { transform: translate3d(var(--sway, 8px), var(--bob, 3px), 0) rotate(3deg); }
}

@keyframes bulb-twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

@keyframes ornament-sway {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

@keyframes snowman-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-7px) rotate(1.5deg); }
}

@keyframes tree-sway {
  from { transform: rotate(-1.4deg); }
  to   { transform: rotate(1.4deg); }
}

@keyframes static-snow-sway {
  from { transform: translate3d(0, 0, 0) rotate(var(--static-rot, -8deg)); }
  to   { transform: translate3d(0, -8px, 0) rotate(calc(var(--static-rot, -8deg) + 8deg)); }
}

/* На узком десктопе крупные стикеры залезают на статистику и подпись
   рейтинга — оставляем только гирлянду и снег. */
@media (min-width: 721px) and (max-width: 1339px) {
  .winter-tree-scene,
  .winter-snowman-scene { display: none; }
}

/* ---------- Мобильные акценты ---------- */
@media (max-width: 720px) {
  /* Место под гирлянду: иначе она прячется за плашкой «Краснодар». */
  .hero { padding-top: 58px; }

  .snowflake {
    top: -8vh;
    opacity: 0.85 !important;
    animation-name: snow-fall-mobile;
    animation-delay: var(--delay);
  }

  /* SVG-фильтр на каждой снежинке слишком дорог для мобильного GPU. */
  .snowflake svg { filter: none; }

  .snowflake--2,
  .snowflake--4,
  .snowflake--6,
  .snowflake--8,
  .snowflake--10,
  .snowflake--12,
  .snowflake--14,
  .snowflake--16,
  .snowflake--18,
  .snowflake--20,
  .snowflake--22,
  .snowflake--24 { display: none; }

  /* Страховочные снежинки: видны всегда, даже если анимация не идёт. */
  .season-static--winter {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .season-static__snow {
    position: absolute;
    width: var(--s, 24px);
    height: var(--s, 24px);
    color: var(--c, var(--winter-ice));
    opacity: 0.9;
    animation: static-snow-sway 8s ease-in-out infinite alternate;
    animation-delay: var(--d, 0s);
    will-change: transform;
  }

  .season-static__snow svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .season-static__snow--1 {
    top: 8%; left: -8px;
    --s: 26px; --c: #5f9dbb; --d: -1.2s; --static-rot: -12deg;
  }
  .season-static__snow--2 {
    top: 24%; right: -10px;
    --s: 34px; --c: #a9c9d8; --d: -3.4s; --static-rot: 14deg;
  }
  .season-static__snow--3 {
    top: 40%; right: -9px;
    --s: 24px; --c: #6fa9c4; --d: -2.8s; --static-rot: 10deg;
  }
  .season-static__snow--4 {
    top: 52%; left: -10px;
    --s: 22px; --c: #6fa9c4; --d: -2.1s; --static-rot: 20deg;
  }
  .season-static__snow--5 {
    top: 64%; left: -7px;
    --s: 18px; --c: #ffffff; --d: -4.2s; --static-rot: -16deg;
  }
  .season-static__snow--6 {
    top: 76%; right: -8px;
    --s: 30px; --c: #a9c9d8; --d: -4.6s; --static-rot: -10deg;
  }

  .garland {
    height: 58px;
  }
  .garland__wire {
    top: 28px;
    height: 0;
    border-radius: 0;
  }
  .garland .garland__bulb {
    top: 31px;
    width: 7px;
    height: 9px;
  }
  .garland .garland__bulb::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 1px;
    height: 3px;
    background: rgba(10, 59, 53, 0.38);
    transform: translateX(-50%);
  }

  .ornament {
    display: block;
    top: 27px;
  }
  .ornament--1 { left: 8%; --o-size: 20px; --o-color: #a94d52; }
  .ornament--2 { left: 46%; --o-size: 17px; --o-color: #6fa9c4; }
  .ornament--3 { left: 84%; right: auto; --o-size: 21px; --o-color: #b3822f; }
  .ornament--4,
  .ornament--5,
  .ornament--6 { display: none; }

  .winter-snowman-scene {
    left: 8px;
    bottom: 0;
    width: 46px;
  }

  .winter-sticker--snowman {
    opacity: 0.92;
  }

  .winter-tree-scene {
    display: block;
    left: auto;
    right: 6px;
    bottom: 0;
    width: clamp(34px, 10vw, 42px);
  }
  .winter-books {
    display: block;
    left: -155%;
    bottom: 0;
    width: 155%;
  }

  .winter-mandarin--1 { left: -2px; bottom: -1px; width: 14px; height: 14px; }
  .winter-mandarin--2 { left: 7px; bottom: -2px; width: 11px; height: 11px; }
  .winter-mandarin--3 { left: 17px; bottom: -2px; width: 13px; height: 13px; }
  .winter-mandarin--4 { left: 29px; bottom: -1px; width: 10px; height: 10px; }
  .winter-mandarin--5 { left: 37px; bottom: 0; width: 12px; height: 12px; }

  .snow-drift { height: 84px; bottom: -30px; }
  .snow-drift--2 { height: 110px; bottom: -52px; }

  .season-ritual { font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .season-ritual {
    padding-right: 9px;
    font-size: 0.9rem;
  }
  .season-ritual__cup,
  .season-ritual__flake { width: 24px; height: 24px; }
  .season-ritual__cocoa { width: 32px; height: 32px; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  /* Снег — главный декор темы. Оставляем снежинки видимыми,
     но убираем падение и покачивание. */
  .snowflake {
    animation: none !important;
    opacity: 0.85 !important;
    top: var(--y, 20%);
  }

  .snowflake svg,
  .garland__bulb,
  .ornament,
  .winter-sticker,
  .season-ritual--winter .season-ritual__flake,
  .season-static__snow,
  .hero__wash::after,
  .hero__title .script {
    animation: none !important;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title .script {
    color: var(--green-2);
    -webkit-text-fill-color: currentColor;
  }
}
