@font-face { font-family: Manrope; src: url('/fonts/font-0.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/font-2.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/font-3.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/font-4.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --deep: oklch(.231 .077 256.1);
  --navy: oklch(.327 .078 243.1);
  --ocean: oklch(.485 .089 239.7);
  --sky: oklch(.897 .068 204.1);
  --mist: oklch(.976 .007 233.6);
  --on-dark-muted: oklch(.88 .03 225);
  --muted: oklch(.42 .05 245);
  --line: #dbe7ee;
  --danger: #963a30;
  --shadow: 0 2px 4px rgb(11 31 55 / .04), 0 22px 54px -25px rgb(11 31 55 / .25);
  font-family: Manrope, system-ui, sans-serif;
  color: var(--deep);
  background: var(--mist);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
svg { flex: none; width: 1.25rem; height: 1.25rem; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 4px; }
.wrap { width: min(1056px, calc(100% - 64px)); margin-inline: auto; }

.site-header { background: var(--deep); color: white; border-bottom: 1px solid rgb(255 255 255 / .12); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; letter-spacing: -.025em; text-decoration: none; }
.back { display: flex; align-items: center; gap: .55rem; border: 1px solid rgb(255 255 255 / .24); border-radius: 100px; padding: .46rem .8rem .46rem 1rem; color: var(--on-dark-muted); font-size: .84rem; font-weight: 700; text-decoration: none; }
.back:hover { background: rgb(255 255 255 / .09); color: white; }
.back svg { width: 1rem; height: 1rem; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: var(--sky); }

.hero {
  background: radial-gradient(ellipse at 90% 28%, rgb(70 146 178 / .23), transparent 54%),
    linear-gradient(160deg, var(--deep), var(--navy) 60%, oklch(.38 .08 240));
  color: white;
}
.hero-inner { position: relative; padding: 55px 0 94px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--sky); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgb(185 236 244 / .12); }
h1 { max-width: 750px; margin-top: 18px; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.09; letter-spacing: -.055em; font-weight: 800; }
.hero-accent { display: block; color: var(--sky); }
.intro { max-width: 31rem; margin-top: 18px; color: var(--on-dark-muted); font-size: clamp(.98rem, 2vw, 1.1rem); line-height: 1.65; }
.hero-art { position: absolute; width: min(34%, 350px); height: auto; right: 0; top: 46%; transform: translateY(-50%); }

.workspace { position: relative; z-index: 2; margin-top: -55px; padding-bottom: 44px; }
.search-panel, .record { background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.search-panel { padding: 23px 26px 19px; }
label { display: block; margin-bottom: 9px; font-weight: 800; font-size: .89rem; }
.search-row { display: flex; gap: 12px; }
.input-wrap { display: flex; align-items: center; flex: 1; min-width: 0; position: relative; }
.input-wrap svg { position: absolute; left: 15px; color: var(--ocean); pointer-events: none; }
input { width: 100%; min-height: 54px; padding: 0 15px 0 46px; background: #f8fbfc; border: 1px solid #cbdde7; border-radius: 12px; color: var(--deep); font-weight: 700; }
input::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
input:focus { outline: 2px solid var(--ocean); outline-offset: 1px; background: white; }
input[aria-invalid="true"] { border-color: var(--danger); }
button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: .9rem; padding: 0 24px; border: 1px solid #a0d8e3; border-radius: 100px; background: var(--sky); color: var(--deep); box-shadow: 0 4px 9px rgb(22 62 86 / .1); cursor: pointer; font-weight: 800; }
button:hover:not(:disabled) { background: #c5eff4; }
button:disabled { cursor: wait; opacity: .65; }
.hint, .form-error { margin-top: 10px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.form-error { color: var(--danger); font-weight: 700; }

.results { margin-top: 33px; }
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.25; font-weight: 800; letter-spacing: -.035em; }
.registry { font-size: .68rem; color: var(--muted); font-weight: 800; letter-spacing: .09em; padding: 5px 10px; border: 1px solid #d3e2ea; border-radius: 100px; }
.empty { min-height: 98px; display: flex; align-items: center; gap: 16px; padding: 18px 24px; background: #f8fbfd; border: 1px dashed #b9d0de; border-radius: 17px; color: var(--muted); font-size: .88rem; }
.empty-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ocean); background: #e7f2f7; }
.empty-title { margin-bottom: 3px; font-size: .95rem; font-weight: 800; color: var(--deep); }
.record { overflow: hidden; }
.record-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 13px 18px; padding: 24px 26px 19px; }
.record-type { color: var(--ocean); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.record h3 { margin-top: 6px; font-size: clamp(1.3rem, 4vw, 1.9rem); line-height: 1.2; overflow-wrap: anywhere; }
.full-name { margin-top: 7px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.status, .risk-state { border-radius: 100px; background: #eaf2f7; color: var(--navy); font-size: .75rem; font-weight: 800; padding: 5px 10px; }
.status.active { color: #185640; background: #e0f2e8; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 26px 20px; gap: 0 22px; }
.details div { padding: 12px 0; border-top: 1px solid var(--line); }
.details dt { margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.details dd { font-weight: 700; overflow-wrap: anywhere; white-space: pre-line; }
.finance { border-top: 1px solid var(--line); padding: 20px 26px 24px; }
.finance-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.finance h4 { font-weight: 800; }
.finance > p { margin-top: 7px; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.finance-scroll { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; }
.finance table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.finance th, .finance td { padding: 9px 11px; text-align: right; white-space: nowrap; }
.finance th:first-child { text-align: left; }
.finance thead { background: #eaf2f7; }
.finance tbody tr + tr { border-top: 1px solid var(--line); }
.finance-summary { background: #f0f7fa; border-radius: 12px; padding: 13px 15px; margin-top: 14px; }
.finance-summary h5 { margin: 0; font-size: .89rem; }
.finance-summary ul { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; line-height: 1.55; }
.risks { padding: 20px 26px 24px; border-top: 1px solid var(--line); background: #f8fbfc; }
.risks h4 { font-weight: 800; }
.risks ul { display: grid; gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; }
.risks li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; }
.risk-state { flex: none; }
.risk-state.flag { background: #faece6; color: var(--danger); }

.site-footer { background: var(--deep); color: var(--on-dark-muted); }
.footer-inner { padding-block: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-inner p { font-size: .85rem; font-weight: 700; }
.footer-inner a { color: var(--sky); }
.footer-inner small { font-size: .75rem; line-height: 1.5; }

@media (max-width: 840px) { .hero-art { display: none; } }
@media (max-width: 570px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  .brand { font-size: .88rem; }
  .back { padding: .38rem .58rem; gap: .3rem; font-size: .72rem; }
  .hero-inner { padding: 38px 0 78px; }
  .workspace { margin-top: -44px; padding-bottom: 33px; }
  .search-panel { padding: 17px; border-radius: 17px; }
  .search-row { flex-direction: column; gap: 10px; }
  .results { margin-top: 27px; }
  .empty { padding: 14px; gap: 11px; }
  .empty-icon { width: 40px; height: 40px; }
  .record-heading, .details, .finance, .risks { padding-inline: 17px; }
  .details { grid-template-columns: minmax(0, 1fr); }
}
