/* Первый экран «Terminal» — из макета (mockups/src/home/hero-terminal.html). */
/* ===== Вариант 4 «Terminal»: ночная морская карта, танкер у причала нефтетерминала, бон берёт судно в кольцо ===== */
.hero-terminal{background:#03170d;color:#fff}
.hero-terminal .ht-cv{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0}
.hero-terminal .ht-fallback{position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 70% at 28% 48%,#0c4a31 0%,#062a1b 55%,#03170d 100%)}
.hero-terminal .ht-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.hero-terminal .ht-lines line{stroke:rgba(214,240,222,.6);stroke-width:1;vector-effect:non-scaling-stroke}
.hero-terminal .ht-lines circle{fill:#04200f;stroke:#d6f0de;stroke-width:1.2}
.hero-terminal .ht-notes,.hero-terminal .ht-snd{position:absolute;inset:0;z-index:1;pointer-events:none}
.hero-terminal .ht-note{position:absolute;right:0;top:0;font:600 10.5px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#eaf7ef;white-space:nowrap;opacity:0;
  text-shadow:0 0 4px #03170d,0 0 8px #03170d,0 0 2px #03170d;will-change:transform,opacity}
.hero-terminal .ht-note small{display:block;font-weight:400;letter-spacing:.08em;color:rgba(140,214,168,.85);margin-top:5px;font-size:9.5px}
.hero-terminal .ht-snd span{position:absolute;right:0;top:0;font:italic 500 10px/1 var(--mono);color:rgba(150,214,175,.34);letter-spacing:.02em}
.hero-terminal .ht-snd span sub{font-size:7.5px;vertical-align:-1px}
.hero-terminal .ht-fade{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(-90deg,rgba(3,23,13,.97) 0%,rgba(3,23,13,.9) 25%,rgba(3,23,13,.55) 41%,rgba(3,23,13,0) 57%),
             linear-gradient(-180deg,rgba(3,23,13,.8) 0%,rgba(3,23,13,0) 21%)}
.hero-terminal .ht-in{position:relative;z-index:3;padding-top:calc(var(--hdr) + clamp(48px,9vh,104px));padding-bottom:170px}
.hero-terminal .eyebrow{color:rgba(226,244,232,.8)}
.hero-terminal .ht-t{font-size:clamp(46px,5.1vw,88px);line-height:.98;letter-spacing:-.045em;font-weight:800;max-width:10em;margin-top:26px;color:#fff}
.hero-terminal .ht-t em{font-style:normal;color:var(--yellow);white-space:nowrap;padding-bottom:.04em;
  background:linear-gradient(-90deg,#25a24b,#5fd47f) 0 100%/0% .075em no-repeat;animation:htLine 1.3s 1.1s cubic-bezier(.6,0,.2,1) forwards}
@keyframes htLine{to{background-size:100% .075em}}
.hero-terminal .ht-lead{font-size:clamp(17px,1.32vw,20px);line-height:1.6;color:rgba(232,245,237,.74);max-width:540px;margin:28px 0 38px}
.hero-terminal .ht-cta{display:flex;gap:12px;flex-wrap:wrap}
.hero-terminal .btn-primary{box-shadow:0 14px 36px -12px rgba(37,162,75,.75)}
.hero-terminal .btn-ghost{color:#fff;background:rgba(255,255,255,.04);box-shadow:0 0 0 1.5px rgba(255,255,255,.26) inset;backdrop-filter:blur(6px)}
.hero-terminal .btn-ghost:hover{box-shadow:0 0 0 1.5px #fff inset}
/* сценарий — тёмное стекло справа снизу */
.hero-terminal .ht-panel{position:absolute;z-index:3;bottom:calc(var(--facts-h,110px) + 26px);left:clamp(24px,4vw,80px);width:276px;padding:16px 16px 14px;border-radius:14px;
  background:linear-gradient(-160deg,rgba(10,48,30,.72),rgba(3,23,13,.78));backdrop-filter:blur(14px) saturate(1.4);
  box-shadow:0 0 0 1px rgba(160,230,190,.13),inset 0 1px 0 rgba(255,255,255,.06),0 30px 60px -28px rgba(0,0,0,.7);font-family:var(--mono);color:#eaf7ef}
.hero-terminal .ht-fig{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:rgba(190,230,205,.6)}
.hero-terminal .ht-fig b{color:#fff;font-weight:600}
.hero-terminal .ht-north{display:flex;align-items:center;gap:4px;color:#fff}
.hero-terminal .ht-north svg{width:12px;height:16px}
.hero-terminal .ht-sub{margin-top:6px;font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:rgba(243,180,10,.85);padding-bottom:12px;border-bottom:1px solid rgba(160,230,190,.12)}
.hero-terminal .ht-sub::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--yellow);margin-left:7px;vertical-align:1px;box-shadow:0 0 8px var(--yellow);animation:htBlink 1.6s infinite}
@keyframes htBlink{50%{opacity:.3}}
.hero-terminal .ht-clock{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 4px}
.hero-terminal .ht-clock small{display:block;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:rgba(190,230,205,.55)}
.hero-terminal .ht-clock b{display:block;margin-top:5px;font-size:19px;font-weight:600;letter-spacing:.02em;color:#fff;font-variant-numeric:tabular-nums}
.hero-terminal .ht-clock b.ht-enc{color:var(--yellow)}
.hero-terminal .ht-steps{margin-top:10px;display:grid;gap:9px}
.hero-terminal .ht-steps li{display:grid;grid-template-columns:22px 1fr;align-items:center;column-gap:8px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:rgba(190,230,205,.42);transition:color .4s}
.hero-terminal .ht-steps li b{font-weight:600;color:inherit}
.hero-terminal .ht-steps li i{grid-column:2;display:block;height:2px;background:rgba(160,230,190,.14);margin-top:6px;overflow:hidden;border-radius:2px}
.hero-terminal .ht-steps li u{display:block;height:100%;width:100%;background:linear-gradient(-90deg,#1d8a3c,#4fd07a);transform-origin:100% 50%;transform:scaleX(0)}
.hero-terminal .ht-steps li.on{color:#fff}
.hero-terminal .ht-steps li.on b{color:#4fd07a}
.hero-terminal .ht-key{display:flex;gap:14px;margin-top:13px;padding-top:11px;border-top:1px solid rgba(160,230,190,.12);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:rgba(190,230,205,.6)}
.hero-terminal .ht-key span{display:flex;align-items:center;gap:6px}
.hero-terminal .ht-key i{width:14px;height:4px;border-radius:2px;background:var(--yellow);box-shadow:0 0 6px rgba(243,180,10,.7)}
.hero-terminal .ht-key i.o{height:8px;width:10px;border-radius:50%;background:#050504;box-shadow:0 0 0 1px rgba(200,180,120,.45)}
.hero-terminal .ht-key i.z{height:8px;width:10px;border-radius:2px;background:repeating-linear-gradient(-135deg,rgba(79,208,122,.7) 0 1.5px,rgba(79,208,122,.15) 1.5px 4px);box-shadow:none}
/* факты внизу — тёмное стекло */
.hero-terminal .ht-facts{position:absolute;right:0;left:0;bottom:0;z-index:3;background:linear-gradient(-180deg,rgba(3,23,13,.55),rgba(3,23,13,.82));backdrop-filter:blur(14px) saturate(1.3);border-top:1px solid rgba(160,230,190,.12)}
.hero-terminal .ht-facts .wrap{display:grid;grid-template-columns:repeat(4,1fr)}
.hero-terminal .ht-facts .wrap>div{padding:22px 24px 24px;border-right:1px solid rgba(160,230,190,.1)}
.hero-terminal .ht-facts .wrap>div:first-child{border-right:0;padding-right:0}
.hero-terminal .ht-facts b{display:block;font-size:clamp(28px,2.4vw,40px);line-height:1;letter-spacing:-.03em;font-weight:800;color:#fff}
.hero-terminal .ht-facts b i{font-style:normal;color:var(--yellow)}
.hero-terminal .ht-facts span{display:block;font-size:14px;color:rgba(226,244,232,.62);margin-top:8px}
/* появление текста */
.hero-terminal .ht-rise{opacity:0;transform:translateY(26px);animation:htRise 1s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes htRise{to{opacity:1;transform:none}}
@media (max-width:1100px){.hero-terminal .ht-panel{display:none}}
@media (max-width:760px){
  .hero-terminal{min-height:max(100svh,1140px)}
  .hero-terminal .ht-in{padding-top:calc(var(--hdr) + 28px)}
  .hero-terminal .ht-t{font-size:44px}
  .hero-terminal .ht-lead{font-size:16px;margin:20px 0 26px}
  .hero-terminal .ht-fade{background:linear-gradient(-180deg,rgba(3,23,13,.97) 0%,rgba(3,23,13,.9) 46%,rgba(3,23,13,0) 60%)}
  .hero-terminal .ht-facts .wrap{grid-template-columns:1fr 1fr}
  .hero-terminal .ht-facts .wrap>div{padding:14px 12px 16px;border-right:0;border-top:1px solid rgba(160,230,190,.1)}
  .hero-terminal .ht-facts .wrap>div:nth-child(-n+2){border-top:0}
  .hero-terminal .ht-facts .wrap>div:nth-child(odd){padding-right:0}
  .hero-terminal .ht-facts span{font-size:12.5px}
  .hero-terminal .ht-note small,.hero-terminal .ht-snd{display:none}
}
