@import url("./style-base.css");

/* Optimized visual layer */
.hero-visual {
  min-height: 535px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(104, 231, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.7) 0%, rgba(5, 7, 12, 0.16) 43%, rgba(5, 7, 12, 0.04) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.04) 52%, rgba(5, 7, 12, 0.82) 100%),
    url("./assets/rt64.webp") 56% center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 34px 85px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(62, 118, 213, 0.08);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 21%, rgba(108, 224, 255, 0.14), transparent 22%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.45), transparent 42%);
}

.hero-visual::after {
  content: "РТ-64 / КОНЦЕПЦИЯ ПЕРЕДАЧИ";
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.58);
  color: rgba(211, 233, 246, 0.72);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.hero-visual .space-orb,
.hero-visual .dish-illustration {
  display: none;
}

.hero-visual .signal-ring {
  z-index: 3;
  border-color: rgba(104, 231, 255, 0.22);
  box-shadow: 0 0 35px rgba(104, 231, 255, 0.06);
}

.section-dark .process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(285px, 31vw, 365px) 28px 31px;
  border: 1px solid rgba(104, 231, 255, 0.11);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.74), rgba(5, 8, 14, 0.98));
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.34);
}

.section-dark .process::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: clamp(270px, 31vw, 365px);
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.03) 0%, rgba(5, 7, 12, 0.08) 54%, rgba(5, 7, 12, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.28), transparent 25%, transparent 75%, rgba(5, 7, 12, 0.22)),
    url("./assets/signal-path.webp") center / cover no-repeat;
}

.section-dark .process::after {
  content: "МЫСЛЬ  /  EEG  /  КОД  /  СИГНАЛ  /  КОСМОС";
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 20px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.54);
  color: rgba(214, 237, 249, 0.7);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.section-dark .process > * {
  position: relative;
  z-index: 2;
}

.section-dark .process-step {
  padding: 18px 10px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 21, 33, 0.46), rgba(8, 12, 20, 0.3));
}

.section-dark .process-line {
  margin-top: 132px;
}

.tech-visual {
  min-height: 470px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.04) 32%, rgba(5, 7, 12, 0.22) 60%, rgba(5, 7, 12, 0.94) 100%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.22), transparent 46%),
    url("./assets/eeg-wish.webp") 48% center / cover no-repeat;
}

.tech-visual::before {
  z-index: 1;
  background:
    radial-gradient(circle at 44% 26%, rgba(98, 198, 255, 0.12), transparent 27%),
    linear-gradient(180deg, transparent 45%, rgba(5, 7, 12, 0.34));
}

.tech-visual::after {
  content: "EEG-ФИКСАЦИЯ МОМЕНТА";
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.54);
  color: rgba(214, 237, 249, 0.72);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.tech-visual svg {
  display: none;
}

.tech-visual .tech-stars {
  z-index: 1;
  opacity: 0.18;
}

.tech-visual .tech-metrics {
  z-index: 4;
  background: rgba(5, 8, 14, 0.76);
}

.certificate-card {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-color: rgba(104, 231, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.02), rgba(5, 7, 12, 0.14)),
    url("./assets/certificate.webp") center / cover no-repeat;
  box-shadow:
    0 0 0 7px rgba(104, 231, 255, 0.018),
    0 32px 90px rgba(0, 0, 0, 0.48),
    0 0 65px rgba(75, 117, 255, 0.11);
}

.certificate-card::before {
  inset: 10px;
  border-color: rgba(139, 203, 255, 0.16);
  border-radius: 15px;
  box-shadow: inset 0 0 45px rgba(66, 128, 229, 0.08);
}

.certificate-card::after {
  content: "ВИЗУАЛИЗАЦИЯ СЕРТИФИКАТА";
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.55);
  color: rgba(214, 237, 249, 0.68);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.certificate-card > * {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .hero-visual {
    min-height: 485px;
    background-position: 54% center;
  }

  .section-dark .process {
    padding-top: clamp(255px, 35vw, 330px);
  }

  .section-dark .process::before {
    height: clamp(245px, 35vw, 330px);
  }
}

@media (max-width: 820px) {
  .hero-visual {
    min-height: 420px;
    margin-top: 8px;
    background-position: 53% center;
  }

  .section-dark .process {
    padding: 280px 22px 24px;
  }

  .section-dark .process::before {
    height: 278px;
  }

  .section-dark .process-line {
    margin-top: 115px;
  }

  .tech-visual {
    min-height: 410px;
    background-position: center;
  }

  .certificate-card {
    width: min(720px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .hero-visual {
    min-height: 330px;
    border-radius: 20px;
    background-position: 56% center;
  }

  .hero-visual::after,
  .tech-visual::after,
  .certificate-card::after,
  .section-dark .process::after {
    font-size: 7px;
    letter-spacing: 0.09em;
  }

  .hero-visual .ring-one {
    width: 80px;
    height: 80px;
    right: 21px;
    top: 38px;
  }

  .hero-visual .ring-two {
    width: 125px;
    height: 125px;
    right: 0;
    top: 16px;
  }

  .hero-visual .ring-three {
    width: 170px;
    height: 170px;
    right: -23px;
    top: -7px;
  }

  .section-dark .process {
    padding: 215px 14px 18px;
    border-radius: 20px;
  }

  .section-dark .process::before {
    height: 214px;
  }

  .section-dark .process-step {
    padding: 15px 12px;
  }

  .tech-visual {
    min-height: 340px;
    border-radius: 20px;
    background-position: 51% center;
  }

  .tech-metrics div {
    padding: 13px 10px;
  }

  .tech-metrics span {
    font-size: 7px;
  }

  .tech-metrics strong {
    font-size: 10px;
  }

  .certificate-card {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .signal-ring {
    animation: none;
  }
}

/* Current site version badge */
.partner-banner__inner {
  position: relative;
}

.partner-banner__inner::after {
  content: "MVP v2.1";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 9px;
  border: 1px solid rgba(104, 231, 255, 0.22);
  border-radius: 999px;
  background: rgba(104, 231, 255, 0.06);
  color: rgba(194, 241, 255, 0.92);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: inset 0 0 14px rgba(104, 231, 255, 0.04);
}

@media (max-width: 590px) {
  .partner-banner__inner::after {
    right: 4px;
    padding: 4px 7px;
    font-size: 7px;
  }
}

/* Test stand: remove all visible RT-64 references without changing production. */
body:has(.test-stand-badge) .hero-visual::after {
  content: "КОНЦЕПЦИЯ ПЕРЕДАЧИ";
}

body:has(.test-stand-badge) .hero-copy .transmission-status > span:last-child {
  display: none;
}

body:has(.test-stand-badge) #technology .technology-copy > p {
  font-size: 0;
}

body:has(.test-stand-badge) #technology .technology-copy > p::after {
  content: "Для первой передачи рассматривается инфраструктура дальней космической связи. Конкретная площадка, дата, частота и режим передачи появятся на сайте только после письменного подтверждения технического оператора.";
  display: block;
  color: #9aa6b8;
  font-size: 15px;
  line-height: 1.75;
}

body:has(.test-stand-badge) #technology .tech-metrics > div:first-child strong {
  font-size: 0;
}

body:has(.test-stand-badge) #technology .tech-metrics > div:first-child strong::after {
  content: "ДАЛЬНЯЯ СВЯЗЬ";
  font-size: 10px;
}

body:has(.test-stand-badge) #faq .faq > details:nth-child(3) {
  display: none;
}
