/* Тёплый свет 2027 — заранее выложенный пакет оформления.
   Не подменяет четыре базовых стиля. Произвольный партнёрский HTML/JS запрещён.
   Логотип: object-fit:contain, без обрезки смысловых частей. */
html[data-season-active="1"],
html[data-season-preview="1"]:not([data-season-off="1"]) {
  --season-gold: #d4a017;
  --season-gold-soft: #e8c99a;
  --season-spruce: #1f5b46;
  --season-wrap: #f7efe0;
}

html[data-season-active="1"] header,
html[data-season-preview="1"]:not([data-season-off="1"]) header,
html[data-season-active="1"] .site-header,
html[data-season-preview="1"]:not([data-season-off="1"]) .site-header {
  box-shadow: inset 0 -3px 0 var(--season-gold-soft);
  background-image:
    linear-gradient(180deg, #fffdf8 0%, #ffffff 42%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(212, 160, 23, 0.09) 18px 19px);
}

html[data-season-active="1"] header img,
html[data-season-preview="1"]:not([data-season-off="1"]) header img,
html[data-season-active="1"] .brand img,
html[data-season-preview="1"]:not([data-season-off="1"]) .brand img,
html[data-season-active="1"] .canon-banner img,
html[data-season-preview="1"]:not([data-season-off="1"]) .canon-banner img {
  object-fit: contain;
  object-position: center;
  max-height: 42px;
}

html[data-season-active="1"] .canon-banner,
html[data-season-preview="1"]:not([data-season-off="1"]) .canon-banner,
html[data-season-active="1"] .home-hero,
html[data-season-preview="1"]:not([data-season-off="1"]) .home-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(232, 201, 154, 0.55), transparent 42%),
    linear-gradient(118deg, #e6f3ee 0%, #f7efe0 52%, #fdf4e7 100%);
  position: relative;
}

html[data-season-active="1"] .canon-banner::after,
html[data-season-preview="1"]:not([data-season-off="1"]) .canon-banner::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 84px;
  height: 48px;
  pointer-events: none;
  opacity: 0.55;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><path fill='%231f5b46' d='M42 4l10 16h-6l8 12h-7l9 12H26l9-12h-7l8-12h-6z'/><circle cx='18' cy='40' r='4' fill='%23d4a017'/><rect x='62' y='30' width='14' height='14' rx='2' fill='%23f7efe0' stroke='%23d4a017'/><path stroke='%23d4a017' d='M62 37h14M69 30v14'/></svg>");
}

html[data-season-active="1"] .panel,
html[data-season-active="1"] .card,
html[data-season-preview="1"]:not([data-season-off="1"]) .panel,
html[data-season-preview="1"]:not([data-season-off="1"]) .card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--season-gold-soft);
  background-color: #fff;
}

html[data-season-active="1"] .canon-tile.t-amber,
html[data-season-preview="1"]:not([data-season-off="1"]) .canon-tile.t-amber { background: #fde8d0; }
html[data-season-active="1"] .canon-tile.t-mint,
html[data-season-preview="1"]:not([data-season-off="1"]) .canon-tile.t-mint { background: #dff3ea; }
html[data-season-active="1"] .canon-tile.t-blue,
html[data-season-preview="1"]:not([data-season-off="1"]) .canon-tile.t-blue { background: #e7eef8; }
html[data-season-active="1"] .canon-tile.t-rose,
html[data-season-preview="1"]:not([data-season-off="1"]) .canon-tile.t-rose { background: #fde8df; }

html[data-family-theme="structure"][data-season-active="1"] header,
html[data-family-theme="structure"][data-season-preview="1"]:not([data-season-off="1"]) header {
  box-shadow: inset 0 -3px 0 #c4b38a;
}
html[data-family-theme="structure"][data-season-active="1"] .canon-banner,
html[data-family-theme="structure"][data-season-preview="1"]:not([data-season-off="1"]) .canon-banner {
  background: linear-gradient(118deg, #eef2f4, #f6f1e6);
}

html[data-family-theme="night"][data-season-active="1"] header,
html[data-family-theme="night"][data-season-preview="1"]:not([data-season-off="1"]) header {
  box-shadow: inset 0 -3px 0 #c4a574;
  background-image: linear-gradient(180deg, #1c2421, #151c1a);
}
html[data-family-theme="night"][data-season-active="1"] .canon-banner,
html[data-family-theme="night"][data-season-preview="1"]:not([data-season-off="1"]) .canon-banner {
  background: linear-gradient(118deg, #1d332c, #2a2a22);
}
html[data-family-theme="night"][data-season-active="1"] .panel,
html[data-family-theme="night"][data-season-active="1"] .card,
html[data-family-theme="night"][data-season-preview="1"]:not([data-season-off="1"]) .panel,
html[data-family-theme="night"][data-season-preview="1"]:not([data-season-off="1"]) .card {
  background-color: #1b2320;
  box-shadow: inset 3px 0 0 #c4a574;
}

html[data-family-theme="album"][data-season-active="1"] header,
html[data-family-theme="album"][data-season-preview="1"]:not([data-season-off="1"]) header {
  box-shadow: inset 0 -3px 0 #e2b57a;
}
html[data-family-theme="album"][data-season-active="1"] .canon-banner,
html[data-family-theme="album"][data-season-preview="1"]:not([data-season-off="1"]) .canon-banner {
  background: linear-gradient(118deg, #f3ead8, #fdf4e7);
}

html[data-season-active="1"] .art,
html[data-season-preview="1"]:not([data-season-off="1"]) .art {
  filter: drop-shadow(0 10px 18px rgba(31, 91, 70, 0.12));
}

@keyframes season-soft-fall {
  from { background-position: 0 0, 0 0; }
  to { background-position: 40px 80px, -20px 60px; }
}

html[data-season-active="1"] body,
html[data-season-preview="1"]:not([data-season-off="1"]) body {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(232, 201, 154, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(31, 91, 70, 0.08) 0 2px, transparent 3px);
  background-size: 120px 120px, 160px 160px;
  animation: season-soft-fall 28s linear infinite;
}

html[data-reduce-motion="1"] body,
html[data-season-active="1"][data-reduce-motion="1"] *,
html[data-season-preview="1"][data-reduce-motion="1"] * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html[data-season-active="1"] body,
  html[data-season-preview="1"] body,
  html[data-season-active="1"] *,
  html[data-season-preview="1"] * {
    animation: none !important;
    transition: none !important;
  }
}

html[data-season-off="1"] header,
html[data-season-off="1"] .canon-banner,
html[data-season-off="1"] .panel,
html[data-season-off="1"] .card,
html[data-season-off="1"] body {
  box-shadow: none;
  background-image: none;
  animation: none;
}

.season-preview-faces {
  display: flex;
  gap: 8px;
  align-items: center;
}
.season-preview-faces img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e8c99a;
}
