:root {
  --navy: #172d3e;
  --navy-soft: #24465b;
  --gold: #d5a84f;
  --gold-light: #f4ead5;
  --cream: #f3f6f7;
  --paper: #ffffff;
  --green: #2f765e;
  --green-bg: #e7f3ed;
  --red: #a23d3d;
  --red-bg: #fff0db;
  --text-muted: #687782;
  --line: #dce3e7;
  --shadow: 0 22px 55px rgba(20, 45, 61, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background:
    radial-gradient(circle at 90% 5%, rgba(200, 165, 100, 0.18), transparent 27rem),
    linear-gradient(180deg, #fbf9f4 0%, var(--cream) 100%);
  font-family: "Manrope", Arial, sans-serif;
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(21, 34, 56, 0.1);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 24px;
}

.header-note { color: var(--text-muted); font-size: 13px; }

main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  padding: 76px 0 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.search-card {
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.search-row { display: flex; gap: 10px; }

input {
  min-width: 0;
  flex: 1;
  height: 56px;
  padding: 0 18px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #cec7ba;
  border-radius: 2px;
  font: 600 18px/1 "Manrope", sans-serif;
  letter-spacing: 0.04em;
  outline: none;
}

input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 165, 100, 0.16); }

button {
  height: 56px;
  padding: 0 25px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--navy);
  font: 700 14px/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

button:hover { background: var(--navy-soft); transform: translateY(-1px); }
button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.hint, .form-error { margin: 11px 0 0; font-size: 12px; }
.hint { color: var(--text-muted); }
.form-error { color: var(--red); font-weight: 600; }

.state-card, .empty-state, .result {
  margin-bottom: 48px;
  padding: 42px;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid var(--line);
}

.state-card { display: flex; gap: 14px; align-items: center; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--gold-light); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; color: var(--text-muted); }
.empty-state h2 { margin-bottom: 8px; color: var(--navy); font-family: Georgia, serif; font-weight: 400; font-size: 28px; }
.empty-state p { margin-bottom: 0; }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-size: 22px; }

.company-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 30px; }
.company-heading h2 { margin-bottom: 0; max-width: 760px; font: 400 clamp(28px, 4vw, 44px)/1.18 Georgia, serif; }
.status { padding: 8px 13px; white-space: nowrap; color: var(--green); background: var(--green-bg); border-radius: 30px; font-size: 12px; font-weight: 800; }
.status.is-risk { color: #a83f16; background: #fff0db; border: 1px solid #f2c48d; }

.risks { margin-bottom: 28px; padding: 24px; background: var(--red-bg); border-left: 3px solid var(--red); }
.risks h3 { margin-bottom: 14px; font-size: 16px; }
.risk-list { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-item { padding: 7px 10px; background: rgba(255,255,255,0.68); color: var(--red); font-size: 12px; font-weight: 700; }
.risk-item.is-clear { color: var(--green); background: var(--green-bg); }

.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-card { min-height: 126px; padding: 24px; display: flex; flex-direction: column; gap: 9px; background: var(--paper); }
.detail-card-wide { grid-column: span 2; }
.detail-label { color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.detail-card strong { font-size: 15px; line-height: 1.55; }
.detail-secondary { color: var(--text-muted); font-size: 12px; line-height: 1.5; }

footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid rgba(21, 34, 56, 0.1); color: var(--text-muted); }
footer p { margin-bottom: 7px; font-size: 13px; }
footer small { font-size: 10px; line-height: 1.5; }
footer a { color: var(--navy); font-weight: 700; }

[hidden] { display: none !important; }

@media (max-width: 800px) {
  .header-note { display: none; }
  .hero { padding-top: 48px; grid-template-columns: 1fr; gap: 30px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-card-wide { grid-column: span 1; }
  .company-heading { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 24px, 1160px); }
  .search-card, .state-card, .empty-state, .result { padding: 24px; }
  .search-row { flex-direction: column; }
  button { width: 100%; }
  h1 { font-size: 42px; }
}


/* Shared A-Meta service design system */
body { min-width: 320px; color: #17242d; background: radial-gradient(circle at 90% 0%, rgba(213,168,79,.12), transparent 28rem), #f3f6f7; -webkit-font-smoothing: antialiased; }
.site-header { width: min(1180px, calc(100% - 56px)); height: 92px; padding: 0; border-bottom: 0; }
.brand { color: var(--navy); font-weight: 400; letter-spacing: 0; }
.brand-mark { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--navy); font-family: "Manrope", Arial, sans-serif; font-size: 23px; font-weight: 700; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { letter-spacing: .09em; font-size: 17px; color: var(--navy); }
.brand-text small { margin-top: 4px; color: var(--text-muted); font-size: 10px; }
.back-link { color: var(--navy); text-underline-offset: 5px; font-size: 14px; font-weight: 600; }
main { width: min(1180px, calc(100% - 56px)); }
.hero { padding: 58px 0 50px; gap: 64px; }
h1 { color: var(--navy); font-family: "Manrope", Arial, sans-serif; font-size: clamp(42px, 7vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -.055em; }
.search-card, .state-card, .empty-state, .result { border: 1px solid rgba(23,45,62,.07); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
input, button { border-radius: 12px; }
input:focus { box-shadow: 0 0 0 4px rgba(213,168,79,.15); }
.empty-state h2, .company-heading h2 { color: var(--navy); font-family: "Manrope", Arial, sans-serif; font-weight: 700; letter-spacing: -.035em; }
.empty-icon { border: 0; border-radius: 50%; color: #fff; background: var(--navy); }
.risks { border-radius: 0 18px 18px 0; }
.risk-item { border-radius: 10px; }
.details-grid { gap: 14px; background: transparent; border: 0; }
.detail-card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fff, #f8fafb); }
footer { width: min(1180px, calc(100% - 56px)); border-top-color: rgba(23,45,62,.1); }
@media (max-width: 800px) { .back-link { display: none; } }
@media (max-width: 520px) { .site-header, main, footer { width: min(100% - 32px, 1180px); } }
.risk-details { margin-top: 38px; }
.section-headline { margin-bottom: 20px; }
.section-headline h3 { margin: 0; color: var(--navy); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.risk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.risk-card { min-height: 118px; padding: 22px; display: flex; flex-direction: column; gap: 9px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fff, #f8fafb); }
.risk-card > span { color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.risk-card strong { font-size: 16px; line-height: 1.45; }
.risk-card strong.is-clear { color: var(--green); }
.risk-card strong.has-risk { color: var(--red); }
.risk-card small { color: var(--text-muted); line-height: 1.45; }
@media (max-width: 800px) { .risk-grid { grid-template-columns: 1fr; } }
/* БухФинУчет brand */
.site-header { min-height: 118px; height: auto; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 17px; }
.brand-logo-wrap { width: 86px; height: 86px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.brand-logo { display: block; width: 86px; height: 86px; object-fit: contain; }
.brand-copy { display: grid; align-content: center; line-height: 1; }
.brand-kicker { margin-bottom: 5px; color: #195348; font-size: 10px; font-weight: 700; letter-spacing: .34em; }
.brand-name { color: #262825; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
.brand-name span { color: #195348; }
.brand-services { margin-top: 9px; color: #353936; font-size: 11px; letter-spacing: .01em; }
.brand-services b { margin: 0 5px; color: #195348; }
.risk-card:has(strong.has-risk) { background: #fff0db; border-color: #f2c48d; }
.risk-card strong.has-risk { color: #a83f16; }
@media (max-width: 650px) {
  .site-header { min-height: 100px; }
  .brand-logo-wrap, .brand-logo { width: 68px; height: 68px; }
  .brand-name { font-size: 27px; }
  .brand-kicker { font-size: 8px; letter-spacing: .26em; }
  .brand-services { display: none; }
}
/* Enlarged brand and blue visual layer */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(61, 142, 191, .20), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(37, 82, 121, .13), transparent 36rem),
    linear-gradient(135deg, #eef6fa 0%, #f4f7f8 48%, #f7f3e9 100%);
}
.site-header {
  width: min(1420px, calc(100% - 64px));
  min-height: 168px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(23,45,62,.12);
  border-radius: 0 0 28px 28px;
  background: linear-gradient(105deg, rgba(220,239,248,.78), rgba(255,255,255,.40) 48%, rgba(213,168,79,.08));
}
.brand { gap: 25px; }
.brand-logo-wrap { width: 138px; height: 138px; }
.brand-logo { width: 138px; height: 138px; transform: scale(1.13); }
.brand-kicker { margin-bottom: 8px; color: #175a67; font-size: 13px; letter-spacing: .36em; }
.brand-name { font-size: 50px; line-height: .95; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.brand-name span { color: #126f72; }
.brand-services { margin-top: 13px; font-size: 14px; }
.back-link { padding: 11px 16px; border-radius: 12px; background: rgba(255,255,255,.58); text-decoration: none; box-shadow: 0 8px 24px rgba(23,45,62,.06); }
main { width: min(1420px, calc(100% - 64px)); }
.hero { position: relative; padding: 70px 34px 62px; border-radius: 0 0 32px 32px; background: linear-gradient(115deg, rgba(218,237,248,.72), rgba(255,255,255,.16) 58%, rgba(37,82,121,.06)); }
.search-card { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(237,247,252,.96)); border-color: rgba(41,106,146,.15); }
.state-card, .empty-state, .result { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,247,251,.94)); }
@media (max-width: 800px) {
  .site-header, main { width: min(100% - 28px, 1420px); }
  .site-header { min-height: 132px; padding: 14px; }
  .brand-logo-wrap, .brand-logo { width: 100px; height: 100px; }
  .brand-name { font-size: 36px; }
  .brand-kicker { font-size: 10px; }
  .brand-services { font-size: 11px; }
  .hero { padding: 46px 22px 42px; }
}
@media (max-width: 520px) {
  .site-header { min-height: 106px; }
  .brand { gap: 12px; }
  .brand-logo-wrap, .brand-logo { width: 78px; height: 78px; }
  .brand-name { font-size: 28px; }
  .brand-kicker { font-size: 8px; letter-spacing: .22em; }
  .brand-services { display: none; }
}