/* ============================================================
   RIDS EMPIRE — hero v2 «диспетчерская поставок»
   Канвас-карта маршрутов + консоль поиска по артикулам.
   Подключается ПОСЛЕ rids-theme.css.
   ============================================================ */

.hero.hero-v2{
  display:block!important;
  padding:88px 24px 64px!important;
  min-height:auto!important;
}
#heroRoutes{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:0;pointer-events:none;opacity:.9;
}
.hero-v2 .hero-inner{
  position:relative;z-index:2;max-width:880px;margin:0 auto;text-align:center;
}
.hero-v2 .hero-eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-family:'Space Grotesk',Inter,sans-serif;font-size:12px;letter-spacing:2.2px;
  text-transform:uppercase;color:#C9BFA6;margin-bottom:22px;
  padding:7px 16px;border:1px solid rgba(201,165,78,.35);border-radius:100px;
  background:rgba(16,16,20,.45);backdrop-filter:blur(4px);
}
.hero-v2 .hero-eyebrow::before{
  content:"";width:7px;height:7px;border-radius:50%;
  background:var(--c-gold-lt);box-shadow:0 0 10px 2px rgba(231,192,99,.65);
  animation:hcPulseDot 2.2s ease-in-out infinite;
}
@keyframes hcPulseDot{0%,100%{opacity:1}50%{opacity:.35}}
.hero-v2 h1{
  font-size:clamp(34px,5.2vw,60px)!important;line-height:1.06;
  margin:0 auto 18px!important;max-width:840px!important;
}
.hero-v2 .hero-lead{
  max-width:640px!important;margin:0 auto 34px!important;color:#D8D2C2!important;
  font-size:clamp(15px,1.6vw,18px)!important;line-height:1.6;
}

/* ---------- консоль поиска (сигнатурный элемент) ---------- */
.hero-console{max-width:680px;margin:0 auto 14px;text-align:left;position:relative}
.hc-bar{
  display:flex;align-items:center;gap:0;
  background:linear-gradient(180deg,rgba(24,24,31,.92),rgba(16,16,21,.92));
  border:1px solid rgba(201,165,78,.45);border-radius:14px;
  box-shadow:0 0 0 4px rgba(201,165,78,.07),0 24px 60px -24px rgba(0,0,0,.8),
             inset 0 1px 0 rgba(255,255,255,.04);
  transition:border-color .2s, box-shadow .2s;
}
.hero-console.is-focus .hc-bar{
  border-color:var(--c-gold-lt);
  box-shadow:0 0 0 4px rgba(231,192,99,.16),0 24px 60px -24px rgba(0,0,0,.85);
}
.hc-lens{flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:52px;height:56px;color:var(--c-gold)}
#hcInput{
  flex:1;min-width:0;height:56px;background:transparent;border:0;outline:0;
  color:#F3EEDF;font:500 16px/1 'Space Grotesk',Inter,sans-serif;letter-spacing:.2px;
}
#hcInput::placeholder{color:#8d8875;font-weight:400}
#hcGo{
  flex:0 0 auto;margin:8px;height:40px;padding:0 20px;border:0;border-radius:9px;cursor:pointer;
  font:600 14px/1 'Space Grotesk',Inter,sans-serif;letter-spacing:.4px;
  color:#17120a;background:linear-gradient(120deg,#E7C063,#C9A54E);
  box-shadow:0 6px 18px -6px rgba(201,165,78,.55);
  transition:transform .15s, box-shadow .15s;
}
#hcGo:hover{transform:translateY(-1px);box-shadow:0 10px 22px -6px rgba(201,165,78,.7)}
#hcGo:active{transform:translateY(0)}

.hc-drop{
  position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:30;
  background:rgba(19,19,25,.98);border:1px solid rgba(201,165,78,.35);border-radius:14px;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.85);overflow:hidden;
  backdrop-filter:blur(8px);
}
.hc-item{
  display:flex;align-items:center;gap:12px;padding:11px 16px;cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.hc-item:last-child{border-bottom:0}
.hc-item:hover,.hc-item.is-active{background:rgba(201,165,78,.10)}
.hc-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--c-gold)}
.hc-name{flex:1;min-width:0;color:#EFEAD9;font-size:14px;line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-name small{display:block;color:#9a947e;font-size:12px;margin-top:2px}
.hc-price{flex:0 0 auto;color:var(--c-gold-lt);font:600 13px 'Space Grotesk',Inter,sans-serif;white-space:nowrap}
.hc-more,.hc-none{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:11px 16px;color:#C9BFA6;font-size:13px;background:rgba(126,39,51,.14);
}
.hc-none b{color:#EFEAD9;font-weight:600}
.hc-none button,.hc-spec button{
  border:1px solid rgba(231,192,99,.5);background:transparent;color:var(--c-gold-lt);
  border-radius:8px;padding:7px 14px;font:600 12.5px 'Space Grotesk',Inter,sans-serif;
  cursor:pointer;transition:background .15s;white-space:nowrap;
}
.hc-none button:hover,.hc-spec button:hover{background:rgba(231,192,99,.12)}

/* распознанная спецификация из буфера */
.hc-spec{padding:14px 16px;display:block}
.hc-spec-head{display:flex;align-items:center;gap:8px;color:#EFEAD9;font:600 14px 'Space Grotesk',Inter,sans-serif;margin-bottom:8px}
.hc-spec-head .n{color:var(--c-gold-lt)}
.hc-spec ul{list-style:none;margin:0 0 12px;padding:0;max-height:132px;overflow:auto}
.hc-spec li{color:#b9b3a0;font-size:12.5px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-spec li::before{content:"—";color:var(--c-gold);margin-right:8px}

.hc-hints{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;
  font-size:12.5px;color:#8d8875}
.hc-chip{
  border:1px solid rgba(201,165,78,.35);background:rgba(201,165,78,.07);color:#D9CFA9;
  border-radius:100px;padding:5px 13px;font:500 12.5px 'Space Grotesk',Inter,sans-serif;
  cursor:pointer;transition:background .15s,border-color .15s;
}
.hc-chip:hover{background:rgba(201,165,78,.16);border-color:rgba(231,192,99,.6)}
.hc-kbd{margin-left:auto;display:inline-flex;gap:4px;align-items:center;color:#77725f}
.hc-kbd kbd{
  border:1px solid rgba(255,255,255,.14);border-bottom-width:2px;border-radius:5px;
  padding:2px 7px;font:600 11px 'Space Grotesk',monospace;color:#C9BFA6;background:rgba(255,255,255,.04);
}

/* ---------- статистика + кнопки + тикер ---------- */
.hero-v2 .hero-stats-row{max-width:680px;margin:26px auto 26px;justify-content:center}
.hero-v2 .hero-btns{justify-content:center;margin-bottom:30px}

.hero-ticker{
  max-width:760px;margin:0 auto;overflow:hidden;position:relative;
  border-top:1px solid rgba(201,165,78,.18);padding-top:14px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.hero-ticker-track{
  display:inline-flex;gap:34px;white-space:nowrap;will-change:transform;
  animation:hcTicker 38s linear infinite;
  font:500 12.5px/1 'Space Grotesk',Inter,sans-serif;letter-spacing:.6px;color:#9a947e;
}
.hero-ticker:hover .hero-ticker-track{animation-play-state:paused}
.hero-ticker-track b{color:#D9CFA9;font-weight:600}
.hero-ticker-track .tk-gold{color:var(--c-gold-lt)}
.hero-ticker-track .tk-sep{color:rgba(201,165,78,.5)}
@keyframes hcTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- кнопка наверх ---------- */
#ridsTop{
  position:fixed;right:22px;bottom:88px;z-index:80;width:46px;height:46px;border-radius:12px;
  border:1px solid rgba(201,165,78,.5);background:rgba(19,19,25,.9);color:var(--c-gold-lt);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  opacity:0;transform:translateY(12px);pointer-events:none;
  transition:opacity .25s,transform .25s;backdrop-filter:blur(6px);
  box-shadow:0 12px 30px -12px rgba(0,0,0,.6);
}
#ridsTop.show{opacity:1;transform:none;pointer-events:auto}
#ridsTop:hover{background:rgba(201,165,78,.15)}

/* ---------- адаптив ---------- */
@media (max-width:720px){
  .hero.hero-v2{padding:64px 16px 48px!important}
  #hcInput{font-size:15px;height:52px}
  .hc-lens{width:44px;height:52px}
  #hcGo{padding:0 14px;height:38px}
  .hc-kbd{display:none}
  .hero-v2 .hero-stats-row{flex-wrap:wrap;gap:10px}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .hero-ticker-track{animation:none}
  .hero-v2 .hero-eyebrow::before{animation:none}
}
