.radar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80vw;
  max-width: 450px;
  aspect-ratio: 1;  
  margin: 0 auto;
  border-radius: 50%;
  -webkit-backdrop-filter: blur(1px);
  background: rgba(255, 255, 255, 0.034);
  backdrop-filter: blur(1px); /* замыливание */
  border: 1px solid rgba(150, 150, 150, 0.4);
}

.radar {
  width: 82%;  /* подстраиваем под контейнер */
  height: 82%; /* сохраняем квадрат */
  border-radius: 50%;
  background: rgba(40, 20, 80, 0.219);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 150, 150, 0.4);
  overflow: hidden;
}

.radar-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: radial-gradient(
      circle at center,
      rgba(143, 64, 222, 0.301) 1px,
      transparent 1px
    ),
    linear-gradient(rgba(143, 64, 222, 0.329) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 64, 222, 0.2) 1px, transparent 1px);
  background-size: 25px 25px, 100% 25px, 25px 100%;
  background-position: center center, center center, center center;
  opacity: 0.3;
}

.radar-scan {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 100deg,
    #191620 var(--trail-length),
    rgba(164, 64, 222, 0.8) 1000deg
  );
  animation: rotate 5s linear infinite;
  mix-blend-mode: screen;
}

.radar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(146, 64, 222, 0.3) 10%,
    transparent 60%
  );
  animation: pulse 3s infinite ease-out;
  opacity: 0.6;
}

.target {
  position: absolute;
  width: 4%;
  height: 4%;
  border-radius: 50%;
  background: rgba(255, 200, 255, 1);
  box-shadow: 0 0 15px rgba(255, 200, 255, 1);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.target.active {
  animation: glow 1s forwards;
}

.radar-circles {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* чтобы не мешали кликам */
}

.radar-circle {
  position: absolute;
  border: 1px solid rgba(164, 64, 222, 0.199); /* цвет линии */
  border-radius: 50%;
}

/* размеры окружностей */
.radar-circle:nth-child(1) {
  width: 20%;
  height: 20%;
}
.radar-circle:nth-child(2) {
  width: 40%;
  height: 40%;
}
.radar-circle:nth-child(3) {
  width: 60%;
  height: 60%;
}
.radar-circle:nth-child(4) {
  width: 80%;
  height: 80%;
}
.radar-circle:nth-child(5) {
  width: 100%;
  height: 100%;
}

.radar-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.radar-line {
  position: absolute;
  width: 1px;
  height: 50%;
  background: rgba(164, 64, 222, 0.199);
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
}

.radar-line:nth-child(1) {
  transform: translateX(-50%) rotate(0deg);
}
.radar-line:nth-child(2) {
  transform: translateX(-50%) rotate(30deg);
}
.radar-line:nth-child(3) {
  transform: translateX(-50%) rotate(60deg);
}
.radar-line:nth-child(4) {
  transform: translateX(-50%) rotate(90deg);
}
.radar-line:nth-child(5) {
  transform: translateX(-50%) rotate(120deg);
}
.radar-line:nth-child(6) {
  transform: translateX(-50%) rotate(150deg);
}
.radar-line:nth-child(7) {
  transform: translateX(-50%) rotate(180deg);
}
.radar-line:nth-child(8) {
  transform: translateX(-50%) rotate(210deg);
}
.radar-line:nth-child(9) {
  transform: translateX(-50%) rotate(240deg);
}
.radar-line:nth-child(10) {
  transform: translateX(-50%) rotate(270deg);
}
.radar-line:nth-child(11) {
  transform: translateX(-50%) rotate(300deg);
}
.radar-line:nth-child(12) {
  transform: translateX(-50%) rotate(330deg);
}

.radar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 470px;
  height: 470px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ztc-gradient-radar);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 20%;
}

@keyframes glow {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .radar-container {
    transform: scale(1.1) translateY(40px);
    transform-origin: center center; /* центрируем уменьшение */
    margin: 0 auto; /* если нужно выровнять по центру в колонке */
  }
}

.imges-header {
  display: flex;
  justify-content: center;
  align-items: center;
}