/* ==== 20-hero.css ==== */
/* ==== home hero (owner 2026-10-19, hero agent) · one full-screen world and the headline, nothing else ====
   Five worlds, ported from the approved lab pages public/_lab/hero/ (1-monolith, 2-road, 3-prism, 5-night; 4-studio for the light
   theme). The inline scripts in partials/hero.html set .hero[data-world] and fill only that world's sources; only that layer (.hw)
   is displayed, so only its pictures download. Look + intros + CSS loops here; pointer, road video, prism light, night comets and
   the live theme swap in 21-hero.js. .hero.hold pauses every loop (pause button, off screen, tab hidden). .hero.swapped = the world
   came from a live theme switch: no intro, the final picture at once. Reduced motion: still pictures, no loops, no video.
   The old v6 hero (laptop, cards, arena photo) is in _archive/2026-10-19-pre-light-mode/src/. */

.hero{position:relative;isolation:isolate;overflow:clip;height:100vh;height:100svh;min-height:min(540px,100vh);color:#fff;container-type:size;
  /* headline tokens, set per world below */
  --ht:calc(var(--hdr) + clamp(24px,6cqh,80px));--hb:auto;--ha:flex-start;--hfs:clamp(36px,min(5.2vw,8.8cqh),84px);--hmw:15em;
  --hlh:1.02;--hls:-.045em;--hc:#fff;--hsh:none;--hl2:linear-gradient(100deg,#fff 0%,#C9D2FF 75%)}

/* a world layer: its own dark ground under the picture; the last strip dissolves into the stage below */
.hw{position:absolute;inset:0;z-index:0;display:none;overflow:hidden;background:#01020A;pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 calc(100% - 64px),transparent);mask-image:linear-gradient(#000 calc(100% - 64px),transparent)}
.hero[data-world="monolith"] .hw-monolith,.hero[data-world="road"] .hw-road,.hero[data-world="prism"] .hw-prism,
.hero[data-world="night"] .hw-night,.hero[data-world="studio"] .hw-studio,.hw[data-out]{display:block}
.hw[data-out]{z-index:-1}
.hw.hw-in{animation:hwIn .9s ease both}
.hw picture,.hw img{display:block}

/* ---------- headline: centred, only the H1 (no buttons, no lines) ---------- */
.hero-in{position:absolute;z-index:4;left:0;right:0;top:var(--ht);bottom:var(--hb);padding:0 var(--gut);display:flex;justify-content:center;align-items:var(--ha);pointer-events:none}
.hero-h{margin:0;max-width:var(--hmw);text-align:center;font-weight:600;font-size:var(--hfs);line-height:var(--hlh);letter-spacing:var(--hls);text-wrap:balance;color:var(--hc)}
.hero-l1,.hero-h em{display:block;text-wrap:balance}
.hero-l1{text-shadow:var(--hsh)}
.hero-h em{font-style:normal;padding-bottom:.08em;background:var(--hl2);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}

/* ---------- pause: one white glass circle for every world, bottom-right, stacked above the assistant orb ---------- */
.hero-pause{position:absolute;z-index:6;right:calc(33px + env(safe-area-inset-right,0px));bottom:calc(102px + env(safe-area-inset-bottom,0px));width:44px;height:44px;
  display:grid;place-items:center;padding:0;border:0;border-radius:50%;cursor:pointer;color:#fff;background:rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);
  transition:background .25s;animation:hwIn .8s ease 2s both}
.hero-pause[hidden]{display:none}
.hero-pause:hover{background:rgba(255,255,255,.2)}
.hero-pause svg{width:16px;height:16px;fill:currentColor}
.hero-pause .i-play,.hero.held .hero-pause .i-pause{display:none}
.hero.held .hero-pause .i-play{display:block}
@media (max-width:760px){.hero-pause{right:calc(23px + env(safe-area-inset-right,0px));bottom:calc(84px + env(safe-area-inset-bottom,0px))}}

/* every loop of every world stops together */
.hero.hold :is(.wm-dolly,.wm-glow,.wp-band,.wp-drift,.wn-drift,.wn-halo,.ws-sheen i,.ws-caus){animation-play-state:paused}

/* ==================== 1 · Монолит: one obsidian block, one line of light ==================== */
.hero[data-world="monolith"]{--hsh:0 2px 30px rgba(1,2,12,.35)}
/* cover box: the object-fit:cover maths, so the seam overlays stay locked to the picture */
.wm-cover{--ar:2;--cpy:.5;--sx:50.02%;--st:43.21%;--sf:77.23%;position:absolute;z-index:0;
  width:max(100cqw,calc(100cqh * var(--ar)));aspect-ratio:var(--ar);
  left:calc((100cqw - max(100cqw,calc(100cqh * var(--ar)))) / 2);
  top:calc((100cqh - max(100cqw,calc(100cqh * var(--ar))) / var(--ar)) * var(--cpy))}
.wm-par{position:absolute;inset:0;will-change:transform}
.wm-dolly{position:absolute;inset:0;transform-origin:50% 56%;transform:scale(1.025);animation:wmDolly 24s ease-in-out infinite alternate}
.wm-dolly picture,.wm-dolly img{position:absolute;inset:0;width:100%;height:100%}
.wm-dolly img{object-fit:cover}
.wm-veil{position:absolute;inset:-2%;background:#01020A;animation:wmVeil 1.5s cubic-bezier(.4,0,.2,1) .7s both}
.wm-seam,.wm-refl,.wm-glow,.wm-star,.wm-dot,.wm-hz{position:absolute;pointer-events:none}
.wm-seam{left:var(--sx);top:var(--st);height:calc(var(--sf) - var(--st));width:max(1.5px,.13%);margin-left:calc(max(1.5px,.13%) / -2);
  border-radius:2px;background:linear-gradient(#fff,#EEF1FF 30%,#E2E7FF 85%,#fff);
  box-shadow:0 0 4px #fff,0 0 14px rgba(140,160,255,.9),0 0 42px rgba(35,53,255,.85);
  transform-origin:50% 100%;animation:wmUp .95s cubic-bezier(.65,0,.25,1) .25s both}
.wm-refl{left:var(--sx);top:var(--sf);height:calc(100% - var(--sf));width:max(1.5px,.13%);margin-left:calc(max(1.5px,.13%) / -2);
  background:linear-gradient(rgba(240,243,255,.9),rgba(160,175,255,.3) 35%,transparent 70%);
  box-shadow:0 0 18px rgba(35,53,255,.55);transform-origin:50% 0;animation:wmUp .95s cubic-bezier(.65,0,.25,1) .25s both}
.wm-glow{left:var(--sx);top:calc(var(--st) - 8%);height:calc(var(--sf) - var(--st) + 22%);width:11%;margin-left:-5.5%;
  background:radial-gradient(closest-side,rgba(70,95,255,.42),rgba(35,53,255,.12) 55%,transparent);
  mix-blend-mode:screen;opacity:0;animation:hwIn 1.2s ease-out 1s forwards,wmBreathe 6s ease-in-out 2.2s infinite alternate}
.wm-star{left:var(--sx);top:var(--st);width:21%;aspect-ratio:2.4;transform:translate(-50%,-50%);
  background:radial-gradient(closest-side,rgba(205,215,255,.7),rgba(60,85,255,.32) 30%,rgba(35,53,255,.08) 62%,transparent);
  mix-blend-mode:screen;opacity:0;animation:wmBloom 1.2s cubic-bezier(.2,.75,.15,1) 1s forwards}
.wm-dot{left:var(--sx);top:var(--sf);width:4.2%;aspect-ratio:1;transform:translate(-50%,-50%);
  background:radial-gradient(closest-side,#fff,rgba(130,150,255,.6) 25%,transparent);mix-blend-mode:screen;animation:wmDot 1.6s ease-out .1s both}
.wm-hz{left:0;right:0;top:var(--sf);height:2px;margin-top:-1px;
  background:linear-gradient(90deg,transparent,rgba(110,130,255,.55) 20%,rgba(225,232,255,.95) 50%,rgba(110,130,255,.55) 80%,transparent);
  filter:blur(.4px);transform-origin:50% 50%;animation:wmHz 1.1s cubic-bezier(.65,0,.25,1) .6s both}
/* legibility: a soft shade behind the headline, the floor dissolves into the next scene */
.hw-monolith::before,.hw-monolith::after{content:"";position:absolute;z-index:1;pointer-events:none}
.hw-monolith::before{inset:0;background:radial-gradient(ellipse 70% 38% at 50% 20%,rgba(1,2,12,.42),transparent 72%)}
.hw-monolith::after{inset:auto 0 0;height:22%;background:linear-gradient(rgba(4,6,26,0),rgba(4,6,26,.5) 40%,#04061A 98%)}
.hero[data-world="monolith"] .hero-h{animation:hRise 1.2s var(--ease) 1.15s both}

/* ==================== 2 · Белият път: the white line to the dawn (video over its still) ==================== */
.hero[data-world="road"]{--ht:var(--hdr);--hb:47%;--ha:center;--hfs:clamp(38px,min(5.5vw,9.4cqh),88px);--hmw:20em;
  --hl2:linear-gradient(100deg,#fff 8%,#E3EAFF 42%,#B4C6FF 100%)}
.hw-road{background:#04061A}
.wr-media{position:absolute;inset:0;z-index:0;transform:translate3d(var(--mx,0px),var(--my,0px),0) scale(1.035);transform-origin:50% 55%;
  opacity:0;animation:wrDawn 1.6s cubic-bezier(.25,.6,.2,1) .05s forwards}
.wr-media img,.wr-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;display:block}
.wr-media video{opacity:0;transition:opacity 1.2s ease}
.hw-road.is-vid .wr-media video{opacity:1}
/* legibility: a soft top shade for the header + headline, a deep floor so the road rises out of the dark */
.wr-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:
  radial-gradient(ellipse 62% 34% at 50% 27%,rgba(2,4,22,.34),rgba(2,4,22,0) 72%),
  linear-gradient(180deg,rgba(2,4,22,.42) 0,rgba(2,4,22,0) 200px),
  linear-gradient(0deg,#04061A 0,rgba(4,6,26,.94) 10%,rgba(4,6,26,.62) 21%,rgba(4,6,26,.22) 34%,rgba(4,6,26,0) 46%)}
.hero[data-world="road"] :is(.hero-l1,.hero-h em){animation:hLine 1.15s var(--ease) .3s both}
.hero[data-world="road"] .hero-h em{animation-delay:.48s}

/* ==================== 3 · Призма: a crystal, the light follows the pointer (drifts by itself on touch) ==================== */
.hero[data-world="prism"]{--ht:clamp(118px,17.5vh,210px);--hfs:clamp(38px,min(5.4vw,9.2cqh),88px);--hsh:0 2px 40px rgba(1,2,12,.5);
  --hl2:linear-gradient(100deg,#fff 8%,#B8C4FF 52%,#7FA7FF 96%)}
.hw-prism{--wpx:50%;--wpy:32%}
/* scene = picture + light layers, moved as one so the maps stay registered */
.wp-scene{position:absolute;inset:-14px;animation:wpPush 1.7s var(--ease) both}
.wp-par{position:absolute;inset:0;will-change:transform}
.wp-img,.wp-img img,.wp-lit img{position:absolute;inset:0;width:100%;height:100%}
.wp-img img,.wp-lit img{object-fit:cover;object-position:var(--wpx) var(--wpy)}
/* lit layer = highlight map x light (multiply), added onto the photo (screen) */
.wp-lit{position:absolute;inset:0;pointer-events:none;isolation:isolate;mix-blend-mode:screen;overflow:hidden}
.wp-lit .wp-dark{position:absolute;inset:0;background:#000;mix-blend-mode:multiply;overflow:hidden}
.wp-hl{opacity:0;transition:opacity 1.2s var(--ease)}
.wp-hl.on{opacity:1}
.wp-spot{position:absolute;left:0;top:0;width:min(62vmax,980px);aspect-ratio:1;margin:calc(min(62vmax,980px) / -2) 0 0 calc(min(62vmax,980px) / -2);border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,255,255,.95),rgba(196,206,255,.7) 22%,rgba(70,98,255,.42) 48%,rgba(35,53,255,0) 100%);will-change:transform}
.wp-amb{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:0;transition:opacity 1.2s var(--ease)}
.wp-amb.on{opacity:.16}
.wp-amb .wp-spot{background:radial-gradient(closest-side,rgba(120,140,255,.7),rgba(35,53,255,0))}
/* a thin specular streak running along the refracted fan */
.wp-band{position:absolute;top:-20%;bottom:-20%;left:0;width:22%;
  background:linear-gradient(90deg,rgba(184,196,255,0),rgba(184,196,255,.5) 30%,#fff 50%,rgba(184,196,255,.5) 70%,rgba(184,196,255,0));
  transform:translateX(-130%) skewX(-18deg);animation:wpSweep 7s cubic-bezier(.45,.05,.3,1) .35s infinite;will-change:transform}
/* intro: the beam reveals from the left */
.wp-wipe{position:absolute;top:0;bottom:0;left:0;width:300%;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,rgba(1,2,10,0) 0,rgba(1,2,10,.85) 9%,#01020A 20%);transform:translateX(-20%);animation:wpWipe 1.4s cubic-bezier(.55,.1,.25,1) .1s both}
.wp-drift{position:absolute;inset:0}
/* legibility: a quiet veil only behind the headline, a floor fade into the next scene */
.hw-prism::before,.hw-prism::after{content:"";position:absolute;left:0;right:0;z-index:1;pointer-events:none}
.hw-prism::before{top:0;height:46%;background:radial-gradient(60% 75% at 50% 30%,rgba(1,2,12,.55),rgba(1,2,12,0) 72%)}
.hw-prism::after{bottom:0;height:32%;background:linear-gradient(180deg,rgba(4,6,26,0),rgba(4,6,26,.62) 45%,rgba(4,6,26,.9) 72%,#04061A)}
.hero[data-world="prism"] .hero-h{animation:hRise 1.1s var(--ease) .85s both}
/* touch / no fine pointer: the light drifts by itself in a slow figure-eight */
@media not all and (hover:hover){
  .wp-hl{opacity:.85}
  .wp-drift{animation:wpEight 18s ease-in-out infinite}
}

/* ==================== 4 · Нощен пулс: a town at night, light runs along the streets to one bright point ==================== */
.hero[data-world="night"]{--ht:calc(var(--hdr) + clamp(36px,8.5vh,120px));--hfs:clamp(40px,min(3.6vw + 20px,9.4cqh),90px);--hmw:15.5em;
  --hl2:linear-gradient(100deg,#fff 18%,#AEB8FF 82%)}
.hw-night{background:#03051A}
.wn-scene{position:absolute;z-index:0;--ox:.5;--oy:.95;width:max(100cqw,150cqh);height:max(100cqh,66.667cqw);
  left:calc((100cqw - max(100cqw,150cqh)) * var(--ox));top:calc((100cqh - max(100cqh,66.667cqw)) * var(--oy))}
.wn-cam,.wn-drift{position:absolute;inset:0}
.wn-cam{transform:translate3d(var(--mx,0px),var(--my,0px),0);transition:transform 1.8s var(--ease);will-change:transform}
.wn-drift{transform-origin:50% 84%;animation:wnDrift 46s ease-in-out 1.6s infinite alternate both;will-change:transform}
.wn-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:wnLights 1.4s cubic-bezier(.3,.1,.2,1) both}
.wn-net{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.wn-m{display:none}
/* faint street routes, drawn from the edges inward */
.wn-route{fill:none;stroke:#B9C3FF;stroke-opacity:.2;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:1 1;stroke-dashoffset:1;animation:wnDraw 1.25s cubic-bezier(.5,0,.2,1) both}
.wn-m .wn-route{stroke-width:1.8}
.wn-route:nth-child(1){animation-delay:.85s}.wn-route:nth-child(2){animation-delay:.95s}.wn-route:nth-child(3){animation-delay:1.05s}
.wn-route:nth-child(4){animation-delay:1s}.wn-route:nth-child(5){animation-delay:.9s}.wn-route:nth-child(6){animation-delay:1.1s}
.wn-pk path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.wn-pk .t1{stroke:#2335FF;stroke-opacity:.42;stroke-width:6}
.wn-pk .t2{stroke:#6F7DFF;stroke-opacity:.85;stroke-width:2.4}
.wn-pk .t3{stroke:#D4DAFF;stroke-width:2.2}
.wn-pk .hd{stroke:#fff;stroke-width:2.6}
.wn-m .wn-pk .t1{stroke-width:9}.wn-m .wn-pk .t2{stroke-width:3.6}.wn-m .wn-pk .t3{stroke-width:3.4}.wn-m .wn-pk .hd{stroke-width:4.2}
.wn-halo{animation:wnBreathe 7s ease-in-out 2s infinite alternate both;transform-box:fill-box;transform-origin:center}
.wn-core{animation:hwIn .8s ease 1.9s both}
.wn-ring{fill:none;stroke:#fff;stroke-width:1.2;vector-effect:non-scaling-stroke;opacity:0;transform-box:fill-box;transform-origin:center}
/* legibility: a soft dark lens behind the headline, a fade into the next scene */
.wn-shade{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(ellipse 62% 44% at 50% 24%,rgba(3,5,24,.5),rgba(3,5,24,0) 72%),linear-gradient(to top,#04061A 0,rgba(4,6,26,0) 110px)}
.hero[data-world="night"] .hero-l1{animation:hRise 1.1s var(--ease) 1.05s both}
.hero[data-world="night"] .hero-h em{animation:hRise 1.1s var(--ease) 1.2s both}

/* ---------- portrait screens (the -m pictures) ---------- */
@media (max-aspect-ratio:4/5){
  .hero[data-world="monolith"]{--ht:calc(var(--hdr) + clamp(24px,8.6cqh,96px));--hfs:clamp(36px,6.2vw,52px)}
  .wm-cover{--ar:.6667;--cpy:.5;--sx:49.95%;--st:43.1%;--sf:72.46%}
  .wm-seam,.wm-refl{width:max(1.5px,.24%);margin-left:calc(max(1.5px,.24%) / -2)}
  .wm-glow{width:26%;margin-left:-13%}
  .wm-star{width:50%}
  .wm-dot{width:10%}
  .hw-monolith::after{height:26%}
  .hero[data-world="road"]{--hb:50%;--hfs:clamp(38px,6.3vw,64px)}
  .hw-prism{--wpx:50%;--wpy:58%}
  .wp-band{width:36%}
  .hw-prism::before{height:52%;background:radial-gradient(85% 70% at 50% 28%,rgba(1,2,12,.5),rgba(1,2,12,0) 72%)}
  .wn-scene{--ox:.6;--oy:.62;width:max(100cqw,66.667cqh);height:max(100cqh,150cqw);
    left:calc((100cqw - max(100cqw,66.667cqh)) * var(--ox));top:calc((100cqh - max(100cqh,150cqw)) * var(--oy))}
  .wn-drift{transform-origin:53% 80%}
  .wn-d{display:none}.wn-m{display:block}
}
@media (max-aspect-ratio:4/5) and (min-width:621px){
  .hero[data-world="prism"]{--ht:21vh;--hfs:min(6.8vw,64px)}
}
/* phones */
@media (max-width:620px){
  .hero[data-world="monolith"]{--ht:calc(var(--hdr) + clamp(20px,5.8cqh,56px));--hfs:clamp(34px,10.4vw,44px);--hmw:12ch}
  .hero[data-world="road"]{--hb:52%;--hfs:clamp(34px,10vw,42px);--hlh:1.04;--hls:-.04em}
  .hero[data-world="prism"]{--ht:clamp(112px,16vh,150px)}
  .hw-prism::after{height:40%}
  .hero[data-world="night"]{--ht:calc(var(--hdr) + clamp(28px,6vh,64px));--hfs:clamp(36px,10.4vw,44px)}
}
/* tablets and small laptops in landscape: the lab sizes (in vw) read small here, the headline steps up a little */
@media (min-width:621px) and (max-width:1100px) and (min-aspect-ratio:801/1000){
  .hero[data-world]{--hfs:clamp(44px,min(6vw,11cqh),64px)}
}

/* ---------- a world that came from a live theme switch: the finished picture at once, the loops keep going ---------- */
.hero.swapped :is(.hero-h,.hero-l1,.hero-h em,.wm-veil,.wm-seam,.wm-refl,.wm-star,.wm-dot,.wm-hz,.wr-media,.wp-scene,.wn-pic img,.wn-route,.wn-core){animation:none}
.hero.swapped .wm-veil{opacity:0}
.hero.swapped .wm-glow{opacity:1;animation:wmBreathe 6s ease-in-out infinite alternate}
.hero.swapped .wm-star{opacity:1}
.hero.swapped .wm-dot{opacity:.45}
.hero.swapped .wm-hz{opacity:.55}
.hero.swapped .wr-media{opacity:1}
.hero.swapped .wp-wipe{display:none}
.hero.swapped .wn-route{stroke-dashoffset:0}

@keyframes hwIn{from{opacity:0}to{opacity:1}}
@keyframes hRise{from{opacity:0;transform:translateY(14px);filter:blur(9px)}to{opacity:1;transform:none;filter:none}}
@keyframes hLine{from{opacity:0;transform:translateY(22px);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}
@keyframes wmDolly{from{transform:scale(1.025)}to{transform:scale(1.065)}}
@keyframes wmVeil{from{opacity:1}to{opacity:0}}
@keyframes wmUp{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes wmHz{from{transform:scaleX(0);opacity:1}60%{opacity:1}to{transform:scaleX(1);opacity:.55}}
@keyframes wmDot{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}25%{opacity:1}100%{opacity:.45;transform:translate(-50%,-50%) scale(1)}}
@keyframes wmBloom{from{opacity:0;transform:translate(-50%,-50%) scale(.55)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes wmBreathe{from{opacity:1}to{opacity:.5}}
@keyframes wrDawn{to{opacity:1}}
@keyframes wpPush{from{transform:scale(1.045)}to{transform:none}}
@keyframes wpWipe{to{transform:translateX(34%)}}
@keyframes wpSweep{0%{transform:translateX(-130%) skewX(-18deg)}58%,100%{transform:translateX(560%) skewX(-18deg)}}
@keyframes wpEight{0%,100%{transform:translate(0,0)}25%{transform:translate(16vw,-5vh)}50%{transform:translate(0,0)}75%{transform:translate(-16vw,5vh)}}
@keyframes wnLights{from{opacity:0;filter:brightness(.35) saturate(.6);transform:scale(1.035)}to{opacity:1;filter:none;transform:none}}
@keyframes wnDraw{to{stroke-dashoffset:0}}
@keyframes wnBreathe{from{opacity:.55;transform:scale(.92)}to{opacity:.9;transform:scale(1.06)}}
@keyframes wnDrift{from{transform:scale(1.045) translate3d(.6%,.3%,0)}to{transform:scale(1.085) translate3d(-.6%,-.5%,0)}}

/* reduced motion: the still picture of the world, in its final state; no loops, no video, no pause button */
@media (prefers-reduced-motion:reduce){
  .hero *,.hero *::before,.hero *::after{animation:none!important;transition:none!important}
  .wm-veil{opacity:0}.wm-glow,.wm-star{opacity:1}.wm-dot{opacity:.45}.wm-hz{opacity:.55}
  .wr-media{opacity:1}.wr-media video{display:none}
  .wp-wipe,.wp-band{display:none}.wp-hl{opacity:.7}
  .wn-route{stroke-dashoffset:0}.wn-drift{transform:scale(1.045)}
  .hero-pause{display:none}
}

/* ---------- light theme (2026-10-19) ----------
   The light theme's hero is world 5 · Бяло студио: a gallery-white studio with one cobalt glass arch, ink headline, the second
   line in the cobalt gradient. Its layer only shows when .hero[data-world="studio"] (light theme) or while it fades out after a
   live switch back to dark. Arch + caustic masks: /assets/img/hero/studio-arch|caus-d|m.webp (alpha), fetched only when shown. */
:root[data-theme="light"] .hero{color:var(--lt-ink)}
:root[data-theme="light"] .hero[data-world="studio"]{--ht:clamp(140px,19vh,220px);--hfs:clamp(38px,min(4.8vw,9.6cqh),94px);--hmw:1400px;
  --hc:#0B1233;--hsh:none;--hl2:linear-gradient(100deg,#2335FF 10%,#5B6BFF 90%)}
.hw-studio{background:#F1F3F7}
/* picture frame: covers the hero in landscape, a fixed-ratio box in portrait */
.ws-frame{position:absolute;inset:0;z-index:0;animation:wsSettle 1.4s var(--ease) both}
.ws-tilt{position:absolute;inset:0;transform:translate3d(var(--tx,0),var(--ty,0),0) rotateX(var(--rx,0)) rotateY(var(--ry,0)) scale(1.035);
  transform-origin:50% 66%;will-change:transform}
.ws-tilt picture,.ws-tilt img{width:100%;height:100%}
.ws-tilt img{object-fit:cover;object-position:50% 70%}
.ws-fx{position:absolute;inset:0;pointer-events:none;
  -webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 70%;mask-position:50% 70%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.ws-sheen{-webkit-mask-image:url(/assets/img/hero/studio-arch-d.webp);mask-image:url(/assets/img/hero/studio-arch-d.webp);overflow:hidden;mix-blend-mode:overlay}
.ws-sheen i{position:absolute;inset:0;background:linear-gradient(104deg,transparent 36%,rgba(255,255,255,.7) 45%,#fff 50%,rgba(255,255,255,.7) 55%,transparent 64%);
  transform:translate3d(-36%,0,0);opacity:0;animation:wsSweep 9s cubic-bezier(.4,0,.3,1) 1.4s infinite;will-change:transform}
.ws-caus{-webkit-mask-image:url(/assets/img/hero/studio-caus-d.webp);mask-image:url(/assets/img/hero/studio-caus-d.webp);background:#3B4BFF;mix-blend-mode:multiply;
  opacity:0;animation:wsBreathe 7s ease-in-out 1.4s infinite;will-change:opacity}
/* a soft light veil behind the headline (the floor dissolves into the light stage through the layer mask) */
.ws-veil{position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(60% 36% at 50% 26%,rgba(248,249,252,.62),rgba(248,249,252,0) 70%)}
:root[data-theme="light"] .hero[data-world="studio"] :is(.hero-l1,.hero-h em){animation:wsRise 1.1s var(--ease) .18s backwards}
:root[data-theme="light"] .hero[data-world="studio"] .hero-h em{padding-bottom:.08em;margin-bottom:-.08em;animation-delay:.3s}
:root[data-theme="light"] .hero.swapped[data-world="studio"] :is(.hero-l1,.hero-h em){animation:none}
.hero.swapped .ws-frame{animation:none}
/* pause: white glass with an ink icon */
:root[data-theme="light"] .hero-pause{color:var(--lt-ink);background:rgba(255,255,255,.62);box-shadow:inset 0 0 0 1px rgba(11,18,51,.1),0 6px 18px -8px rgba(11,18,51,.35)}
:root[data-theme="light"] .hero-pause:hover{background:rgba(255,255,255,.85)}
@keyframes wsSettle{from{opacity:0;transform:scale(1.03)}to{opacity:1;transform:none}}
@keyframes wsRise{from{transform:translate3d(0,105%,0);clip-path:inset(-.2em -.3em 105% -.3em)}to{transform:none;clip-path:inset(-.2em -.3em -.3em -.3em)}}
@keyframes wsSweep{0%{transform:translate3d(-36%,0,0);opacity:0}10%,46%{opacity:1}58%,100%{transform:translate3d(34%,0,0);opacity:0}}
@keyframes wsBreathe{0%,100%{opacity:0}50%{opacity:.28}}
/* portrait: the arch as a box anchored by its top edge, the studio extended with sky and floor */
@media (max-aspect-ratio:4/5){
  .hw-studio{--fw:100;--at:42svh;background:linear-gradient(180deg,#F2F4F8 0,#EEF1F5 40%,#DCE2F0 100%)}
  .ws-frame{inset:auto auto auto calc((100vw - var(--fw) * 1vw) / 2);width:calc(var(--fw) * 1vw);height:calc(var(--fw) * 1.5vw);top:calc(var(--at) - var(--fw) * .708vw);
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 82%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 82%,transparent 100%)}
  .ws-tilt img{object-position:50% 50%}
  .ws-fx{-webkit-mask-position:50% 50%;mask-position:50% 50%}
  .ws-sheen{-webkit-mask-image:url(/assets/img/hero/studio-arch-m.webp);mask-image:url(/assets/img/hero/studio-arch-m.webp)}
  .ws-caus{-webkit-mask-image:url(/assets/img/hero/studio-caus-m.webp);mask-image:url(/assets/img/hero/studio-caus-m.webp)}
  .ws-veil{background:radial-gradient(80% 26% at 50% 24%,rgba(248,249,252,.7),rgba(248,249,252,0) 70%)}
  :root[data-theme="light"] .hero[data-world="studio"]{--ht:calc(var(--hdr) + 10svh);--hfs:clamp(36px,6.3vw,60px)}
}
@media (max-width:620px){
  .hw-studio{--fw:112;--at:46svh}
  :root[data-theme="light"] .hero[data-world="studio"]{--ht:calc(var(--hdr) + 6svh);--hfs:clamp(34px,9.6vw,42px);--hlh:1.04}
}
@media (max-width:620px) and (max-height:760px){.hw-studio{--fw:104}}
@media (min-width:621px) and (max-width:1100px) and (min-aspect-ratio:801/1000){
  :root[data-theme="light"] .hero[data-world="studio"]{--hfs:clamp(44px,min(6vw,11cqh),64px)}
}
@media (prefers-reduced-motion:reduce){
  .ws-sheen,.ws-caus{display:none}
  .ws-tilt{transform:none}
}

/* ==== 30-home.css ==== */
/* WhiteWays · home below the hero, shared rules only.
   Each scene has its own file: 32 work reel (rl-) · 33 team deck (tm-, replaced 31 services on 2026-10-23) · 34 month =
   „Как работи“, id #how (hmo-) · 35 plan (pw-/hp-) · 37 FAQ (hf-).
   2026-10-15: the old 33 how scene merged into 34 (its 4-step strip was removed the same day, owner); copy in _archive/2026-10-15-pre-merge-how/.
   The old „Кино“ scene rules (.hm-sv/-wk/-hw/-mo/-rp/-pl) were removed 2026-09-30; copy in _archive/2026-09-30-home-dead-code/. */

.hm-main svg .sq{transform-box:fill-box;transform-origin:50% 50%}
.hm-main .scn-title{font-size:clamp(38px,4.6vw,64px)}

/* ==== 32-home-reel.css ==== */
/* WhiteWays · home #work client reel (2026-10-15, owner: full screen, live sites, no white, nothing behind the section).
   One full-screen card per live client site, stacked: each card pins to the top and the next one slides over it
   (position:sticky, like the GlorySmile product panels). The card IS the site: a real-time recording of the live page fills
   it edge to edge (the desktop clip on wide screens, the phone clip on phones and portrait tablets) and the client's name
   sits on it in big type. On wide screens a phone shows the same site's phone clip.
   32-home-reel.js writes two numbers on each card while the reel is on screen:
     --k  0..1  how far the next card already covers this one (this one sinks: smaller, darker, rounder)
     --e  0..1  how far this card still has to rise before it pins (rounded top, the name and phone trail behind)
   and plays only the clips on screen. Without JS the stack still works with the posters, flat and still.
   The "tall" layout = (max-width:720px), (orientation:portrait) and (max-width:1180px): the same query is in the
   markup's <picture> sources and in the JS, keep all three equal. */

.rl{padding-block:0 clamp(64px,8vw,120px)}
/* 2026-10-24 (owner: „по-бързо, да не заключва“): no dwell. Each card takes exactly one screen of scroll, the next one starts
   rising the moment this one pins, so the page never stands still under the finger (was 44vh / 34vh of pinned pause per card) */
.rl-stack{position:relative;--rl-h:100vh;--rl-dwell:0px}
@supports (height:100svh){.rl-stack{--rl-h:100svh}}
/* the last card would stay pinned for one dwell before the reel scrolls away (in-flow, so the sticky range includes it) */
.rl-stack::after{content:"";display:block;height:var(--rl-dwell)}

.rl-card{position:sticky;top:0;height:var(--rl-h);overflow:hidden;transform-origin:50% 35%;
  transform:scale(calc(1 - var(--k,0) * .075));
  border-radius:max(calc(var(--e,0) * 44px),calc(var(--k,0) * 34px))}
.rl-card + .rl-card{margin-top:var(--rl-dwell)}
.rl-intro + .rl-card{margin-top:var(--rl-dwell)}
/* the shade a covered card sinks into */
.rl-card::after{content:"";position:absolute;inset:0;z-index:5;background:#02030F;opacity:calc(var(--k,0) * .78);pointer-events:none}

/* ---- the opening: the heading alone on the stage; the first site slides over it ---- */
.rl-intro{display:grid;place-items:center;padding:var(--hdr) var(--gut) 0;text-align:center;overflow:visible;
  border-radius:0;transform:scale(calc(1 - var(--k,0) * .12));opacity:calc(1 - var(--k,0) * .9)}
.rl-intro::after{display:none}
.hm-main .rl-title{max-width:13ch;font-size:clamp(46px,8.2vw,136px);line-height:.96;letter-spacing:-.055em;font-weight:650;text-wrap:balance}
/* a thin line that runs down: keep scrolling */
.rl-cue{position:absolute;left:50%;bottom:clamp(28px,6vh,64px);width:2px;height:64px;margin-left:-1px;border-radius:2px;overflow:hidden;background:rgba(255,255,255,.14)}
.rl-cue::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#fff);transform:translateY(-100%)}
html.js .rl.live .rl-cue::before{animation:rlCue 2.2s cubic-bezier(.6,0,.3,1) infinite}
@keyframes rlCue{0%{transform:translateY(-100%)}60%,100%{transform:translateY(100%)}}
/* 2026-11-12: landscape phones (390 px tall): the 2-line heading ends where the cue began; a shorter, lower cue keeps clear of it */
@media (max-height:500px){.rl-cue{bottom:12px;height:40px}}

/* ---- a client card ---- */
.rl-p{--c:#2335FF;background:#05081C;color:#fff;box-shadow:0 -40px 90px -30px rgba(0,0,0,.85)}
.rl-m{position:absolute;inset:0}
.rl-m img,.rl-m video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.rl-m video,.rl-ph video{opacity:0;transition:opacity .7s var(--ease)}
.rl-m video.on,.rl-ph video.on{opacity:1}
/* the scrim that carries the name: dark from the bottom-left, tinted with the client's colour, plus a soft top for the header */
.rl-m::after{content:"";position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(to top,rgba(3,5,20,.95) 0%,rgba(3,5,20,.8) 22%,rgba(3,5,20,.42) 44%,rgba(3,5,20,0) 64%),
  radial-gradient(64% 62% at 0% 100%,rgba(3,5,20,.6),rgba(3,5,20,0) 72%),
  radial-gradient(80% 70% at 0% 100%,color-mix(in srgb,var(--c) 30%,transparent),transparent 62%),
  linear-gradient(to bottom,rgba(3,5,20,.72),rgba(3,5,20,0) 22%)}

/* the phone's place on wide screens: the name block stops short of it */
.rl-p{--rl-pr:max(132px,calc((100% - 1240px) / 2 + 40px));--rl-pw:clamp(170px,14.5vw,250px)}

.rl-info{position:absolute;z-index:2;left:0;right:0;bottom:clamp(40px,8vh,96px);display:grid;justify-items:start;
  padding-left:max(var(--gut),calc((100% - 1240px) / 2));padding-right:calc(var(--rl-pr) + var(--rl-pw) + 48px);
  transform:translateY(calc(var(--e,0) * 16vh))}
.hm-main .rl-n{margin:0;max-width:100%;font-size:clamp(56px,9vw,168px);line-height:.9;letter-spacing:-.06em;font-weight:750;
  color:#fff;text-shadow:0 10px 50px rgba(0,0,0,.35);text-wrap:balance}
.rl-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:clamp(18px,3vh,32px)}
.rl-go{min-height:52px;padding:0 22px;font-size:17px}
.rl-go .ic{width:17px;height:17px;transition:transform .3s var(--ease)}
.rl-go:hover .ic{transform:translate(2px,-2px)}
.rl-p :focus-visible{outline:2px solid #fff;outline-offset:4px}

/* the phone with the same site, wide screens only (kept clear of the fixed back-to-top + AI column on the right) */
.rl-ph{position:absolute;z-index:3;right:var(--rl-pr);bottom:clamp(40px,8vh,96px);
  width:var(--rl-pw);padding:7px;border-radius:36px;background:#0A0E2C;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 50px 90px -30px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.4);
  transform:translateY(calc(var(--e,0) * 30vh)) rotate(calc(var(--e,0) * 4deg))}
.rl-phs{position:relative;aspect-ratio:300/650;border-radius:29px;overflow:hidden;background:#05081C}
.rl-phs img,.rl-phs video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}

/* tall screens: the phone clip IS the card, so the separate phone goes */
@media (max-width:1100px),(max-width:720px),(orientation:portrait) and (max-width:1180px){.rl-ph{display:none}.rl-info{padding-right:max(var(--gut),calc((100% - 1240px) / 2))}}
@media (max-width:720px),(orientation:portrait) and (max-width:1180px){
  .rl-m::after{background:
    linear-gradient(to top,rgba(3,5,20,.96) 0%,rgba(3,5,20,.82) 26%,rgba(3,5,20,.4) 44%,rgba(3,5,20,0) 60%),
    radial-gradient(90% 50% at 0% 100%,color-mix(in srgb,var(--c) 34%,transparent),transparent 70%),
    linear-gradient(to bottom,rgba(3,5,20,.6),rgba(3,5,20,0) 16%)}
  .rl-info{bottom:calc(28px + env(safe-area-inset-bottom));padding-right:84px}
  .hm-main .rl-n{font-size:clamp(48px,15.5vw,104px)}
  .rl-row{flex-direction:column;align-items:flex-start;gap:16px}
}
/* phones: the name and the link stay clear of the fixed AI button in the bottom-right corner */
@media (max-width:720px){.rl-info{padding-right:calc(var(--gut) + 64px)}}

@media (prefers-reduced-motion:reduce){
  .rl-card,.rl-intro,.rl-info,.rl-ph{transform:none}
  .rl-card{border-radius:0}
  .rl-card::after{opacity:0}
  .rl-intro{opacity:1}
  .rl-cue::before{animation:none!important}
  .rl-m video,.rl-ph video{transition:none}
}

/* ---------- light theme (2026-10-19) ----------
   The recordings stay dark (each card is .on-dark, so its text and the glass link keep the dark look); on the white page each
   card hangs like a framed print: inset from the edges, under the header, a white mat (the border; the card clips the
   recording to its inner curve) and a soft daylight shadow. A covered card dims inside its mat.
   32-home-reel.js reads the pinned top, so --k/--e still run 0..1. */
:root[data-theme="light"] .rl-stack{--rl-t:calc(var(--hdr) + 2px);--rl-x:clamp(12px,2.2vw,40px);--rl-mat:clamp(7px,.7vw,11px)}
:root[data-theme="light"] .rl-p{top:var(--rl-t);height:calc(var(--rl-h) - var(--rl-t) - var(--rl-x) * .6);margin-inline:var(--rl-x);
  border:var(--rl-mat) solid #fff;border-radius:max(30px,calc(var(--e,0) * 44px));
  box-shadow:0 0 0 1px rgba(11,18,51,.07),0 2px 6px rgba(11,18,51,.06),0 50px 110px -46px rgba(11,18,51,.5)}
:root[data-theme="light"] .rl-p::after{background:#0B1233;opacity:calc(var(--k,0) * .6)}
/* the framed cards are shorter than the screen: the same inset between them keeps one screen of scroll per card (2026-10-24) */
:root[data-theme="light"] .rl-p + .rl-p{margin-top:calc(var(--rl-t) + var(--rl-x) * .6)}
/* the opening: an ink cue line with a cobalt light on the light stage */
:root[data-theme="light"] .rl-cue{background:rgba(11,18,51,.12)}
:root[data-theme="light"] .rl-cue::before{background:linear-gradient(transparent,#2335FF)}
@media (prefers-reduced-motion:reduce){:root[data-theme="light"] .rl-p{border-radius:30px}}

/* ==== 33-home-team.css ==== */
/* WhiteWays · home #team „assemble“ (services team, HOME-WOW round 2026-09-30, brief docs/briefs/HOME-WOW-BRIEF.md §2).
   Six iso slabs (2D SVG) drop in apart, click together into one lit block, and the block grows into the poster object;
   the report bars grow out of its top. Every size is in design units: --u = one px of the 1240 x 620 desktop stage
   (scales with the stage width), .72px on phones, 1px on tablets.
   Geometry vars on .ly-stage: --lp exploded pitch, --lq shut pitch, --lb shut base (distance of the shut block above the box
   bottom), --lh box height, --sc final scale of the shut block, --spo / --spz the spine's exploded / shut length (share of the
   390u desktop spine), --spb its breath stretch, --hw / --ho halo width / offset.
   Timing: --ts scales the whole sequence (1 on tall desktops, .62 on phones, tablets and short screens, so the click lands
   while the block is still in the middle of the screen for a visitor who keeps scrolling).
   Wrappers: .ly-box (the grow) > .ly-lay (drop-in, .sq) > .ly-z (the click) > .ly-b (the one calm loop, only while .live).
   Base state = the shut, grown block. Before the stage plays, the stack waits as a faint exploded ghost (never an empty field). */

/* 2026-10-24: the tower follows the reel closely. The reel's own bottom padding (64-120px, 32-home-reel.css, left as it is) is
   the whole gap between „Всички проекти“ and the heading. Note: .scene + .scene (04-stage) never matches #team, because the
   sprite <svg> of home-team.html sits between the two sections, so this rule alone sets the top. */
.ly{padding-top:0}
@media (max-width:760px){.ly{padding-bottom:48px}}
.ly .scn-foot{margin-inline:0}
.ly .scn-head{max-width:1080px;margin-bottom:clamp(12px,1.6vw,22px)}

/* phones + tablets: a compact stack (46u pitch) so the shut block sits right above the legend */
.ly-stage{--u:.72px;--lp:46;--lq:14;--lb:56;--lh:412;--sc:1.2;--spo:.5897;--spz:.1795;--spb:1.4286;--hw:380;--ho:116;
  --ts:.62;--sq-gap:calc(.16s * var(--ts));--tdr:.5s;--tcl:.6s;
  position:relative;isolation:isolate;max-width:1240px;margin-inline:auto;container-type:inline-size;overflow-x:clip}
/* 2026-10-24: the two floor contour ellipses (::before/::after) are dropped at every width and in both themes: every stage photo
   already has a floor, and on it the thin rings read as stray lines crossing the pills (desktop) or as noise (phones).
   Old rules: _archive/2026-10-24-home-polish/src/css/33-home-team.css */

/* ---------- the stack ---------- */
.ly-box{position:relative;width:calc(340 * var(--u));height:calc(var(--lh) * var(--u));margin-inline:auto;
  transform-origin:calc(170 * var(--u)) calc((var(--lh) - var(--lb) - 91 - 2.5 * var(--lq)) * var(--u));transform:scale(var(--sc))}
.ly-lay{position:absolute;left:0;bottom:0;width:100%;
  --yo:calc(var(--i) * var(--lp) * -1 * var(--u));
  --ys:calc((var(--lb) + var(--i) * var(--lq)) * -1 * var(--u));
  transition:translate .6s var(--ease)}
.ly-z{position:relative;transform:translateY(var(--ys));transition:opacity .3s}
.ly-b{position:relative}
.ly-slab{display:block;width:100%;height:auto;overflow:visible}
.ly-face{fill:url(#ly-fg);stroke:#DFE3EE;stroke-width:1;vector-effect:non-scaling-stroke}
.ly-rim{fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:round;vector-effect:non-scaling-stroke}
/* rim light: the lit (left) side of every slab gets a pale edge along its lower rim, so the strata read as lit edges */
.ly-slab>g[clip-path] rect{stroke:#DDE3FF;stroke-width:1.6;vector-effect:non-scaling-stroke}
.ly-bolt{fill:#fff;stroke:#2335FF;stroke-width:1.5}
/* the Сб bar: the lit one. White top with a cobalt edge, brighter sides, a lavender glow */
.ly-sat{stroke:#2335FF;stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.ly-bar-sat{filter:drop-shadow(0 0 6px rgba(143,160,255,.9))}

/* contact shadow a slab casts on the slab below while the stack is apart; it fades as the gap closes */
.ly-shd{position:absolute;left:calc(35 * var(--u));top:calc((26 + var(--lp)) * var(--u));width:calc(270 * var(--u));height:calc(106 * var(--u));
  border-radius:50%;background:radial-gradient(closest-side,rgba(11,18,51,.42),rgba(11,18,51,.18) 62%,rgba(11,18,51,0));opacity:0;pointer-events:none}

/* spine + seam: drawn for the 572u desktop box, bottom-anchored (preserveAspectRatio xMidYMax slice), so the SVG box is exactly
   the stack box at every size and never reaches above it; paths are shifted by the shut base */
.ly-over{position:absolute;left:0;bottom:0;width:100%;height:calc(var(--lh) * var(--u));overflow:visible;pointer-events:none}
.ly-over path{fill:none;stroke-linecap:round}
.ly-sp0{stroke:#2335FF;stroke-width:5}
.ly-sp1{stroke:#fff;stroke-width:2.2}
.ly-sp-z{transform-box:view-box;transform-origin:170px 562px;transform:translateY(calc(var(--lb) * -1px)) scaleY(var(--spz))}
.ly-sp-b{transform-box:view-box;transform-origin:170px calc(562px - var(--lb) * 1px)}
/* two seam outlines, one per block geometry (a: compact, b: desktop), drawn at the shut block's own coordinates */
.ly-seam{stroke:#fff;stroke-width:2.2;stroke-linejoin:round;opacity:0;filter:drop-shadow(0 0 6px rgba(255,255,255,.9))}
.ly-seam-b{display:none}

.ly-halo{position:absolute;left:calc((170 - var(--hw) / 2) * var(--u));top:calc((var(--lh) - var(--lb) - var(--ho)) * var(--u));
  width:calc(var(--hw) * var(--u));height:calc(190 * var(--u));border-radius:50%;
  background:radial-gradient(closest-side,rgba(150,168,255,.62),rgba(60,84,255,.3) 55%,transparent 100%);pointer-events:none}
/* the floor: a soft bright pool right under the shut block, the light the block stands in (380u on phones so the grown pool
   stays inside 360px; 440u from tablets up) */
.ly-floor{position:absolute;left:calc((170 - var(--fw,380) / 2) * var(--u));width:calc(var(--fw,380) * var(--u));top:calc((var(--lh) - var(--lb) - 40) * var(--u));height:calc(96 * var(--u));
  border-radius:50%;background:radial-gradient(closest-side,rgba(226,231,255,.5),rgba(143,160,255,.2) 45%,rgba(60,84,255,0) 100%);pointer-events:none}
/* cobalt light from the left: the lit sides of the strata catch it (phones: kept inside the box's gutter, so no rect passes the
   viewport's left edge at 360 or 641; desktop reaches further out) */
.ly-lit{position:absolute;left:calc(var(--ll,-25) * var(--u));width:calc(var(--lw,215) * var(--u));top:calc((var(--lh) - var(--lb) - 250) * var(--u));height:calc(240 * var(--u));
  border-radius:50%;background:radial-gradient(closest-side,rgba(46,69,255,.55),rgba(46,69,255,.18) 55%,rgba(46,69,255,0));pointer-events:none}

/* ---------- leaders (desktop only) ---------- */
.ly-leads{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.ly-leads path{fill:none;stroke:#C9D2FF;stroke-width:1.5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ly-la{opacity:0}
.ly-lb{opacity:.75}
.ly-lb>*{transition:opacity .3s}
.ly-sk{transform-box:view-box}

/* ---------- labels: one list; a 2-column legend on phones ---------- */
/* the right margin keeps every pill clear of the fixed back-to-top / assistant column (16px + 58px orb + air) */
/* subscription round (2026-10-01): the labels are outcomes (longer words), so phones use word-sized chips that grow to fill
   each row (no label wraps inside its chip at 360/390); the old 2-column grid is in _archive/2026-10-01-subscription/b1-home/ */
.ly-leg{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:18px calc(78px - var(--gut)) 0 0;padding:0}
.ly-li{flex:1 1 auto;min-width:0}
.ly-pill{display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;height:100%;padding:6px 12px 6px 8px;border-radius:24px;color:#fff;
  font-size:16px;font-weight:600;line-height:1.2;letter-spacing:-.01em;white-space:nowrap;justify-content:center;
  background:linear-gradient(155deg,rgba(143,160,255,.16),rgba(255,255,255,.04));
  box-shadow:inset 0 1px 0 rgba(219,228,255,.26),inset 0 0 0 1px var(--hair),0 8px 20px -16px #000;transition:background-color .3s,box-shadow .3s}
.ly-pill:hover,.ly-pill:focus-visible{background-color:rgba(255,255,255,.17);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
/* the swatch is a tile in the layer's side colour carrying the service icon, so the legend reads without the leaders */
.ly-sw{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--c);color:var(--g,#fff);
  box-shadow:0 0 0 1px rgba(255,255,255,.28)}
.ly-sw .ic{width:14px;height:14px;stroke-width:2.2}

/* phones: sequence in pairs in reading order (2026-10-01: Сайт · Магазин · Google · Реклама · AI асистент · Резервации ·
   Видео и визия · Отчет); desktop places each label absolutely by --y / data-i, so the DOM order only changes phones */
.ly-li:nth-child(1) .ly-pill{--s:8}
.ly-li:nth-child(2) .ly-pill,.ly-li:nth-child(3) .ly-pill{--s:8.7}
.ly-li:nth-child(4) .ly-pill,.ly-li:nth-child(5) .ly-pill{--s:9.4}
.ly-li:nth-child(6) .ly-pill,.ly-li:nth-child(7) .ly-pill{--s:10.1}
.ly-li:nth-child(8) .ly-pill{--s:10.8}

/* the foot button rides the stage: it waits for the stage's .play (not its own trigger line) and arrives right after the last
   legend pill (phones: .15s + 7.5 x .16s = 1.35s; Автоматизации lands at 1.22s), so a visitor who keeps scrolling never meets
   an empty band where the button will be */
.ly .scn-foot .sq{--s:7.5}
/* phones: the button keeps the same clear right gutter from the fixed buttons */
@media (max-width:640px){.ly .scn-foot{margin-right:calc(78px - var(--gut))}}
/* The mobile scene is the tower itself, with one clear way to explore the services (owner 2026-10-24: no pills, no legend). */
@media (max-width:1023px){
  .ly .ly-leg,.ly .ly-leads{display:none}
  .ly .scn-foot{margin:20px 0 0}
  .ly-stage{padding-bottom:0}
}
html.js .ly:has(.ly-stage:not(.play)) .scn-foot .sq{animation:none!important}

/* ---------- sequence (every delay is scaled by --ts) ---------- */
/* the stage plays on its own trigger (31-home-services.js adds .play; no [data-play], so 12-stage.js leaves it alone): until then
   every .sq inside holds, even though the scene itself already has .play */
html.js .ly-stage:not(.play) .sq{animation:none!important}
@keyframes lyDrop{from{opacity:0;transform:translateY(calc(-60 * var(--u)))}to{opacity:1;transform:none}}
@keyframes lyClick{from{transform:translateY(var(--yo))}to{transform:translateY(var(--ys))}}
@keyframes lyGrow{from{transform:scale(1)}to{transform:scale(var(--sc))}}
@keyframes lySpine{from{transform:translateY(0) scaleY(var(--spo))}to{transform:translateY(calc(var(--lb) * -1px)) scaleY(var(--spz))}}
@keyframes lyShd{from{opacity:1}to{opacity:0}}
@keyframes lyFlash{0%{opacity:0}30%{opacity:1}100%{opacity:0}}
@keyframes lyHalo{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes lyOut{from{opacity:.75}to{opacity:0}}
@keyframes lyRing{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(2.6)}}
/* the one calm loop: the block eases open a little and back */
@keyframes lyBreath{to{transform:translateY(calc(var(--i) * -6 * var(--u)))}}
@keyframes lySpB{to{transform:scaleY(var(--spb))}}
@keyframes lySkew{to{transform:skewY(var(--sk))}}
@keyframes lyGlow{to{opacity:.72}}
/* desktop labels ride the click: from the exploded slab's height (--y) down/up onto the shut block's band (--ys) */
@keyframes lyLabel{from{top:calc(var(--y) * var(--u) + var(--lo))}to{top:calc(var(--ys) * var(--u) + var(--lo))}}

/* the ghost: before .play the stack waits exploded at 14% (the slabs keep it until their own drop starts: fill forwards) */
@media (prefers-reduced-motion:no-preference){
  html.js .ly-stage .ly-lay.sq{opacity:.14}
  html.js .ly-stage:not(.play) .ly-z{transform:translateY(var(--yo))}
  html.js .ly-stage:not(.play) .ly-box{transform:none}
  html.js .ly-stage:not(.play) :is(.ly-halo,.ly-floor,.ly-lit){opacity:0}
}
html.js .ly-stage.play .ly-lay.sq{animation-name:lyDrop;animation-duration:var(--tdr);animation-fill-mode:forwards}
html.js .ly-stage.play .ly-z{animation:lyClick var(--tcl) cubic-bezier(.7,0,.2,1.15) calc(var(--d0) + 1.9s * var(--ts)) both}
html.js .ly-stage.play .ly-box{animation:lyGrow var(--tcl) cubic-bezier(.7,0,.2,1.15) calc(var(--d0) + 1.9s * var(--ts)) both}
html.js .ly-stage.play .ly-sp-z{animation:lySpine var(--tcl) cubic-bezier(.7,0,.2,1.15) calc(var(--d0) + 1.9s * var(--ts)) both}
html.js .ly-stage.play .ly-shd{animation:lyShd .5s ease calc(var(--d0) + 1.9s * var(--ts)) both}
html.js .ly-stage.play .ly-over .sq-draw{animation-duration:calc(.8s * var(--ts) + .1s)}
html.js .ly-stage.play .ly-seam{animation:lyFlash .6s ease-out calc(var(--d0) + 2.45s * var(--ts)) both}
html.js .ly-stage.play :is(.ly-floor,.ly-lit){animation:lyHalo 1s var(--ease) calc(var(--d0) + 2.45s * var(--ts)) both}
html.js .ly-stage.play .ly-halo{animation:lyHalo 1s var(--ease) calc(var(--d0) + 2.45s * var(--ts)) both,lyGlow 3.5s ease-in-out calc(var(--d0) + 3.6s * var(--ts)) infinite alternate;
  animation-play-state:running,paused}
html.js .ly-stage.play .ly-bar{animation-delay:calc(var(--d0) + (2.6s + var(--k) * .085s) * var(--ts));animation-duration:.6s}
.ly-ring{opacity:0}
html.js .ly-stage.play .ly-ring{transform-box:fill-box;transform-origin:50% 50%;animation:lyRing 1s ease-out calc(var(--d0) + 1.15s * var(--ts)) both}
/* set A fades as the collapse starts; set B draws from the seam flash on, so the lines hand over inside the click */
html.js .ly-stage.play .ly-la{animation:lyOut .45s ease calc(var(--d0) + 1.85s * var(--ts)) both}
html.js .ly-stage.play .ly-la .sq-draw{animation-duration:.7s}
html.js .ly-stage.play .ly-lb .sq-draw{animation-duration:.6s}

html.js .ly-stage.play .ly-b{animation:lyBreath 3.5s ease-in-out calc(var(--d0) + 3.6s * var(--ts)) infinite alternate both;animation-play-state:paused}
html.js .ly-stage.play .ly-sp-b{animation:lySpB 3.5s ease-in-out calc(var(--d0) + 3.6s * var(--ts)) infinite alternate both;animation-play-state:paused}
html.js .ly-stage.play .ly-sk{animation:lySkew 3.5s ease-in-out calc(var(--d0) + 3.6s * var(--ts)) infinite alternate both;animation-play-state:paused}
html.js .ly.live .ly-stage.play .ly-b,html.js .ly.live .ly-stage.play .ly-sp-b,html.js .ly.live .ly-stage.play .ly-sk{animation-play-state:running}
html.js .ly.live .ly-stage.play .ly-halo{animation-play-state:running}

/* hover / focus on a label (desktop, set by 31-home-services.js): the layers above lift and go see-through,
   the hovered layer rises a little, and every set-B leader but the hovered one dims. The lift is capped so the top slab
   stays clear of the heading: the lift sits inside the 1.55x grown box, so 36u lift + 30u top breath = 102px at 1440, which
   keeps the tip under the heading at 1024-1920 */
.ly-lay.ly-up{translate:0 calc(-36 * var(--u))}
.ly-lay.ly-up .ly-z{opacity:.4}
.ly-lay.ly-hot{translate:0 calc(-8 * var(--u))}
.ly-lay[data-i="5"].ly-hot{translate:0 calc(-18 * var(--u))}
.ly-stage[data-hot] .ly-lb>*{opacity:.35}
.ly-stage[data-hot="0"] .ly-lb>[data-i="0"],.ly-stage[data-hot="1"] .ly-lb>[data-i="1"],.ly-stage[data-hot="2"] .ly-lb>[data-i="2"],
.ly-stage[data-hot="3"] .ly-lb>[data-i="3"],.ly-stage[data-hot="4"] .ly-lb>[data-i="4"],.ly-stage[data-hot="5"] .ly-lb>[data-i="5"]{opacity:1}

/* ---------- tablets: the full-size compact stack; the legend is a centred row of chips (each chip as wide as its words,
   so Сайт and Магазин stay side by side and no chip is stretched), well clear of the FAB column ---------- */
@media (min-width:641px){
  .ly-stage{--u:1px;--hw:460;--ll:-70;--lw:260;--fw:440}
  .ly-leg{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:640px;margin:26px auto 0}
  .ly-li{flex:none}
  .ly-pill{justify-content:flex-start;padding:6px 16px 6px 10px;gap:10px}
}

/* ---------- desktop: the full 78u exploded stack, labels around it, joined by leader lines. The shut block is the poster:
   22u strata pitch, 1.55 scale, centred in the stage ---------- */
@media (min-width:1024px){
  .ly{padding-bottom:clamp(64px,6vw,104px)}
  .ly .scn-head{margin-bottom:clamp(28px,2.8vw,40px)}
  /* 2026-10-24: clear air under the spine label, so the button reads as the scene's exit, not a second pill */
  .ly .scn-foot{margin-top:clamp(36px,3.6vw,52px)}
  .ly-stage{--u:calc(100cqw / 1240);--lp:78;--lq:22;--lb:144;--lh:572;--sc:1.55;--ll:-110;--lw:300;--spo:1;--spz:.2821;--spb:1.2727;--hw:560;--ho:150;
    aspect-ratio:1240/620}
  .ly-box{position:absolute;left:calc(450 * var(--u));top:calc(24 * var(--u));margin:0}
  .ly-seam-a{display:none}
  .ly-seam-b{display:inline}
  .ly-leads{display:block}
  .ly-leg{display:block;max-width:none;margin:0}
  /* resting place = the shut block's band (--ys, 2026-10-24); --lo centres the 48px pill on it */
  .ly-li{--lo:-24px;position:absolute;top:calc(var(--ys) * var(--u) + var(--lo))}
  .ly-li.l{right:calc(940 * var(--u))}
  .ly-li.r{left:calc(940 * var(--u))}
  .ly-li.c{left:0;right:0;top:calc(552 * var(--u));display:flex;justify-content:center;pointer-events:none}
  .ly-li.c .ly-pill{pointer-events:auto}
  /* glass without backdrop blur: the stage behind is a soft gradient, so a blur adds nothing but a re-blur every frame */
  .ly-pill{height:auto;padding:0 20px 0 12px;border-radius:999px;font-size:17px;white-space:nowrap;background:rgba(255,255,255,.09)}
  .ly-sw{width:26px;height:26px;border-radius:8px}
  .ly-sw .ic{width:16px;height:16px}
  /* Сайт | Магазин: two links drawn as one split pill */
  .ly-li.sb{width:118px}
  .ly-li.sa{right:calc(940 * var(--u) + 118px)}
  .ly-li.sa .ly-pill{border-radius:999px 0 0 999px;padding-right:14px}
  .ly-li.sb .ly-pill{border-radius:0 999px 999px 0;padding-left:16px;box-shadow:inset 0 0 0 1px var(--hair),inset 1px 0 0 rgba(255,255,255,.28)}
  .ly-li.sb .ly-sw{display:none}
  /* labels fade in bottom → top with their leaders; the spine label arrives after the click */
  .ly-li .ly-pill{--s:9}
  .ly-li[data-i="0"] .ly-pill{--s:5}
  .ly-li[data-i="1"] .ly-pill{--s:5.8}
  .ly-li[data-i="2"] .ly-pill{--s:6.6}
  .ly-li[data-i="3"] .ly-pill{--s:7.4}
  .ly-li[data-i="4"] .ly-pill{--s:8.2}
  .ly-li[data-i="sp"] .ly-pill{--s:15.6}
  html.js .ly-stage.play .ly-pill.sq{animation-name:sqFade;animation-duration:.6s}
  /* the pills fade in by the exploded slabs (fill: both holds --y during the delay), then ride the click onto the bands */
  html.js .ly-stage.play .ly-li[style*="--ys"]{animation:lyLabel var(--tcl) cubic-bezier(.7,0,.2,1.15) calc(var(--d0) + 1.9s * var(--ts)) both}
  /* short desktops (compact timing): the button follows the spine label (.15s + 11 x .16s = 1.9s) */
  .ly .scn-foot .sq{--s:11}
}

/* narrow desktops (1024–1279): „Обаждания | Поръчки“ no longer fits as one split pill left of the stack (the stage clips x),
   so the two pills stack: Обаждания on the slab's leader, Поръчки right under it */
@media (min-width:1024px) and (max-width:1279px){
  .ly-li.sa{right:calc(940 * var(--u))}
  .ly-li.sb{width:auto;--lo:30px}
  .ly-li.sa .ly-pill,.ly-li.sb .ly-pill{border-radius:999px;padding:0 20px 0 12px;box-shadow:inset 0 0 0 1px var(--hair)}
  .ly-li.sb .ly-sw{display:grid}
  /* 2026-10-24: the bands are 68u apart (52px at 1024), so the pills step down to 44px (still a full tap target) to keep air
     between neighbours on one side: 8px at 1024, 12px at 1100, 21px at 1279 */
  .ly-li{--lo:-22px}
  .ly-pill{min-height:44px;font-size:16px}
  .ly-sw{width:24px;height:24px}
}

/* tall desktops play the full-length film; short screens keep the compact timing so the click happens in view */
@media (min-width:1024px) and (min-height:821px){
  .ly-stage{--ts:1;--tdr:.8s;--tcl:.7s}
  .ly .scn-foot .sq{--s:17}
}

/* ---------- wide screens: the scene's wrap widens to 1400 and the stage fills it (--u follows the stage width) ---------- */
@media (min-width:1600px){
  .ly>.wrap{width:min(100% - 2 * var(--gut),1400px)}
  .ly-stage{max-width:none}
}

/* ---------- reduced motion: the shut, grown, lit block with its bars; no breathing, no lift ---------- */
@media (prefers-reduced-motion:reduce){
  .ly-box,.ly-z,.ly-b,.ly-sp-z,.ly-sp-b,.ly-sk,.ly-la,.ly-seam,.ly-ring,.ly-halo,.ly-shd,.ly-floor,.ly-lit,.ly-li{animation:none!important}
  html.js .ly-stage .ly-halo{opacity:1}
  .ly-lay{transition:none;translate:none!important}
  .ly-z{transition:none;opacity:1!important}
}

/* ---------- light theme (2026-10-19) ----------
   The block stands on a gallery floor: a soft contact shadow under it instead of a bright pool, a paler
   halo, cobalt leaders, and the labels as white glass pills with ink text. */
:root[data-theme="light"] .ly-face{stroke:#D3D9EC}
:root[data-theme="light"] .ly-halo{background:radial-gradient(closest-side,rgba(150,168,255,.42),rgba(60,84,255,.14) 55%,transparent 100%)}
:root[data-theme="light"] .ly-floor{background:radial-gradient(closest-side,rgba(11,18,51,.2),rgba(35,53,255,.1) 48%,rgba(35,53,255,0) 100%)}
:root[data-theme="light"] .ly-lit{background:radial-gradient(closest-side,rgba(46,69,255,.28),rgba(46,69,255,.08) 55%,rgba(46,69,255,0))}
:root[data-theme="light"] .ly-shd{background:radial-gradient(closest-side,rgba(11,18,51,.28),rgba(11,18,51,.1) 62%,rgba(11,18,51,0))}
:root[data-theme="light"] .ly-leads path{stroke:rgba(35,53,255,.42)}
:root[data-theme="light"] .ly-seam{stroke:#2335FF;filter:drop-shadow(0 0 6px rgba(35,53,255,.5))}
:root[data-theme="light"] .ly-pill{color:var(--lt-ink);background:rgba(255,255,255,.84);
  box-shadow:inset 0 0 0 1px var(--lt-hair),0 1px 2px rgba(11,18,51,.05),0 12px 28px -16px rgba(11,18,51,.32)}
:root[data-theme="light"] .ly-pill:hover,:root[data-theme="light"] .ly-pill:focus-visible{background-color:#fff;
  box-shadow:inset 0 0 0 1.5px var(--cobalt),0 14px 30px -16px rgba(35,53,255,.45)}
:root[data-theme="light"] .ly-sw{box-shadow:0 0 0 1px rgba(11,18,51,.08)}
@media (min-width:1024px){
  :root[data-theme="light"] .ly-pill{background:rgba(255,255,255,.84)}
  :root[data-theme="light"] .ly-li.sb .ly-pill{box-shadow:inset 0 0 0 1px var(--lt-hair),inset 1px 0 0 var(--lt-hair-2),0 12px 28px -16px rgba(11,18,51,.32)}
}
@media (min-width:1024px) and (max-width:1279px){
  :root[data-theme="light"] .ly-li.sa .ly-pill,:root[data-theme="light"] .ly-li.sb .ly-pill{box-shadow:inset 0 0 0 1px var(--lt-hair),0 12px 28px -16px rgba(11,18,51,.32)}
}

/* ==== 34-home-month.css ==== */
/* One photographic hand, two live screens. The wrapper pins; only screen contents move. */
.hmo{padding:0;height:230svh;min-height:1100px}
.hmo-pin{position:sticky;top:var(--hdr);height:calc(100svh - var(--hdr));min-height:570px;display:flex;flex-direction:column;overflow:hidden}
.hmo .hmo-head{flex:none;margin:0 auto;padding-top:22px;text-align:center;z-index:2}
.hm-main .hmo .scn-title{font-size:clamp(30px,4vw,58px);line-height:1.08}
.hmo .scn-title em{display:block}
.hmo-switch{display:flex;justify-content:center;gap:4px;width:fit-content;max-width:100%;margin:22px auto 0;padding:4px;border:1px solid var(--hair);border-radius:99px;background:var(--glass)}
.hmo-switch button{border:0;border-radius:99px;background:transparent;color:var(--on-2);padding:11px 20px;min-height:44px;font:500 15px/1.25 var(--f);cursor:pointer;transition:background .25s,color .25s}
.hmo-switch button[aria-pressed="true"]{background:#fff;color:#0B1233;box-shadow:0 2px 10px #0002}
.hmo-switch button:focus-visible{outline:2px solid var(--on);outline-offset:4px}
/* 2026-10-24: the device is sized from one var (--dev) and anchored so the phone body's bottom edge (78 % of the image) sits --wrist
   above the stage bottom; the stage fades its last --wrist px, so the clip edge is never a straight cut through the hand, pinned or not.
   --dev lives on the stage so the unpinned layouts below can size the stage from it (cqh resolves on the device, against the stage). */
.hmo-stage{position:relative;flex:1;min-height:0;width:100%;margin:12px auto 0;container-type:size;--wrist:56px;--dev:min(880px,116cqh,185vw);
  -webkit-mask-image:linear-gradient(#000 calc(100% - var(--wrist) + 10px),transparent);mask-image:linear-gradient(#000 calc(100% - var(--wrist) + 10px),transparent)}
.hmo-device{position:absolute;left:50%;bottom:calc(var(--wrist) - .22 * var(--dev));width:var(--dev);aspect-ratio:1;translate:-47.3% 0;isolation:isolate}
.hmo-hand{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 30px 44px rgba(0,0,0,.5)) drop-shadow(0 0 1px rgba(255,255,255,.08))}
/* Calibrated to the generated 1254px image: screen x387..800, y65..952. */
/* 2026-11-12 (owner, iPhone: „Илюстрация“ ran over „от сайта“): the caption owns a strip between the views and the home bar.
   --hmo-vb = where the views end (from the screen bottom): 8 % + 2 px on big screens (no content there; the caption stays where it was), at least the home bar + 30 px on
   short ones; the caption sits in that strip, so the content can never run under it. size containment = height queries below. */
.hmo-screen{position:absolute;left:30.86%;top:5.18%;width:32.93%;height:70.73%;border-radius:13% / 6.1%;overflow:hidden;background:#0D1931;color:#fff;container-type:size;text-align:left;
  --hmo-vb:max(calc(8% + 2px),calc(1.6% + 30px))}
.hmo-status{position:absolute;top:2%;left:8%;right:8%;display:flex;align-items:center;justify-content:space-between;height:5.5%;font-size:13px;font-weight:600}
.hmo-status i:not(.hmo-bat){position:absolute;left:50%;translate:-50% 0;width:38%;height:100%;border-radius:99px;background:#02040A}
.hmo-bat{position:relative;width:20px;height:10px;border:1.5px solid rgba(255,255,255,.8);border-radius:3px}
.hmo-bat::before{content:"";position:absolute;inset:1.5px;right:3px;border-radius:1px;background:#fff}
.hmo-bat::after{content:"";position:absolute;top:2px;bottom:2px;right:-4px;width:2px;border-radius:1px;background:rgba(255,255,255,.6)}
/* 2026-10-24: a push, not a crossfade. --report is only ever 0 or 1 (JS, with hysteresis); the day feed slides up and out while the
   report slides in from below, 108 % apart so even the moving frame shows two separate screens. The content area (.hmo-views) clips
   them, so neither ever runs over the status bar, the caption or the home indicator. */
.hmo-views{position:absolute;inset:12% 0 var(--hmo-vb);overflow:hidden}
.hmo-feed-view,.hmo-report-view{position:absolute;inset:0 6%;transition:transform .45s var(--ease),opacity .3s linear;will-change:transform}
.hmo-feed-view{transform:translateY(calc(var(--report,0) * -108%));opacity:calc(1 - var(--report,0) * .5)}
.hmo-report-view{transform:translateY(calc((1 - var(--report,0)) * 108%));pointer-events:none}
.hmo-app-head{display:flex;align-items:center;gap:9px;font-size:clamp(15px,5.8cqw,20px);line-height:1.2}
.hmo-app-head .ic{flex:none;width:28px;height:28px;padding:5px;background:#697FFF;border-radius:9px;color:#fff}
.hmo-screen-label{font-size:clamp(13px,4.5cqw,16px);line-height:1.4;color:#BDC8E3;margin:9px 0 18px}
.hmo-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.hmo-c{display:flex;align-items:flex-start;gap:9px;padding:13px 11px;border-radius:16px;background:#F0F3FF;color:#0B1233;box-shadow:0 8px 18px #0002}
.hmo-c>i{position:relative;display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:9px;background:#DBE2FF;color:#2335FF}
.hmo-c>i>.ic{width:19px;height:19px}
.hmo-src{position:absolute;right:-4px;bottom:-4px;width:15px;height:15px;border-radius:50%;background:#2335FF;border:2px solid #F0F3FF}
.hmo-src svg{display:block;width:100%;height:100%;fill:none;stroke:white;stroke-width:2}
.hmo-c p{margin:0;min-width:0;flex:1;display:grid;grid-template-columns:1fr auto;gap:3px 5px}
.hmo-c b{grid-column:1/-1;font-size:clamp(13px,5.3cqw,17px);line-height:1.25;font-weight:650}
.hmo-c p>span,.hmo-c time{font-size:clamp(13px,4.5cqw,15px);line-height:1.3;color:#525A78}
.hmo-c time{font-variant-numeric:tabular-nums}
.hmo-stars{display:flex;align-items:center;gap:1px}
.hmo-stars .ic{width:13px;height:13px;fill:#2335FF;stroke:#2335FF}
.hmo-c .hmo-ok{grid-column:1/-1;display:flex;align-items:center;gap:4px;color:#2335FF}
.hmo-ok .ic{width:14px;height:14px}
.hmo-total{display:block;font-size:clamp(74px,33cqw,124px);font-weight:650;letter-spacing:-.065em;line-height:.9;margin:20px 0 8px}
.hmo-bookings{font-size:clamp(14px,5.2cqw,18px);color:#DFE5FA;margin:0}
.hmo-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:22px 0 13px;height:clamp(70px,35cqw,125px)}
.hmo-chart span{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;min-width:0}
.hmo-chart i{display:block;width:100%;height:calc(var(--bar) * 72%);border-radius:4px;background:#7189FF;transform-origin:bottom;
  transform:scaleY(calc(.3 + var(--report,0) * .7));transition:transform .6s var(--ease) .2s}
.hmo-chart span:nth-child(6) i{background:#E9F0FF}
.hmo-chart small{font-size:13px;color:#BBC9E7}
.hmo-best{font-size:13px;color:#C9D4F2;margin:0 0 18px}
.hmo-secondary{border-top:1px solid #ffffff26;display:flex;align-items:center;gap:12px;padding-top:15px}
.hmo-secondary b{font-size:clamp(26px,11cqw,40px);letter-spacing:-.04em}
.hmo-secondary span{max-width:12ch;font-size:clamp(13px,4.5cqw,16px);line-height:1.25;color:#BDC8E3}
.hmo-illustration{position:absolute;bottom:calc(var(--hmo-vb) - 21px);left:0;right:0;text-align:center;color:#AFBEDB;font-size:13px} /* desktop: same place as the old 5 % */
.hmo-home{position:absolute;bottom:1.6%;left:34%;width:32%;height:4px;border-radius:99px;background:#DFE5FA}
@media(max-width:760px){
  .hmo .hmo-head{padding-top:16px}
  .hm-main .hmo .scn-title{font-size:clamp(27px,7.4vw,38px)}
  .hmo-switch{margin-top:16px}
  .hmo-switch button{padding:10px 15px;font-size:14px}
  /* 2026-11-12: the phone body top (3.6 % of the image) must stay inside the stage, whose top edge the mask cuts: the device is
     never taller than --wrist + .744 × --dev = the stage; the 540 px floor holds only where it fits (EN heading = 3 lines) */
  .hmo-stage{--wrist:44px;--dev:max(min(540px,calc((100cqh - var(--wrist)) / .744)),min(185vw,116cqh))}
  .hmo-screen-label{margin-bottom:12px}
  .hmo-list{gap:9px}
  .hmo-c{padding:10px 8px;gap:7px}
  .hmo-c>i{width:25px;height:25px}
  .hmo-c time{display:none}
  .hmo-total{margin-top:14px}
  .hmo-chart{margin-top:16px}
  .hmo-best{margin-bottom:12px}
  .hmo-secondary{padding-top:10px;gap:8px}
}
/* 2026-10-24: the bottom-anchored desktop phone is a little narrower; give the report the phone spacing so „142“ keeps its air above the caption */
@container(max-width:240px){
  /* the day feed at this width too (2026-10-24, owner: the cards were cut on a small desktop phone) */
  .hmo-c{padding:10px 8px;gap:7px}
  .hmo-c>i{width:25px;height:25px}
  .hmo-c time{display:none}
  .hmo-total{margin-top:14px}
  .hmo-chart{margin-top:16px}
  .hmo-best{margin-bottom:12px}
  .hmo-secondary{padding-top:10px}
}
@container(max-width:210px){
  .hmo-total{font-size:64px;margin:12px 0 6px}
  .hmo-chart{height:70px;margin:14px 0 10px;gap:5px}
  .hmo-screen-label{margin:8px 0 12px}
  .hmo-best{margin-bottom:8px;line-height:1.3}
  .hmo-secondary{padding-top:8px}
  .hmo-secondary b{font-size:26px}
  .hmo-app-head{font-size:15px;gap:6px}
  .hmo-app-head .ic{width:23px;height:23px}
}
/* 2026-11-12: short phone screens (pinned phones 640–760 px tall, the 540 px phone): tighter rows so the whole feed and the whole
   report fit the views; every text stays ≥ 13 px. Big screens never match (the desktop screen is ≥ 460 px tall). */
@container(max-height:410px){
  .hmo-views{top:10%}
  .hmo-screen-label{margin:6px 0 9px}
  .hmo-list{gap:6px}
  .hmo-c{padding:8px 7px}
  .hmo-total{font-size:58px;margin:8px 0 4px}
  .hmo-chart{height:54px;margin:10px 0 8px}
  .hmo-best{margin-bottom:6px}
  .hmo-secondary{padding-top:6px}
}
@container(max-height:370px){
  .hmo-screen-label{display:none} /* the pressed switch above already says „През деня“ / „В края на месеца“ */
  .hmo-app-head{margin-bottom:10px}
}
@media(max-width:760px) and (min-height:651px) and (max-height:760px){
  /* pinned short phones: 16 px more for the phone */
  .hmo .hmo-head{padding-top:10px}
  .hmo-switch{margin-top:12px}
  .hmo-stage{margin-top:6px}
}
/* desktop (owner 2026-10-24: „на компютър не излиза като хората“): the heading and the switch stand on the left, the hand and
   the phone take the whole pinned height on the right, so the phone screen is ≈ 280 px wide instead of ≈ 200 px under the heading.
   Pinned layouts only: short screens, reduced motion and no JS keep the stacked, unpinned layout below. */
@media (min-width:1025px) and (orientation:landscape) and (min-height:651px) and (prefers-reduced-motion:no-preference){
  html.js .hmo-pin{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;column-gap:clamp(24px,3vw,56px);
    padding-left:max(var(--gut),calc((100% - 1240px) / 2))}
  html.js .hmo .hmo-head{grid-area:1/1;width:auto;max-width:none;margin:0;padding:0 0 4vh;text-align:left}
  html.js .hm-main .hmo .scn-title{font-size:clamp(40px,4.3vw,66px)}
  html.js .hmo-switch{margin:30px 0 0}
  html.js .hmo-stage{grid-area:1/2;align-self:stretch;height:auto;margin:0}
  html.js .hmo-defs{position:absolute} /* the icon sprite must not take a grid cell */
}
@media(max-height:650px){
  .hmo{height:auto;min-height:0}
  .hmo-pin{position:relative;top:0;height:auto;min-height:0}
  /* unpinned: a fixed-size phone, and a stage just tall enough for it (phone top = 3.6 % of the image) */
  .hmo-stage{flex:none;--dev:610px;height:calc(.76 * var(--dev) + var(--wrist))}
}
@media(prefers-reduced-motion:reduce){
  .hmo{height:auto;min-height:0}
  .hmo-pin{position:relative;top:0;height:auto;min-height:0}
  .hmo-stage{flex:none;--dev:max(580px,min(800px,185vw));height:calc(.76 * var(--dev) + var(--wrist))}
  .hmo-feed-view,.hmo-report-view,.hmo-chart i{transition:none}
}
html:not(.js) .hmo{height:auto;min-height:0;--report:1}
html:not(.js) .hmo-pin{position:relative;top:0;height:auto;min-height:0}
html:not(.js) .hmo-stage{flex:none;--dev:max(540px,min(800px,185vw));height:calc(.76 * var(--dev) + var(--wrist))}
html:not(.js) .hmo-switch{display:none}
:root[data-theme="light"] .hmo-hand{filter:drop-shadow(0 26px 40px rgba(11,18,51,.24))} /* 2026-10-24: the dark-stage shadow reads as grey haze on white */
:root[data-theme="light"] .hmo-switch{background:#E7EBF4;border-color:#D4DCEB}
:root[data-theme="light"] .hmo-switch button{color:#3C4964}
:root[data-theme="light"] .hmo-switch button[aria-pressed="true"]{background:#2335FF;color:#fff}
:root[data-theme="light"] .hmo-switch button:focus-visible{outline-color:#2335FF}

/* ==== 35-home-plan.css ==== */
/* WhiteWays · home #plan (violet), HOME-WOW round 2026-09-30 (owner: plan team). Brief: docs/briefs/HOME-WOW-BRIEF.md §5.
   The 3 plans as lit cards, each topped by a big layer stack (2 / 4 / 6 layers) on one shared baseline, so the row reads as one
   growing series. Prefix hp-. One loop: the Растеж halo breathes while .hp.live. Yellow: only the Растеж CTA. No backgrounds of
   our own, no data-fx. Round 2 (2026-09-30): 3 columns only ≥1181px, tablet = Растеж full width + Старт/Пълен in 2 columns,
   content kept clear of the fixed FAB column at 901–1300px. Pricing round (2026-09-30): 35 / 120 / Пълен (от 500 since B25,
   2026-11-17), plan buttons → checkout.html.
   HOME-POLISH 2026-10-24 §1: „Една година“ (.hp-year, a 12-month scrubber: one-off site vs план Старт) replaces the
   2026-10-23 toggle (.hp-choice); the dead mega title (.hp-title/.hp-chk) and price bar (.hp-bar) rules went with it.
   Before: _archive/2026-10-24-home-polish/src/css/35-home-plan.css. */

.hp{overflow-x:clip;padding-bottom:clamp(56px,5.2vw,76px)}

/* ---------- 0 · „Една година“: one-off site vs план Старт over 12 months (HOME-POLISH-2026-10-24 §1) ---------- */
/* B27 (2026-11-18, owner: „по-интензивно … повече анимация и цветове“): the year plays itself once (35-home-plan.js), a 12-hue ramp in
   the brand family (--h: cobalt → violet → cyan, no yellow/red/green) colours the WhiteWays card, the one-off ages. Cards read --m
   (smoothed), the rail reads --p (instant). Motion = transform / opacity / filter. Before: _archive/2026-11-18-proverka-plan-ai/.
   Fix round (critic tools/out/b27/critic/REPORT.md, before: _archive/2026-11-18-b27-round1/): no --m transition on the root (each
   consumer carries its own), the ring angle is its own registered property, every self-running motion ends within 5 s. */
@property --m{syntax:'<number>';inherits:true;initial-value:12}
@property --ra{syntax:'<angle>';inherits:false;initial-value:0deg}
@property --rt{syntax:'<angle>';inherits:false;initial-value:0deg}
.hp-year{--m:12;--mc:#19BEEA;--xo:cubic-bezier(.16,1,.3,1);--tm:--m .35s var(--ease);max-width:1140px;margin:0 auto clamp(56px,6vw,88px)}
/* hue n and index n of the 12 tiles, the 12 rail lights and the 12 placeholders of the one-off (the mirror beat) */
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(1){--h:#2335FF;--i:1}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(2){--h:#3B3DFF;--i:2}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(3){--h:#5541FF;--i:3}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(4){--h:#6E3FF6;--i:4}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(5){--h:#8743F0;--i:5}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(6){--h:#9B4FF6;--i:6}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(7){--h:#8A5DFF;--i:7}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(8){--h:#6F6DFF;--i:8}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(9){--h:#527FFF;--i:9}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(10){--h:#3794FF;--i:10}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(11){--h:#22A9F2;--i:11}
:is(.hp-y-ups li,.hp-y-dots i,.hp-y-lines i):nth-child(12){--h:#19BEEA;--i:12}
/* the two cards share their rows (subgrid): name, price, maths, site mock, counter, stamp line up across both cards at every width */
.hp-y-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(12px,2.4vw,28px);row-gap:0;align-items:stretch}
/* glow behind the WhiteWays card: violet, cyan joins after month 5; only opacity follows the month */
.hp-y-glow{grid-column:2;grid-row:1/span 6;position:relative;z-index:0;display:block;pointer-events:none}
.hp-y-glow::before,.hp-y-glow::after{content:"";position:absolute;border-radius:50%;will-change:opacity;transition:var(--tm)}
.hp-y-glow::before{inset:-18% -26%;background:radial-gradient(closest-side,rgba(120,70,250,.9),rgba(35,53,255,.4) 55%,transparent);opacity:calc(.2 + var(--m) / 12 * .8)}
.hp-y-glow::after{inset:22% -20% -16%;background:radial-gradient(closest-side,rgba(25,190,234,.7),rgba(55,148,255,.24) 60%,transparent);opacity:calc(max(0,var(--m) - 5) / 7)}
.hp-y-card{position:relative;z-index:1;display:grid;grid-row:1/span 6;grid-template-rows:subgrid;align-content:start;padding:clamp(14px,2.4vw,28px) clamp(14px,2.6vw,32px);border-radius:clamp(20px,2vw,28px);
  background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.03)),rgba(10,12,48,.38);
  box-shadow:inset 0 1px 0 rgba(218,224,255,.22),inset 0 0 0 1px rgba(166,179,255,.12)}
/* the WhiteWays card is the lit one (same family as the Растеж halo) */
.hp-y-once{grid-column:1}
.hp-y-ww{grid-column:2;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 0 0 1px rgba(201,210,255,.35),0 30px 80px -40px rgba(120,70,240,.6)}
/* its ring: the ramp as a 2px border that turns 30° a month (--ra, its own registered angle) and brightens with the year;
   when month 12 lands it makes one full turn (--rt) */
.hp-y-ww::before{--ra:calc(var(--m) * 30deg);content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
  background:conic-gradient(from calc(var(--ra) + var(--rt) + 200deg),#2335FF,#6E3FF6,#9B4FF6,#527FFF,#19BEEA,#7FE3F7,#2335FF);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;opacity:calc(.3 + var(--m) / 12 * .7);transition:--ra .35s var(--ease),opacity .35s}
.hp-year.is-done .hp-y-ww::before{animation:hpTurn 1s var(--xo)}
@keyframes hpTurn{from{--rt:-360deg}to{--rt:0deg}}
.hp-y-name{margin:0;font-size:clamp(15px,1.5vw,20px);font-weight:600;line-height:1.2;color:var(--on)}
.hp-y-name small{display:block;margin-top:2px;font-size:clamp(14px,1.1vw,15px);font-weight:500;color:var(--on-2)}
/* the two prices share one size from 421px up, so the eye compares them as equals (phones: the WhiteWays sum leads, see ≤420) */
.hp .hp-y-pay{display:flex;align-items:baseline;gap:.15em;margin:10px 0 0;font-size:clamp(26px,5.2vw,64px);font-weight:650;line-height:1;letter-spacing:-.045em;
  white-space:nowrap;font-variant-numeric:proportional-nums;color:var(--on)}
/* colour on the sum: a marker stroke in the month's hue under the WhiteWays total (never yellow) */
.hp-y-total{position:relative;isolation:isolate}
.hp-y-total::after{content:"";position:absolute;z-index:-1;left:-.04em;right:-.04em;bottom:.04em;height:.28em;border-radius:.08em;
  background:linear-gradient(90deg,var(--mc) 65%,transparent);opacity:.6}
.hp-y-pay span{font-size:max(14px,.42em);font-weight:500;letter-spacing:0;color:var(--on-2)}
/* .hp prefix on the <p> rules: `.scene p{color:inherit}` (04-stage.css) would beat a single class */
.hp .hp-y-math{margin:6px 0 0;min-height:1.4em;font-size:clamp(14px,1.1vw,15px);line-height:1.4;color:var(--on-3);text-wrap:balance}
/* the site mock: a browser frame with a hero block and a 3 × 4 grid (update tiles on the right, grey lines on the left) */
.hp-y-site{position:relative;display:flex;flex-direction:column;margin-top:clamp(12px,1.6vw,20px);border-radius:14px;overflow:hidden;background:#0D1931;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.hp-y-chrome{display:block;height:clamp(18px,2vw,26px);background:#121F3D radial-gradient(circle at 12px 50%,#2335FF 3px,transparent 3.5px),
  radial-gradient(circle at 24px 50%,#8FA0FF 3px,transparent 3.5px),radial-gradient(circle at 36px 50%,#fff 3px,transparent 3.5px)}
/* the page fills the mock (both mocks share one row height), the grey lines stretch with it */
.hp-y-page{flex:1;display:grid;grid-template-rows:auto 1fr;gap:clamp(8px,1vw,12px);padding:clamp(8px,1vw,12px)}
.hp-y-hero{position:relative;isolation:isolate;overflow:hidden;height:clamp(56px,8vw,104px);border-radius:10px;background:linear-gradient(135deg,#2335FF,#6E3FF6)}
.hp-y-date{position:absolute;z-index:1;left:10px;bottom:8px;padding:4px 9px;border-radius:999px;background:rgba(11,18,51,.6);color:#fff;font-size:14px;font-weight:500;line-height:1.2;white-space:nowrap}
/* WhiteWays hero: a 13-frame ramp strip moved by --m (December ends in the cobalt family); a light sweep on each new month */
.hp-y-ww .hp-y-hero::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:0;width:1300%;transition:var(--tm);
  background:radial-gradient(60% 120% at 50% -20%,rgba(255,255,255,.18),transparent 60%) 0 0/7.6923% 100% repeat-x,
    linear-gradient(90deg,#2335FF,#3B3DFF 7.69%,#5541FF 15.38%,#6E3FF6 23.08%,#8743F0 30.77%,#9B4FF6 38.46%,#8A5DFF 46.15%,#6F6DFF 53.85%,
    #527FFF 61.54%,#3794FF 69.23%,#22A9F2 76.92%,#19BEEA 84.62%,#2A8CFF 92.31%,#2335FF);transform:translateX(calc(var(--m) / -13 * 100%))}
.hp-y-ww .hp-y-hero::after{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:45%;opacity:0;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.6),transparent);transform:translateX(-120%) skewX(-18deg)}
.hp-y-ww[data-beat="a"] .hp-y-hero::after{animation:hpSweepA .8s var(--xo)}
.hp-y-ww[data-beat="b"] .hp-y-hero::after{animation:hpSweepB .8s var(--xo)}
@keyframes hpSweepA{from{opacity:1;transform:translateX(-120%) skewX(-18deg)}to{opacity:1;transform:translateX(330%) skewX(-18deg)}}
@keyframes hpSweepB{from{opacity:1;transform:translateX(-120%) skewX(-18deg)}to{opacity:1;transform:translateX(330%) skewX(-18deg)}}
.hp-y-ups,.hp-y-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:clamp(6px,.7vw,8px);margin:0;padding:0;list-style:none}
/* the mirror beat: placeholder i of the one-off goes out as tile i lights on the right */
.hp-y-lines i{--k:clamp(0,calc(var(--m) - var(--i) + 1),1);display:block;min-height:clamp(32px,3vw,40px);border-radius:9px;background:rgba(120,135,255,.16);
  opacity:calc(1 - var(--k) * .7);transform:translateY(calc(var(--k) * 2px)) scale(calc(1 - var(--k) * .04));transition:var(--tm)}
/* tile i is in at --m = i (the --m transition fades it), tinted in its hue; .is-pop on arrival: scale, glow, ring, the check draws */
.hp-y-ups li{--k:clamp(0,calc(var(--m) - var(--i) + 1),1);position:relative;isolation:isolate;display:flex;align-items:center;gap:5px;min-height:clamp(32px,3vw,40px);padding:4px 7px;border-radius:9px;
  background:rgba(255,255,255,.07);color:#fff;font-size:14px;font-weight:500;line-height:1.15;letter-spacing:-.01em;text-wrap:balance;overflow:hidden;
  opacity:var(--k);transform:translateY(calc((1 - var(--k)) * 8px)) scale(calc(.92 + var(--k) * .08));transition:var(--tm)}
.hp-y-ups li::before{content:"";position:absolute;z-index:-1;inset:0;border-radius:inherit;background:linear-gradient(150deg,var(--h) 15%,transparent 150%);opacity:.8}
.hp-y-ups li::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1.5px var(--h),inset 0 0 14px var(--h);opacity:0;pointer-events:none}
.hp-y-ups .ic{flex:none;width:16px;height:16px;stroke-width:2.6;color:#fff;stroke-dasharray:21}
.hp-y-ups li.is-pop{animation:hpPop .65s var(--xo)}
.hp-y-ups li.is-pop::after{animation:hpRing .9s ease-out}
.hp-y-ups li.is-pop .ic{animation:hpDraw .5s .12s var(--xo) backwards}
@keyframes hpPop{0%{transform:scale(.55);filter:brightness(1.7) drop-shadow(0 0 0 var(--h))}35%{filter:brightness(1.3) drop-shadow(0 0 10px var(--h))}100%{filter:none}}
@keyframes hpRing{from{opacity:1}to{opacity:0}}
@keyframes hpDraw{from{stroke-dashoffset:21}to{stroke-dashoffset:0}}
/* the finale: a light wave runs over the 12 tiles in order when month 12 lands (on ::before, so no other animation is replaced) */
.hp-year.is-done .hp-y-ups li::before{animation:hpWave .6s calc(var(--i) * 35ms) ease-out}
@keyframes hpWave{35%{opacity:1;filter:brightness(1.35)}}
/* the one-off ages as a process (the „Януари“ chip stays crisp): only the hero's picture (::before) fades to grey and dims, a dusty
   film settles on it (::after, under the chip), and the placeholders go out one by one (the mirror beat above) */
.hp-y-once .hp-y-hero{background:#0D1931}
.hp-y-once .hp-y-hero::before,.hp-y-once .hp-y-hero::after{content:"";position:absolute;inset:0;pointer-events:none;transition:var(--tm)}
.hp-y-once .hp-y-hero::before{z-index:-1;background:linear-gradient(135deg,#2335FF,#6E3FF6);
  filter:grayscale(calc(var(--m) / 12 * .95)) brightness(calc(1 - var(--m) / 12 * .45)) contrast(calc(1 - var(--m) / 12 * .2))}
.hp-y-once .hp-y-hero::after{background:linear-gradient(180deg,rgba(170,176,196,.06),rgba(150,156,178,.3));opacity:calc(var(--m) / 12)}
.hp-y-once .hp-y-lines{filter:grayscale(calc(var(--m) / 12));transition:var(--tm)}
/* the big total rolls a changed digit in (.hp-y-dg from the script; data-r a|b restarts); it never drops below .65 opacity */
.hp-y-dg{display:inline-block;font-style:normal}
.hp-y-dg[data-r="a"]{animation:hpRollA .28s var(--xo)}
.hp-y-dg[data-r="b"]{animation:hpRollB .28s var(--xo)}
@keyframes hpRollA{from{opacity:.65;transform:translateY(.3em)}}
@keyframes hpRollB{from{opacity:.65;transform:translateY(.3em)}}
/* the counter row is as tall as the stamp, so the stamp (absolute, bottom right) sits on the same line and never on the mock */
.hp .hp-y-foot{display:flex;align-items:center;gap:.3em;min-height:calc(18px + clamp(14px,1.1vw,16px));margin:12px 0 0;font-size:clamp(14px,1.1vw,16px);line-height:1.3;color:var(--on-2)}
.hp-y-foot b{font-weight:650;color:var(--on)}
/* stamp: a ramp pill; at 12 (.is-done) it lands, a light sweeps it and one ring expands from it once (.hp-y-burst: it stays within
   12px of the pill sideways and 6px up/down, so it never reaches the left card or „12 обновления“) */
.hp .hp-y-stamp{--k:clamp(0,calc(var(--m) - 11),1);position:absolute;right:clamp(14px,2.6vw,32px);bottom:clamp(14px,2.4vw,28px);margin:0;padding:9px 13px;border-radius:999px;
  background:linear-gradient(120deg,#2335FF,#6E3FF6);color:#fff;font-size:clamp(14px,1.1vw,16px);font-weight:600;line-height:1;white-space:nowrap;
  opacity:var(--k);transform:translateY(calc((1 - var(--k)) * 8px));box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 12px 30px -10px rgba(110,63,246,.9);transition:var(--tm)}
.hp-y-shine{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}
.hp-y-shine::before{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);transform:translateX(-140%) skewX(-20deg)}
.hp-y-burst{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;box-shadow:0 0 0 2px #fff,0 0 18px 2px var(--mc)}
.hp-year.is-done .hp-y-stamp{animation:hpStamp .6s var(--xo)}
.hp-year.is-done .hp-y-shine::before{animation:hpShine .6s .2s var(--xo) both}
.hp-year.is-done .hp-y-burst{animation:hpBurst .7s .1s ease-out}
@keyframes hpStamp{0%{opacity:0;transform:scale(1.55) rotate(-9deg)}55%{opacity:1;transform:scale(.97) rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes hpShine{from{transform:translateX(-140%) skewX(-20deg)}to{transform:translateX(340%) skewX(-20deg)}}
@keyframes hpBurst{0%{opacity:1;transform:none}100%{opacity:0;transform:scale(1.2,1.35)}}
/* desktop: a bigger stamp; the counter row grows with it so it never sits on the mock */
@media (min-width:900px){
  .hp .hp-y-stamp{font-size:clamp(16px,1.5vw,22px);padding:12px 20px}
  .hp .hp-y-foot{min-height:calc(24px + clamp(16px,1.5vw,22px))}
}

/* the track: a native range with an invisible 44px thumb over a drawn rail; pan-y keeps the page scroll */
.hp-y-track{margin-top:clamp(18px,2.4vw,32px)}
.hp-y-out{display:block;margin-bottom:4px;text-align:center;font-size:clamp(15px,1.2vw,17px);font-weight:600;color:var(--on);font-variant-numeric:proportional-nums}
.hp-y-bar{position:relative}
.hp-y-range{-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%;height:44px;margin:0;background:transparent;cursor:grab;touch-action:pan-y}
.hp-y-range:active{cursor:grabbing}
.hp-y-range::-webkit-slider-runnable-track{height:44px;background:transparent}
.hp-y-range::-moz-range-track{height:44px;background:transparent}
.hp-y-range::-webkit-slider-thumb{-webkit-appearance:none;width:44px;height:44px;border:0;border-radius:50%;background:transparent}
.hp-y-range::-moz-range-thumb{width:44px;height:44px;border:0;border-radius:50%;background:transparent}
.hp-y-range:focus-visible{outline:none}
/* the rail spans the thumb centres (22px in): month k at k/12; --p and --mc come from the script (static = month 12) */
.hp-y-rail{--p:12;position:absolute;left:22px;right:22px;top:50%;height:10px;margin-top:-5px;border-radius:5px;pointer-events:none;
  background:rgba(255,255,255,.12);box-shadow:inset 0 1px 2px rgba(0,0,0,.35)}
/* fill: a fixed ramp revealed by two opposite translations */
.hp-y-fill{position:absolute;inset:0;border-radius:inherit;overflow:hidden;filter:drop-shadow(0 0 6px rgba(110,63,246,.75))}
.hp-y-fill>i{position:absolute;inset:0;display:block;border-radius:inherit;overflow:hidden;transform:translateX(calc((var(--p) / 12 - 1) * 100%))}
.hp-y-fill b{position:absolute;inset:0;display:block;transform:translateX(calc((1 - var(--p) / 12) * 100%));
  background:linear-gradient(90deg,#2335FF,#5541FF 22%,#8743F0 42%,#8A5DFF 55%,#527FFF 72%,#22A9F2 88%,#19BEEA)}
/* 12 lights: dim until passed, then white with their hue's glow */
.hp-y-dots i{--k:clamp(0,calc(var(--p) - var(--j) + 1),1);position:absolute;left:calc(var(--j) / 12 * 100%);top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;
  background:rgba(255,255,255,.34);transform:scale(calc(.7 + var(--k) * .45));transition:transform .25s var(--xo)}
.hp-y-dots i::before{content:"";position:absolute;inset:0;border-radius:50%;background:#fff;box-shadow:0 0 6px 1px var(--h),0 0 14px var(--h);opacity:var(--k);transition:opacity .25s}
/* the rail answers: each light rings once as the knob passes it (.is-ring from the script) */
.hp-y-dots i.is-ring{animation:hpDot .6s ease-out}
@keyframes hpDot{from{box-shadow:0 0 0 0 var(--h)}to{box-shadow:0 0 0 9px transparent}}
/* head = a rail-wide box: translateX(p/12) puts its left edge (knob, halo, comet) on month p */
.hp-y-head{position:absolute;inset:0;transform:translateX(calc(var(--p) / 12 * 100%))}
.hp-y-fill>i,.hp-y-fill b,.hp-y-head{transition:transform .18s var(--xo)}
.hp-y-rail.is-auto .hp-y-fill>i,.hp-y-rail.is-auto .hp-y-fill b,.hp-y-rail.is-auto .hp-y-head{transition:none}
.hp-y-knob,.hp-y-halo{position:absolute;left:0;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%}
/* glass knob, ring + glow in the month's hue */
.hp-y-knob{background:radial-gradient(circle at 36% 30%,#fff 0 22%,rgba(255,255,255,.7) 52%,rgba(226,232,255,.42));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),inset 0 -5px 9px -3px var(--mc),0 0 0 2.5px var(--mc),0 0 24px -2px var(--mc),0 8px 18px -6px rgba(0,0,0,.7);transition:transform .2s var(--xo)}
.hp-y-rail[data-beat="a"] .hp-y-knob{animation:hpBeatA .42s var(--xo)}
.hp-y-rail[data-beat="b"] .hp-y-knob{animation:hpBeatB .42s var(--xo)}
@keyframes hpBeatA{from{transform:scale(1.24)}}
@keyframes hpBeatB{from{transform:scale(1.24)}}
.hp-y-range:focus-visible+.hp-y-rail .hp-y-knob{box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 0 0 3px var(--ink),0 0 0 6px #fff}
@media (hover:hover) and (pointer:fine){.hp-y-bar:hover .hp-y-knob{transform:scale(1.08)}}
/* halo: one ring from the knob when month 12 lands, an invitation to drag (.6 s) */
.hp-y-halo{border:2px solid var(--mc);opacity:0}
.hp-year.is-done .hp-y-halo{animation:hpHalo .6s .15s ease-out}
@keyframes hpHalo{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(2.2)}}
/* comet behind the moving knob, white-hot with the month's glow (visible on the fill), flipped when it moves back */
.hp-y-comet{position:absolute;left:-76px;top:50%;width:76px;height:4px;margin-top:-2px;border-radius:2px;background:linear-gradient(90deg,transparent,#fff);
  box-shadow:0 0 12px 2px var(--mc);opacity:0;transform-origin:100% 50%;transition:opacity .4s}
.hp-y-rail.is-move .hp-y-comet{opacity:.95;transition-duration:.1s}
.hp-y-rail.is-back .hp-y-comet{transform:scaleX(-1)}
/* labels under the thumb centres: value k at 22 + k(W - 44)/12, so 13 cells with margin-inline 22px - (W - 44)/24 */
.hp-y-months{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));margin:0 calc(22px - (100% - 44px) / 24);padding:0;list-style:none;
  font-size:14px;line-height:1.3;color:var(--on-3);font-variant-numeric:proportional-nums}
.hp-y-months li{text-align:center}
/* reduced motion: month 12 at once, still (35-home-plan.js never plays; 04-stage.css stills every .sq) */
@media (prefers-reduced-motion:reduce){
  .hp-year{transition:none}
  .hp-year *,.hp-year ::before,.hp-year ::after{animation:none!important;transition:none!important}
}

/* ---------- 1 · the plans ---------- */
.hp-grid{--sk:clamp(128px,11vw,156px);position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2vw,28px);
  align-items:stretch;max-width:1140px;margin-inline:auto}
.hp-st{grid-area:1/1}.hp-gr{grid-area:1/2}.hp-fu{grid-area:1/3}
.hp-halo{grid-area:1/2;align-self:stretch;position:relative;z-index:0;pointer-events:none}
.hp-halo i{position:absolute;inset:-26% -46%;display:block;border-radius:50%;opacity:.8;
  background:radial-gradient(closest-side,rgba(255,255,255,.2),rgba(169,74,232,.42) 36%,rgba(120,70,240,.16) 64%,transparent 100%)}
.hp-c{position:relative;z-index:1;display:flex;flex-direction:column;padding:clamp(28px,2.6vw,38px);border-radius:28px}
.hp-c.gcard{background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.03)),rgba(10,12,48,.38)}
.hp-c.hot{translate:0 -18px;padding-block:clamp(40px,3.4vw,52px);color:var(--ink);
  box-shadow:0 2px 6px rgba(0,0,0,.08),0 40px 90px -40px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.6),0 0 80px -20px rgba(190,140,255,.55)}
.hp-c h3{font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1.2}
/* the one-liner under the name: kept clear of the layer stack on the right */
.hp-sum{margin-top:8px;max-width:calc(100% - var(--sk) * .62);font-size:17px;line-height:1.35;color:var(--on-2);text-wrap:balance}
.hp-c.hot .hp-sum{color:#4F587D}
.hp-p{display:flex;align-items:baseline;gap:8px;margin-top:18px}
.hp-p b{font-size:clamp(56px,5vw,72px);font-weight:600;line-height:1;letter-spacing:-.04em;font-variant-numeric:proportional-nums}
.hp-p span{font-size:18px;font-weight:500;color:var(--on-2);white-space:nowrap}
/* Sintra round 2026-10-23 (WP-4): the price per day under the monthly price; quiet, never yellow, never bold */
.hp-day{margin-top:2px;font-size:15px;font-weight:400;line-height:1.35;color:#C9D2FF;white-space:nowrap}
.hp-c.hot .hp-day{color:var(--ink-2)}
/* B25 (2026-11-17): Пълен „от 500 €/мес, по уговорка“. The price is a 3-column grid (от · 500 · €/мес on one baseline, it can
   never wrap); the quiet „по уговорка“ takes the full row under it; the explaining line replaces the day price and may wrap */
.hp-p .hp-from{font-size:18px;font-weight:500;line-height:1;letter-spacing:0;color:var(--on-2);white-space:nowrap}
.hp-fu .hp-p{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;align-items:baseline;row-gap:6px}
.hp-p .hp-deal{grid-column:1/-1;font-size:15px;font-style:normal;font-weight:500;line-height:1.3;color:#C9D2FF;white-space:nowrap}
.hp .hp-deal-l{white-space:normal;text-wrap:balance}
/* the layer stack is the hero of each card: big, on the card's top-right, rising out of its top edge. Same box on every card,
   so the bottom layers share one baseline (Растеж's box is lowered by its 18px lift) and 2 → 4 → 6 reads as one series. */
.hp-stk{position:absolute;top:calc(var(--sk) * -.72);right:clamp(16px,1.6vw,24px);z-index:2;display:block;width:var(--sk);height:auto;overflow:visible;pointer-events:none;
  filter:drop-shadow(0 16px 20px rgba(5,6,40,.5))}
.hp-c.hot .hp-stk{top:calc(var(--sk) * -.72 + 18px)}
.hp-stk .hp-f{fill:#fff;stroke:rgba(11,18,51,.1);stroke-width:.8;stroke-linejoin:round}
.hp-stk g{transition:translate .6s var(--ease)}
.hp-c .hp-act{margin-top:10px;font-size:16px;color:var(--on-3)}
.hp-c ul{display:grid;gap:13px;list-style:none;margin:24px 0 30px;padding:24px 0 0;border-top:1px solid var(--hair)}
.hp-c li{display:flex;align-items:flex-start;gap:12px;font-size:17px;line-height:1.4;color:var(--on-2)}
.hp-c li .ic{flex:none;width:20px;height:20px;margin-top:1px;stroke-width:2.3;color:#B4BEFF}
.hp-c .btn{margin-top:auto}
.hp-c.hot .hp-p span{color:#4F587D}
.hp-c.hot .hp-act{color:#5E678C}
.hp-c.hot ul{border-top-color:var(--line)}
.hp-c.hot li{color:var(--ink)}
.hp-c.hot li .ic{color:var(--cobalt)}
.hp-c.hot .hp-stk{filter:drop-shadow(0 16px 18px rgba(35,53,255,.28))}
/* the tag sits on the card's top edge, on the left (the stack owns the right) */
.hp-c .hp-tag{position:absolute;top:0;left:clamp(28px,2.6vw,38px);z-index:3;transform:translateY(-50%);padding:11px 18px;border-radius:999px;background:var(--cobalt);color:#fff;
  font-size:15px;font-weight:600;line-height:1;letter-spacing:0;white-space:nowrap;box-shadow:0 10px 24px -8px rgba(35,53,255,.8),inset 0 1px 0 rgba(255,255,255,.25)}
/* owner 2026-10-24: under the plans only the free audit link, with air above it (the terms line and the ceni button are gone) */
.hp-foot{margin-top:clamp(52px,4.6vw,72px)}
.hp .hp-alt{flex-basis:100%;margin:0;font-size:17px;line-height:1.5;color:var(--on-2);text-align:center;text-wrap:balance}
.hp-alt a{display:inline-flex;align-items:center;min-height:48px;color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(255,255,255,.45);transition:text-decoration-color .2s}
.hp-alt a:hover{text-decoration-color:#fff}

/* the one loop: the Растеж halo breathes while the scene is on screen */
@keyframes hpBreath{from{opacity:.6;transform:scale(.96)}to{opacity:1;transform:scale(1.04)}}
@media (prefers-reduced-motion:no-preference){
  .hp-halo i{animation:hpBreath 6s ease-in-out infinite alternate;animation-play-state:paused}
  .hp.live .hp-halo i{animation-play-state:running}
}

/* hover: the stack opens up layer by layer (the P12 pointer light on the cards lives in 36-home-light.*); fine pointers only */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .hp-c:hover .hp-stk g:nth-child(2){translate:0 -2.5px}
  .hp-c:hover .hp-stk g:nth-child(3){translate:0 -5px}
  .hp-c:hover .hp-stk g:nth-child(4){translate:0 -7.5px}
  .hp-c:hover .hp-stk g:nth-child(5){translate:0 -10px}
  .hp-c:hover .hp-stk g:nth-child(6){translate:0 -12.5px}
}

/* ---------- 901–1300: keep the year block and the plans clear of the fixed back-to-top / AI column (right 24px + 62px orb) ---------- */
@media (min-width:901px) and (max-width:1300px){
  .hp-year,.hp-grid{max-width:min(1140px,100vw - 200px)}
}

/* ---------- ≤1180: Растеж full width on top, Старт and Пълен as compact glass rows under it (2 columns, 1 on phones) ---------- */
@media (max-width:1180px){
  .hp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .hp-gr,.hp-halo{grid-area:1/1/2/3}.hp-st{grid-area:2/1}.hp-fu{grid-area:2/2}
  .hp-halo i{inset:-18% -8% 10%}
  .hp-c.hot{translate:none;margin-bottom:4px}
  .hp-c.gcard{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"h b" "p b" "d b" "s s";column-gap:14px;align-items:center;padding:20px 20px 20px 24px;border-radius:24px}
  .hp-c.gcard .hp-hd,.hp-c.gcard .hp-nm{display:contents}
  .hp-c.gcard .hp-stk,.hp-c.gcard .hp-act,.hp-c.gcard ul{display:none}
  .hp-c.gcard h3{grid-area:h;font-size:20px}
  .hp-c.gcard .hp-p{grid-area:p;margin-top:4px;gap:6px}
  .hp-c.gcard .hp-p b{font-size:32px;letter-spacing:-.03em}
  .hp-c.gcard .hp-p span{font-size:16px}
  .hp-c.gcard .hp-day{grid-area:d}
  /* B25: the compact Пълен row: the button beside the name, „от 500 €/мес“ + „по уговорка“ and the explaining line across the
     card (beside the button „от 500 €/мес“ had too little room at 768 and the unit wrapped) */
  .hp-c.gcard.hp-fu{grid-template-areas:"h b" "p p" "d d" "s s"}
  .hp-c.gcard.hp-fu .hp-p{margin-top:10px}
  .hp-c.gcard .hp-p .hp-from{font-size:16px}
  .hp-c.gcard .hp-deal-l{margin-top:6px}
  .hp-c.hot .hp-sum{display:none}
  .hp-c.gcard .hp-sum{display:block;max-width:none;grid-area:s;margin-top:12px;padding-top:12px;border-top:1px solid var(--hair);font-size:16px;line-height:1.4;color:var(--on-2)}
  .hp-c.gcard .btn{grid-area:b;margin:0;width:auto;min-height:48px;padding:0 18px;font-size:16px}
}
/* tablet: the white Растеж card in two columns: name, price, stack and the yellow CTA left; the list right */
@media (min-width:761px) and (max-width:1180px){
  .hp-grid{--sk:clamp(112px,14vw,160px)}
  .hp-c.hot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;grid-template-areas:"hd ul" "act ul" "btn ul";
    column-gap:clamp(32px,5vw,56px);padding:44px clamp(28px,4vw,44px) 36px}
  .hp-c.hot .hp-hd{grid-area:hd;position:relative}
  .hp-c.hot .hp-stk{top:auto;bottom:-6px;right:0}
  .hp-c.hot .hp-p b{font-size:clamp(56px,6.4vw,68px)}
  .hp-c.hot .hp-act{grid-area:act}
  .hp-c.hot ul{grid-area:ul;align-content:center;margin:0;padding:4px 0 4px clamp(28px,4vw,48px);border-top:0;border-left:1px solid var(--line)}
  .hp-c.hot .btn{grid-area:btn;align-self:end;margin-top:28px}
}

@media (max-width:900px){
  .hp-foot{margin-top:44px}
}
/* ---------- phones: one column; Растеж is the full card, Старт and Пълен compact rows ---------- */
@media (max-width:760px){
  .hp-grid{grid-template-columns:1fr;gap:12px}
  .hp-gr,.hp-halo{grid-area:1/1}.hp-st{grid-area:2/1}.hp-fu{grid-area:3/1}
  .hp-halo i{inset:-12% -30% 30%}
  .hp-c.hot{margin-top:30px;padding:34px 20px 22px}
  /* keep the Растеж stack clear of the fixed back-to-top / assistant buttons on the right edge */
  .hp-c.hot .hp-stk{top:-40px;right:64px;width:92px}
  .hp-c.hot .hp-p{margin-top:12px}
  .hp-c.hot ul{gap:10px;margin:18px 0 22px;padding-top:16px}
  .hp-c li{font-size:16px}
  .hp-c.gcard{padding:18px 18px 18px 22px}
  .hp-c.gcard h3{font-size:19px}
  .hp-c.gcard .hp-p b{font-size:30px}
  .hp-c.gcard .btn{padding:0 16px;font-size:15px}
  .hp-c .hp-tag{left:22px}
  .hp-foot{margin-top:36px}
}
/* „Една година“ ≤900: the tiles are too narrow for their labels (a single word would be cut), so they turn into icon-only ✓ tiles */
@media (max-width:900px){
  .hp-y-ups li{justify-content:center;padding:0;gap:0;font-size:0}
  .hp-y-ups .ic{width:18px;height:18px;color:#fff}
}
/* phones: the date chip shows the month only, the stamp in flow, ticks at 1 · 6 · 12 */
@media (max-width:640px){
  .hp-y-dl{display:none}
  .hp .hp-y-stamp{position:relative;inset:auto;width:fit-content;margin-top:8px;transform:none}   /* in flow under the counter, never under the FAB (relative: it holds the shine + burst) */
  /* the maths line in the brighter text colour at 16px (14px --on-3 is too quiet on a phone); shorter tiles trim the empty glass */
  .hp .hp-y-math{font-size:16px;color:var(--on-2)}
  .hp-y-ups li,.hp-y-lines i{min-height:28px}
  .hp-y-months li{color:transparent}
  .hp-y-months li:nth-child(2),.hp-y-months li:nth-child(7),.hp-y-months li:nth-child(13){color:var(--on-3)}
}
@media (max-width:380px){
  .hp-c.gcard .btn{padding:0 13px}
  .hp-c.gcard{column-gap:10px;padding-left:18px}
}
/* B27 small phones: the old 24px rule never applied (`.hp .hp-y-pay` won), so „900–2 000 €“ (152px) overflowed the card up to 390.
   The price scales with the screen (text ≈ 5.3 × size + 15px, content ≈ 50vw - 50px), the stamp may wrap, the chip is tighter. */
@media (max-width:420px){
  .hp-y-card{padding-inline:12px}
  .hp .hp-y-pay{font-size:clamp(16px,calc((100vw - 118px) / 11.8),26px)}
  /* fix round: the WhiteWays sum is the first read on phones (26–32px); the one-off price goes quieter and keeps some slack */
  .hp .hp-y-ww .hp-y-pay{font-size:clamp(26px,7.6vw,32px)}
  .hp .hp-y-once .hp-y-pay{font-size:clamp(16px,calc((100vw - 118px) / 12.4),25px);font-weight:500;color:var(--on-2)}
  .hp .hp-y-stamp{max-width:100%;white-space:normal;text-wrap:balance;line-height:1.15}
}
@media (max-width:360px){
  .hp-y-date{left:6px;bottom:6px;padding:4px 7px}
  .hp-y-page{padding:7px}
}
@media (max-width:340px){
  .hp-y-date{left:5px;padding:4px 5px;letter-spacing:-.01em}
  .hp .hp-y-stamp{border-radius:16px;padding:8px 12px}   /* a wrapped stamp reads as a label, not a button */
}
/* the smallest phones: „от 500 €/мес“ and „Питам за Пълен“ do not fit side by side, so the button takes its own full-width row */
@media (max-width:340px){
  .hp-c.gcard,.hp-c.gcard.hp-fu{grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "p" "d" "b" "s";padding:18px}
  .hp-c.gcard .btn{width:100%;margin-top:12px}
}

/* phones: back-to-top steps away while a plan button sits under it (68-totop.js sets html.tt-away, CSS in 68-totop.css) */

/* reduced motion: the final picture, still (04-stage.css already drops every .sq animation) */
@media (prefers-reduced-motion:reduce){
  .hp-halo i{animation:none;opacity:.8}
}

/* ---------- light theme (2026-10-19) ----------
   Gallery white: the plans are white cards with daylight shadows. Prices: the figure is ink on a soft cobalt marker stroke,
   as on ceni (one yellow per view: the Растеж button stays the one solid yellow). */

/* „Една година“ (HOME-POLISH-2026-10-24 §1): white glass cards, a pale site mock, cobalt track and thumb, the stamp in cobalt.
   Each range pseudo-element sits in its own rule: a selector list mixing ::-webkit-* and ::-moz-* is dropped whole by the browser. */
:root[data-theme="light"] .hp-y-card{background:rgba(255,255,255,.84);box-shadow:inset 0 0 0 1px var(--lt-hair),0 2px 6px rgba(11,18,51,.05),0 30px 70px -40px rgba(11,18,51,.35)}
:root[data-theme="light"] .hp-y-ww{box-shadow:inset 0 0 0 1.5px rgba(35,53,255,.35),0 2px 6px rgba(11,18,51,.05),0 40px 90px -40px rgba(35,53,255,.35)}
:root[data-theme="light"] .hp-y-name,:root[data-theme="light"] .hp-y-pay,:root[data-theme="light"] .hp-y-foot b,:root[data-theme="light"] .hp-y-out{color:var(--lt-ink)}
:root[data-theme="light"] .hp-y-name small,:root[data-theme="light"] .hp-y-pay span,:root[data-theme="light"] .hp-y-foot{color:var(--lt-body)}
:root[data-theme="light"] .hp-y-math,:root[data-theme="light"] .hp-y-months{color:var(--lt-muted)}
/* the two prices: ink on the soft cobalt marker, as every price in light mode (the Растеж button stays the one yellow) */
:root[data-theme="light"] .hp-y-pay b{position:relative;isolation:isolate;color:var(--lt-ink)}
:root[data-theme="light"] .hp-y-pay b::before{content:"";position:absolute;z-index:-1;left:-.07em;right:-.07em;bottom:.02em;height:.3em;border-radius:.09em;
  background:linear-gradient(100deg,rgba(35,53,255,.2),rgba(91,107,255,.16));transform:skewX(-8deg)}
:root[data-theme="light"] .hp-y-site{background:#F3F5FC;box-shadow:inset 0 0 0 1px var(--lt-hair)}
:root[data-theme="light"] .hp-y-chrome{background-color:#E6EAF7}
/* B27: the one-off's empty tiles start faintly cobalt (fresh), then age with the mock; its dust is a pale film, not a dark one */
:root[data-theme="light"] .hp-y-lines i{background:rgba(35,53,255,.09)}
/* fix round: on daylight the one-off bleaches (grey + fading to the pale mock, a white film), never a dark grey slab */
:root[data-theme="light"] .hp-y-once .hp-y-hero{background:#F3F5FC}
:root[data-theme="light"] .hp-y-once .hp-y-hero::before{filter:grayscale(calc(var(--m) / 12 * .95)) opacity(calc(1 - var(--m) / 12 * .5))}
:root[data-theme="light"] .hp-y-once .hp-y-hero::after{background:rgba(255,255,255,.35)}
/* the WhiteWays total: the month's hue marker replaces the cobalt one */
:root[data-theme="light"] .hp-y-total::before{display:none}
:root[data-theme="light"] .hp-y-total::after{opacity:.5}
@media (max-width:420px){:root[data-theme="light"] .hp-y-once .hp-y-pay,:root[data-theme="light"] .hp-y-once .hp-y-pay b{color:var(--lt-body)}}
@media (max-width:640px){:root[data-theme="light"] .hp .hp-y-math{color:var(--lt-body)}}
/* fix round: the ramp tiles on daylight in full colour with a white label and check; the lighter hues (6–12) are deepened step by step
   so white keeps 4.5:1 on every tile (relative luminance ≤ .18; test-home-year.mjs computes it) */
:root[data-theme="light"] .hp-y-ups li{background:#EEF0FF;color:#fff}
:root[data-theme="light"] .hp-y-ups li::before{opacity:1;background:var(--h);filter:brightness(calc(1 - max(0,var(--i) - 5) * .057))}
:root[data-theme="light"] .hp-y-ups .ic{color:#fff}
:root[data-theme="light"] .hp-y-glow::before{opacity:calc(.1 + var(--m) / 12 * .36)}
:root[data-theme="light"] .hp-y-glow::after{opacity:calc(max(0,var(--m) - 5) / 7 * .5)}
:root[data-theme="light"] .hp-y-stamp{box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 12px 26px -12px rgba(35,53,255,.7)}
/* B27: the rail on daylight: an ink groove, ink lights until passed, a white knob with the month's ring and a daylight shadow */
:root[data-theme="light"] .hp-y-rail{background:rgba(11,18,51,.1);box-shadow:inset 0 1px 2px rgba(11,18,51,.18)}
:root[data-theme="light"] .hp-y-fill{filter:drop-shadow(0 0 5px rgba(110,63,246,.4))}
:root[data-theme="light"] .hp-y-dots i{background:rgba(11,18,51,.26)}
:root[data-theme="light"] .hp-y-knob{background:radial-gradient(circle at 36% 30%,#fff 0 40%,#F1F3FF);
  box-shadow:inset 0 0 0 1px rgba(11,18,51,.08),0 0 0 2.5px var(--mc),0 0 18px -4px var(--mc),0 8px 16px -8px rgba(11,18,51,.45)}
:root[data-theme="light"] .hp-y-range:focus-visible+.hp-y-rail .hp-y-knob{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--cobalt)}

/* the plans */
:root[data-theme="light"] .hp-halo i{opacity:.55;background:radial-gradient(closest-side,rgba(255,255,255,.4),rgba(140,120,255,.34) 36%,rgba(120,90,240,.1) 64%,transparent 100%)}
:root[data-theme="light"] .hp-c.hot{box-shadow:0 0 0 1px rgba(11,18,51,.08),0 2px 6px rgba(11,18,51,.06),0 50px 100px -44px rgba(11,18,51,.45),0 0 80px -24px rgba(140,110,255,.45)}
:root[data-theme="light"] .hp-stk{filter:drop-shadow(0 14px 16px rgba(11,18,51,.2))}
:root[data-theme="light"] .hp-c.hot .hp-stk{filter:drop-shadow(0 14px 16px rgba(35,53,255,.24))}
:root[data-theme="light"] .hp-c li .ic{color:var(--cobalt)}
:root[data-theme="light"] .hp-c .hp-tag{box-shadow:0 10px 22px -10px rgba(35,53,255,.7),inset 0 1px 0 rgba(255,255,255,.25)}
/* the price figure on its marker: a soft cobalt stroke across the lower part of the digits (same as ceni; the Растеж
   button stays the one yellow in view) */
:root[data-theme="light"] .hp-p b{position:relative;isolation:isolate;color:var(--lt-ink)}
:root[data-theme="light"] .hp-p b::before{content:"";position:absolute;z-index:-1;left:-.07em;right:-.07em;bottom:.02em;height:.3em;border-radius:.09em;
  background:linear-gradient(100deg,rgba(35,53,255,.2),rgba(91,107,255,.16));transform:skewX(-8deg)}
:root[data-theme="light"] .hp-day{color:var(--ink-2)}
/* B25: Пълен's small „от“ and the quiet „по уговорка“ (never yellow, never a marker) */
:root[data-theme="light"] .hp-p .hp-from{color:var(--lt-body)}
:root[data-theme="light"] .hp-p .hp-deal{color:var(--ink-2)}
:root[data-theme="light"] .hp-alt a{color:var(--cobalt-2);text-decoration-color:rgba(35,53,255,.4)}
:root[data-theme="light"] .hp-alt a:hover{text-decoration-color:currentColor}

/* ==== 36-home-light.css ==== */
/* WhiteWays · home P12 pointer light (integration round, 2026-09-30; idea: raw/orch/X5-home-inspiration.md P12).
   A soft radial light follows the pointer across the lit surfaces below the hero (.card = white, .gcard = glass), and the
   card's edge catches it. 36-home-light.js sets --lx/--ly (px) on the card under the pointer. Desktop only (hover + fine
   pointer), never with reduced motion. Subtle on purpose: at most 9% white inside, a thin 1px rim, no colour, no yellow.
   Without the JS nothing shows (the light only appears on :hover and sits at the top centre until the first move). */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  /* zero specificity: a card that already has its own position keeps it */
  :where(.hm-main .scene) :where(.card,.gcard){position:relative}
  .hm-main .scene :is(.card,.gcard)::after,
  .hm-main .scene :is(.card,.gcard)::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
    opacity:0;transition:opacity .5s var(--ease)}
  /* the pool of light */
  .hm-main .scene .gcard::after{background:radial-gradient(300px circle at var(--lx,50%) var(--ly,0%),rgba(255,255,255,.09),transparent 70%)}
  .hm-main .scene .card::after{background:radial-gradient(300px circle at var(--lx,50%) var(--ly,0%),rgba(35,53,255,.06),transparent 70%)}
  /* the rim: the same light, masked to a 1px ring on the card's edge */
  .hm-main .scene :is(.card,.gcard)::before{padding:1px;
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
    mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
  .hm-main .scene .gcard::before{background:radial-gradient(220px circle at var(--lx,50%) var(--ly,0%),rgba(255,255,255,.5),transparent 72%)}
  .hm-main .scene .card::before{background:radial-gradient(220px circle at var(--lx,50%) var(--ly,0%),rgba(35,53,255,.34),transparent 72%)}
  .hm-main .scene :is(.card,.gcard):hover::after,
  .hm-main .scene :is(.card,.gcard):hover::before{opacity:1}
}

/* ---------- light theme (2026-10-19) ----------
   On white cards a white pool does not show: the light is a faint cobalt tint with a cobalt rim, on both card kinds. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  :root[data-theme="light"] .hm-main .scene :is(.card,.gcard)::after{background:radial-gradient(320px circle at var(--lx,50%) var(--ly,0%),rgba(35,53,255,.055),transparent 70%)}
  :root[data-theme="light"] .hm-main .scene :is(.card,.gcard)::before{background:radial-gradient(220px circle at var(--lx,50%) var(--ly,0%),rgba(35,53,255,.42),transparent 72%)}
}

/* ==== 37-home-faq.css ==== */
/* WhiteWays · home #faq (violet, world 05-ring), Sintra round 2026-10-23 (WP-4, override O5). Prefix hf-.
   Five objections before the contact card, copied verbatim from ceni #cn-faq. Shape C of the round: a column of glass cards.
   The cards look like the ceni FAQ (glass card, 18–20px summary, the round + turns 45° and goes white when open), but every rule
   is written here under hf-*, so 60-ceni.css never comes into the home bundle. One answer open at a time (name="hf" +
   37-home-faq.js). No yellow, no own background, no loop. Reduced motion: 04-stage.css shows every .sq still. */

.hf-list{display:grid;gap:12px;align-content:start;max-width:880px;margin-inline:auto}
.hf-list details{border-radius:24px;transition:background-color .3s,box-shadow .3s}
.hf-list details[open]{background:linear-gradient(160deg,rgba(255,255,255,.15),rgba(255,255,255,.05))}
.hf-list summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:76px;padding:18px 20px 18px 28px;
  font-size:clamp(18px,1.4vw,20px);font-weight:600;letter-spacing:-.015em;line-height:1.3;color:#fff;cursor:pointer;list-style:none;border-radius:24px}
.hf-list summary::-webkit-details-marker{display:none}
.hf-list summary .ic{flex:none;width:40px;height:40px;padding:10px;border-radius:50%;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
  color:#fff;transition:rotate .35s var(--ease),background-color .3s,color .3s}
.hf-list summary:hover .ic{background:rgba(255,255,255,.18)}
.hf-list details[open] summary .ic{rotate:45deg;background:#fff;color:var(--cobalt);box-shadow:none}
.hf-list summary:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.hf-list details p{max-width:62ch;padding:0 28px 26px;font-size:17px;line-height:1.6;color:var(--on-2)}
.hf-nw{white-space:nowrap}

/* „Още въпроси?“: a quiet line, not a heading; the assistant button reads as a link (44px+ tap targets without changing the line) */
.hf-more{max-width:880px;margin:clamp(24px,2.6vw,36px) auto 0;font-size:17px;line-height:1.5;color:var(--on-2);text-align:center;text-wrap:balance}
.hf-more :is(.hf-ai,a){display:inline-flex;align-items:center;min-height:44px;margin-block:-10px;padding:0;border:0;background:none;
  font:inherit;font-weight:600;color:#fff;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(255,255,255,.45);
  transition:text-decoration-color .2s}
.hf-more :is(.hf-ai,a):hover{text-decoration-color:#fff}
.hf-more :is(.hf-ai,a):focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:6px}

@media (max-width:760px){
  .hf-list{gap:10px}
  .hf-list summary{min-height:68px;padding:14px 14px 14px 22px;font-size:18px}
  .hf-list details p{padding:0 22px 22px;font-size:16px}
  .hf-more{font-size:16px}
}

/* ---------- light theme (2026-10-23) ----------
   White glass cards with ink text (the glass itself comes from 04-stage.css .gcard); the open card turns solid white,
   the + sits in a pale well and turns cobalt when open; links in cobalt. */
:root[data-theme="light"] .hf-list details[open]{background:rgba(255,255,255,.96)}
:root[data-theme="light"] .hf-list summary{color:var(--lt-ink)}
:root[data-theme="light"] .hf-list summary .ic{background:var(--lt-well);box-shadow:inset 0 0 0 1px var(--lt-hair);color:var(--lt-ink)}
:root[data-theme="light"] .hf-list summary:hover .ic{background:#fff}
:root[data-theme="light"] .hf-list details[open] summary .ic{background:var(--cobalt);color:#fff}
:root[data-theme="light"] .hf-list summary:focus-visible{outline-color:var(--cobalt)}
:root[data-theme="light"] .hf-more{color:var(--lt-body)}
:root[data-theme="light"] .hf-more :is(.hf-ai,a){color:var(--cobalt-2);text-decoration-color:rgba(35,53,255,.4)}
:root[data-theme="light"] .hf-more :is(.hf-ai,a):hover{text-decoration-color:currentColor}
:root[data-theme="light"] .hf-more :is(.hf-ai,a):focus-visible{outline-color:var(--cobalt)}
