:root {
  color-scheme: dark;
  --bg: #050c13;
  --panel: rgba(10, 30, 43, .76);
  --panel-solid: #0a1a25;
  --cyan: #35cfff;
  --cyan-soft: rgba(53, 207, 255, .08);
  --line: rgba(53, 207, 255, .20);
  --line-strong: rgba(53, 207, 255, .50);
  --text: #f4f9ff;
  --copy: #c5d5e5;
  --muted: #96adbf;
  --green: #64e6a5;
  --amber: #ffc664;
  --red: #ff8585;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--text); font: 500 15px/1.55 Manrope, Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; }
.ambient-one { width: 560px; height: 560px; top: 40px; right: -280px; background: radial-gradient(circle, rgba(53,207,255,.09), transparent 68%); }
.ambient-two { width: 440px; height: 440px; bottom: -160px; left: -280px; background: radial-gradient(circle, rgba(53,207,255,.05), transparent 70%); }

.site-header { height: 82px; border-bottom: 1px solid rgba(53,207,255,.10); background: rgba(5,12,19,.78); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 13px/1 Unbounded, sans-serif; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--cyan); }
.header-meta { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.intro { padding: 70px 0 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.eyebrow, .section-index { margin: 0 0 16px; color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 22px; height: 1px; margin: 0 9px 3px 0; background: var(--cyan); opacity: .65; }
h1, h2, h3 { margin: 0; font-family: Unbounded, Manrope, sans-serif; font-weight: 600; letter-spacing: -.04em; }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.03; }
h1 em { color: var(--cyan); font-style: normal; }
.intro-copy { width: min(430px, 100%); margin: 0 0 6px; color: var(--copy); font-size: 16px; line-height: 1.75; }

.search-shell { padding: 32px 38px 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(13,35,49,.90), rgba(7,20,29,.78)); box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.search-head, .result-header, .panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-index { margin-bottom: 7px; }
.search-head h2 { font-size: clamp(22px, 3vw, 32px); }
.source-label { color: var(--muted); font-size: 10px; }
.search-form { margin-top: 28px; }
.search-form > label { display: block; margin: 0 0 8px 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 64px; padding: 0 76px 0 20px; border: 1px solid rgba(53,207,255,.25); border-radius: 15px; outline: none; background: rgba(5,12,19,.72); color: var(--text); font-size: 21px; font-weight: 800; letter-spacing: .04em; transition: .2s ease; }
.input-wrap input::placeholder { color: rgba(150,173,191,.52); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.input-wrap input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53,207,255,.08); }
.counter { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: var(--muted); font-size: 11px; }
.counter b { color: var(--cyan); }
.primary-button { min-width: 232px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; border: 1px solid var(--cyan); border-radius: 15px; background: var(--cyan); color: #021018; font-size: 12px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(53,207,255,.16); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-arrow { font-size: 21px; }
.form-foot { display: flex; justify-content: space-between; gap: 20px; margin: 9px 4px 0; color: var(--muted); font-size: 9px; }
.message { margin-top: 20px; padding: 13px 15px; border: 1px solid rgba(255,133,133,.35); border-radius: 12px; background: rgba(255,133,133,.06); color: #ffd0d0; font-size: 12px; }

.loading-state, .empty-state { min-height: 170px; margin-top: 18px; padding: 34px 38px; display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid rgba(53,207,255,.11); border-radius: 18px; background: rgba(53,207,255,.025); }
.loader-mark, .empty-icon { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--cyan); font: 600 16px/1 Unbounded, sans-serif; }
.loader-mark { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 28px rgba(53,207,255,.28); transform: scale(.96); } }
.loading-state strong, .loading-state span { display: block; }
.loading-state span, .empty-state p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.empty-state { color: var(--copy); }
.empty-state h3 { font-size: 17px; }
.empty-state p { max-width: 590px; }

.results { margin-top: 22px; }
.result-header { padding: 30px 34px; align-items: center; border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: linear-gradient(145deg, rgba(13,35,49,.90), rgba(7,20,29,.78)); }
.company-heading { min-width: 0; display: flex; align-items: center; gap: 20px; }
.company-monogram { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--cyan-soft); color: var(--cyan); font: 600 20px/1 Unbounded, sans-serif; }
.status-line { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.status-badge { padding: 4px 8px; border: 1px solid rgba(100,230,165,.32); border-radius: 7px; background: rgba(100,230,165,.07); color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-badge.alert { border-color: rgba(255,133,133,.34); background: rgba(255,133,133,.07); color: var(--red); }
.updated-at { color: var(--muted); font-size: 9px; }
.company-heading h2 { overflow-wrap: anywhere; font-size: clamp(21px, 3vw, 31px); }
.full-name { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.outline-button { flex: 0 0 auto; padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--cyan-soft); color: var(--cyan); font-size: 10px; font-weight: 800; }
.requisites { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: rgba(8,24,35,.78); }
.requisite { min-width: 0; padding: 18px 22px; border-right: 1px solid rgba(150,173,191,.12); }
.requisite:last-child { border-right: 0; }
.requisite span, .requisite strong { display: block; }
.requisite span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.requisite strong { overflow: hidden; margin-top: 5px; color: var(--copy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.panel { min-width: 0; padding: 26px 28px; border: 1px solid rgba(53,207,255,.15); border-radius: 16px; background: rgba(10,30,43,.55); }
.panel-head { align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(150,173,191,.12); }
.panel h3 { font-size: 17px; }
.risk-summary { padding: 6px 9px; border-radius: 8px; color: var(--muted); background: rgba(150,173,191,.08); font-size: 9px; font-weight: 800; }
.risk-summary.good { color: var(--green); background: rgba(100,230,165,.08); }
.risk-summary.bad { color: var(--red); background: rgba(255,133,133,.08); }
.risk-list { display: grid; gap: 9px; padding-top: 18px; }
.risk-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; background: rgba(5,12,19,.42); color: var(--copy); font-size: 11px; }
.risk-mark { flex: 0 0 auto; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: rgba(100,230,165,.08); font-weight: 800; }
.risk-item.flagged .risk-mark { color: var(--red); background: rgba(255,133,133,.10); }
.risk-item.flagged { color: #ffd4d4; }
.risk-label { display: flex; align-items: center; gap: 10px; }
.risk-value { color: var(--muted); font-size: 9px; text-align: right; }
.detail-list { margin: 0; padding-top: 9px; }
.detail-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(150,173,191,.09); }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); font-size: 10px; }
.detail-row dd { margin: 0; color: var(--copy); font-size: 11px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.people-list { display: grid; gap: 10px; padding-top: 16px; }
.person { padding: 13px 14px; border-radius: 11px; background: rgba(5,12,19,.42); }
.person strong, .person span { display: block; }
.person strong { color: var(--copy); font-size: 11px; }
.person span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.person-flags { margin-top: 7px; color: var(--red); font-size: 8px; font-weight: 800; }
.empty-value { padding: 20px 0 4px; color: var(--muted); font-size: 10px; }
.contacts-list { display: grid; gap: 9px; padding-top: 16px; }
.contact { display: flex; gap: 12px; color: var(--copy); font-size: 11px; overflow-wrap: anywhere; }
.contact b { flex: 0 0 54px; color: var(--muted); font-size: 9px; }
.contact a { color: var(--cyan); }
.contact-note { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid rgba(150,173,191,.10); color: var(--muted); font-size: 8px; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px 0 44px; color: var(--muted); font-size: 9px; }
footer p { margin: 0; }
footer a { color: var(--cyan); }

@media (max-width: 820px) {
  .intro { display: block; }
  .intro-copy { margin-top: 24px; }
  .requisites { grid-template-columns: repeat(2, 1fr); }
  .requisite:nth-child(2) { border-right: 0; }
  .requisite:nth-child(-n+2) { border-bottom: 1px solid rgba(150,173,191,.12); }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { height: 68px; }
  .brand { font-size: 11px; }
  .header-meta { display: none; }
  .intro { padding: 48px 0 36px; }
  h1 { font-size: 37px; }
  .search-shell { padding: 24px 16px 20px; }
  .search-head { display: block; }
  .source-label { display: block; margin-top: 8px; }
  .search-row { grid-template-columns: 1fr; }
  .primary-button { width: 100%; min-width: 0; }
  .form-foot { display: block; }
  .form-foot span { display: block; }
  .form-foot span + span { margin-top: 3px; }
  .empty-state, .loading-state { padding: 26px 20px; align-items: flex-start; justify-content: flex-start; }
  .result-header { align-items: flex-start; padding: 22px 18px; }
  .company-heading { align-items: flex-start; }
  .company-monogram { width: 48px; height: 48px; border-radius: 14px; font-size: 15px; }
  .outline-button { font-size: 0; padding: 9px; }
  .outline-button::after { content: '↺'; font-size: 18px; }
  .requisite { padding: 15px; }
  .panel { padding: 22px 18px; }
  .detail-row { grid-template-columns: 112px 1fr; gap: 12px; }
  footer { display: block; }
  footer p + p { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
