:root {
  --bg: #f3f7ff;
  --text: #122039;
  --muted: #657493;
  --line: #d6e0f1;
  --card: #ffffff;
  --primary: #316bff;
  --primary-2: #1d4ed8;
  --soft: #eef4ff;
  --radius: 16px;
  --shadow: 0 18px 42px rgba(24, 48, 98, 0.1);
  --warning-bg: #fff7e6;
  --warning-line: #f4d7a6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(49, 107, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 5%, rgba(56, 189, 248, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(49, 107, 255, 0.07) 0%, transparent 50%),
    var(--bg);
}

.container {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.header.scrolled {
  background: rgba(243, 247, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 20px rgba(49, 107, 255, 0.35);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.7;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-top: 24px;
  align-items: center;
  padding: 48px 0 32px;
  border: none;
  background: none;
  box-shadow: none;
}

.hero-main {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 32px 64px rgba(49, 107, 255, 0.18));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 18px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 14px;
}

.hero-points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-points span {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.section {
  margin-top: 48px;
  padding: 48px;
}

#how {
  margin-top: 64px;
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(25% - 24px);
  right: calc(25% - 24px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  pointer-events: none;
}

.step-icon {
  margin-bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.steps-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(49, 107, 255, 0.1);
}

.steps-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.steps-grid article:nth-child(1) {
  transition-delay: 0s;
}

.steps-grid article:nth-child(2) {
  transition-delay: 0.08s;
}

.steps-grid article:nth-child(3) {
  transition-delay: 0.16s;
}

.steps-grid article:nth-child(4) {
  transition-delay: 0.24s;
}

.audit-layout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 30px;
}

.sub {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f8ff;
  margin-bottom: 16px;
}

.tab {
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #3b4a66;
  font: inherit;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
}

.tab.active {
  color: var(--primary-2);
  background: #fff;
  border-color: #bfd1fb;
  box-shadow: 0 8px 18px rgba(49, 107, 255, 0.12);
}

.mode {
  display: none;
}

.mode.active {
  display: block;
}

.url-notice {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}

.url-help {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.url-help summary {
  font-weight: 600;
  cursor: pointer;
}

.url-help ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.url-help-btn {
  margin-top: 10px;
}

.dropzone {
  border: 1.6px dashed #b7c9ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 20px;
}

.dropzone.dragover,
.dropzone:focus-visible {
  border-color: var(--primary);
  background: #ecf3ff;
  outline: none;
}

.dropzone h3 {
  margin-bottom: 6px;
}

.dropzone p {
  margin: 0 0 12px;
  color: var(--muted);
}

input[type="file"],
input[type="url"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
textarea:focus {
  border-color: #9ab8fb;
  outline: 3px solid rgba(49, 107, 255, 0.14);
}

.label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

.hint,
.muted {
  color: var(--muted);
  font-size: 14px;
}

.file-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.file-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.file-name {
  display: block;
  font-weight: 600;
}

.file-meta {
  color: var(--muted);
  font-size: 13px;
}

.remove-file {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: #3a4864;
  padding: 8px 10px;
  cursor: pointer;
}

.actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(49, 107, 255, 0.3);
}

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary.loading .btn-label::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}

.btn-soft {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.toast {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--warning-line);
  background: var(--warning-bg);
  color: #7a5a18;
  display: none;
}

.toast.show {
  display: block;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: #e8efff;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #3ab1ff, var(--primary));
  background-size: 200% 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.running {
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-placeholder {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: #fbfdff;
}

.result-content {
  margin-top: 12px;
}

.result-summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.result-summary.high {
  background: #fff2f2;
  border-color: #f2b1b1;
}

.result-summary.medium {
  background: #fffaf2;
  border-color: #f6cea0;
}

.result-summary.low {
  background: #f7fff9;
  border-color: #9fdab1;
}

.result-summary-icon {
  font-size: 28px;
  line-height: 1;
}

.result-summary-body {
  flex: 1;
  min-width: 0;
}

.result-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.result-violations-line {
  font-weight: 700;
  font-size: 17px;
}

.result-score {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
  color: var(--primary-2);
}

.result-assessment {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}

.ai-fallback-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: #8a5a00;
}

.positives-block {
  border: 1px solid #9fdab1;
  border-radius: 10px;
  background: #f7fff9;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.positives-block summary {
  font-weight: 600;
  cursor: pointer;
  color: #1a6e38;
}

.positives-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #2a3852;
  line-height: 1.5;
}

.issues-container {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.download-report-btn {
  margin-top: 4px;
}

.audit-item {
  border: 1px solid #f2c7c7;
  border-left: 3px solid #e88080;
  border-radius: 14px;
  background: #fff6f6;
  padding: 18px 20px;
  transition: transform 0.15s ease;
}

.audit-item:hover {
  transform: translateX(3px);
}

.audit-item h4 {
  margin: 0 0 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-item h4::before {
  content: "⚠";
  font-size: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

.audit-item p {
  margin: 6px 0 0;
  color: #2a3852;
  font-size: 14px;
  line-height: 1.45;
}

.offer-box {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(140deg, #1f5fd6, #2f79ff);
  color: #fff;
  transition: opacity 0.3s ease;
}

.offer-decoration {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
}

.offer-deco-img {
  width: 96px;
  height: 96px;
}

.offer-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.offer-icon {
  font-size: 28px;
  line-height: 1;
}

.offer-box p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
}

.offer-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-tg {
  background: linear-gradient(135deg, #2aabee, #1e96d4);
  color: #fff;
  box-shadow: 0 10px 22px rgba(42, 171, 238, 0.35);
  border: none;
}

.btn-tg:hover {
  color: #fff;
}

.tg-icon {
  flex-shrink: 0;
}

.offer-email {
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
}

.cta-final {
  margin-top: 48px;
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.cta-final p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer {
  padding: 4px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

/* Оффскрин-разметка для генерации PDF (html2canvas) */
.pdf-export {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #122039;
  line-height: 1.5;
  background: #fff;
}

.pdf-export .pdf-export-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pdf-export .pdf-export-meta {
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d6e0f1;
  font-size: 13px;
  color: #657493;
}

.pdf-export .result-content {
  margin-top: 0;
}

.pdf-export details.positives-block {
  display: block;
}

.pdf-export details.positives-block summary {
  display: block;
  margin-bottom: 8px;
  list-style: none;
}

.pdf-export details.positives-block summary::-webkit-details-marker {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  .result-panel,
  .result-panel * {
    visibility: visible;
  }

  .result-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
  }

  .offer-box,
  .download-report-btn,
  .progress {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .hero,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 34px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid::before {
    display: none;
  }

  .cta-final {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 24px;
  }

  .hero-visual {
    justify-content: center;
    order: -1;
  }

  .hero-img {
    max-width: 320px;
    animation: none;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(1160px, calc(100% - 20px));
  }

  h1 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .header {
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .section,
  .panel {
    padding: 22px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}


/* MVP launch additions */
.security-section {
  overflow: hidden;
}

.security-head {
  max-width: 760px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.security-grid article {
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.security-grid h3 {
  margin-bottom: 8px;
}

.security-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.disclaimer-card {
  padding: 22px 24px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.82));
  color: #713f12;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media print {
  body.print-report-mode * {
    visibility: hidden !important;
  }

  body.print-report-mode #result,
  body.print-report-mode #result * {
    visibility: visible !important;
  }

  body.print-report-mode #result {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: white !important;
    color: #111827 !important;
  }

  body.print-report-mode .download-report-btn,
  body.print-report-mode .actions,
  body.print-report-mode .toast {
    display: none !important;
  }
}

.legal-consents {
  display: grid;
  gap: 10px;
  margin: 18px 0 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.8);
}

.legal-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.legal-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.legal-check a {
  color: #2563eb;
  font-weight: 700;
}

.cookie-banner{
position:fixed;
left:20px;
right:20px;
bottom:20px;
z-index:9999;
display:flex;
gap:20px;
align-items:center;
justify-content:space-between;
padding:18px;
border-radius:18px;
background:#0f172a;
color:#fff;
box-shadow:0 10px 40px rgba(0,0,0,.25);
}

.cookie-text{
font-size:14px;
line-height:1.5;
max-width:700px;
}

.cookie-text a{
color:#93c5fd;
font-weight:700;
}

@media(max-width:768px){
.cookie-banner{
flex-direction:column;
align-items:flex-start;
}
}

.knowledge-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.knowledge-card{
  display:block;
  padding:18px;
  border:1px solid rgba(148,163,184,.35);
  border-radius:18px;
  background:#fff;
  text-decoration:none;
  color:#0f172a;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
  transition:.18s ease;
}

.knowledge-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(15,23,42,.09);
}

.knowledge-card span{
  display:inline-block;
  margin-bottom:10px;
  padding:5px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:12px;
  font-weight:800;
}

.knowledge-card strong{
  display:block;
  margin-bottom:8px;
  font-size:16px;
  line-height:1.25;
}

.knowledge-card p{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:#64748b;
}

@media(max-width:980px){
  .knowledge-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:620px){
  .knowledge-grid{
    grid-template-columns:1fr;
  }
}

.hero-actions .btn[href="/test-152/"]{
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #fed7aa;
  box-shadow:0 8px 22px rgba(194,65,12,.14);
}

.hero-actions .btn[href="/test-152/"]:hover{
  background:#ffedd5;
  color:#9a3412;
  transform:translateY(-1px);
}

.actions .btn[href="/test-152/"]{
  background:#eef2ff;
  color:#3730a3;
  border:1px solid #c7d2fe;
  font-weight:800;
}


.audit-lead-box{
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 20px;
  background: linear-gradient(135deg,#eff6ff,#ffffff);
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
}

.audit-lead-box h3{
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

.audit-lead-box p{
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.5;
}

.audit-lead-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.audit-lead-box input,
.audit-lead-box textarea{
  width: 100%;
  border: 1px solid rgba(148,163,184,.55);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}

.audit-lead-box textarea{
  resize: vertical;
  margin-bottom: 12px;
}

.lead-status{
  margin-top: 10px !important;
  font-size: 14px;
  font-weight: 700;
}

.lead-status.ok{ color:#166534; }
.lead-status.err{ color:#b91c1c; }

@media(max-width:760px){
  .audit-lead-grid{
    grid-template-columns:1fr;
  }
}

.audit-lead-kicker{
  display:inline-block;
  margin-bottom:10px;
  padding:5px 10px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
}

.audit-lead-points{
  display:grid;
  gap:8px;
  margin:14px 0 16px;
  padding:0;
  list-style:none;
}

.audit-lead-points li{
  position:relative;
  padding-left:26px;
  color:#334155;
  font-size:14px;
  line-height:1.45;
}

.audit-lead-points li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#dcfce7;
  color:#166534;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
}

.lead-note{
  margin-top:10px !important;
  font-size:13px !important;
  color:#64748b !important;
}


/* ===== RISK PROFILE STATES ===== */

.risk-profile-box.high{
  border: 1px solid #f2a5a5;
  background: linear-gradient(135deg,#fff1f1,#ffffff);
}

.risk-profile-box.medium{
  border: 1px solid #f6c48b;
  background: linear-gradient(135deg,#fff7ed,#ffffff);
}

.risk-profile-box.low{
  border: 1px solid #a7d7b5;
  background: linear-gradient(135deg,#f6fff8,#ffffff);
}

.risk-profile-level{
  margin-top:10px;
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  background:#f1f5f9;
  color:#0f172a;
}

.risk-profile-box.high .risk-profile-level{
  background:#fee2e2;
  color:#991b1b;
}

.risk-profile-box.medium .risk-profile-level{
  background:#ffedd5;
  color:#9a3412;
}

.risk-profile-box.low .risk-profile-level{
  background:#dcfce7;
  color:#166534;
}

.risk-profile-box{
  margin:18px 0 22px;
  padding:20px;
  border-radius:18px;
  border:1px solid #cbd5e1;
  background:#fff;
  box-shadow:0 14px 36px rgba(15,23,42,.08);
}
.risk-profile-kicker{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
  margin-bottom:8px;
}
.risk-profile-box h3{
  margin:0 0 10px;
  color:#0f172a;
}
.risk-profile-box p{
  margin:0;
  color:#334155;
  line-height:1.55;
}

/* ===== RISK PROFILE FINAL MOBILE FIX ===== */
.risk-profile-box{
  margin: 18px 0 22px !important;
  padding: 18px 18px !important;
  border-radius: 18px !important;
  border: 1px solid #f2a5a5 !important;
  background: linear-gradient(135deg,#fff1f1,#ffffff) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.08) !important;
}

.risk-profile-kicker{
  margin: 0 0 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: #991b1b !important;
}

.risk-profile-box h3{
  margin: 0 0 10px !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  color: #0f172a !important;
}

.risk-profile-level{
  display: inline-block !important;
  margin: 0 0 12px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.risk-profile-box p{
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: #334155 !important;
}

@media(max-width:760px){
  .risk-profile-box{
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .risk-profile-box h3{
    font-size: 20px !important;
  }

  .risk-profile-box p{
    font-size: 15px !important;
  }
}

/* ===== RISK PROFILE ALL STATES FINAL ===== */
.risk-profile-box{
  margin:18px 0 22px !important;
  padding:18px !important;
  border-radius:18px !important;
  box-shadow:0 12px 28px rgba(15,23,42,.08) !important;
}

.risk-profile-box.high{
  border:1px solid #f2a5a5 !important;
  background:linear-gradient(135deg,#fff1f1,#ffffff) !important;
}

.risk-profile-box.medium{
  border:1px solid #f6c48b !important;
  background:linear-gradient(135deg,#fff7ed,#ffffff) !important;
}

.risk-profile-box.low{
  border:1px solid #a7d7b5 !important;
  background:linear-gradient(135deg,#f6fff8,#ffffff) !important;
}

.risk-profile-kicker{
  margin:0 0 6px !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
}

.risk-profile-box.high .risk-profile-kicker{ color:#991b1b !important; }
.risk-profile-box.medium .risk-profile-kicker{ color:#9a3412 !important; }
.risk-profile-box.low .risk-profile-kicker{ color:#166534 !important; }

.risk-profile-box h3{
  margin:0 0 10px !important;
  font-size:22px !important;
  line-height:1.2 !important;
  color:#0f172a !important;
}

.risk-profile-level{
  display:inline-block !important;
  margin:0 0 12px !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  font-size:13px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
}

.risk-profile-box.high .risk-profile-level{
  background:#fee2e2 !important;
  color:#991b1b !important;
}

.risk-profile-box.medium .risk-profile-level{
  background:#ffedd5 !important;
  color:#9a3412 !important;
}

.risk-profile-box.low .risk-profile-level{
  background:#dcfce7 !important;
  color:#166534 !important;
}

.risk-profile-box p{
  margin:0 !important;
  font-size:16px !important;
  line-height:1.55 !important;
  color:#334155 !important;
}

@media(max-width:760px){
  .risk-profile-box{
    padding:16px !important;
    border-radius:16px !important;
  }
  .risk-profile-box h3{
    font-size:20px !important;
  }
  .risk-profile-box p{
    font-size:15px !important;
  }
}
