/* =====================================================================
   Сезонное оформление (6.6): «Новый год» — ночное зимнее небо, гирлянда-звёзды, снег, школа с горящими окнами;
   «Весна» — сиреневый закат, ветки сирени, панельки. Каждая деталь — по своей галочке (классы tt-s-*).
   ===================================================================== */

.tt-season-ny{
  --sky-top:#04061A; --sky-mid:#10164A; --sky-bot:#2A1B5E;
  --glow-1:#9B5CFF; --glow-2:#FF4FD8; --glow-3:#4D7BFF; --glow-4:#36E3A6; --glow-5:#FFB347;
  --season-accent:#C64CFF; --season-foot:#05071A;
}
.tt-season-spring{
  --sky-top:#6C68D6; --sky-mid:#C98BE0; --sky-bot:#FFB38C;
  --glow-1:#B48CFF; --glow-2:#FF8FC7; --glow-3:#FFD08A; --glow-4:#C9A6FF; --glow-5:#FFE7B8;
  --season-accent:#9F7AEA; --season-foot:#2A1F45;
}

/* ---------- Логотип ---------- */
.tt-s-logo .site-branding img{ height:60px; width:auto; margin:-16px 0 -8px; }
.tt-s-logo .site-header--c .hc-brand img{ height:60px; }
@media (max-width:700px){
  .tt-s-logo .site-branding img, .tt-s-logo .site-header--c .hc-brand img{ height:46px!important; margin:-10px 0 -6px; }
}

/* ---------- Небо в шапке ---------- */
.tt-s-sky .site-header{
  position:relative; z-index:20; color:#fff; border-bottom:0; isolation:isolate;
  background:linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 62%, var(--sky-bot) 100%);
}
.tt-s-sky.tt-season-ny .site-header::before{ /* звёзды */
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.9;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 73% 15%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 94% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 70%, #fff 50%, transparent 51%);
  background-size:520px 100%;
}
.tt-s-sky.tt-season-spring .site-header::before{ /* мягкое свечение заката */
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(60% 140% at 50% 120%, rgba(255,226,170,.65), transparent 60%);
}
.tt-s-sky .site-header > .wrap, .tt-s-sky .site-header .header-panel{ position:relative; z-index:2; }
.tt-s-sky .site-branding, .tt-s-sky .site-branding .name, .tt-s-sky .primary-nav a,
.tt-s-sky .header-rubrics-btn, .tt-s-sky .header-search-btn{ color:#fff; }
.tt-s-sky .site-branding .name{ text-shadow:0 1px 12px rgba(0,0,0,.25); }
.tt-s-sky .hc-burger{ border-color:rgba(255,255,255,.9); background:rgba(255,255,255,.06); }
.tt-s-sky .hc-burger span{ background:#fff; }
.tt-s-sky .hc-burger:hover{ background:rgba(255,255,255,.18); }
.tt-s-sky .header-panel{ color:var(--ink); }

/* ---------- Под шапкой: гирлянда-звёзды / сирень ---------- */
.tt-s-strip .site-header{ position:relative; z-index:20; }
.tt-s-strip.has-big-cover .site-header{ position:absolute; }
.tt-season-strip{ position:absolute; left:0; right:0; top:100%; height:46px; margin-top:-8px; pointer-events:none; z-index:6; overflow:visible; }
.tt-season-strip svg.tt-wire{ position:absolute; left:0; top:0; width:100%; height:46px; overflow:visible; }
.tt-star{
  position:absolute; width:14px; height:14px; margin:-2px 0 0 -7px;
  clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  background:var(--c); filter:drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 12px var(--c));
  animation:tt-twinkle var(--d,2.4s) ease-in-out infinite; animation-delay:var(--dl,0s);
}
.tt-star::after{ content:""; position:absolute; inset:30%; border-radius:50%; background:#fff; opacity:.8; }
.tt-star-glow{ position:absolute; width:34px; height:34px; margin:-12px 0 0 -17px; border-radius:50%;
  background:radial-gradient(circle, var(--c) 0%, transparent 65%); opacity:.55; animation:tt-twinkle var(--d,2.4s) ease-in-out infinite; animation-delay:var(--dl,0s); }
@keyframes tt-twinkle{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

.tt-lilac-hang{ position:absolute; top:-4px; width:auto; transform-origin:50% 0; animation:tt-sway 6s ease-in-out infinite; animation-delay:var(--dl,0s); filter:drop-shadow(0 6px 10px rgba(60,30,90,.25)); }
@keyframes tt-sway{ 0%,100%{ transform:rotate(-2.5deg); } 50%{ transform:rotate(2.5deg); } }

/* ---------- Счётчик ---------- */
.tt-cd{
  position:relative; overflow:hidden; isolation:isolate; color:#fff; text-align:center;
  padding:clamp(36px,4.5vw,60px) 16px clamp(40px,5vw,68px); margin:0 0 28px;
  border-radius:0 0 32px 32px;
}
.tt-cd--ny{
  background:
    radial-gradient(1.2px 1.2px at 8% 30%, #fff 50%, transparent 51%) 0 0/480px 100%,
    radial-gradient(1px 1px at 33% 72%, rgba(255,255,255,.8) 50%, transparent 51%) 0 0/480px 100%,
    radial-gradient(1.3px 1.3px at 67% 20%, #fff 50%, transparent 51%) 0 0/480px 100%,
    radial-gradient(1px 1px at 88% 62%, rgba(255,255,255,.8) 50%, transparent 51%) 0 0/480px 100%,
    linear-gradient(180deg, var(--sky-bot) 0%, #1A1450 38%, #0B0D2E 100%);
}
body:not(.tt-s-sky) .tt-cd{ border-radius:32px; max-width:1360px; margin:24px auto 28px; }
.tt-cd--spring{
  background:
    radial-gradient(60px 60px at 82% 18%, rgba(255,250,235,.95) 0 34%, rgba(255,240,210,.35) 48%, transparent 70%),
    linear-gradient(180deg, var(--sky-bot) 0%, #F49AC6 30%, #A88BE8 66%, #4C3F8F 100%);
}
.tt-cd-bokeh{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.tt-cd-bokeh i{
  position:absolute; border-radius:50%; filter:blur(18px); opacity:.5; mix-blend-mode:screen;
  animation:tt-bokeh 9s ease-in-out infinite alternate;
}
.tt-cd-bokeh i:nth-child(5n+1){ background:var(--glow-1); }
.tt-cd-bokeh i:nth-child(5n+2){ background:var(--glow-2); }
.tt-cd-bokeh i:nth-child(5n+3){ background:var(--glow-3); }
.tt-cd-bokeh i:nth-child(5n+4){ background:var(--glow-4); }
.tt-cd-bokeh i:nth-child(5n){ background:var(--glow-5); }
.tt-cd-bokeh i:nth-child(1){ left:4%;  top:10%; width:120px; height:120px; }
.tt-cd-bokeh i:nth-child(2){ left:14%; top:62%; width:70px;  height:70px;  animation-delay:-2s; }
.tt-cd-bokeh i:nth-child(3){ left:24%; top:28%; width:46px;  height:46px;  animation-delay:-4s; }
.tt-cd-bokeh i:nth-child(4){ left:9%;  top:84%; width:90px;  height:90px;  animation-delay:-6s; }
.tt-cd-bokeh i:nth-child(5){ left:30%; top:86%; width:54px;  height:54px;  animation-delay:-1s; }
.tt-cd-bokeh i:nth-child(6){ left:70%; top:8%;  width:84px;  height:84px;  animation-delay:-3s; }
.tt-cd-bokeh i:nth-child(7){ left:84%; top:40%; width:140px; height:140px; animation-delay:-5s; }
.tt-cd-bokeh i:nth-child(8){ left:76%; top:76%; width:60px;  height:60px;  animation-delay:-7s; }
.tt-cd-bokeh i:nth-child(9){ left:92%; top:82%; width:96px;  height:96px;  animation-delay:-2.5s; }
.tt-cd-bokeh i:nth-child(10){ left:62%; top:58%; width:40px; height:40px;  animation-delay:-4.5s; }
.tt-cd-bokeh i:nth-child(11){ left:44%; top:6%;  width:36px; height:36px;  animation-delay:-6.5s; }
.tt-cd-bokeh i:nth-child(12){ left:52%; top:92%; width:110px; height:110px; animation-delay:-8s; }
.tt-cd-bokeh i:nth-child(13){ left:2%;  top:44%; width:50px; height:50px;  animation-delay:-3.5s; }
.tt-cd-bokeh i:nth-child(14){ left:96%; top:14%; width:44px; height:44px;  animation-delay:-1.5s; }
.tt-season-spring .tt-cd-bokeh i{ opacity:.35; }
@keyframes tt-bokeh{ from{ transform:translate(0,0) scale(1); } to{ transform:translate(14px,-10px) scale(1.18); } }

.tt-cd-lilac img{ position:absolute; top:-10px; z-index:1; height:min(46%,260px); width:auto; pointer-events:none; transform-origin:50% 0; animation:tt-sway 7s ease-in-out infinite; filter:drop-shadow(0 10px 18px rgba(60,30,90,.35)); }
.tt-cd-lilac img:first-child{ left:clamp(-30px,2vw,40px); }
.tt-cd-lilac img:last-child{ right:clamp(-30px,3vw,60px); height:min(36%,200px); animation-delay:-3s; }

.tt-cd-card{
  position:relative; z-index:3; display:inline-block; min-width:min(720px,100%); max-width:100%; box-sizing:border-box;
  padding:clamp(22px,3vw,34px) clamp(18px,4vw,56px) clamp(22px,3vw,30px); border-radius:34px;
  background:rgba(14,16,52,.32); border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(16px) saturate(1.25); backdrop-filter:blur(16px) saturate(1.25);
  box-shadow:0 30px 80px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
.tt-cd--spring .tt-cd-card{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.3); }
.tt-cd-mark{ display:block; height:clamp(36px,4vw,52px); width:auto; margin:0 auto 6px; filter:drop-shadow(0 4px 14px rgba(0,0,0,.3)); }
.tt-cd p{ margin:0; }
.tt-cd-label{ font-family:"Nunito", var(--font-display), sans-serif; font-weight:900; font-size:clamp(26px,3.6vw,48px); line-height:1; letter-spacing:-.01em; }
.tt-cd--spring .tt-cd-label{ font-family:"Oswald", sans-serif; font-weight:300; font-size:clamp(32px,4.4vw,60px); letter-spacing:.01em; }
.tt-cd-num{
  font-family:"Oswald", "Arial Narrow", sans-serif; font-weight:500; font-size:clamp(120px,17vw,230px); line-height:.84; letter-spacing:-.02em;
  margin:.04em 0 .02em!important; text-shadow:0 0 60px rgba(180,150,255,.35), 0 6px 30px rgba(0,0,0,.25); font-variant-numeric:tabular-nums;
}
.tt-cd--spring .tt-cd-num{ font-weight:300; text-shadow:0 0 50px rgba(255,220,240,.45), 0 6px 26px rgba(70,30,90,.25); }
.tt-cd-unit span{
  display:inline-block; font-family:"Nunito", var(--font-display), sans-serif; font-weight:900; font-size:clamp(24px,3.4vw,42px); line-height:1.1;
  background:#08080F; color:#fff; padding:.06em .55em .12em; border-radius:16px; box-shadow:0 8px 24px -10px rgba(0,0,0,.6);
}
.tt-cd--spring .tt-cd-unit span{ font-family:"Oswald", sans-serif; font-weight:500; background:rgba(40,20,70,.75); }
.tt-cd-time{ margin-top:14px!important; font-family:var(--font-mono); font-size:.86rem; letter-spacing:.12em; color:rgba(255,255,255,.72); min-height:1.2em; }
.tt-cd-done{ font-family:"Oswald", sans-serif; font-weight:500; font-size:clamp(56px,10vw,128px); line-height:.95; padding:.2em 0; text-shadow:0 0 50px rgba(200,160,255,.5); }
.tt-cd canvas, .tt-season-city canvas, .tt-s-sky .site-header > canvas{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; }
.tt-s-sky .site-header > canvas{ z-index:1; }

/* полоса со счётчиком на остальных страницах */
.tt-cd-bar{
  display:flex; justify-content:center; align-items:baseline; gap:.4em; padding:7px 16px; text-decoration:none; color:#fff;
  font-family:"Oswald", sans-serif; font-weight:300; font-size:1.02rem; letter-spacing:.02em;
  background:linear-gradient(90deg, var(--sky-mid), var(--sky-bot), var(--sky-mid));
}
.tt-cd-bar b{ font-weight:700; font-size:1.3rem; }
.tt-s-strip .tt-cd-bar{ padding-top:22px; }

/* ---------- Плашка над шапкой ---------- */
.tt-season-banner{ position:relative; z-index:40; color:#fff; font-family:"Oswald", sans-serif; font-weight:400; font-size:1rem; letter-spacing:.03em; line-height:1.3; }
.tt-season-ny .tt-season-banner{ background:linear-gradient(90deg, #1B1450, #6A2BB8 50%, #B8318F); }
.tt-season-spring .tt-season-banner{ background:linear-gradient(90deg, #8C7BE6, #F08FC4 55%, #FFB38C); }
.tt-season-banner .wrap{ display:flex; align-items:center; justify-content:center; gap:10px; padding-top:8px; padding-bottom:8px; text-align:center; }
.tt-season-banner a, .tt-season-banner span{ color:inherit; text-decoration:none; }
.tt-season-banner a:hover{ text-decoration:underline; text-underline-offset:4px; }
.tt-sb-close{ flex:none; background:none; border:0; color:inherit; font-size:1.4rem; line-height:1; cursor:pointer; opacity:.75; padding:0 4px; }
.tt-sb-close:hover{ opacity:1; }

/* ---------- Над подвалом: город ---------- */
.tt-season-city{ position:relative; overflow:hidden; isolation:isolate; height:clamp(150px,19vw,270px); margin-top:40px; }
.tt-season-city img{ position:absolute; left:0; bottom:0; width:100%; height:100%; object-fit:cover; object-position:50% 100%; z-index:1; }
.tt-season-ny .tt-season-city{
  background:
    radial-gradient(1.2px 1.2px at 10% 20%, #fff 50%, transparent 51%) 0 0/420px 100%,
    radial-gradient(1px 1px at 40% 40%, rgba(255,255,255,.8) 50%, transparent 51%) 0 0/420px 100%,
    radial-gradient(1.3px 1.3px at 75% 15%, #fff 50%, transparent 51%) 0 0/420px 100%,
    linear-gradient(180deg, var(--sky-bot) 0%, var(--sky-mid) 45%, var(--sky-top) 100%);
}
.tt-season-spring .tt-season-city{
  background:
    radial-gradient(70px 70px at 38% 50%, rgba(255,248,224,1) 0 34%, rgba(255,222,170,.6) 50%, transparent 74%),
    radial-gradient(60% 70% at 38% 60%, rgba(255,214,160,.55), transparent 70%),
    linear-gradient(180deg, #8C7BE6 0%, #E892C8 48%, #FFB38C 82%, #FFD9A6 100%);
}
.tt-fields .tt-season-city{ max-width:1360px; margin:40px auto 0; border-radius:28px 28px 0 0; }
@media (max-width:700px){ .tt-fields .tt-season-city{ border-radius:20px 20px 0 0; } }
.tt-s-cap .site-footer{ margin-top:0!important; border-radius:0!important; }
.tt-fields .tt-season-city:has(+ .site-footer--band){ border-radius:0; margin-top:0; }

/* ---------- Цвета ---------- */
.tt-s-colors .site-footer{ background:var(--season-foot); }
.tt-season-ny.tt-s-colors ::selection{ background:#C64CFF; color:#fff; }
.tt-season-spring.tt-s-colors ::selection{ background:#D9C2FF; color:var(--ink); }
.tt-s-colors .article-body a:hover{ text-decoration-color:var(--season-accent); }

/* ---------- Кнопка «выключить снег» ---------- */
.tt-season-fx-btn{
  position:fixed; left:14px; bottom:14px; z-index:81; width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(255,255,255,.35); background:rgba(16,18,52,.72); color:#fff; font-size:1.1rem; line-height:1; cursor:pointer;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px -8px rgba(0,0,0,.5);
}
.tt-season-spring .tt-season-fx-btn{ background:rgba(120,90,200,.72); }
.tt-season-fx-btn.is-off{ opacity:.5; }
.tt-season-fx-btn.is-off::after{ content:""; position:absolute; width:24px; height:2px; background:#fff; transform:rotate(-45deg); }
.tt-season-fx{ position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:80; }

@media (max-width:700px){
  .tt-cd{ border-radius:0 0 24px 24px; }
  .tt-cd-card{ border-radius:26px; }
  .tt-s-sky .tt-cd-mark{ display:none; }
  .tt-season-strip{ height:36px; }
}
@media (prefers-reduced-motion: reduce){
  .tt-star, .tt-star-glow, .tt-cd-bokeh i, .tt-lilac-hang, .tt-cd-lilac img{ animation:none; }
}
@media print{
  .tt-season-banner, .tt-season-strip, .tt-season-fx, .tt-season-fx-btn, .tt-season-city, .tt-cd, .tt-cd-bar{ display:none!important; }
  .tt-s-sky .site-header{ background:none; color:var(--ink); }
}
