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

:root {
  --bg: #FAF6EF;
  --ink: #1F1F1F;
  --muted: #5E5A52;
  --accent: #5B7A5A;
  --accent-deep: #3F5A3F;
  --accent-soft: #E8EFE5;
  --beige: #F1E8D8;
  --beige-ink: #6B5636;
  --gain-bg: #F7F2E8;
  --line: #E4DCCD;
  --page-pad: 13mm;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #DCD6CB;
  color: var(--ink);
  font-family: var(--font);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  width: 210mm;
  height: 297mm;
  margin: 10mm auto;
  padding: var(--page-pad);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  break-after: page;
  box-shadow: 0 1mm 6mm rgba(40, 32, 20, .12);
}
.page:last-child { break-after: auto; }

@media print {
  html, body { background: none; }
  .page { margin: 0; box-shadow: none; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, p, ul { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* шапка */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5mm;
  border-bottom: .25mm solid var(--line);
}
.logo { display: flex; align-items: center; gap: 3mm; }
.logo-mark {
  width: 10mm; height: 10mm;
  fill: none; stroke: #111; stroke-width: 1.8; stroke-linecap: round;
}
.logo-word { font-size: 13pt; font-weight: 800; letter-spacing: -.01em; color: #111; }
.top-meta { font-size: 8.5pt; color: var(--muted); font-weight: 500; }

/* заголовок */
.hero { padding-top: 8mm; }
h1 {
  font-size: 28pt;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
}
.lead {
  margin-top: 3.5mm;
  max-width: 168mm;
  font-size: 10pt;
  line-height: 1.5;
  color: var(--muted);
}

/* тарифы */
.grid {
  flex: 1;
  margin-top: 8mm;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 5.5mm 5mm;
  min-height: 0;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5mm 5.2mm;
  background: #fff;
  border: .3mm solid var(--line);
  border-radius: 3mm;
  box-shadow: 0 .8mm 3.5mm rgba(60, 48, 28, .07);
}
.card--rec {
  border: .55mm solid var(--accent);
  box-shadow: 0 1.6mm 6mm rgba(91, 122, 90, .2);
}
.ribbon {
  position: absolute;
  top: 0;
  left: 5.2mm;
  transform: translateY(-50%);
  padding: 1mm 3.2mm;
  background: var(--accent);
  color: #fff;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 999px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3mm;
}
.name { font-size: 13pt; font-weight: 700; letter-spacing: -.01em; }
.badge {
  flex: none;
  padding: .9mm 2.6mm;
  font-size: 7.5pt;
  font-weight: 700;
  color: var(--beige-ink);
  background: var(--beige);
  border-radius: 999px;
}
.card--rec .badge { color: var(--accent-deep); background: var(--accent-soft); }

.price {
  display: flex;
  align-items: baseline;
  gap: 1.8mm;
  margin-top: 1.8mm;
}
.sum {
  font-size: 25pt;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.per { font-size: 9.5pt; color: var(--muted); font-weight: 500; }
.pm {
  margin-left: auto;
  font-size: 8pt;
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.desc {
  margin-top: 1.2mm;
  font-size: 8.8pt;
  line-height: 1.4;
  color: var(--muted);
}

.feats {
  list-style: none;
  padding: 0;
  margin-top: 2.8mm;
  border-top: .25mm solid var(--line);
}
.feats li {
  display: flex;
  align-items: center;
  gap: 2.4mm;
  padding: 1mm 0;
  font-size: 9pt;
  line-height: 1.3;
  border-bottom: .2mm solid #F0EBE1;
}
.feats li:last-child { border-bottom: 0; }
.feats span { flex: 1; }
.ic, .ok {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic { width: 4.6mm; height: 4.6mm; stroke-width: 1.6; color: var(--accent); }
.ok { width: 3.6mm; height: 3.6mm; stroke-width: 2.2; color: var(--accent); }

.gain {
  margin-top: auto;
  padding: 2.2mm 3mm;
  font-size: 8.4pt;
  line-height: 1.42;
  font-style: italic;
  color: #3A3832;
  background: var(--gain-bg);
  border-left: .8mm solid var(--accent);
  border-radius: 0 2mm 2mm 0;
}
.feats + .gain { margin-top: auto; }
.card .feats { margin-bottom: 3mm; }
.gain b { font-style: normal; font-weight: 700; color: var(--accent-deep); }
.card--rec .gain { background: var(--accent-soft); }

/* низ листа */
.bottom {
  margin-top: 6.5mm;
  padding-top: 4mm;
  border-top: .25mm solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4mm 8mm;
}
.terms { font-size: 9.5pt; line-height: 1.45; max-width: 96mm; }
.contacts {
  display: flex;
  align-items: center;
  font-size: 9.5pt;
  font-weight: 700;
  white-space: nowrap;
}
.contacts span + span::before {
  content: "";
  display: inline-block;
  width: 1.1mm; height: 1.1mm;
  margin: 0 2.6mm;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--accent);
}

.foot {
  margin-top: 4mm;
  display: flex;
  justify-content: space-between;
  font-size: 7.5pt;
  color: var(--muted);
}