:root {
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); line-height: 1.6; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { background: var(--primary); color: #fff; font-weight: 700; padding: 8px 10px; border-radius: 4px; font-size: 14px; }
.logo-text { display: flex; flex-direction: column; font-size: 14px; }
.logo-text span { color: var(--text-muted); font-size: 12px; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--primary); }

.hero { background: #0f172a; color: #fff; padding: 72px 0; }
.hero h1 { font-size: 32px; max-width: 720px; margin-bottom: 16px; line-height: 1.25; }
.hero p { color: #cbd5e1; max-width: 640px; margin-bottom: 32px; font-size: 16px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.section { padding: 64px 0; }
.bg-light { background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: 24px; margin-bottom: 24px; }
.section-desc { color: var(--text-muted); margin-top: -16px; margin-bottom: 24px; font-size: 14px; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn { background: var(--bg-light); border: 1px solid var(--border); padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 6px; padding: 20px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.card .meta { font-size: 12px; color: var(--primary); font-weight: 500; }

.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); padding: 16px 20px; border-radius: 6px; }
.doc-item strong { display: block; font-size: 15px; }
.doc-item span { font-size: 13px; color: var(--text-muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-light); font-weight: 600; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge.ok { background: #dcfce7; color: #166534; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contacts-grid p { margin-bottom: 8px; font-size: 14px; }
.form { display: flex; flex-direction: column; gap: 12px; background: #fff; padding: 24px; border: 1px solid var(--border); border-radius: 6px; }
.form input, .form textarea { padding: 10px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 14px; }
.form-status { font-size: 13px; color: #166534; }

.footer { padding: 32px 0; font-size: 13px; color: var(--text-muted); text-align: center; }

@media (max-width: 768px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
}
/* Дополнение для модального окна B2B */
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-content { background: #fff; border-radius: 6px; width: 100%; max-width: 560px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.form-plain { display: flex; flex-direction: column; gap: 12px; }
.form-plain input { padding: 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.modal-hint { font-size: 13px; color: var(--text-muted); }
.error-text { font-size: 13px; color: #dc2626; }

.lk-meta { background: var(--bg-light); padding: 12px; border-radius: 4px; border: 1px solid var(--border); margin-bottom: 16px; display: flex; flex-direction: column; font-size: 14px; }
.lk-meta span { color: var(--text-muted); font-size: 12px; }
.lk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-box { border: 1px solid var(--border); padding: 12px; border-radius: 4px; }
.stat-box span { display: block; font-size: 12px; color: var(--text-muted); }
.stat-box strong { font-size: 18px; color: var(--primary); }
.data-table.small th, .data-table.small td { padding: 8px 10px; font-size: 13px; }
.lk-actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sync-note { font-size: 12px; color: #166534; }
