@page {
  size: A4 portrait;
  margin: 0;
}

:root {
  --page-pad: 12mm 14mm 11mm;
  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-alt: #eef2f6;
  --ink: #141c24;
  --muted: #4e5d6c;
  --primary: #1b3b5a;
  --accent: #b87333;
  --line: #d5dce3;
  --line-strong: #9fb0c2;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html, body {
  background: #dde2e7;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 9.5pt;
  line-height: 1.38;
  counter-reset: page;
}

@media print {
  html, body {
    background: #ffffff;
  }
}

.page {
  width: 210mm;
  height: 297mm;
  padding: var(--page-pad);
  margin: 8mm auto;
  background: var(--bg);
  box-shadow: 0 4mm 14mm rgba(20, 28, 36, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
  counter-increment: page;
}

.page:last-child {
  page-break-after: auto;
  break-after: auto;
}

@media print {
  .page {
    margin: 0;
    box-shadow: none;
  }
}

[data-page-num]::after {
  content: counter(page);
}

/* ШАПКА ДОКУМЕНТА */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8mm;
  padding-bottom: 3.5mm;
  border-bottom: 0.6mm solid var(--primary);
}

.doc-header-compact {
  align-items: center;
  padding-bottom: 2.5mm;
}

.brand-block {
  display: flex;
  align-items: flex-start;
  gap: 3.5mm;
  max-width: 118mm;
}

.brand-mark {
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 9pt;
  letter-spacing: 0.08em;
  padding: 2.2mm 2.8mm;
  border-left: 1.2mm solid var(--accent);
  line-height: 1;
  margin-top: 0.5mm;
}

.company-name {
  font-size: 11pt;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.company-cn {
  font-size: 8pt;
  color: var(--muted);
  margin-top: 0.5mm;
}

.company-addr {
  font-size: 7.5pt;
  color: var(--muted);
  margin-top: 0.6mm;
  line-height: 1.25;
}

.header-bank {
  text-align: right;
  background: var(--surface);
  border: 0.25mm solid var(--line);
  border-right: 1mm solid var(--accent);
  padding: 2mm 3mm;
  min-width: 60mm;
}

.bank-badge {
  font-size: 7.5pt;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.8mm;
}

.mono-line {
  font-family: var(--font-mono);
  font-size: 7.5pt;
  color: var(--ink);
  line-height: 1.3;
}

.mono-line a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* ЗАГОЛОВОК КП */
.kp-hero {
  background: var(--primary);
  color: #ffffff;
  padding: 4.5mm 5.5mm;
  border-left: 2mm solid var(--accent);
  margin-top: 2mm;
}

.kp-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7.5pt;
  color: #c8d6e5;
  margin-bottom: 2mm;
  border-bottom: 0.2mm solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1.2mm;
}

.kp-hero h1 {
  font-size: 14.5pt;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 2mm;
  text-wrap: balance;
}

.kp-lead {
  font-size: 8.8pt;
  color: #e6eef6;
  line-height: 1.38;
}

/* СЕКЦИИ */
.section-block {
  margin-top: 2.5mm;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 2.5mm;
  margin-bottom: 2.2mm;
  border-bottom: 0.35mm solid var(--line-strong);
  padding-bottom: 1mm;
}

.compact-title {
  margin-bottom: 1.8mm;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 8pt;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  padding: 0.5mm 1.8mm;
  line-height: 1.2;
}

h2 {
  font-size: 10.5pt;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sub-h {
  font-size: 8.8pt;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5mm;
}

/* БЛОК 01: О КОМПАНИИ */
.about-grid {
  display: grid;
  grid-template-columns: 118mm 1fr;
  gap: 4mm;
  align-items: stretch;
}

.about-main p {
  font-size: 8.8pt;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.8mm;
  text-align: justify;
}

.about-main p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.8mm;
  background: var(--surface);
  padding: 2.5mm 3mm;
  border: 0.25mm solid var(--line);
}

.fact-item {
  display: flex;
  flex-direction: column;
  border-left: 0.8mm solid var(--primary);
  padding-left: 2.2mm;
}

.fact-val {
  font-family: var(--font-mono);
  font-size: 9pt;
  font-weight: 600;
  color: var(--primary);
}

.fact-lbl {
  font-size: 7.5pt;
  color: var(--muted);
  line-height: 1.25;
}

/* БЛОК 02: РЕШЕНИЯ */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4mm;
}

.sol-card {
  border: 0.3mm solid var(--line-strong);
  background: #ffffff;
  padding: 3mm 3.5mm;
}

.sol-head {
  border-bottom: 0.25mm solid var(--line);
  padding-bottom: 1.8mm;
  margin-bottom: 2mm;
}

.sol-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 7pt;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5mm;
}

.sol-head h3 {
  font-size: 9.5pt;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.sol-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6mm;
}

.sol-list li {
  font-size: 8.2pt;
  line-height: 1.34;
  position: relative;
  padding-left: 3mm;
}

.sol-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* БЛОК 03: ПРЕИМУЩЕСТВА */
.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3mm 4mm;
}

.adv-box {
  background: var(--surface);
  border-left: 1mm solid var(--primary);
  padding: 2.4mm 3mm;
}

.adv-box h4 {
  font-size: 8.8pt;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8mm;
}

.adv-box p {
  font-size: 8pt;
  color: var(--ink);
  line-height: 1.32;
}

/* ЛИСТ 2: ТЕХНИЧЕСКИЕ ХАРАКТЕРИСТИКИ */
.tech-layout {
  display: grid;
  grid-template-columns: 96mm 1fr;
  gap: 4mm;
}

table.rows {
  width: 100%;
  border-collapse: collapse;
  font-size: 8pt;
}

table.rows th,
table.rows td {
  border: 0.25mm solid var(--line);
  padding: 1.3mm 2mm;
  text-align: left;
  vertical-align: top;
  line-height: 1.25;
}

table.rows th {
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
  font-size: 7.6pt;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

table.rows tbody tr:nth-child(even) {
  background: #fafbfc;
}

.mono-cell {
  font-family: var(--font-mono);
  font-size: 7.8pt;
  font-variant-numeric: tabular-nums;
}

.mono-inline {
  font-family: var(--font-mono);
  font-size: 7.8pt;
}

.screen-note {
  margin-top: 1.8mm;
  padding: 1.8mm 2.2mm;
  background: var(--surface);
  border: 0.25mm solid var(--line);
  font-size: 7.5pt;
  line-height: 1.3;
  color: var(--ink);
}

.req-box {
  margin-top: 2.2mm;
  background: #fdfaf6;
  border: 0.3mm solid #e3cdb3;
  border-left: 1.2mm solid var(--accent);
  padding: 2.2mm 3mm;
  font-size: 7.8pt;
}

.req-list {
  margin-top: 1mm;
  padding-left: 4mm;
  display: flex;
  flex-direction: column;
  gap: 0.8mm;
}

.req-list li {
  line-height: 1.28;
}

/* ТАБЛИЦА ЦЕН */
.price-table th,
.price-table td {
  padding: 1.5mm 2mm;
}

.price-table tfoot td {
  background: var(--surface-alt);
  font-weight: 700;
  border-top: 0.4mm solid var(--primary);
}

.total-label {
  text-align: right;
  color: var(--primary);
}

.total-val {
  color: var(--primary);
}

/* НИЖНИЙ БЛОК ЛИСТА 2: УСЛОВИЯ + РЕКВИЗИТЫ */
.bottom-grid {
  display: grid;
  grid-template-columns: 94mm 1fr;
  gap: 4mm;
  margin-top: 2mm;
}

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2mm;
}

.terms-list li {
  font-size: 7.7pt;
  line-height: 1.28;
  padding-left: 2.8mm;
  position: relative;
}

.terms-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.manager-box {
  margin-top: 2.2mm;
  border: 0.35mm dashed var(--primary);
  background: var(--surface);
  padding: 2mm 2.8mm;
}

.mgr-title {
  font-size: 7.8pt;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1mm;
  border-bottom: 0.2mm solid var(--line);
  padding-bottom: 0.8mm;
}

.mgr-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8mm;
  font-size: 7.6pt;
}

.mgr-fields span {
  color: var(--muted);
}

/* КАРТОЧКА РЕКВИЗИТОВ */
.requisites-card {
  border: 0.35mm solid var(--primary);
  background: #ffffff;
  font-size: 7.6pt;
}

.req-row {
  display: grid;
  grid-template-columns: 30mm 1fr;
  gap: 2mm;
  padding: 1.2mm 2.2mm;
  border-bottom: 0.2mm solid var(--line);
  line-height: 1.25;
}

.req-row:last-child {
  border-bottom: none;
}

.req-k {
  color: var(--muted);
  font-weight: 600;
  font-size: 7.2pt;
}

.req-v {
  color: var(--ink);
}

.cn-sub {
  font-size: 7pt;
  color: var(--muted);
}

.req-divider {
  background: var(--primary);
  color: #ffffff;
  font-size: 7.2pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1mm 2.2mm;
}

.highlight-acc {
  background: var(--surface-alt);
}

.acc-num {
  font-size: 8.8pt;
  font-weight: 600;
  color: var(--primary);
}

/* ПОДВАЛ ЛИСТА */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2mm;
  border-top: 0.3mm solid var(--line);
  font-size: 7.2pt;
  color: var(--muted);
  font-family: var(--font-mono);
}
</style>