:root{--hgg-warm1:#b4472f;--hgg-warm2:#e0805f;--hgg-cold1:#2f5f8f;--hgg-cold2:#7fb2d8;--hgg-ink:#14100e}
.hgg{position:relative;margin:0 auto;padding:clamp(48px,7vw,110px) 0 clamp(56px,8vw,120px);font-family:inherit}
.hgg-head{max-width:1180px;margin:0 auto clamp(26px,3vw,44px);padding:0 clamp(18px,4vw,40px);display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.hgg-title{margin:0;font-size:clamp(28px,3.4vw,52px);line-height:1.02;font-weight:800;letter-spacing:-.02em;color:var(--hgg-ink)}
.hgg-sub{margin:0;font-size:clamp(13px,1.1vw,16px);line-height:1.5;max-width:46ch;color:rgba(20,16,14,.62)}
.hgg-rail{max-width:1180px;margin:0 auto;padding:0 clamp(18px,4vw,40px);display:flex;gap:clamp(12px,1.6vw,22px);overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:14px;scrollbar-width:thin}
.hgg-rail::-webkit-scrollbar{height:6px}
.hgg-rail::-webkit-scrollbar-thumb{background:rgba(20,16,14,.18);border-radius:99px}
.hgg-card{position:relative;flex:0 0 auto;width:clamp(148px,17vw,212px);aspect-ratio:9/16;border-radius:26px;scroll-snap-align:start;overflow:hidden;cursor:pointer;isolation:isolate;background:var(--hgg-warm1);transition:transform .5s cubic-bezier(.7,0,.2,1)}
.hgg-card.is-cold{background:var(--hgg-cold1)}
.hgg-card::before{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 25% 10%,rgba(255,255,255,.38),rgba(255,255,255,0) 60%),linear-gradient(160deg,var(--hgg-warm2),var(--hgg-warm1) 78%)}
.hgg-card.is-cold::before{background:radial-gradient(120% 90% at 25% 10%,rgba(255,255,255,.45),rgba(255,255,255,0) 60%),linear-gradient(160deg,var(--hgg-cold2),var(--hgg-cold1) 82%)}
.hgg-card::after{content:"";position:absolute;inset:14px;border-radius:18px;background:rgba(255,255,255,.14);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.hgg-card video{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);object-fit:cover;border-radius:18px;z-index:2;background:#0b0908;transition:transform .55s cubic-bezier(.7,0,.2,1),opacity .3s ease}
.hgg-card:hover{transform:translateY(-6px)}
.hgg-card:hover video{transform:scale(1.03)}
.hgg-card.is-play video{opacity:1}
.hgg-veil{position:absolute;inset:14px;z-index:3;border-radius:18px;background:linear-gradient(to top,rgba(0,0,0,.35),rgba(0,0,0,0) 55%);pointer-events:none}
.hgg-play{position:absolute;z-index:4;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;transition:opacity .25s ease,transform .35s cubic-bezier(.7,0,.2,1)}
.hgg-play svg{width:16px;height:16px;fill:#14100e;margin-left:2px}
.hgg-card:hover .hgg-play{opacity:0;transform:scale(.7)}
.hgg-empty{position:relative;z-index:2;display:none;padding:0 clamp(18px,4vw,40px);max-width:1180px;margin:0 auto;font-size:15px;color:rgba(20,16,14,.6)}
.hgg-empty.on{display:block}

/* просмотр на сайте */
.hgg-viewer{position:fixed;inset:0;z-index:99999;background:rgba(10,8,7,.94);display:none;align-items:center;justify-content:center;opacity:0;transition:opacity .28s ease}
.hgg-viewer.on{display:flex;opacity:1}
.hgg-stage{position:relative;width:min(92vw,430px);aspect-ratio:9/16;max-height:92vh;border-radius:22px;overflow:hidden;background:#000;box-shadow:0 24px 80px rgba(0,0,0,.6)}
.hgg-stage video{width:100%;height:100%;object-fit:cover;background:#000}
.hgg-bars{position:absolute;left:10px;right:10px;top:10px;display:flex;gap:5px;z-index:4}
.hgg-bar{flex:1;height:3px;border-radius:99px;background:rgba(255,255,255,.28);overflow:hidden}
.hgg-bar i{display:block;height:100%;width:0;background:#fff;border-radius:99px}
.hgg-nav{position:absolute;top:0;bottom:0;width:34%;z-index:3;border:0;background:transparent;cursor:pointer;display:none}
.hgg-nav.prev{left:0}.hgg-nav.next{right:0;width:34%}
.hgg-close{position:absolute;top:16px;right:16px;z-index:5;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center}
.hgg-close:hover{background:rgba(255,255,255,.26)}
.hgg-count{position:absolute;left:0;right:0;bottom:-34px;text-align:center;color:rgba(255,255,255,.6);font-size:13px}
.hgg-hint{position:absolute;left:0;right:0;bottom:14px;text-align:center;color:rgba(255,255,255,.55);font-size:12px}

@media (max-width:900px){
  .hgg-rail{gap:12px}
  .hgg-card{width:min(44vw,180px);border-radius:22px}
  .hgg-card::after,.hgg-card video,.hgg-veil{inset:10px;border-radius:14px}
  .hgg-card video{width:calc(100% - 20px);height:calc(100% - 20px)}
  .hgg-nav{display:block}
}
