@font-face {
  font-family: 'Manrope';
  src: url('/static/manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #172d2b;
  --muted: #657471;
  --paper: #f5f3ed;
  --white: #fff;
  --line: #d9ddd6;
  --green: #176b59;
  --mint: #d9eee4;
  --lime: #dcec9e;
  --dark: #173b34;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(245,243,237,.96); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 650; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--dark); color: var(--lime); font-family: Prata, Georgia, serif; font-size: 19px; }
.nav { display: flex; gap: 30px; font-size: 13px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--green); }
.hero { padding: 76px 0 68px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 22px; color: var(--green); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.13; }
h1 { margin-bottom: 25px; font-size: clamp(40px, 4.7vw, 62px); font-weight: 500; }
h1 em { color: var(--green); font-family: Prata, Georgia, serif; font-weight: 400; font-style: normal; }
h2 { font-size: clamp(28px, 3.4vw, 43px); font-weight: 500; }
h3 { letter-spacing: -.025em; }
.hero-lead { max-width: 600px; color: var(--muted); font-size: 17px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0; font-size: 12px; font-weight: 600; }
.trust-row span::before { content: '✓'; margin-right: 7px; color: var(--green); }
.text-link { color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link span { margin-left: 10px; }
.upload-card { position: relative; padding: 34px; border-radius: var(--radius); background: var(--white); box-shadow: 0 22px 70px rgba(23,45,43,.1); }
.upload-card::before { content: ''; position: absolute; z-index: -1; width: 190px; height: 190px; top: -60px; right: -60px; border-radius: 50%; background: var(--mint); }
.card-number { margin-bottom: 20px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.upload-card h2 { margin-bottom: 10px; font-size: 28px; }
.upload-card > p { color: var(--muted); font-size: 13px; }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 178px; margin: 25px 0 16px; padding: 20px; border: 1.5px dashed #a8b9b2; border-radius: 14px; background: #fafbf8; text-align: center; cursor: pointer; transition: .2s; }
.file-drop:hover, .file-drop:focus-within, .file-drop.drag-active { border-color: var(--green); background: #eaf6ed; }
.file-drop.drag-active { border-style: solid; box-shadow: inset 0 0 0 1px var(--green); }
.file-drop strong { max-width: 100%; overflow-wrap: anywhere; font-size: 14px; }
.file-drop > span:last-of-type { color: var(--muted); font-size: 12px; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 22px; }
.form-note { color: var(--muted); font-size: 10px; line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 51px; padding: 13px 22px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: 12px; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: #115342; }
.button-full { width: 100%; }
.button-dark { background: var(--dark); color: var(--white); }
.button-outline { border-color: #8ca198; background: transparent; color: var(--dark); }
.privacy-note { margin: 18px 0 0 !important; text-align: center; font-size: 10px !important; }
.privacy-note span { margin-right: 6px; color: var(--green); }
.processing-note { margin: 14px 0 0; color: var(--green); text-align: center; font-size: 12px; }
.upload-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #f7e4df; color: #8b3f37; font-size: 11px; }
.marker-note { margin: -5px 0 16px; color: var(--muted); font-size: 10px; }
.notice-section { padding-bottom: 15px; }
.notice { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border: 1px solid #d7d7bb; border-radius: 12px; background: #f1f0df; }
.notice p { margin: 0; font-size: 12px; }
.notice-icon { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #8b9277; border-radius: 50%; font-weight: 700; }
.section { padding: 90px 0; }
.section-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 50px; align-items: end; margin-bottom: 45px; }
.section-heading p { margin-bottom: 7px; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps article { padding: 28px 35px 10px 0; }
.steps article + article { padding-left: 35px; border-left: 1px solid var(--line); }
.steps article > span { color: var(--green); font-size: 11px; }
.steps h3 { margin: 20px 0 12px; font-size: 22px; }
.steps p { color: var(--muted); font-size: 13px; }
.specialist-section { padding: 72px 0; background: var(--mint); }
.specialist-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: center; }
.specialist-grid h2 { margin: 0; }
.specialist-grid > p { margin: 35px 0 0; color: #49665e; font-size: 14px; }
.contacts-section { background: #eeeee7; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { padding: 44px; border-radius: var(--radius); background: var(--white); }
.contact-card h2 { font-size: 35px; }
.contact-card > p:not(.eyebrow) { min-height: 68px; color: var(--muted); font-size: 13px; }
.lawyer-card { background: var(--lime); }
.lead-form { display: grid; gap: 15px; margin-top: 28px; }
.lead-form label:not(.consent) { display: grid; gap: 6px; font-size: 11px; font-weight: 700; }
.lead-form input:not([type='checkbox']), .lead-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #bdc9c2; border-radius: 8px; outline: none; background: rgba(255,255,255,.8); color: var(--ink); font-size: 13px; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,89,.1); }
.lead-form textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.consent input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--green); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-inner, .footer-inner div { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.status-page, .legal-page { padding: 80px 0 120px; }
.status-card { max-width: 760px; padding: 50px; border-radius: var(--radius); background: var(--white); }
.status-card h1 { font-size: 42px; }
.status-card > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 50px; color: var(--green); font-size: 12px; text-decoration: none; }
.legal-content { max-width: 800px; }
.legal-content h1 { font-size: 50px; }
.legal-content h2 { margin: 42px 0 14px; font-size: 24px; }
.legal-content p { color: #53645f; font-size: 14px; }
.legal-updated { margin-bottom: 45px; font-size: 11px !important; }
.legal-warning { padding: 20px; border-left: 3px solid #9c843e; background: #f1eed8; font-size: 13px; }
@media (max-width: 850px) {
  .hero-grid, .specialist-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero { padding-top: 50px; }
  .hero-copy { max-width: 670px; }
  .upload-card { max-width: 580px; }
  .section-heading { grid-template-columns: 1fr; gap: 5px; }
  .contact-card { padding: 30px; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 66px; }
  .nav { gap: 12px; font-size: 10px; }
  .nav a:first-child { display: none; }
  .brand { font-size: 14px; }
  .hero { padding: 38px 0 40px; }
  h1 { font-size: 39px; }
  .hero-lead { font-size: 14px; }
  .upload-card { padding: 24px; }
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article + article { padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 8px; }
  .specialist-grid { gap: 10px; }
  .specialist-grid > p { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 26px; }
  .contact-card h2 { font-size: 30px; }
  .contact-card > p:not(.eyebrow) { min-height: 0; }
  .footer-inner, .footer-inner div { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-inner div { gap: 8px; }
  .status-card { padding: 28px; }
  .status-card h1, .legal-content h1 { font-size: 35px; }
  .status-page, .legal-page { padding: 40px 0 70px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* Экран ручной проверки пакета */
.batch-page { padding: 48px 0 80px; }
.batch-container { width: min(1380px, calc(100% - 40px)); }
.batch-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.batch-topline h1 { margin: 0; font-size: 43px; }
.danger-link { padding: 8px 0; border: 0; background: transparent; color: #98534d; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.batch-progress, .batch-error, .review-warning { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 18px 22px; border-radius: 12px; font-size: 13px; }
.batch-progress { flex-direction: column; align-items: flex-start; gap: 2px; background: var(--mint); }
.batch-error { background: #f5dfda; }
.review-warning { background: #f0efd9; }
.review-warning > span { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid #929474; border-radius: 50%; font-weight: 700; }
.review-warning p { margin: 0; }
.batch-complete { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 18px 22px; border-radius: 12px; background: var(--mint); }
.batch-complete strong, .batch-complete span { display: block; }
.batch-complete span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.batch-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.document-list { position: sticky; top: 18px; padding: 18px; border-radius: 15px; background: var(--white); }
.document-list-heading { display: flex; justify-content: space-between; padding: 3px 5px 15px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.document-item { display: block; padding: 14px 12px; border-radius: 9px; text-decoration: none; }
.document-item.active { background: var(--mint); }
.document-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.document-status { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.status-error, .document-error { color: #a54d43; }
.document-error { margin: 0; padding: 0 12px 12px; font-size: 10px; }
.document-list .button { margin-top: 18px; padding: 10px; }
.add-documents-form { display: grid; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.add-documents-form label { font-size: 12px; font-weight: 700; }
.add-documents-form input { width: 100%; color: var(--muted); font-size: 10px; }
.add-documents-form input::file-selector-button { margin-right: 8px; padding: 8px 10px; border: 0; border-radius: 7px; background: var(--mint); color: var(--green); font: inherit; cursor: pointer; }
.add-documents-form > span { color: var(--muted); font-size: 9px; }
.add-documents-form .button { min-height: 40px; }
.retention-note { margin: 20px 5px 2px; color: var(--muted); font-size: 9px; }
.review-workspace { min-width: 0; }
.review-document-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 22px 26px; border-radius: 14px; background: var(--white); }
.review-document-header .eyebrow { margin-bottom: 8px; }
.review-document-header h2 { max-width: 560px; margin: 0; overflow-wrap: anywhere; font-size: 21px; }
.download-single { display: inline-block; margin: -5px 0 18px; color: var(--green); font-size: 12px; font-weight: 700; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comparison article { min-width: 0; overflow: hidden; border-radius: 14px; background: var(--white); }
.comparison h3 { margin: 0; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 12px; }
.comparison pre { height: 480px; margin: 0; padding: 20px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #384b46; font: 11px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.comparison article:last-child pre { background: #f5faf6; }
.edit-panel, .entities-panel, .merge-panel { margin-top: 18px; padding: 25px; border-radius: 14px; background: var(--white); }
.edit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.edit-heading .eyebrow { margin-bottom: 6px; }
.edit-heading h3 { margin-bottom: 20px; font-size: 19px; }
.edit-heading > span { color: var(--muted); font-size: 10px; }
.inline-edit-form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(130px, .5fr) auto; gap: 12px; align-items: end; }
.inline-edit-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.inline-edit-form input, .inline-edit-form select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bdc9c2; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 12px; }
.entity-table-wrap { overflow-x: auto; }
.entity-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.entity-table th { padding: 10px; color: var(--muted); text-align: left; font-size: 9px; text-transform: uppercase; }
.entity-table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.entity-table td:nth-child(2) { max-width: 330px; }
.entity-table code { color: var(--green); }
.kind-badge { display: inline-block; padding: 3px 6px; border-radius: 5px; background: var(--mint); font-size: 9px; }
.table-action { padding: 0; border: 0; background: none; color: var(--green); font-size: 10px; text-decoration: underline; cursor: pointer; }
.empty-state { color: #98534d; font-size: 12px; }
.merge-panel summary { color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.merge-panel > p { margin-top: 15px; color: var(--muted); font-size: 11px; }
.empty-review { padding: 60px; border-radius: 14px; background: var(--white); }
.empty-review h2 { font-size: 26px; }
.empty-review p { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .batch-layout { grid-template-columns: 1fr; }
  .document-list { position: static; }
  .inline-edit-form { grid-template-columns: 1fr 1fr; }
  .inline-edit-form .button { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .batch-container { width: calc(100% - 24px); }
  .batch-topline h1 { font-size: 32px; }
  .comparison { grid-template-columns: 1fr; }
  .comparison pre { height: 350px; }
  .review-document-header { align-items: flex-start; flex-direction: column; }
  .inline-edit-form { grid-template-columns: 1fr; }
  .inline-edit-form .button { grid-column: auto; }
  .edit-panel, .entities-panel, .merge-panel { padding: 19px; }
}
