/* Страницы частей системы (src/products.py) и новые блоки «Как устроено»: живой пример на тёмной сцене со свечением.
   Никаких карточек-«экранов»: крупные светлые цифры, светящаяся линия, строки на тонких линейках. Скрипт — px.js. */

/* ── сцена примера ── */
.px{position:relative;overflow:hidden;isolation:isolate;background:#0b0f0e;color:#fff;padding:clamp(100px,14vh,170px) var(--pad) clamp(70px,9vh,110px);scroll-margin-top:40px}
.px-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(45% 55% at 82% 18%,color-mix(in srgb,var(--c) 42%,transparent),transparent 70%),radial-gradient(40% 50% at 8% 92%,rgba(44,77,160,.28),transparent 70%)}
.px>*:not(.px-bg){max-width:1400px;margin-left:auto;margin-right:auto}
.px-h{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(20px,4vw,70px);align-items:end;margin-bottom:clamp(40px,6vh,64px)}
.px-h h2{font-weight:300;font-size:clamp(38px,4.6vw,76px);letter-spacing:-.05em;line-height:1}
.px-h p{color:rgba(255,255,255,.66);font-size:clamp(16.5px,1.25vw,19px);line-height:1.6;max-width:600px}
.px-note{margin-top:clamp(40px,6vh,64px);font-size:13.5px;color:rgba(255,255,255,.4)}

.px-chips{display:flex;flex-wrap:wrap;gap:10px}
.px-chips button{font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:11px 20px;border-radius:99px;border:1px solid rgba(255,255,255,.26);background:transparent;color:#fff;font-size:15.5px;line-height:1.25;transition:background .35s var(--ease),color .35s var(--ease),border-color .35s}
.px-chips button span{font-size:12.5px;color:rgba(255,255,255,.55);transition:color .35s}
.px-chips button:hover{border-color:rgba(255,255,255,.6)}
.px-chips button[aria-pressed=true]{background:#fff;color:var(--ink);border-color:#fff}
.px-chips button[aria-pressed=true] span{color:var(--graph)}
.px-chips button:focus-visible{outline:2px solid #e0a321;outline-offset:3px}

/* ── прогноз ── */
.xf-svg{display:block;width:100%;height:clamp(200px,30vw,400px);margin-top:clamp(30px,5vh,50px);overflow:visible}
.xf-svg .g{stroke:rgba(255,255,255,.08);stroke-width:1}
.xf-svg .now{stroke:rgba(255,255,255,.4);stroke-width:1;stroke-dasharray:3 5}
.xf-svg .h{fill:none;stroke:rgba(255,255,255,.72);stroke-width:1.6;stroke-linejoin:round}
.xf-svg .f{fill:none;stroke:#e0a321;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.xf-svg .band{animation:xfband 1s ease 1.1s both}
@keyframes xfband{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.xf-svg .band{animation:none}}
.xf-leg{display:flex;gap:28px;margin-top:16px;font-size:14px;color:rgba(255,255,255,.6)}
.xf-leg span{display:inline-flex;align-items:center;gap:10px}
.xf-leg span::before{content:"";width:26px;height:2px;background:rgba(255,255,255,.72)}
.xf-leg .b::before{height:3px;background:#e0a321;box-shadow:0 0 10px rgba(224,163,33,.8)}
.xf-eq{list-style:none;display:flex;flex-wrap:wrap;align-items:flex-start;gap:clamp(14px,2.4vw,40px);margin-top:clamp(50px,8vh,90px);padding-top:clamp(30px,4vh,44px);border-top:1px solid rgba(255,255,255,.14)}
.xf-eq li{display:flex;flex-direction:column;gap:10px}
.xf-eq b{font-weight:300;font-size:clamp(46px,6.4vw,108px);line-height:.95;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.xf-eq b::after{content:attr(data-u);font-size:.28em;letter-spacing:0;margin-left:.3em;color:rgba(255,255,255,.5)}
.xf-eq span{font-size:14.5px;color:rgba(255,255,255,.6);max-width:16ch}
.xf-eq .op{font-weight:200;font-size:clamp(34px,4.4vw,72px);line-height:1.1;color:rgba(255,255,255,.3)}
.xf-eq li:last-child b{color:#f2b93a;text-shadow:0 0 34px rgba(224,163,33,.55)}
.xf-sub{margin-top:22px;font-size:15px;color:rgba(255,255,255,.6)}

/* ── заказ ── */
.xo-tl{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,30px);position:relative;margin-bottom:clamp(50px,7vh,80px)}
.xo-tl::before{content:"";position:absolute;left:0;right:0;top:6px;height:2px;background:linear-gradient(90deg,#2c4da0,#2f8f8a 45%,var(--xo,#2f8f8a));box-shadow:0 0 16px color-mix(in srgb,var(--xo,#2f8f8a) 70%,transparent);transition:box-shadow .6s}
.xo-tl li{position:relative;padding-top:44px;display:flex;flex-direction:column;gap:8px}
.xo-tl li::before{content:"";position:absolute;left:0;top:0;width:14px;height:14px;border-radius:50%;background:#2f8f8a;box-shadow:0 0 0 4px #0b0f0e,0 0 18px rgba(47,143,138,.9);transition:background .5s,box-shadow .5s}
.xo-tl li:nth-child(n+3)::before{background:var(--xo,#2f8f8a);box-shadow:0 0 0 4px #0b0f0e,0 0 18px var(--xo,#2f8f8a)}
.xo-tl time{font-weight:300;font-size:clamp(26px,2.4vw,38px);line-height:1;letter-spacing:-.03em}
.xo-tl span{font-size:16px;color:rgba(255,255,255,.7)}
.px-ex[data-s=part]{--xo:#e0a321}.px-ex[data-s=no]{--xo:#c2475f}
.xo-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,6vw,110px);align-items:start}
.xo-who{display:flex;flex-direction:column;gap:4px;margin-bottom:22px}
.xo-who b{font-weight:400;font-size:clamp(20px,1.6vw,24px);letter-spacing:-.02em}
.xo-who span{font-size:15px;color:rgba(255,255,255,.55)}
.xo-l ol{list-style:none}
.xo-l li{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:16px 0;border-top:1px solid rgba(255,255,255,.14);transition:opacity .5s,color .5s}
.xo-l li span{font-size:17px}
.xo-l li b{font-weight:300;font-size:clamp(24px,2vw,32px);letter-spacing:-.03em;white-space:nowrap;font-variant-numeric:tabular-nums}
.xo-l li.x{opacity:.32}.xo-l li.x b{text-decoration:line-through;text-decoration-thickness:1px}
.xo-tot{display:flex;justify-content:space-between;align-items:baseline;padding-top:16px;border-top:1px solid rgba(255,255,255,.5);color:rgba(255,255,255,.6)}
.xo-tot b{font-weight:300;font-size:clamp(24px,2vw,32px);color:#fff;letter-spacing:-.03em}
.xo-r .px-chips{margin-bottom:clamp(30px,5vh,48px)}
.xo-h{font-weight:300;font-size:clamp(32px,3.4vw,54px);letter-spacing:-.04em;line-height:1.02;margin-bottom:18px;color:var(--xo,#2f8f8a);filter:brightness(1.35)}
.xo-p{font-size:clamp(17px,1.3vw,19px);line-height:1.6;color:rgba(255,255,255,.75);max-width:520px}
.xo-end{display:inline-flex;align-items:center;gap:12px;margin-top:28px;font-size:15.5px;color:#fff}
.xo-end::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--xo,#2f8f8a);box-shadow:0 0 14px var(--xo,#2f8f8a)}
.xo-h,.xo-p,.xo-end{opacity:0;transform:translateY(10px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.xo-h.in,.xo-p.in,.xo-end.in{opacity:1;transform:none}

/* ── аналитика ── */
.xa-l{list-style:none;margin-top:clamp(36px,5vh,56px)}
.xa-l li{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(0,1fr) minmax(0,1fr);gap:clamp(16px,3vw,50px);align-items:center;padding:clamp(18px,2.6vh,28px) 0;border-top:1px solid rgba(255,255,255,.14)}
.xa-l li:last-child{border-bottom:1px solid rgba(255,255,255,.14)}
.xa-l b{font-weight:300;font-size:clamp(52px,6vw,100px);line-height:.95;letter-spacing:-.05em;font-variant-numeric:tabular-nums;white-space:nowrap}
.xa-l em{font-style:normal}
.xa-l span{font-size:16.5px;color:rgba(255,255,255,.6);line-height:1.5}
.xa-l strong{display:block;font-weight:400;color:#fff;font-size:clamp(20px,1.6vw,24px);letter-spacing:-.02em;margin-bottom:4px}
.xa-l i{display:block;height:3px;border-radius:3px;background:rgba(255,255,255,.1)}
.xa-l u{display:block;height:100%;width:var(--w);border-radius:3px;background:linear-gradient(90deg,#2c4da0,#e0a321);box-shadow:0 0 14px rgba(224,163,33,.6);transition:width 1s var(--ease)}
.xa-top{margin-top:clamp(36px,5vh,56px);display:flex;flex-direction:column;gap:10px}
.xa-top span{font-size:14px;color:rgba(255,255,255,.5)}
.xa-top b{font-weight:300;font-size:clamp(24px,2.4vw,38px);letter-spacing:-.03em;line-height:1.2;max-width:28ch;opacity:0;transform:translateY(8px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.xa-top b.in{opacity:1;transform:none}

/* ── ассистент ── */
.xs{margin-top:clamp(40px,6vh,70px);min-height:clamp(330px,40vh,420px)}
.xs-q{font-weight:300;font-size:clamp(30px,3.6vw,58px);letter-spacing:-.04em;line-height:1.05;color:rgba(255,255,255,.55);max-width:20ch}
.xs-q::before{content:"— ";color:rgba(255,255,255,.3)}
.xs-a{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 24px;margin-top:clamp(28px,4vh,44px);opacity:0;transform:translateY(12px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.xs-a b{font-weight:300;font-size:clamp(64px,8vw,140px);line-height:.9;letter-spacing:-.05em;color:#f2b93a;text-shadow:0 0 40px rgba(224,163,33,.5);font-variant-numeric:tabular-nums}
.xs-a span{font-size:clamp(19px,1.6vw,24px);letter-spacing:-.015em;max-width:26ch;line-height:1.35}
.xs-l{list-style:none;margin-top:28px;display:flex;flex-direction:column;gap:12px}
.xs-l li{position:relative;padding-left:28px;font-size:17px;color:rgba(255,255,255,.72);opacity:0;transform:translateY(8px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.xs-l li:nth-child(2){transition-delay:.15s}
.xs-l li::before{content:"";position:absolute;left:0;top:.75em;width:14px;height:1px;background:#e0a321}
.xs.a1 .xs-a,.xs.a2 .xs-l li{opacity:1;transform:none}
.xs-v{display:flex;align-items:center;gap:12px;margin-top:clamp(30px,5vh,50px);font-size:14px;color:rgba(255,255,255,.5)}
.xs-v i{width:10px;height:10px;border-radius:50%;background:#e0a321;box-shadow:0 0 0 0 rgba(224,163,33,.6);animation:xsv 2.4s ease-out infinite}
@keyframes xsv{to{box-shadow:0 0 0 14px rgba(224,163,33,0)}}

/* ── «В каждом направлении»: строки-ссылки на страницы направлений ── */
.gs-use ul{list-style:none}
.gs-use a{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) 40px;gap:clamp(16px,4vw,70px);align-items:baseline;padding:28px 0;border-top:1px solid var(--line);transition:padding .4s var(--ease)}
.gs-use li:last-child a{border-bottom:1px solid var(--line)}
.gs-use b{display:flex;align-items:center;gap:16px;font-weight:300;font-size:clamp(24px,2.2vw,34px);letter-spacing:-.03em;line-height:1.1}
.gs-use b::before{content:"";flex:none;width:14px;height:14px;border-radius:50%;background:var(--c);box-shadow:0 0 14px color-mix(in srgb,var(--c) 70%,transparent)}
.gs-use p{color:#2b3230;font-size:17px;line-height:1.6;max-width:620px}
.gs-use i{font-style:normal;font-size:22px;justify-self:end;transition:transform .4s var(--ease)}
.gs-use a:hover i{transform:translateX(6px)}
.gs-use a:hover b{color:color-mix(in srgb,var(--c) 70%,var(--ink))}

/* ── плитки частей системы ── */
.gs-parts .ind4-g a{min-height:400px}
.ind4-g3{grid-template-columns:repeat(3,1fr)}
.gs-lead{margin:-30px 0 40px;color:var(--graph);font-size:clamp(17px,1.3vw,20px);max-width:640px}
.gs-parts-l{margin-top:28px;font-size:16.5px}
.gs-parts-l a{border-bottom:1px solid currentColor}

/* ── «Как устроено»: пример под каждым часом ночи ── */
.hn-sub{margin:calc(-1 * clamp(30px,6vh,64px)) 0 clamp(50px,8vh,90px);color:rgba(255,255,255,.55);font-size:16px}
.hn q{display:block;quotes:none;padding-top:14px;border-top:1px solid rgba(224,163,33,.35);color:#f2c35a;font-size:15px;line-height:1.5}

@media (max-width:1100px){
  .ind4-g3{grid-template-columns:1fr 1fr}
  .xa-l li{grid-template-columns:minmax(130px,.6fr) minmax(0,1fr)}
  .xa-l i{grid-column:1/-1}
}
@media (max-width:900px){
  .px-h,.xo-g{grid-template-columns:1fr}
  .gs-use a{grid-template-columns:1fr 30px;gap:10px 16px}
  .gs-use p{grid-column:1;grid-row:2}
  .gs-use i{grid-row:1/3;align-self:center}
}
@media (max-width:700px){
  .px{padding-top:72px;padding-bottom:56px}
  .px-chips button{padding:9px 16px;font-size:14.5px}
  .xf-eq{display:grid;grid-template-columns:1fr 1fr;gap:26px 18px}
  .xf-eq .op{display:none}
  .xf-eq li:last-child{grid-column:1/-1;padding-top:22px;border-top:1px solid rgba(255,255,255,.14)}
  .xf-eq b{font-size:46px}.xf-eq li:last-child b{font-size:76px}
  .xo-tl{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .xo-tl time{font-size:20px}.xo-tl span{font-size:13px}
  .xo-tl li{padding-top:34px;gap:6px}.xo-tl::before{top:5px}.xo-tl li::before{top:0;width:12px;height:12px}
  .xo-l li span{font-size:15.5px}
  .xa-l li{grid-template-columns:1fr;gap:8px}
  .xa-l b{font-size:60px}
  .xs{min-height:0}
  .gs-parts .ind4-g a{min-height:0}
  .gs-lead{margin-top:-14px}
  .hn-sub{margin-top:-18px;margin-bottom:36px}
}
@media (max-width:600px){.ind4-g3{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.xs-v i{animation:none}}
/* соседние светлые разделы: без двойного отступа */
.gs-roles+.gs-use,.gs-use+.gs-faq{padding-top:0}
/* плитки: заголовки на одной высоте, подпись в две строки */
.gs-parts .ind4-g span{min-height:3em}
/* ночь: примеры выровнены по нижней линии */
.hn li{display:flex;flex-direction:column}
.hn q{margin-top:auto}
.hn p{margin-bottom:16px}
/* «Как устроено»: плитки → данные и задачи → платформа без двойных отступов */
.gs-parts+#data{padding-top:0}
#data+#platform{padding-top:clamp(60px,9vh,110px)}
@media (max-width:700px){
  .xf-eq{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px}
  .xf-eq b{font-size:clamp(34px,11vw,46px)}
  .xf-eq span{font-size:13.5px}
}

/* ── телефон: проход 09.11 ── */
@media (max-width:700px){
  /* переключатели примера — одной лентой с прокруткой, без одиночной кнопки на строке */
  .px-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--pad));padding:0 var(--pad) 4px;scroll-padding:0 var(--pad)}
  .px-chips::-webkit-scrollbar{display:none}
  .px-chips button{flex:none;white-space:nowrap}
  .xf-svg{height:220px}
  /* аналитика: четыре доли сеткой 2×2 */
  .xa-l{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}
  .xa-l li{display:flex;flex-direction:column;gap:8px;padding:20px 0;border-bottom:0}
  .xa-l li:nth-last-child(-n+2){border-bottom:1px solid rgba(255,255,255,.14)}
  .xa-l b{font-size:clamp(40px,12vw,52px)}
  .xa-l strong{font-size:18px}
  .xa-l span{font-size:13.5px;line-height:1.4}
  .xa-l i{margin-top:auto}
  .xa-top b{font-size:23px}
  /* светлые разделы плотнее */
  .gs-roles li,.gs-use a{padding:22px 0}
  .gs-roles b,.gs-use b{font-size:24px}
  .gs-roles p,.gs-use p{font-size:16px}
  .gs-faq{gap:18px}
  .gs-faq+.gs-parts{padding-top:24px}
  /* плитки частей системы — строками: текст слева, объект справа */
  .gs-parts .ind4-g a{display:grid;grid-template-columns:1fr 96px;grid-template-rows:auto auto auto;column-gap:14px;min-height:0;padding:20px}
  .gs-parts .ind4-g img{grid-column:2;grid-row:1/4;width:96px;margin:0;align-self:center}
  .gs-parts .ind4-g b{grid-column:1;margin:0;font-size:24px}
  .gs-parts .ind4-g span{grid-column:1;min-height:0;font-size:14px}
  .gs-parts .ind4-g i{grid-column:1}
  .gs-parts h2{margin-bottom:24px}
}

/* ── что учитывает прогноз: тёмные плитки с мини-графиками ── */
.gs-fx ul{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.gs-fx li{position:relative;isolation:isolate;overflow:hidden;background:var(--ink);color:#fff;border-radius:24px;padding:26px 24px 28px;display:flex;flex-direction:column}
.gs-fx li::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(80% 55% at 50% 0%,rgba(224,163,33,.22),transparent 70%)}
.gs-fx svg{width:100%;height:120px;margin:6px 0 26px;overflow:visible}
.gs-fx svg path{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.gs-fx .w{stroke:rgba(255,255,255,.7);stroke-width:1.6}
.gs-fx .z{stroke:rgba(255,255,255,.3);stroke-width:1.4;stroke-dasharray:3 5}
.gs-fx .o{stroke:#e0a321;stroke-width:3;filter:drop-shadow(0 0 6px rgba(224,163,33,.9))}
.gs-fx .d{stroke-dasharray:6 6}
.gs-fx .p{fill:#f2b93a;filter:drop-shadow(0 0 6px rgba(224,163,33,.9))}
.gs-fx b{font-weight:300;font-size:clamp(22px,1.8vw,28px);letter-spacing:-.03em;line-height:1.1;margin-bottom:10px}
.gs-fx p{color:rgba(255,255,255,.66);font-size:15.5px;line-height:1.55}

/* ── диапазон: крупные цифры на светящейся полосе ── */
.px-range{padding-top:clamp(90px,12vh,150px);padding-bottom:clamp(90px,12vh,150px)}
.rg{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(30px,6vw,110px);align-items:center}
.rg-t h2{font-weight:300;font-size:clamp(36px,4.2vw,68px);letter-spacing:-.05em;line-height:1;margin-bottom:22px}
.rg-t p{color:rgba(255,255,255,.66);font-size:clamp(16.5px,1.25vw,19px);line-height:1.6;max-width:480px}
.rg-w{font-size:14px;color:rgba(255,255,255,.5);margin-bottom:36px}
.rg-bar{position:relative;height:3px;border-radius:3px;background:rgba(255,255,255,.1);margin-bottom:26px}
.rg-bar i{position:absolute;top:-9px;bottom:-9px;left:var(--a);right:calc(100% - var(--b));border-radius:20px;background:linear-gradient(90deg,rgba(224,163,33,.15),rgba(224,163,33,.45),rgba(224,163,33,.15));box-shadow:0 0 30px rgba(224,163,33,.35)}
.rg-bar u{position:absolute;top:-14px;bottom:-14px;left:var(--m);width:3px;margin-left:-1.5px;border-radius:3px;background:#f2b93a;box-shadow:0 0 16px rgba(224,163,33,.9)}
.rg ol{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rg li{display:flex;flex-direction:column;gap:8px}
.rg li b{font-weight:300;font-size:clamp(52px,6vw,104px);letter-spacing:-.05em;line-height:.9;font-variant-numeric:tabular-nums}
.rg li:nth-child(2) b{color:#f2b93a;text-shadow:0 0 34px rgba(224,163,33,.5)}
.rg li span{font-size:15px;color:rgba(255,255,255,.6)}
.rg-u{margin-top:18px;font-size:14px;color:rgba(255,255,255,.45)}

/* ── три пункта колонками ── */
.gs-pts ul{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,4vw,70px)}
.gs-pts li{padding-top:24px;border-top:1px solid var(--ink)}
.gs-pts b{display:block;font-weight:300;font-size:clamp(24px,2.1vw,32px);letter-spacing:-.03em;line-height:1.1;margin-bottom:14px}
.gs-pts p{color:#2b3230;font-size:17px;line-height:1.6}
.gs-pts+.gs-ind{padding-top:0}

@media (max-width:1100px){.gs-fx ul{grid-template-columns:1fr 1fr}.rg{grid-template-columns:1fr}}
@media (max-width:700px){
  .gs-fx ul{grid-template-columns:1fr;gap:12px}
  .gs-fx li{padding:20px 20px 22px}
  .gs-fx svg{height:90px;margin:0 0 18px}
  .gs-fx b{font-size:24px}
  .px-range{padding-top:64px;padding-bottom:64px}
  .rg li b{font-size:clamp(40px,13vw,56px)}
  .rg-w{margin-bottom:28px}
  .gs-pts ul{grid-template-columns:1fr;gap:28px}
  .gs-pts li{padding-top:18px}
  .gs-pts b{font-size:24px;margin-bottom:8px}
  .gs-pts p{font-size:16px}
}
/* диапазон: полоса во всю ширину, обычная неделя по центру; единица рядом с цифрой */
.rg-bar i{left:4%;right:4%}
.rg-bar u{left:50%}
.rg ol{display:flex;justify-content:space-between}
.rg li:nth-child(2){align-items:center;text-align:center}
.rg li:nth-child(3){align-items:flex-end;text-align:right}
.rg li b::after{content:attr(data-u);font-size:.26em;letter-spacing:0;margin-left:.3em;color:rgba(255,255,255,.45);text-shadow:none}
/* плитки: заголовки на одной высоте — подпись растягивается, а не заголовок */
.gs-parts .ind4-g b{margin-top:0}
.gs-parts .ind4-g span{flex:1}
@media (max-width:700px){
  .gs-fx svg{height:64px;margin-bottom:14px}
  .gs-fx p{font-size:14.5px}
  .gs-parts .ind4-g span{flex:none}
}


.pgp .gh-bg{-webkit-mask-image:linear-gradient(#000 55%,transparent 98%);mask-image:linear-gradient(#000 55%,transparent 98%)}
/* общий левый край на широких экранах: шапка, сцены и светлые разделы по одной линии */
.gh{padding-left:max(var(--pad),calc((100% - 1400px)/2 + var(--pad)));padding-right:max(var(--pad),calc((100% - 1400px)/2 + var(--pad)))}
.px>*:not(.px-bg){max-width:calc(1400px - 2 * var(--pad))}

/* ── мини-графики: столбцы, кнопка, галочка ── */
.gs-fx .bw{fill:rgba(255,255,255,.55)}
.gs-fx .bo{fill:#e0a321;filter:drop-shadow(0 0 6px rgba(224,163,33,.8))}
.gs-fx .q{fill:#0d1110;stroke:rgba(255,255,255,.7);stroke-width:1.6}
.gs-fx .k{stroke:#0d1110;stroke-width:3;fill:none}
.gs-fx .rw{fill:none;stroke:rgba(255,255,255,.6);stroke-width:1.6;vector-effect:non-scaling-stroke}
.gs-fx .ring{fill:none;stroke:rgba(224,163,33,.5);stroke-width:1.5}
.gs-fx svg[preserveAspectRatio=none]{}
/* ── блок цифр: доли одной полосой, три цифры без полосы; выделенная — золотом ── */
.rg-split .rg ol,.rg-stat .rg ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.rg-split .rg li,.rg-stat .rg li{align-items:flex-start;text-align:left}
.rg-split .rg li b,.rg-stat .rg li b{color:#fff;text-shadow:none}
.rg .rg li.hl b,.px-range li.hl b{color:#f2b93a;text-shadow:0 0 34px rgba(224,163,33,.5)}
.rg-seg{display:flex;gap:4px;height:10px;margin-bottom:30px}
.rg-seg i{border-radius:6px;background:rgba(255,255,255,.22)}
.rg-seg i.hl{background:linear-gradient(90deg,#c98a12,#f2b93a);box-shadow:0 0 18px rgba(224,163,33,.7)}
.rg-seg i:first-child:not(.hl){background:rgba(255,255,255,.5)}
@media (max-width:700px){.gs-fx svg{height:96px;margin-bottom:16px}}

/* ── пример сразу после шапки — светлый раздел (решение владельца 09.11): бумага, чернила, прогноз золотом ── */
.pgp .gh+.px{background:var(--paper);color:var(--ink)}
.pgp .gh+.px .px-bg{background:radial-gradient(40% 50% at 88% 12%,color-mix(in srgb,var(--c) 16%,transparent),transparent 70%)}
.pgp .gh+.px .px-h p,.pgp .gh+.px .px-note,.pgp .gh+.px .xf-sub{color:var(--graph)}
.pgp .gh+.px .px-chips button{border-color:var(--line);color:var(--ink)}
.pgp .gh+.px .px-chips button span{color:var(--graph)}
.pgp .gh+.px .px-chips button:hover{border-color:var(--ink)}
.pgp .gh+.px .px-chips button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.pgp .gh+.px .px-chips button[aria-pressed=true] span{color:rgba(255,255,255,.6)}
/* прогноз */
.pgp .gh+.px .xf-svg .g{stroke:rgba(13,17,16,.09)}
.pgp .gh+.px .xf-svg .now{stroke:rgba(13,17,16,.4)}
.pgp .gh+.px .xf-svg .h{stroke:rgba(13,17,16,.7)}
.pgp .gh+.px .xf-svg .f{stroke:#d1940f}
.pgp .gh+.px .xf-leg{color:var(--graph)}
.pgp .gh+.px .xf-leg span::before{background:rgba(13,17,16,.7)}
.pgp .gh+.px .xf-leg .b::before{background:#d1940f;box-shadow:0 0 8px rgba(224,163,33,.6)}
.pgp .gh+.px .xf-eq{border-top-color:var(--line)}
.pgp .gh+.px .xf-eq b::after,.pgp .gh+.px .xf-eq span{color:var(--graph)}
.pgp .gh+.px .xf-eq .op{color:rgba(13,17,16,.25)}
.pgp .gh+.px .xf-eq li:last-child b{color:#c98a12;text-shadow:0 0 30px rgba(224,163,33,.35)}
/* заказ */
.pgp .gh+.px .xo-tl li::before{box-shadow:0 0 0 4px var(--paper),0 0 14px rgba(47,143,138,.6)}
.pgp .gh+.px .xo-tl li:nth-child(n+3)::before{box-shadow:0 0 0 4px var(--paper),0 0 14px var(--xo,#2f8f8a)}
.pgp .gh+.px .xo-tl span,.pgp .gh+.px .xo-who span,.pgp .gh+.px .xo-tot{color:var(--graph)}
.pgp .gh+.px .xo-l li{border-top-color:var(--line)}
.pgp .gh+.px .xo-tot{border-top-color:var(--ink)}
.pgp .gh+.px .xo-tot b,.pgp .gh+.px .xo-end{color:var(--ink)}
.pgp .gh+.px .xo-h{filter:none}
.pgp .gh+.px .xo-p{color:#2b3230}
/* аналитика */
.pgp .gh+.px .xa-l li{border-color:var(--line)}
.pgp .gh+.px .xa-l span,.pgp .gh+.px .xa-top span{color:var(--graph)}
.pgp .gh+.px .xa-l strong{color:var(--ink)}
.pgp .gh+.px .xa-l i{background:rgba(13,17,16,.08)}
.pgp .gh+.px .xa-l u{box-shadow:0 0 10px rgba(224,163,33,.45)}
/* ассистент */
.pgp .gh+.px .xs-q{color:rgba(13,17,16,.5)}
.pgp .gh+.px .xs-q::before{color:rgba(13,17,16,.25)}
.pgp .gh+.px .xs-a b{color:#c98a12;text-shadow:0 0 30px rgba(224,163,33,.3)}
.pgp .gh+.px .xs-l li{color:#2b3230}
.pgp .gh+.px .xs-v{color:var(--graph)}
@media (max-width:700px){.pgp .gh+.px .xa-l li:nth-last-child(-n+2){border-bottom-color:var(--line)}}
.pgp .gh+.px+.gs-fx{padding-top:clamp(30px,5vh,60px)}
/* телефон: плитки факторов строками — мини-график слева, текст справа */
@media (max-width:700px){
  .gs-fx li{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:16px;padding:18px 18px 18px 14px}
  .gs-fx li svg{grid-row:1/3;width:96px;height:64px;margin:4px 0 0}
  .gs-fx b{font-size:20px;margin-bottom:6px}
  .gs-fx p{font-size:14px;line-height:1.5}
}

/* ── «Как устроено»: после тёмной шапки «Одна ночь» — светлый раздел (09.11) ── */
.hn{background:var(--paper);color:var(--ink)}
.hn-bg{background:radial-gradient(40% 50% at 90% 15%,rgba(224,163,33,.12),transparent 70%)}
.hn>*:not(.hn-bg){max-width:calc(1400px - 2 * var(--pad))}
.hn time{color:var(--ink)}
.hn p,.hn-sub{color:var(--graph)}
.hn li::before{box-shadow:0 0 0 4px var(--paper),0 0 14px rgba(224,163,33,.6)}
.hn ol::before{box-shadow:0 0 12px rgba(224,163,33,.35)}
.hn q{color:#a8730a;border-top-color:rgba(224,163,33,.45)}
.hn+.gs-parts{padding-top:0}
/* ночь: воздух между временем и линией; строки примеров — по одной верхней линии */
@media (min-width:1101px){
  .hn ol::before{top:84px}
  .hn li{padding-top:118px}
  .hn li::before{top:78px}
  .hn ol{grid-template-rows:auto auto auto}
  .hn li{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0}
  .hn q{margin-top:0;align-self:start}
}
@media (max-width:1100px) and (min-width:701px){.hn li{padding-top:104px}.hn li::before{top:72px}}
@media (max-width:700px){.hn time{margin-bottom:10px}}
/* шапка: заголовок не больше двух-трёх строк — шире строка, чуть меньше кегль; лид короче по ширине */
.gh h1{max-width:18ch;font-size:clamp(40px,5vw,84px)}
.gh-lead{max-width:540px}
