/* Витрина поверх карты. Тот же язык, что у карточек: скругления, тень,
   токены темы — светлая и тёмная приходят из styles.css. */

.brand__name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }

.hero {
  position: absolute;
  z-index: 6;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  top: calc(max(12px, env(safe-area-inset-top)) + 56px);
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: var(--bg-elevated);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22), inset 0 0 0 1px var(--separator);
  animation: hero-in .55s var(--spring) both;
}
.hero[hidden] { display: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

.hero__close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--fill-4); color: var(--label-2);
}
.hero__title {
  margin: 0 30px 0 0;
  font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
}
.hero__lede { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--label-2); }
.hero__stats {
  margin: 10px 0 0;
  font-size: 13px; font-weight: 600; color: var(--label);
  font-variant-numeric: tabular-nums;
}
.hero__stats span { font-weight: 400; color: var(--label-3); }

.hero__legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin: 8px 0 0; padding: 0; list-style: none;
  font-size: 12px; color: var(--label-2);
}
.hero__legend li { display: inline-flex; align-items: center; gap: 5px; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray); }
.hero__dot.is-yes { background: var(--green); }
.hero__dot.is-maybe { background: var(--orange); }
.hero__dot.is-no { background: var(--red); }
.hero__dot.is-unk { background: var(--gray); opacity: .6; }

.hero__acts { display: flex; gap: 8px; margin-top: 12px; }
.hero__go {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  border-radius: 12px;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .15s var(--spring);
}
.hero__go:active { transform: scale(.98); }
.hero__near {
  flex: 0 0 auto;
  min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px;
  background: var(--fill-4); color: var(--label);
  font: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.hero__bot { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--label-3); }
.hero__bot a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* Свёрнутая витрина — одна плашка, чтобы ссылка в Telegram не пропадала. */
.hero-chip {
  position: absolute;
  z-index: 6;
  right: max(12px, env(safe-area-inset-right));
  top: calc(max(12px, env(safe-area-inset-top)) + 56px);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(10, 132, 255, .35);
}
.hero-chip[hidden] { display: none; }

/* На телефоне витрина не должна съедать карту: компактнее, лишнее прячем. */
@media (max-width: 899px) {
  .hero { padding: 14px 16px 12px; }
  .hero__lede { display: none; }
  .hero__legend { display: none; }
  .hero__bot { display: none; }
  .hero__title { font-size: 17px; }
}

/* На большом экране слева лист, витрина — справа сверху, шириной с карточку. */
@media (min-width: 900px) {
  .hero { left: auto; width: 384px; top: 76px; }
}
