/* Баннер «Год по контракту — войска беспилотных систем».
   Скомпоновано для главной страницы forsazhdv.ru (тема 1000px):
   все правила заскоуплены под #bps-banner, лишние глобальные стили
   исходного демо не подключены. Ширина — по ширине контента сайта. */
.bps-block {
  margin-top: 2px;   /* отступ от шапки */
  margin-bottom: 8px;
  background: #c8dbea;
}

#bps-banner {
  position: relative;
  aspect-ratio: 1945 / 808;
  overflow: hidden;
  isolation: isolate;
  background: #c8dbea;
  font-family: Arial, sans-serif;
}

#bps-banner .bg {
  display: block;
  width: 100%;
  height: 100%;
}

#bps-banner .layer,
#bps-banner .cta-position {
  position: absolute;
  display: block;
}

#bps-banner .layer {
  height: auto;
  pointer-events: none;
}

#bps-banner .topline { left: 4.3%;  top: 8%;    width: 30%; }
#bps-banner .army    { left: 3.8%;  top: 15%;   width: 34.5%; }
#bps-banner .unmanned{ left: 3%;    top: 32%;   width: 39%; }
#bps-banner .systems { left: 3%;    top: 45%;   width: 36%; }
#bps-banner .icon1   { left: 42.5%; top: 17.3%; width: 22%; }
#bps-banner .icon2   { left: 42.5%; top: 30.4%; width: 22%; }
#bps-banner .icon3   { left: 42.5%; top: 43.5%; width: 22%; }

#bps-banner .cta-position {
  left: 3.6%;
  top: 64%;
  width: 29%;
  height: 17%;
  z-index: 5;
  opacity: 0;
  transform: translateY(12px);
}

#bps-banner .cta {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
  padding: 2% 5%;
  border: 2px solid #ff9292;
  border-radius: 10% / 35%;
  background: linear-gradient(160deg, #ff3b40 0%, #e5000d 45%, #b8000a 100%);
  box-shadow: 0 0 20px #f1243a, inset 0 2px 5px #ffc4c4;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  animation: bpsPulse 2.8s ease-in-out infinite;
  transition: filter .2s ease, box-shadow .2s ease;
  transform-origin: center;
}

#bps-banner .cta span {
  font-size: clamp(9px, 2.4vw, 27px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

#bps-banner .cta svg {
  width: 15%;
  height: 50%;
}

#bps-banner .cta:hover,
#bps-banner .cta:focus-visible {
  filter: brightness(1.13) drop-shadow(0 0 15px #ff3144);
  box-shadow: 0 0 30px 7px #ff3b49, inset 0 2px 5px #fff;
  animation-play-state: paused;
}

#bps-banner .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

#bps-banner .cta:active {
  filter: brightness(.95);
}

#bps-banner:not(.playing) .text,
#bps-banner:not(.playing) .feature {
  opacity: 0;
}

#bps-banner.playing .text { animation: bpsSlide .68s cubic-bezier(.2,.75,.25,1) both; }
#bps-banner.playing .topline  { animation-delay: .12s; }
#bps-banner.playing .army     { animation-delay: .37s; }
#bps-banner.playing .unmanned { animation-delay: .62s; }
#bps-banner.playing .systems  { animation-delay: .87s; }
#bps-banner.playing .feature  { animation: bpsBlink 1s steps(1,end) both; }
#bps-banner.playing .icon1    { animation-delay: 1.7s; }
#bps-banner.playing .icon2    { animation-delay: 1.85s; }
#bps-banner.playing .icon3    { animation-delay: 2s; }
#bps-banner.playing .cta-position { animation: bpsEnter .85s ease-out 3.05s both; }

@keyframes bpsSlide {
  from { opacity: 0; transform: translateX(-24%); filter: blur(7px); }
  to   { opacity: 1; transform: none;            filter: none; }
}

@keyframes bpsBlink {
  0%, 18%, 40% { opacity: 0; filter: sepia(1) saturate(6) hue-rotate(130deg); }
  9%, 29%, 53% { opacity: 1; filter: brightness(1.5) sepia(1) saturate(6) hue-rotate(130deg) drop-shadow(0 0 8px #00efff); }
  75%, 100%    { opacity: 1; filter: none; }
}

@keyframes bpsEnter {
  from { opacity: 0; transform: translateY(12px); filter: blur(7px); }
  to   { opacity: 1; transform: none;             filter: none; }
}

@keyframes bpsPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}

@media (max-width: 650px) {
  #bps-banner .cta { border-width: 1px; }
  #bps-banner .cta span { font-size: clamp(7px, 2.4vw, 15px); }
}

@media (prefers-reduced-motion: reduce) {
  #bps-banner .layer,
  #bps-banner .cta-position {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  #bps-banner .cta { animation: none !important; }
}