/* chinaopen — стили сайта.
   Порядок: токены → основа → кнопки и формы → шапка и подвал → страницы → карточка компании →
   окна → тарифы, оплата, кабинет → тёмная тема → печать. Цвета только через переменные. */

:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9edf2;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5f6b7a;
  --faint: #656f7d;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --brand: #d23828;
  --brand-hover: #c73223;
  --brand-ink: #b42318;
  --brand-soft: #fef1ef;
  --brand-line: #f7c9c3;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --ok-line: #abefc6;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --warn-line: #fedf89;
  --bad: #b42318;
  --bad-soft: #fef3f2;
  --bad-line: #fecdca;
  --info: #175cd3;
  --info-soft: #eff8ff;
  --info-line: #b2ddff;
  --header-bg: rgba(255, 255, 255, .86);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 32px -16px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --focus: 0 0 0 3px rgba(210, 56, 40, .32);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom);
}
main { flex: 1 0 auto; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 72px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; letter-spacing: -.01em; }
p { margin: 0 0 12px; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg, video { max-width: 100%; height: auto; }
ul, ol { padding-left: 20px; }
li, dd { overflow-wrap: break-word; }
code, .mono { font-family: var(--mono); font-size: .92em; }
small { font-size: 13px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[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; }
.nowrap { white-space: nowrap; }
.muted, .lead, .facts-note, .recent-note { color: var(--muted); }
.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; max-width: 72ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--brand-ink); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.eyebrow > span:empty { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.page-head { margin: 0 0 32px; max-width: 820px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.section-title { font-size: 22px; margin: 40px 0 16px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--surface); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.button, .primary, .secondary, .outline-button, .button-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.button:hover, .primary:hover, .secondary:hover, .outline-button:hover, .button-quiet:hover { text-decoration: none; }
.button:active, .primary:active, .secondary:active, .outline-button:active { transform: translateY(1px); }
.primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), inset 0 -1px 0 rgba(0, 0, 0, .08); }
.primary:hover { background: var(--brand-hover); color: #fff; }
.secondary, .outline-button { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.secondary:hover, .outline-button:hover { background: var(--surface-2); color: var(--ink); }
.button-quiet { background: transparent; color: var(--ink-2); }
.button-quiet:hover { background: var(--surface-2); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--surface); }
.button-dark:hover { background: var(--ink-2); color: var(--surface); }
.button-wide { width: 100%; }
.button-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.text-button { background: none; border: 0; padding: 4px 2px; color: var(--brand-ink); font: 600 14px/1.3 var(--font); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.text-button:hover { text-decoration-color: currentColor; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; vertical-align: middle; transition: background-color .15s, color .15s; }
.icon-button:hover { background: var(--surface-2); color: var(--ink); }
button[disabled], .primary[disabled], .primary[aria-disabled="true"], .secondary[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.save-card.selected, .bookmark.selected, [aria-pressed="true"].secondary { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.back-link::before { content: "←"; }

/* ---------- Формы ---------- */
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input:not([type]), textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.check-line input { margin-top: 2px; }
.field-hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
legend { padding: 0 6px; font-weight: 650; }

/* ---------- Сообщения ---------- */
.data-notice, .notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--info-soft); border: 1px solid var(--info-line); color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.data-notice:empty { display: none; }
.notice-ok { background: var(--ok-soft); border-color: var(--ok-line); }
.notice-warn, .detail-warning { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink-2); padding: 12px 16px; border-radius: var(--radius-sm); }
.notice-bad, .error-banner { background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: 14px; }
.level-open { margin: 8px 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); border: 1px solid var(--warn-line); font-size: 14px; color: var(--ink-2); }
.level-open[data-risk] { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); font-weight: 600; }
#toast, #copy-status { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); }
#copy-status:empty { display: none; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.site-bar { position: relative; display: flex; align-items: center; gap: 20px; max-width: calc(var(--container) + 2 * var(--gutter)); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-word > span { color: var(--brand); }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #f0513f, #c82b1d); color: #fff; font-size: 20px; font-weight: 600; letter-spacing: 0; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.site-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.site-nav > a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: 15px; font-weight: 550; white-space: nowrap; text-decoration: none; transition: background-color .15s, color .15s; }
.site-nav > a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav > a.active, .site-nav > a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 650; }
.nav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.nav-count:empty, .nav-count[data-zero] { display: none; }
.nav-account-mobile { display: none !important; }
.site-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch { display: inline-flex; }
.lang-select { display: inline-flex; }
.lang-select select { width: auto; min-height: 38px; min-width: 72px; padding: 0 30px 0 12px; border-radius: 9px; border-color: var(--line); background-color: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.account-link { min-height: 38px; padding: 0 12px; font-size: 14px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: 650 14px var(--font); cursor: pointer; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-mark { width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: inset -4px -2px 0 0 var(--surface); flex: none; }
.account-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; position: relative; flex: none; }
.account-icon::after { content: ""; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.site-header.menu-open .menu-lines { background: transparent; }
.site-header.menu-open .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-nav > a { padding: 8px 9px; font-size: 14px; }
  .site-bar { gap: 12px; }
}
@media (max-width: 860px) {
  .menu-button { display: grid; }
  .account-link { display: none; }
  .nav-account-mobile { display: flex !important; }
  .js .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .js .site-header.menu-open .site-nav { display: flex; }
  .js .site-nav > a { min-height: 48px; padding: 12px; font-size: 16px; }
  /* Без JS меню остаётся строкой с прокруткой под логотипом. */
  html:not(.js) .site-bar { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
  html:not(.js) .menu-button { display: none; }
}
@media (max-width: 380px) {
  .brand { font-size: 19px; }
  .brand-icon { width: 30px; height: 30px; font-size: 18px; }
  .lang-select select { min-width: 64px; padding-right: 26px; }
}

/* ---------- Подвал ---------- */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 32px; }
.footer-brand p { margin-top: 14px; max-width: 46ch; color: var(--muted); font-size: 14px; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-col a { color: var(--ink-2); font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 32px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.footer-bottom span:last-child { margin-left: auto; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom span:last-child { margin-left: 0; }
}

/* ---------- Главная: первый экран ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(8px, 3vw, 32px) 0 8px; }
.hero::before { content: ""; position: absolute; top: -48px; left: 50%; width: 100vw; height: 560px; transform: translateX(-50%); z-index: -1; background: radial-gradient(48% 60% at 82% 18%, rgba(210, 56, 40, .11), transparent 72%), radial-gradient(40% 50% at 8% 6%, rgba(23, 92, 211, .07), transparent 72%); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); pointer-events: none; }
.hero-main { min-width: 0; }
.hero-visual { display: none; }
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
  .hero-visual { display: block; }
}
.sample-card { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.sample-card::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); transform: rotate(-3deg); }
.sample-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.sample-tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.sample-name { font-size: 20px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 4px; }
.sample-cn { color: var(--ink-2); font-size: 14px; margin: 0 0 4px; }
.sample-code { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.sample-risks { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; }
.sample-risks li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 550; background: var(--ok-soft); color: var(--ink); }
.sample-risks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; font-weight: 800; }
.sample-risks li[data-tone="warn"] { background: var(--warn-soft); }
.sample-risks li[data-tone="warn"]::before { content: "!"; background: var(--warn); }
.sample-docs { display: grid; gap: 6px; }
.sample-doc { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink); }
.sample-doc.primary-doc { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero-copy { max-width: 860px; margin-bottom: 24px; }
.hero h1 { margin-bottom: 16px; }
.hero-lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--muted); max-width: 66ch; margin-bottom: 28px; }
.searchbox { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); max-width: 860px; transition: border-color .15s, box-shadow .15s; }
.searchbox:focus-within { border-color: var(--brand); box-shadow: var(--shadow), var(--focus); }
.search-icon { flex: none; width: 20px; height: 20px; border: 2.5px solid var(--faint); border-radius: 50%; position: relative; font-size: 0; margin-right: 4px; }
.search-icon::after { content: ""; position: absolute; width: 8px; height: 2.5px; background: var(--faint); right: -6px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.searchbox input { flex: 1; min-width: 0; min-height: 48px; border: 0; padding: 0 4px; background: transparent; font-size: 17px; box-shadow: none; }
.searchbox input:focus { box-shadow: none; }
.searchbox .primary { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 11px; }
.trial-line { margin: 10px 0 0; max-width: 860px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.trial-line a { font-weight: 650; }
.hero-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 860px; }
.hero-examples a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 550; }
.hero-examples a:hover { border-color: var(--line-2); color: var(--ink); text-decoration: none; background: var(--surface-2); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 32px 0 0; max-width: 860px; }
.hero-proof li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.hero-proof strong { font-size: 18px; letter-spacing: -.02em; }
.hero-proof span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .searchbox { flex-direction: column; align-items: stretch; padding: 10px; gap: 10px; }
  .search-icon { display: none; }
  .searchbox input { min-height: 48px; padding: 0 8px; }
  .searchbox .primary { width: 100%; }
  .hero-proof { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
  .hero-proof li { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 999px; }
  .hero-proof strong { font-size: 14px; }
  .hero-proof span { font-size: 12px; }
}

/* ---------- Главная: разделы ---------- */
.home-section { margin-top: clamp(56px, 8vw, 96px); }
.home-section > h2 { margin-bottom: 8px; }
.home-section > .lead { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; }
.steps h3, .feature h3 { font-size: 17px; margin-bottom: 6px; }
.steps p, .feature p { color: var(--muted); font-size: 15px; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 11px; background: var(--surface-2); font-size: 20px; }
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #1b2330, #111827); color: #fff; box-shadow: var(--shadow); }
.teaser h2 { color: #fff; margin-bottom: 8px; }
.teaser p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 56ch; }
.teaser .actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.teaser .secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.teaser .secondary:hover { background: rgba(255, 255, 255, .08); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature { padding: 16px; }
  .feature p { font-size: 14px; }
  .teaser { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 861px) and (max-width: 1080px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Недавно проверенные ---------- */
.recent-section { margin-top: clamp(56px, 8vw, 96px); }
.recent-section h2 { margin-bottom: 6px; }
.recent-note { margin-bottom: 20px; }
.recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.recent-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.recent-list li:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.recent-list a { display: grid; gap: 2px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.recent-list a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.recent-title { display: flex; align-items: center; gap: 8px; font-weight: 650; overflow-wrap: anywhere; }
.recent-list a:focus-visible, .reg-section > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.recent-list .status-badge { min-height: 22px; padding: 0 8px; font-size: 12px; width: fit-content; }
.risk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.choice-cn { display: block; color: var(--muted); font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.recent-date { flex: none; color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .recent-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } .steps li { padding: 18px; } .steps li::before { margin-bottom: 10px; } }

/* ---------- Поиск и выдача ---------- */
.workspace { margin-top: 32px; }
.results-section[data-idle] { display: none; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.results-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.results-heading h2 { font-size: 22px; }
#results-count { color: var(--muted); font-size: 14px; }
#results { display: grid; gap: 12px; }
.empty, .next-hint { padding: clamp(24px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.empty h2, .next-hint h2 { font-size: 22px; margin-bottom: 10px; }
.empty p, .next-hint p { color: var(--muted); max-width: 70ch; }
.next-hint p + p { margin-top: 16px; }
.next-hint[data-next="trial"] { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }
.trial-code { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 16px; max-width: 520px; }
.trial-code label { display: grid; gap: 6px; flex: 1 1 220px; color: var(--ink); font-size: 14px; font-weight: 650; }
.trial-code input { width: 100%; }
.trial-code .data-notice { flex-basis: 100%; margin: 0; }
.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: clamp(32px, 6vw, 56px) 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty-state .empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); font-size: 26px; }
.empty-state p { color: var(--muted); max-width: 52ch; }
.choice-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.choice-button { width: 100%; justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 12px 16px; text-align: left; }
.choice-title { font-weight: 650; }
.registry-counts { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.registry-counts li { padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.company-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.card-top { display: flex; align-items: flex-start; gap: 14px; }
.card-top > div:nth-child(2), .lei-card .card-top > div { flex: 1; min-width: 0; }
.company-logo { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 22px; }
.company-name { display: inline; padding: 0; border: 0; background: none; color: var(--ink); font: 650 17px/1.35 var(--font); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
a.company-name:hover, button.company-name:hover { color: var(--brand-ink); }
.cn-name, .lei-meta, .lei-note { color: var(--muted); font-size: 14px; margin-top: 2px; }
.lei-note { display: inline-block; margin: 10px 0 4px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.lei-card p:last-child { margin-top: 14px; }
.match-reason { margin-top: 6px; color: var(--muted); font-size: 13px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.tag, .unknown { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 550; }
.card-link { margin-left: auto; border: 0; background: none; color: var(--brand-ink); font: 650 14px var(--font); cursor: pointer; }
.bookmark { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.pagination:has(#page-number:empty) { display: none; }
.registry-slot:empty { display: none; }
.web-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Значок «идёт проверка» и окно проверки ---------- */
.check-chip { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--surface); font: 650 15px var(--font); box-shadow: var(--shadow-lg); cursor: pointer; }
.check-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(210, 56, 40, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(210, 56, 40, .55); } 70% { box-shadow: 0 0 0 10px rgba(210, 56, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 56, 40, 0); } }
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(15, 23, 32, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.check-dialog { width: min(600px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 20px 22px 24px; }
.check-bar { display: flex; align-items: center; justify-content: flex-end; margin: 0 0 8px; }
#check-minimize { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
#check-minimize:hover { background: var(--surface-2); }
.wait-card { padding: 4px 2px; }
.wait-card h3 { font-size: 21px; margin-bottom: 14px; }
.wait-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.wait-progress { height: 8px; margin: 0 0 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.wait-progress > span { display: block; height: 100%; background: var(--brand); }
.wait-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 0; font-size-adjust: none; }
.wait-steps .wait-label { font-size: 15px; line-height: 1.35; }
.wait-steps li.done { color: var(--ink); background: var(--ok-soft); }
.wait-card p { color: var(--ink-2); font-size: 15px; }
.wait-field { margin: 6px 0; padding: 8px 12px; border-radius: 9px; background: var(--surface-2); font-size: 14px; overflow-wrap: anywhere; }
.badge-tap { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.badge-note { display: none; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.is-open > .badge-note { display: block; }
#registry-captcha, #pdf-dialog, #source-check, #pricing-dialog, #company-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; }
#registry-captcha form, #pdf-dialog form, #source-check form { display: grid; gap: 14px; }
#registry-captcha h2, #pdf-dialog h2, #source-check h2, #pricing-dialog h2 { font-size: 22px; }
#registry-captcha img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; image-rendering: auto; }
.click-captcha { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; }
.click-captcha img { display: block; width: 100%; }
.click-mark { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px #fff; pointer-events: none; }
@media (max-width: 700px) {
  .check-dialog { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
  .check-dialog::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--line-2); }
}

/* ---------- Страница компании и карточка реестра ---------- */
.company-lead { margin-bottom: 24px; }
.company-lead h1 { font-size: clamp(26px, 3.4vw, 38px); }
.reg-code { color: var(--muted); font-size: 14px; }
body:has(.registry-card) .company-lead, body:has(.wait-card) .company-lead { display: none; }
.registry-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; align-items: start; padding: 0; }
.registry-card > * { grid-column: 1 / -1; padding-left: clamp(18px, 3vw, 32px); padding-right: clamp(18px, 3vw, 32px); }
.card-identity { grid-column: 1; grid-row: 1; min-width: 0; padding-top: 16px; padding-bottom: 8px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card-docs { grid-column: 2; grid-row: 1; margin: 16px clamp(18px, 3vw, 32px) 0 0; padding-left: 16px; padding-right: 16px; }
.card-verdict { margin-top: 8px !important; }
.card-verdict p { font-size: 17px; line-height: 1.45; margin: 0; }
.card-verdict a { font-weight: 650; }
.registry-card:not(:has(.card-docs)) .card-identity { grid-column: 1 / -1; }
.card-corner { position: absolute; top: 16px; right: 16px; padding: 0 !important; z-index: 1; }
.origin-toggle { min-height: 34px; padding: 0 12px; font-size: 13px; }
.card-head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.level-registry { display: inline-flex; margin: 0 0 12px; }
.level-registry .badge-tap { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); font-size: 13px; font-weight: 650; }
.level-registry .badge-tap::before { content: "✓"; font-weight: 800; }
.level-registry { flex-direction: column; align-items: flex-start; }
.reg-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.03em; margin: 0 0 6px; }
.reg-title { overflow-wrap: anywhere; }
.reg-sub { color: var(--ink-2); font-size: 16px; margin: 0 0 10px; }
.reg-cn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; }
.reg-cjk { font-family: var(--font); overflow-wrap: anywhere; }
.reg-pinyin, .reg-en { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.reg-en-label { color: var(--faint); }
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 650; background: var(--surface-3); color: var(--ink-2); }
.status-ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.status-bad { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad-line); }
.status-muted { background: var(--surface-3); color: var(--ink-2); }
.card-docs { display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-docs h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-top: 4px; padding-bottom: 8px; }
.card-action { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; }
.card-action.selected, .card-action[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }
.card-dock { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 8px; margin: 12px 0 0; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.card-dock .primary { flex: 1; }
.card-dock [hidden] { display: none; }
@media (max-width: 600px) {
  .card-actions { flex-wrap: nowrap; }
  .card-action { width: 44px; padding: 0; }
  .card-action .action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
.card-docs .primary, .card-docs .secondary { width: 100%; min-height: 46px; font-size: 14px; }
.card-docs a[data-locked] { flex-wrap: wrap; row-gap: 2px; }
.pdf-lock { flex-basis: 100%; font-size: 12px; font-weight: 650; line-height: 1.3; }
.ru-pending { opacity: .7; cursor: default; font-weight: 550; }
.reg-report { color: var(--faint); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.card-head + .card-meta, .registry-card > .card-meta { margin: 0; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.reg-uscc { font-family: var(--mono); font-size: 14px; color: var(--ink-2); letter-spacing: .02em; }
.reg-checked { color: var(--muted); }
.card-meta .share-button, .card-meta .save-card { min-height: 38px; padding: 0 14px; font-size: 14px; }
.card-meta .origin-toggle { margin-left: auto; min-height: 38px; }
.show-original .origin-toggle { background: var(--surface-2); }
.card-saved { color: var(--faint); font-size: 13px; margin: 10px 0 0; }
.registry-card > p, .registry-card > ul, .registry-card > dl, .registry-card > h4, .registry-card > section, .registry-card > details, .registry-card > div:not(.card-corner) { margin-top: 20px; }
.registry-card > :last-child { margin-bottom: clamp(20px, 3vw, 32px); }
.card-block-title, .registry-card > h4 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.summary-row { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.summary-chip { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid transparent; color: var(--ink-2); font-size: 14px; font-weight: 550; line-height: 1.4; }
.summary-chip::before { content: "•"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1; }
.summary-chip[data-tone="ok"] { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ink); }
.summary-chip[data-tone="ok"]::before { content: "✓"; background: var(--ok); color: #fff; }
.summary-chip[data-tone="warn"] { background: var(--warn-soft); border-color: var(--warn-line); color: var(--ink); }
.summary-chip[data-tone="warn"]::before { content: "!"; background: var(--warn); color: #fff; }
.summary-chip[data-tone="bad"] { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.summary-chip[data-tone="bad"]::before { content: "×"; background: var(--bad); color: #fff; font-size: 15px; }
.summary-chip.summary-muted { background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 550; margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 16px; color: var(--ink); overflow-wrap: break-word; }
.reg-pair { display: inline; }
.reg-tr { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; text-decoration: none; }
.reg-tr:hover { text-decoration: underline dotted var(--faint); text-underline-offset: 4px; }
.reg-orig { display: none; }
.reg-pair.is-open .reg-orig, .show-original .reg-orig { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 400; }
.reg-note { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 5px; background: var(--surface-2); color: var(--faint); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.registry-card .registry-counts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.registry-card .registry-counts li { font-size: 14px; color: var(--ink-2); }
.reg-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.registry-card > .reg-section + .reg-section, .registry-card > details + details { margin-top: 8px; }
.reg-section > summary, .reg-more > summary, .card-history > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; cursor: pointer; font-weight: 650; list-style: none; }
.reg-section > summary::-webkit-details-marker, .reg-more > summary::-webkit-details-marker, .card-history > summary::-webkit-details-marker { display: none; }
.reg-section > summary::after, .card-history > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; }
.reg-section[open] > summary::after, .card-history[open] > summary::after { transform: rotate(-135deg); }
.reg-section > :not(summary) { margin-left: 16px; margin-right: 16px; }
.reg-section > :last-child { margin-bottom: 16px; }
.section-count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.card-block { margin-top: 28px !important; }
.card-block > .reg-section + .reg-section { margin-top: 6px; }
.reg-section-flat { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 52px; padding: 12px 16px; font-weight: 650; }
.reg-section-flat > * { margin: 0 !important; }
.section-name { overflow-wrap: anywhere; }
.section-note { flex-basis: 100%; color: var(--muted); font-size: 13px; font-weight: 450; }
.reg-section > summary { flex-wrap: wrap; }
.reg-section > summary .section-note { flex-basis: calc(100% - 40px); order: 3; }
.section-count[data-tone="bad"] { background: var(--bad); color: #fff; }
.card-history { border: 1px solid var(--line); border-radius: var(--radius); }
.card-history .reg-records { padding: 0 16px 16px; }
.card-history .history-row { list-style: none; }
.reg-records { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.reg-record { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.reg-doc { font-size: 15px; font-weight: 650; margin: 0 0 4px; overflow-wrap: anywhere; }
.reg-line { color: var(--muted); font-size: 14px; margin: 0; }
.reg-more { margin-top: 8px; }
.reg-more > summary { min-height: 36px; padding: 6px 0; color: var(--brand-ink); font-size: 14px; }
.reg-field { display: block; padding: 6px 0; border-top: 1px dashed var(--line); }
.reg-label { display: block; color: var(--muted); font-size: 12px; }
.reg-value { display: block; font-size: 15px; overflow-wrap: anywhere; }
.card-about { padding: 18px 20px !important; margin-left: clamp(18px, 3vw, 32px); margin-right: clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--surface-2); }
.card-about h4 { margin-bottom: 8px; }
.card-about p { color: var(--ink-2); font-size: 15px; }
.about-source, .fact-source, .sources-checked, .sources-pending { color: var(--muted); font-size: 13px; }
.sources-pending { padding: 10px 14px !important; margin-left: clamp(18px, 3vw, 32px); margin-right: clamp(18px, 3vw, 32px); border-radius: var(--radius-sm); background: var(--info-soft); }
.card-facts .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.discrepancy { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); border: 1px solid var(--warn-line); font-size: 14px; }
.source-checks { display: grid; gap: 10px; padding: 18px !important; margin-left: clamp(18px, 3vw, 32px); margin-right: clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--surface-2); }
.source-checks .card-block-title { margin: 0; }
.source-checks .data-notice { margin: 0; }
.source-check-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.source-check-status { color: var(--muted); font-size: 14px; }
.card-history .reg-records { padding-bottom: 16px; }
.card-history .history-row { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.preview-card { display: grid; gap: 12px; }
.registry-upload { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.show-original .reg-tr { text-decoration-style: solid; }
@media (max-width: 860px) {
  body:has(.registry-card) main { padding-top: 8px; }
  .registry-card { display: flex; flex-direction: column; }
  .registry-card > * { order: 6; }
  .card-identity { order: 1; padding-top: 8px; }
  .card-verdict { order: 2; }
  .registry-card > [data-block="summary"] { order: 3; margin-top: 8px !important; }
  .card-docs { order: 4; width: auto; margin: 8px clamp(18px, 3vw, 32px) 0; }
  .reg-name { padding-right: 0; font-size: 22px; }
  .level-registry { margin-bottom: 6px; }
  .card-badges { margin-top: 8px; }
  .card-corner { position: static; display: flex; justify-content: flex-end; padding: 14px clamp(18px, 3vw, 32px) 0 !important; background: var(--surface-2); }
  .facts, .card-facts .facts { grid-template-columns: 1fr; }
  .card-meta .origin-toggle { margin-left: 0; }
}

/* ---------- Сравнение ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 14px; }
.compare-table tbody th { width: 180px; color: var(--muted); font-weight: 600; background: var(--surface); position: sticky; left: 0; }
.compare-table tr:last-child > * { border-bottom: 0; }
.cmp-differs { background: var(--warn-soft) !important; }
.cmp-risk { background: var(--bad-soft) !important; color: var(--bad); font-weight: 600; }
.cmp-missing { color: var(--faint); }
.compare-pick { margin-bottom: 16px; }
.compare-pick fieldset, .compare-pick { display: grid; gap: 8px; }
.compare-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 550; cursor: pointer; }
.compare-option:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
.compare-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- О данных ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.source-section { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.source-section h2 { font-size: 19px; margin-bottom: 10px; }
.source-section p { color: var(--muted); font-size: 15px; }
#guide-content { display: grid; gap: 10px; counter-reset: guide; }
.guide-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: guide; }
.guide-item::before { content: counter(guide); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; font-size: 14px; }
.guide-item h3 { font-size: 16px; }
.guide-item p { color: var(--muted); font-size: 15px; margin: 0; }
.checklist { display: grid; gap: 8px; list-style: none; padding: 0; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Избранное ---------- */
#saved-results { display: grid; gap: 10px; }
.saved-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); }
.saved-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; }
.saved-check { display: flex; align-items: center; min-height: 44px; }
.saved-body { min-width: 0; }
.saved-body .company-name, .saved-body .choice-cn { display: block; white-space: normal; overflow-wrap: break-word; }
.saved-card .save-card { grid-column: 1 / -1; justify-self: start; max-width: 100%; min-height: 38px; padding: 0 14px; font-size: 14px; }
.saved-compare { margin: 0 0 12px; }

/* ---------- Тарифы ---------- */
.pricing-wrap .page-head { margin-left: auto; margin-right: auto; text-align: center; }
.pricing-wrap .page-head .lead { margin-left: auto; margin-right: auto; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.plan h2 { font-size: 18px; letter-spacing: -.01em; }
.plan-sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; min-height: 2.8em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; font-size: 40px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.plan-price small { font-size: 15px; font-weight: 550; letter-spacing: 0; color: var(--muted); }
.plan-per { color: var(--muted); font-size: 13px; margin: 0 0 18px; min-height: 1.4em; }
.plan ul { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { position: relative; padding-left: 26px; word-break: keep-all; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .primary, .plan .secondary { width: 100%; margin-top: auto; }
.plan.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: 22px; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pricing-note { max-width: 760px; margin: 20px auto 0; color: var(--muted); font-size: 14px; text-align: center; }
#pricing-once { padding: 0; border: 0; background: none; color: var(--brand-ink); font: 600 15px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.once-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 0; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.once-card p { margin: 0; color: var(--muted); }
.once-card strong { color: var(--ink); }
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.pay-methods li { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.compare-plans-scroll { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-plans { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: transparent; font-size: 15px; }
.compare-plans th, .compare-plans td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare-plans tr:last-child > * { border-bottom: 0; }
.compare-plans td { text-align: center; }
.compare-plans thead th { background: var(--surface-2); text-align: center; font-size: 14px; }
.compare-plans thead th:first-child, .compare-plans tbody th { position: sticky; left: 0; z-index: 1; min-width: 168px; background: var(--surface); text-align: left; font-weight: 650; }
.compare-plans thead th:first-child { z-index: 2; background: var(--surface-2); }
.compare-plans thead th:last-child, .compare-plans td:last-child { background: var(--brand-soft); }
.compare-plans thead th:last-child { color: var(--brand-ink); }
.compare-plans .yes { font-size: 0; line-height: 0; }
.compare-plans .yes::after { content: "✓"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 800; line-height: 1; }
.compare-plans .no { color: var(--faint); }
.pricing-wrap .home-section > h2 { text-align: center; margin-bottom: 20px; }
.pricing-wrap .faq { max-width: none; }
.pricing-wrap .faq details { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
#pricing-dialog { width: min(520px, calc(100vw - 32px)); }
#pricing-form { display: grid; gap: 14px; }
#turnstile-slot { min-height: 0; }
#turnstile-slot:not(:empty) { min-height: 65px; }
#pricing-status, #checkout-status { color: var(--ink-2); font-size: 14px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } }
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .compare-plans th, .compare-plans td { padding: 14px 12px; }
}

/* ---------- Оформление, кабинет, результат оплаты ---------- */
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.panel { padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 16px; }
.account-grid > .panel, .checkout > .panel { margin-top: 0; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.order-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.order-line:last-of-type { border-bottom: 0; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 18px; font-weight: 750; }
.plan-picker { display: grid; gap: 8px; }
.plan-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; color: var(--ink); cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.plan-option .plan-option-price { margin-left: auto; font-weight: 750; }
.plan-option small { display: block; font-weight: 400; }
.secure-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.secure-note::before { content: ""; flex: none; width: 12px; height: 10px; margin-top: 5px; border: 2px solid var(--ok); border-radius: 2px; box-shadow: 0 -5px 0 -2px var(--surface), 0 -5px 0 0 var(--ok); }
.status-card { display: grid; gap: 14px; justify-items: start; }
.status-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 26px; font-weight: 800; }
.status-icon.ok { background: var(--ok-soft); color: var(--ok); }
.status-icon.wait { background: var(--info-soft); color: var(--info); }
.status-icon.bad { background: var(--bad-soft); color: var(--bad); }
.access-code { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface-2); font: 700 20px/1 var(--mono); letter-spacing: .08em; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; }
@media (max-width: 860px) {
  .checkout, .account-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
}

/* ---------- Юридические страницы и 404 ---------- */
.doc { max-width: 820px; margin: 0 auto; }
.doc-body { padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.doc-body h2 { font-size: 20px; margin: 28px 0 10px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.doc-body ol, .doc-body ul { display: grid; gap: 6px; margin: 0 0 12px; }
.doc-meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.doc-toc a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.doc-toc a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.not-found { display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 8vw, 96px) 0; text-align: center; }
.not-found .big { font-size: clamp(64px, 12vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--surface-3); -webkit-text-stroke: 2px var(--line-2); }
.not-found p { color: var(--muted); max-width: 46ch; }
.not-found .searchbox { width: min(560px, 100%); text-align: left; }

/* ---------- Локальный сервер: досье, сбор GLEIF, подробная карточка ---------- */
.dossier-empty, .detail-section, .buyer-block { margin-top: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dossier-grid, .dossier-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dossier-form, .item-form { display: grid; gap: 12px; }
.file-field { display: grid; gap: 6px; }
.detail-title { font-size: 24px; }
.detail-cn { color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.state-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gaps { color: var(--muted); }
.alias-card { padding: 14px 16px; background: var(--surface-2); border-radius: var(--radius); }
.source-link { font-weight: 600; }
.badge { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.wide { grid-column: 1 / -1; }
.run-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-wrap table, .pricing-requests { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.admin-wrap th, .admin-wrap td, .pricing-requests td, .pricing-requests th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-wrap section { margin-top: 32px; }
.admin-wrap form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.admin-wrap form label { min-width: 160px; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Тёмная тема ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c1117;
    --surface: #131a22;
    --surface-2: #1a232d;
    --surface-3: #243040;
    --ink: #e8edf3;
    --ink-2: #c4ccd6;
    --muted: #93a0ae;
    --faint: #7e8c9b;
    --line: #253140;
    --line-2: #34414f;
    --brand: #c44738;
    --brand-hover: #b84234;
    --brand-ink: #ff8a7c;
    --brand-soft: rgba(196, 71, 56, .14);
    --brand-line: rgba(196, 71, 56, .45);
    --ok: #47cd89;
    --ok-soft: rgba(71, 205, 137, .12);
    --ok-line: rgba(71, 205, 137, .38);
    --warn: #fdb022;
    --warn-soft: rgba(253, 176, 34, .12);
    --warn-line: rgba(253, 176, 34, .38);
    --bad: #ff8577;
    --bad-soft: rgba(240, 68, 56, .14);
    --bad-line: rgba(240, 68, 56, .42);
    --info: #84caff;
    --info-soft: rgba(46, 144, 250, .12);
    --info-line: rgba(46, 144, 250, .36);
    --header-bg: rgba(19, 26, 34, .82);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
  }
  .teaser { background: linear-gradient(135deg, #1d2733, #121a23); border: 1px solid var(--line); }
  .hero::before { opacity: .7; }
  .summary-chip[data-tone="ok"]::before, .summary-chip[data-tone="warn"]::before, .summary-chip[data-tone="bad"]::before { color: #0c1117; }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1117;
  --surface: #131a22;
  --surface-2: #1a232d;
  --surface-3: #243040;
  --ink: #e8edf3;
  --ink-2: #c4ccd6;
  --muted: #93a0ae;
  --faint: #7e8c9b;
  --line: #253140;
  --line-2: #34414f;
  --brand: #c44738;
  --brand-hover: #b84234;
  --brand-ink: #ff8a7c;
  --brand-soft: rgba(196, 71, 56, .14);
  --brand-line: rgba(196, 71, 56, .45);
  --ok: #47cd89;
  --ok-soft: rgba(71, 205, 137, .12);
  --ok-line: rgba(71, 205, 137, .38);
  --warn: #fdb022;
  --warn-soft: rgba(253, 176, 34, .12);
  --warn-line: rgba(253, 176, 34, .38);
  --bad: #ff8577;
  --bad-soft: rgba(240, 68, 56, .14);
  --bad-line: rgba(240, 68, 56, .42);
  --info: #84caff;
  --info-soft: rgba(46, 144, 250, .12);
  --info-line: rgba(46, 144, 250, .36);
  --header-bg: rgba(19, 26, 34, .82);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .teaser { background: linear-gradient(135deg, #1d2733, #121a23); border: 1px solid var(--line); }
html[data-theme="dark"] .hero::before { opacity: .7; }
html[data-theme="dark"] .summary-chip[data-tone="ok"]::before, html[data-theme="dark"] .summary-chip[data-tone="warn"]::before, html[data-theme="dark"] .summary-chip[data-tone="bad"]::before { color: #0c1117; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9edf2;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5f6b7a;
  --faint: #656f7d;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --brand: #d23828;
  --brand-hover: #c73223;
  --brand-ink: #b42318;
  --brand-soft: #fef1ef;
  --brand-line: #f7c9c3;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --ok-line: #abefc6;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --warn-line: #fedf89;
  --bad: #b42318;
  --bad-soft: #fef3f2;
  --bad-line: #fecdca;
  --info: #175cd3;
  --info-soft: #eff8ff;
  --info-line: #b2ddff;
  --header-bg: rgba(255, 255, 255, .86);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 32px -16px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
}
html[data-theme="light"] .teaser { background: linear-gradient(135deg, #1b2330, #111827); border: 0; }
html[data-theme="light"] .hero::before { opacity: 1; }

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .check-chip, .card-corner, .card-meta button, .card-docs, .source-check-buttons, .home-section, .recent-section, #toast, #copy-status, .back-link, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding: 0; max-width: none; }
  .company-card, .reg-section, .reg-record { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .reg-section:not([open]) > :not(summary) { display: block; }
  a { color: #000; }
}
