:root {
  --bg: #06111b;
  --bg-elevated: #0a1824;
  --surface: rgba(13, 31, 44, .82);
  --surface-solid: #0d1f2c;
  --surface-2: #11293a;
  --line: rgba(178, 213, 226, .14);
  --line-strong: rgba(178, 213, 226, .24);
  --text: #f2f8fa;
  --muted: #9db2bd;
  --faint: #6d8490;
  --primary: #55e6c1;
  --primary-2: #4cc9f0;
  --primary-ink: #03251e;
  --danger: #ff6577;
  --danger-deep: #c53950;
  --warning: #ffbd59;
  --safe: #55e6c1;
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shell: min(1180px, calc(100% - 36px));
  --header-h: 82px;
}

html[data-theme="light"] {
  --bg: #f4f8fa;
  --bg-elevated: #eaf2f5;
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #ffffff;
  --surface-2: #eff6f8;
  --line: rgba(9, 38, 52, .12);
  --line-strong: rgba(9, 38, 52, .22);
  --text: #092531;
  --muted: #526d79;
  --faint: #748b95;
  --primary: #0cbf96;
  --primary-2: #168bb5;
  --primary-ink: #ffffff;
  --danger: #dc3e57;
  --danger-deep: #aa243b;
  --warning: #c57800;
  --safe: #0ba77f;
  --shadow: 0 30px 90px rgba(19, 65, 80, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.hidden { display: none !important; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--primary); color: var(--primary-ink); padding: 12px 16px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(100px); opacity: .22; z-index: -3; }
.ambient-one { width: 520px; height: 520px; background: #0cbf96; top: -220px; right: -170px; }
.ambient-two { width: 480px; height: 480px; background: #1d78ff; bottom: 10%; left: -280px; opacity: .14; }
.noise { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .032; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E"); }

.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(20px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: fit-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--primary); }
.brand-mark svg { width: 100%; height: 100%; stroke-width: initial; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 10px; margin-top: 5px; letter-spacing: .03em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.desktop-nav a { color: var(--muted); font-size: 14px; font-weight: 650; transition: color .2s; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.select-wrap select, .country-select select { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); outline: none; border-radius: 11px; cursor: pointer; }
.select-wrap.compact select { height: 40px; padding: 0 30px 0 12px; font-size: 13px; font-weight: 800; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 17px, calc(100% - 10px) 17px; background-size: 4px 4px; background-repeat: no-repeat; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 11px; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.icon-button:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.icon-button .sun-icon, html[data-theme="light"] .icon-button .moon-icon { display: none; }
html[data-theme="light"] .icon-button .sun-icon { display: block; }
.icon-button.light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; font-size: 25px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border-radius: 13px; border: 1px solid transparent; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary-2) 75%, var(--primary))); color: var(--primary-ink); box-shadow: 0 12px 34px color-mix(in srgb, var(--primary) 22%, transparent); }
.button.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.button.ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.button.danger { background: var(--danger); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--danger) 22%, transparent); }
.button.danger:hover { background: var(--danger-deep); }
.button.small { min-height: 40px; padding-inline: 14px; border-radius: 11px; font-size: 13px; }
.button.wide { width: 100%; }
.button.light-outline { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.07); }
.button svg { width: 18px; height: 18px; }
.pulse-dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero { min-height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(42px, 7vw, 90px); padding-block: 72px 92px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 900; color: var(--primary); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); background: color-mix(in srgb, var(--primary) 7%, transparent); border-radius: 999px; }
.status-dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 16px var(--primary); }
.hero h1 { margin: 24px 0 20px; font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.058em; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 4%; right: 0; bottom: -.08em; height: .08em; background: linear-gradient(90deg, var(--primary), transparent); border-radius: 999px; }
.hero-lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; max-width: 640px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-row > span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--primary); }

.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 10% -8% -12% 12%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 62%); filter: blur(30px); z-index: -1; }
.scanner-card { position: relative; min-height: 520px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 28px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 92%, #17394a), var(--surface-solid)); box-shadow: var(--shadow); overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.scanner-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.25), transparent 75%); pointer-events: none; }
.scanner-topbar { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); padding: 2px 2px 15px; position: relative; z-index: 2; }
.scanner-topbar > span { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.scanner-topbar > span:first-child { background: var(--danger); }
.scanner-topbar > span:nth-child(2) { background: var(--warning); }
.scanner-topbar > span:nth-child(3) { background: var(--primary); }
.scanner-topbar small { margin-left: auto; color: var(--faint); letter-spacing: .15em; font-size: 9px; font-weight: 900; }
.message-bubble { position: relative; z-index: 2; margin: 30px 12px 22px; border: 1px solid var(--line); padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); display: flex; gap: 13px; }
.message-bubble .avatar { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); font-weight: 900; }
.message-bubble p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.scan-line { position: absolute; z-index: 3; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); box-shadow: 0 0 30px var(--primary); animation: scan 4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 120px; opacity: 0; } 10%,90% { opacity: 1; } 50% { top: 455px; } }
.scanner-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 12px; }
.signal-card, .score-card { min-height: 92px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); padding: 15px; display: flex; align-items: center; gap: 12px; }
.signal-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; }
.signal-card.high .signal-icon { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.signal-card.medium .signal-icon { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.signal-card small, .score-card small { display: block; color: var(--muted); font-size: 10px; }
.signal-card strong, .score-card strong { display: block; font-size: 13px; margin-top: 2px; }
.score-card { grid-column: span 2; }
.mini-ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--danger) 82%, var(--line) 0); position: relative; }
.mini-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface-solid); }
.mini-ring span { position: relative; font-size: 14px; font-weight: 900; }
.scanner-footer { position: absolute; bottom: 18px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: center; z-index: 2; color: var(--muted); font-size: 10px; }
.lock-chip, .live-chip { display: inline-flex; align-items: center; gap: 6px; }
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.section { padding-block: 112px; }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -.045em; max-width: 720px; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; }
.section-heading.inverse h2, .section-heading.inverse p { color: #fff; }
.section-heading.inverse .kicker { color: #6ff1d1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.analyzer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-panel, .result-panel { padding: 26px; min-height: 670px; }
.panel-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.panel-header > div { display: flex; align-items: center; gap: 12px; }
.panel-header h3 { margin: 0; font-size: 18px; }
.step-number { color: var(--primary); font-size: 11px; font-weight: 900; border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); border-radius: 8px; padding: 4px 6px; }
.text-button { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-weight: 800; font-size: 12px; }
.input-panel > label, fieldset legend, .incident-form label > span, .country-select > span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.textarea-wrap { position: relative; }
textarea, input { width: 100%; color: var(--text); background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--line); border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; padding: 16px; line-height: 1.6; }
input { min-height: 48px; padding: 0 14px; }
textarea:focus, input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
textarea::placeholder, input::placeholder { color: var(--faint); }
.textarea-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 10px; margin: 7px 3px 0; }
.context-fieldset { border: 0; padding: 0; margin: 22px 0; }
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 13px; padding: 4px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.segmented button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; }
.segmented button.active { color: var(--primary-ink); background: var(--primary); box-shadow: 0 5px 15px color-mix(in srgb, var(--primary) 17%, transparent); }
.result-panel { position: relative; overflow: hidden; }
.result-panel::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, transparent); filter: blur(70px); top: -150px; right: -120px; pointer-events: none; }
.empty-state { height: 100%; min-height: 610px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; z-index: 1; }
.empty-state h3 { margin: 28px 0 9px; font-size: 22px; }
.empty-state p { color: var(--muted); max-width: 350px; margin: 0; font-size: 14px; }
.empty-orbit { position: relative; width: 110px; height: 110px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.empty-orbit::before, .empty-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.empty-orbit::before { inset: 13px; }
.empty-orbit::after { inset: 29px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.empty-orbit span { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 24px var(--primary); z-index: 2; }
.empty-orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-2); top: 5px; left: 50%; transform-origin: 0 50px; animation: orbit 5s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.result-content { position: relative; z-index: 1; }
.result-top { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.risk-ring { --score: 0; --risk-color: var(--primary); width: 124px; height: 124px; border-radius: 50%; background: conic-gradient(var(--risk-color) calc(var(--score) * 1%), var(--line) 0); display: grid; place-items: center; position: relative; }
.risk-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface-solid); }
.risk-ring > div { position: relative; display: flex; align-items: baseline; }
.risk-ring strong { font-size: 34px; line-height: 1; }
.risk-ring span { color: var(--faint); font-size: 11px; }
.risk-badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; background: color-mix(in srgb, var(--risk-color, var(--primary)) 14%, transparent); color: var(--risk-color, var(--primary)); }
.risk-summary h3 { font-size: 21px; margin: 10px 0 6px; }
.risk-summary p { margin: 0; color: var(--muted); font-size: 13px; }
.result-block { margin-top: 24px; }
.result-block-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.result-block-title h4 { margin: 0; font-size: 13px; }
.result-block-title > span { min-width: 25px; height: 25px; display: grid; place-items: center; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 8px; font-size: 10px; font-weight: 900; }
.findings-list { display: grid; gap: 8px; max-height: 230px; overflow: auto; padding-right: 3px; }
.finding { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface-2) 52%, transparent); }
.finding-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 900; }
.finding.medium .finding-icon { background: color-mix(in srgb, var(--warning) 13%, transparent); color: var(--warning); }
.finding.low .finding-icon { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.finding strong { font-size: 12px; }
.finding p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.finding mark { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--text); border-radius: 4px; padding: 1px 3px; }
.actions-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; counter-reset: actions; }
.actions-list li { counter-increment: actions; display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; }
.actions-list li::before { content: counter(actions); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); font-size: 9px; font-weight: 900; }
.result-actions { display: flex; gap: 8px; margin-top: 22px; }
.result-disclaimer { color: var(--faint); font-size: 9px; line-height: 1.5; margin: 16px 0 0; }

.help-section { background: linear-gradient(135deg, #0b2030, #0a1726 65%, #13223c); position: relative; overflow: hidden; }
.help-section::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: rgba(44, 223, 178, .11); filter: blur(100px); top: -430px; right: -150px; }
.situation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.situation-card { min-height: 190px; text-align: left; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); color: #fff; border-radius: 18px; padding: 22px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; transition: transform .22s, background .22s, border-color .22s; }
.situation-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.situation-card.urgent { background: linear-gradient(145deg, rgba(255,101,119,.20), rgba(255,101,119,.06)); border-color: rgba(255,101,119,.30); }
.situation-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(111,241,209,.12); color: #6ff1d1; font-weight: 900; margin-bottom: auto; }
.situation-card.urgent .situation-icon { background: rgba(255,101,119,.16); color: #ff8191; font-size: 11px; }
.situation-card strong { font-size: 16px; margin-top: 24px; }
.situation-card small { color: rgba(255,255,255,.6); font-size: 11px; margin-top: 5px; }
.safety-plan { margin-top: 22px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 26px; color: #fff; }
.plan-header, .plan-header > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.plan-header > div { justify-content: flex-start; }
.plan-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #6ff1d1; background: rgba(111,241,209,.12); font-weight: 900; }
.plan-header h3 { margin: 3px 0 0; font-size: 23px; }
.plan-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; margin-top: 24px; }
.plan-steps { list-style: none; counter-reset: plan; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-steps li { counter-increment: plan; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 14px 15px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; }
.plan-steps li::before { content: counter(plan); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(111,241,209,.12); color: #6ff1d1; font-size: 11px; font-weight: 900; }
.plan-steps strong { display: block; font-size: 13px; }
.plan-steps p { color: rgba(255,255,255,.66); font-size: 11px; margin: 4px 0 0; }
.plan-aside { border-left: 1px solid rgba(255,255,255,.12); padding-left: 26px; }
.plan-aside ul { color: rgba(255,255,255,.72); padding-left: 18px; margin: 12px 0 22px; font-size: 12px; }
.plan-aside li + li { margin-top: 7px; }
.plan-aside .button + .button { margin-top: 9px; }

.contacts-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.country-select { min-width: 250px; }
.country-select select { width: 100%; min-height: 48px; padding: 0 40px 0 14px; }
.verification-chip { display: flex; align-items: center; gap: 11px; }
.verification-chip svg { width: 28px; height: 28px; color: var(--primary); }
.verification-chip span { display: grid; text-align: right; }
.verification-chip strong { font-size: 12px; }
.verification-chip small { color: var(--muted); font-size: 10px; }
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card { min-height: 220px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.contact-card.emergency { background: linear-gradient(145deg, color-mix(in srgb, var(--danger) 10%, var(--surface-solid)), var(--surface)); border-color: color-mix(in srgb, var(--danger) 24%, var(--line)); }
.contact-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-type { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.official-badge { padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-size: 8px; font-weight: 900; }
.contact-card h3 { margin: 19px 0 4px; font-size: 17px; }
.contact-number { font-size: 36px; line-height: 1; letter-spacing: -.04em; font-weight: 900; color: var(--text); margin: 4px 0 10px; }
.contact-card p { color: var(--muted); font-size: 11px; margin: 0 0 20px; }
.contact-actions { display: flex; gap: 8px; margin-top: auto; }
.contact-actions a { min-height: 38px; padding-inline: 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 1px solid var(--line); }
.contact-actions .call { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.contacts-note { margin: 16px 0 0; color: var(--faint); font-size: 11px; }

.incident-section { background: var(--bg-elevated); border-block: 1px solid var(--line); }
.incident-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.incident-copy h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -.045em; margin: 10px 0 18px; }
.incident-copy > p { color: var(--muted); font-size: 15px; }
.feature-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.feature-checks li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.feature-checks li::before { content: "✓"; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--primary) 11%, transparent); color: var(--primary); font-size: 11px; }
.incident-form { padding: 24px; }
.incident-form label { display: block; margin-bottom: 16px; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent-row { display: flex !important; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.consent-row input { width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--primary); }
.consent-row span { margin: 0 !important; font-weight: 500 !important; line-height: 1.45; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.form-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }

.privacy-card { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--surface), color-mix(in srgb, var(--surface-solid) 88%, var(--primary) 4%)); overflow: hidden; }
.privacy-visual { height: 260px; position: relative; display: grid; place-items: center; }
.privacy-core { width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--primary) 24%, var(--surface-solid)), var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); box-shadow: 0 0 60px color-mix(in srgb, var(--primary) 13%, transparent); }
.privacy-core span { font-size: 45px; font-weight: 900; color: var(--primary); line-height: 1; }
.privacy-core small { color: var(--muted); font-size: 11px; margin-top: 5px; }
.orbit { position: absolute; border: 1px dashed var(--line-strong); border-radius: 50%; }
.orbit-a { width: 210px; height: 210px; animation: orbit 18s linear infinite; }
.orbit-b { width: 290px; height: 290px; animation: orbit 28s linear reverse infinite; }
.orbit-a::after, .orbit-b::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; top: -5px; left: 50%; background: var(--primary); box-shadow: 0 0 18px var(--primary); }
.privacy-copy h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.07; letter-spacing: -.045em; margin: 10px 0 16px; }
.privacy-copy p { color: var(--muted); max-width: 680px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tech-chips span { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 62%, transparent); border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 800; color: var(--muted); }

.final-cta { margin-block: 0 112px; padding: 46px; border-radius: var(--radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 15%, var(--surface-solid)), var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line)); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.final-cta h2 { font-size: clamp(34px, 4vw, 50px); margin: 6px 0 5px; letter-spacing: -.045em; }
.final-cta p { color: var(--muted); margin: 0; }
.final-actions { display: flex; flex-wrap: wrap; gap: 9px; min-width: fit-content; }

.site-footer { border-top: 1px solid var(--line); padding: 60px 0 24px; background: color-mix(in srgb, var(--bg-elevated) 75%, var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-brand p { color: var(--muted); max-width: 440px; font-size: 12px; margin-top: 18px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.footer-grid > div:not(:first-child) strong { margin-bottom: 7px; }
.footer-grid > div:not(:first-child) a, .footer-grid > div:not(:first-child) span { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 10px; }

.emergency-dialog { width: min(520px, calc(100% - 28px)); border: 1px solid rgba(255,255,255,.14); border-radius: 23px; padding: 0; color: #fff; background: #101b27; box-shadow: 0 50px 120px rgba(0,0,0,.6); }
.emergency-dialog::backdrop { background: rgba(0,8,14,.82); backdrop-filter: blur(9px); }
.dialog-top { display: flex; align-items: center; gap: 10px; padding: 18px 20px; background: linear-gradient(90deg, rgba(255,101,119,.20), transparent); border-bottom: 1px solid rgba(255,255,255,.1); }
.dialog-top .icon-button { margin-left: auto; }
.dialog-body { padding: 24px; }
.dialog-body > p:first-child { color: rgba(255,255,255,.72); margin: 0 0 18px; }
.emergency-number { display: grid; text-align: center; padding: 20px; border-radius: 18px; background: linear-gradient(145deg, rgba(255,101,119,.17), rgba(255,101,119,.05)); border: 1px solid rgba(255,101,119,.25); }
.emergency-number small, .emergency-number span { color: rgba(255,255,255,.62); font-size: 10px; }
.emergency-number strong { color: #ff8090; font-size: 64px; line-height: 1; letter-spacing: -.06em; margin: 7px 0; }
.dialog-actions { display: grid; gap: 9px; margin-top: 16px; }
.dialog-note { color: rgba(255,255,255,.46); font-size: 10px; margin: 16px 0 0; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%, 130%); opacity: 0; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; transition: transform .25s, opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .09s; }
.reveal.delay-2 { transition-delay: .18s; }

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: 650px; width: 100%; margin-inline: auto; }
  .scanner-card { transform: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .section-heading > p { max-width: 650px; }
  .analyzer-layout { grid-template-columns: 1fr; }
  .input-panel, .result-panel { min-height: auto; }
  .empty-state { min-height: 420px; }
  .situation-grid, .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-layout { grid-template-columns: 1fr; }
  .plan-aside { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 0; }
  .incident-layout { grid-template-columns: 1fr; }
  .privacy-card { grid-template-columns: 260px 1fr; gap: 30px; padding: 38px; }
  .final-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 24px, 1180px); --header-h: 70px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 37px; height: 37px; }
  .header-actions { gap: 6px; }
  .header-actions .button.small { width: 40px; padding: 0; }
  .header-actions .button.small span:last-child { display: none; }
  .hero { padding-block: 54px 72px; gap: 52px; }
  .hero h1 { font-size: clamp(42px, 14vw, 64px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 11px 15px; }
  .scanner-card { min-height: 480px; padding: 14px; border-radius: 22px; }
  .scanner-grid { grid-template-columns: 1fr; margin-inline: 4px; }
  .score-card { grid-column: auto; }
  .message-bubble { margin-inline: 4px; }
  .scanner-footer { left: 18px; right: 18px; }
  .section { padding-block: 78px; }
  .section-heading h2 { font-size: 36px; }
  .input-panel, .result-panel { padding: 18px; border-radius: 17px; }
  .panel-header { align-items: flex-start; }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .segmented button:last-child { grid-column: span 2; }
  .result-top { grid-template-columns: 100px 1fr; }
  .risk-ring { width: 94px; height: 94px; }
  .risk-ring strong { font-size: 28px; }
  .result-actions { display: grid; }
  .situation-grid, .contacts-grid { grid-template-columns: 1fr; }
  .situation-card { min-height: 160px; }
  .safety-plan { padding: 18px; }
  .plan-header { align-items: flex-start; }
  .contacts-toolbar { align-items: stretch; flex-direction: column; }
  .country-select { min-width: 0; width: 100%; }
  .verification-chip span { text-align: left; }
  .form-grid.two { grid-template-columns: 1fr; gap: 0; }
  .incident-form { padding: 18px; }
  .form-actions { display: grid; }
  .privacy-card { grid-template-columns: 1fr; padding: 28px 20px; }
  .privacy-visual { height: 220px; }
  .privacy-copy h2 { font-size: 36px; }
  .final-cta { margin-bottom: 78px; padding: 30px 22px; }
  .final-actions { display: grid; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero, .help-section, .contacts-toolbar, .incident-section, .privacy-card, .final-cta, .site-footer, .result-actions, .ambient, .noise { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 0; }
  .analyzer-layout { display: block; }
  .input-panel { display: none; }
  .result-panel { border: 0; box-shadow: none; }
}
