/* Перший екран систем: справжні екрани демо замість відео (поки відео немає).
   Два вікна (переднє — головний екран, заднє — ще один розділ) і дві картки з даними з цих екранів. */
#site .hv{--hv-c:#E4AA55;position:relative;margin:0;padding:0}
#site[data-cur="/sklad"] .hv{--hv-c:#86A3FF}
#site[data-cur="/vyrobnytstvo"] .hv{--hv-c:#7FD3A6}
#site[data-cur="/prodazhi"] .hv{--hv-c:#B9A9FF}
#site[data-cur="/servis"] .hv{--hv-c:#7CC3CF}
#site .hv-st{position:relative;aspect-ratio:16/12.4;max-width:100%}

/* вікна */
#site .hv-w{position:absolute;border-radius:14px;overflow:hidden;background:#141517;border:1px solid #2A2D31;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 40px 80px -36px rgba(0,0,0,.9),0 16px 32px -18px rgba(0,0,0,.6)}
#site .hv-w img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:0 0}
#site .hv-top{display:flex;align-items:center;gap:10px;height:34px;padding:0 12px;border-bottom:1px solid #24272B;
  font:500 12.5px/1 Geologica,sans-serif;color:#D9DBDE;white-space:nowrap}
#site .hv-top .wdots{display:inline-flex;gap:5px}
#site .hv-top .wdots i{width:8px;height:8px;border-radius:50%;background:#3A3F45}
#site .hv-ttl{overflow:hidden;text-overflow:ellipsis}
#site .hv-lv{margin-left:auto;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.06);
  font:500 11px/1 "IBM Plex Mono",monospace;letter-spacing:.04em;color:#A0A5AB}
#site .hv-f{left:0;bottom:6%;width:88%;z-index:2}
#site .hv-b{right:0;top:0;width:62%;z-index:1;opacity:.55;filter:saturate(.75)}
#site .hv-b .hv-top{height:26px}

/* картки з даними */
#site .hv-c{position:absolute;z-index:3;display:grid;gap:2px;min-width:0;max-width:46%;padding:12px 16px 13px;border-radius:14px;
  background:#fff;border:1px solid rgba(20,23,26,.06);
  box-shadow:0 2px 4px rgba(10,12,14,.12),0 24px 44px -20px rgba(0,0,0,.75)}
#site .hv-k{display:flex;align-items:center;gap:7px;margin-bottom:4px;font:500 11.5px/1.2 "IBM Plex Mono",monospace;
  letter-spacing:.04em;text-transform:uppercase;color:#5A6368;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#site .hv-k i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--hv-c);box-shadow:0 0 0 3px color-mix(in srgb,var(--hv-c) 25%,transparent)}
#site .hv-t{font:500 14.5px/1.3 Geologica,sans-serif;color:#14171A}
#site .hv-v{font:500 22px/1.15 Unbounded,Geologica,sans-serif;letter-spacing:-.02em;color:#14171A;font-variant-numeric:tabular-nums}
#site .hv-s{font:400 13px/1.35 Geologica,sans-serif;color:#5A6368}
#site .hv-c1{left:-4%;bottom:0}
#site .hv-c2{right:-2%;top:30%}

#site .hv figcaption{margin:14px 0 0;font:500 11.5px/1.3 "IBM Plex Mono",monospace;letter-spacing:.04em;color:#6E737A;text-align:right}

/* поява: заднє вікно, переднє, картки по черзі; далі картки ледь помітно «дихають» */
@media (prefers-reduced-motion:no-preference){
  #site .hv .hv-b{animation:hv-in-b .9s cubic-bezier(.22,.61,.36,1) both .1s}
  #site .hv .hv-f{animation:hv-in-f .9s cubic-bezier(.22,.61,.36,1) both .25s}
  #site .hv .hv-c1{animation:hv-in-c .7s cubic-bezier(.22,.61,.36,1) both .75s,hv-float 7s ease-in-out infinite 1.6s}
  #site .hv .hv-c2{animation:hv-in-c .7s cubic-bezier(.22,.61,.36,1) both .95s,hv-float 7s ease-in-out infinite 2.4s}
  #site .pv-off .hv .hv-c{animation-play-state:paused}
  #site .hv-st{transition:transform .6s cubic-bezier(.22,.61,.36,1)}
  #site .hv-c,#site .hv-w{will-change:transform}
}
@keyframes hv-in-b{from{opacity:0;transform:translate(18px,-10px)}to{opacity:.55;transform:none}}
@keyframes hv-in-f{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes hv-in-c{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@keyframes hv-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

/* ширина між телефоном і комп'ютером */
@media (max-width:1100px){
  #site .hv-c1{left:0}
  #site .hv-c2{right:0}
}
/* телефон: картки менші, над вікном не нависають за край */
@media (max-width:760px){
  #site .hv-st{aspect-ratio:16/13.2}
  #site .hv-f{width:100%;bottom:16%}
  #site .hv-b{width:64%;opacity:.45}
  #site .hv-c{padding:9px 12px 10px;border-radius:12px;max-width:48%}
  #site .hv-k{font-size:10.5px;margin-bottom:2px}
  #site .hv-t{font-size:13px}
  #site .hv-v{font-size:17px}
  #site .hv-s{display:none}
  #site .hv-c1{left:4px;bottom:0}
  #site .hv-c2{right:4px;top:auto;bottom:0}
  #site .hv figcaption{text-align:left;margin-top:10px}
}
/* телефон (остаточно): вікно на всю ширину, заднє сховане, картки рядком під ним — трохи заходять на край вікна */
@media (max-width:760px){
  #site .hv-st{aspect-ratio:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #site .hv-f{position:relative;grid-column:1/-1;width:100%;bottom:auto;left:auto}
  #site .hv-b{display:none}
  #site .hv-c{position:relative;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;max-width:none;margin-top:-34px;margin-inline:6px}
  #site .hv-c1{margin-right:0}
  #site .hv-c2{margin-left:0}
  #site .hv-k{white-space:normal;line-height:1.25}
  #site .hv-s{display:block;font-size:12px}
}
@media (max-width:760px){
  #site .hv-s{display:none}
  #site .hv-v{font-size:16px;white-space:nowrap}
  #site .hv-t{font-size:13px;line-height:1.25}
  #site .hv-c{padding:9px 11px 10px}
}

/* точка в мітці картки: рівне коло по центру рядка, кільце без color-mix (старі iPhone) */
#site .hv-k{line-height:18px;padding-block:1px}
#site .hv-k i{display:block;width:8px;height:8px;min-width:8px;border-radius:50%;margin:0 1px 0 4px;box-shadow:0 0 0 3px var(--hv-r,rgba(228,170,85,.25));transform:none}
#site[data-cur="/sklad"] .hv{--hv-r:rgba(134,163,255,.28)}
#site[data-cur="/vyrobnytstvo"] .hv{--hv-r:rgba(127,211,166,.28)}
#site[data-cur="/prodazhi"] .hv{--hv-r:rgba(185,169,255,.28)}
#site[data-cur="/servis"] .hv{--hv-r:rgba(124,195,207,.3)}
