/* GateForm — публичная страница репутации IP. Без внешних ресурсов. */

.threat-page {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(74, 108, 247, 0.18), transparent 65%),
    radial-gradient(700px 360px at 90% 0%, rgba(37, 117, 252, 0.12), transparent 60%),
    var(--navy);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.threat-main {
  min-height: calc(100vh - 64px);
}

.threat-hero {
  padding: 84px 0 44px;
}

.threat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(74, 108, 247, 0.32);
  border-radius: 999px;
  background: rgba(74, 108, 247, 0.1);
  color: #b8c6ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.threat-hero h1 {
  max-width: 820px;
  margin-top: 22px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.threat-hero-text {
  max-width: 760px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 17px;
}

.threat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.threat-content {
  padding-bottom: 80px;
}

.threat-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.threat-stat {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.threat-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.threat-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.threat-stat small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.threat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.threat-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.threat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.threat-card h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.threat-card-head p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
}

.threat-api-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(0, 196, 140, 0.35);
  border-radius: 6px;
  background: rgba(0, 196, 140, 0.1);
  color: #74e7c4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.threat-check-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.threat-check-row {
  display: flex;
  gap: 10px;
}

.threat-check-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.threat-check-row input:focus {
  border-color: rgba(74, 108, 247, 0.8);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.16);
}

.threat-check-row .btn {
  flex: 0 0 auto;
}

.threat-check-form .form-hint {
  margin-top: 10px;
}

.threat-check-form code,
.threat-privacy code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #c7d2fe;
  font-size: 0.9em;
}

.threat-error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.08);
  color: #ffb4b4;
  font-size: 13px;
}

.threat-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.threat-result-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.threat-result-caption {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.threat-result-top strong {
  display: block;
  margin-top: 4px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.threat-risk-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.threat-risk-badge.is-allow {
  border: 1px solid rgba(0, 196, 140, 0.35);
  background: rgba(0, 196, 140, 0.1);
  color: #74e7c4;
}

.threat-risk-badge.is-challenge {
  border: 1px solid rgba(255, 184, 76, 0.4);
  background: rgba(255, 184, 76, 0.1);
  color: #ffd08a;
}

.threat-risk-badge.is-block {
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb4b4;
}

.threat-score-track {
  height: 8px;
  margin: 16px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.threat-score-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00c48c, #ffb84c 55%, #ff6b6b);
  transition: width 0.35s ease;
}

.threat-result-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.threat-result-row > span:first-child {
  flex: 0 0 auto;
  color: var(--text-muted);
}

.threat-result-row > strong {
  text-align: right;
  font-weight: 600;
}

.threat-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.threat-tag {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4ff;
  font-size: 11px;
  line-height: 1.45;
}

.threat-result-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.threat-category-list {
  display: grid;
  gap: 9px;
}

.threat-category-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.threat-category-item:last-child {
  border-bottom: none;
}

.threat-category-item span {
  color: #dbe4ff;
}

.threat-category-item strong {
  color: var(--text-muted);
  font-size: 12px;
}

.threat-callout {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 184, 76, 0.22);
  border-radius: 10px;
  background: rgba(255, 184, 76, 0.06);
  color: #f3d7a5;
  font-size: 12px;
  line-height: 1.6;
}

.threat-privacy {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.threat-privacy h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.threat-privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 22px;
}

.threat-privacy h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.threat-privacy p {
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .threat-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .threat-grid,
  .threat-privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .threat-hero {
    padding-top: 54px;
  }

  .threat-check-row {
    flex-direction: column;
  }

  .threat-check-row .btn {
    width: 100%;
  }

  .threat-card,
  .threat-privacy {
    padding: 18px;
  }

  .threat-stats {
    grid-template-columns: 1fr;
  }

  .threat-result-row {
    flex-direction: column;
    gap: 5px;
  }

  .threat-tags {
    justify-content: flex-start;
  }
}
