/* Верхняя плашка про новый дизайн. Подключается после основных стилей. */
.hv-notice {
  position: relative;
  z-index: 45;
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 22, 29, .98), rgba(12, 14, 20, .98));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: max-height .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
  opacity: 0;
}
.hv-notice.is-in { max-height: 180px; opacity: 1; }
.hv-notice.is-out { max-height: 0; opacity: 0; }
.hv-notice-in {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(var(--hv-max, 1180px), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0;
}
.hv-notice-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 4px rgba(61, 214, 140, .18);
}
.hv-notice-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}
.hv-notice-text strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  white-space: nowrap;
}
.hv-notice-text span {
  font-size: 14px;
  line-height: 1.35;
  color: #c8c8d0;
}
body.hv .hv-notice-text a,
body.hv-cab .hv-notice-text a,
.hv-notice-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.hv a.hv-notice-link,
body.hv-cab a.hv-notice-link,
a.hv-notice-link,
a.hv-notice-link:visited {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  -webkit-text-fill-color: #111;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
body.hv a.hv-notice-link:hover,
body.hv-cab a.hv-notice-link:hover,
a.hv-notice-link:hover {
  background: #ececee;
  color: #111;
  -webkit-text-fill-color: #111;
}
body.hv button.hv-notice-x,
body.hv-cab button.hv-notice-x,
button.hv-notice-x {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #c8c8d0;
  -webkit-text-fill-color: currentColor;
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
}
body.hv button.hv-notice-x:hover,
body.hv-cab button.hv-notice-x:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
}
.hv-notice-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .1);
}
.hv-notice-timer i {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform-origin: left center;
}
.hv-notice.is-in .hv-notice-timer i {
  animation: hv-notice-count 10s linear forwards;
}
@keyframes hv-notice-count {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 900px) {
  .hv-notice-in {
    width: calc(100% - 24px);
    padding: 12px 0;
    gap: 10px;
    align-items: flex-start;
  }
  .hv-notice-text { display: grid; gap: 3px; }
  .hv-notice-text strong { font-size: 13px; }
  .hv-notice-text span { font-size: 13px; }
  .hv-notice-link { display: none; }
  body.hv button.hv-notice-x,
  body.hv-cab button.hv-notice-x,
  button.hv-notice-x { width: 28px; height: 28px; }
}
