/* Technical data sheet — A4, print-first. */
:root {
  --ink: #1d1915;
  --muted: #62584e;
  --line: #e4ddd2;
  --ember: #e2510b;
  --ember-d: #b4400c;
  --char: #14110f;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html[lang="ru"] { --font-display: "Playfair Display", Georgia, serif; }
html[lang="ar"] { --font-display: "Amiri", "Noto Naskh Arabic", serif; --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="zh"] { --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif; --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html.i18n-pending body { opacity: 0; }
body {
  margin: 0;
  background: #e9e3da;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: opacity .3s;
}
h1, h2, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 10px 14px;
  padding: 12px 16px;
  background: var(--char);
  color: #f3ece2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.tb-field { display: grid; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b5a99b; }
.tb-field select {
  min-width: 170px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 236, 214, .22);
  border-radius: 10px;
  background: #211c18;
  color: #f3ece2;
  font: 600 14px var(--font-body);
}
.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: 800 13.5px var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.tb-btn--ghost { color: #f3ece2; border: 1px solid rgba(255, 236, 214, .22); background: transparent; }
.tb-btn--primary { color: #1c0d04; background: linear-gradient(135deg, #ffbf7a, #ff7a26 46%, #ef540d); }
[dir="rtl"] .tb-arrow { transform: scaleX(-1); display: inline-block; }

.sheet {
  position: relative;
  width: 210mm;
  height: 297mm;
  margin: 24px auto 48px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45);
}
.sh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8mm 12mm 7mm;
  background: var(--char);
  color: #f3ece2;
}
.sh-brand { display: flex; align-items: center; gap: 10px; }
.sh-brand svg { width: 36px; height: 36px; flex: none; }
.sh-brand b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; }
.sh-brand small { display: block; margin-top: 2px; font-size: 8.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #b5a99b; }
.sh-meta { display: grid; gap: 1px; text-align: end; font-size: 10px; color: #b5a99b; }
.sh-meta strong { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #ffb36b; }
.sh-meta b { color: #f3ece2; font-weight: 700; }
.sh-rule { height: 3px; background: linear-gradient(90deg, #ffbf7a, #ff6a1a 50%, #9c2a06); }

.sh-hero { display: grid; grid-template-columns: 64mm minmax(0, 1fr); gap: 8mm; align-items: center; padding: 7mm 12mm 4mm; }
.sh-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(70% 60% at 50% 62%, rgba(255, 106, 26, .26), transparent 70%), linear-gradient(180deg, #1b1714, #0e0c0b);
}
.sh-art svg { width: 94%; height: auto; }
.sh-art img { width: 100%; height: 100%; object-fit: cover; }
.sh-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-d); }
.sh-name { margin-top: 2px; font-family: var(--font-display); font-size: 29px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.sh-variant { margin-top: 4px; font-size: 12.5px; font-weight: 800; }
.sh-desc { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.sh-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.sh-keys li { padding: 7px 10px; border-inline-end: 1px solid var(--line); }
.sh-keys li:last-child { border-inline-end: 0; }
.sh-keys span { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sh-keys b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; unicode-bidi: isolate; }

.sh-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8mm; padding: 3mm 12mm; }
.sh-block h2 {
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember-d);
}
.sh-block * + h2 { margin-top: 10px; }
html[lang="ar"] .sh-block h2, html[lang="zh"] .sh-block h2,
html[lang="ar"] .sh-tag, html[lang="zh"] .sh-tag { letter-spacing: .02em; }
.sh-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.sh-table th, .sh-table td { padding: 4.2px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sh-table th { font-weight: 600; color: var(--muted); text-align: start; padding-inline-end: 8px; }
.sh-table td { font-weight: 800; text-align: end; }
.sh-table--terms td { font-weight: 700; }
.sh-list { font-size: 11.5px; }
.sh-list li { position: relative; padding: 3.6px 0; padding-inline-start: 15px; border-bottom: 1px solid var(--line); }
.sh-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--ember);
  transform: rotate(45deg);
}
.sh-load { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sh-load div { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; }
.sh-load span { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.sh-load b { font-family: "Fraunces", Georgia, serif; font-size: 15px; font-weight: 600; unicode-bidi: isolate; }

.sh-foot {
  position: absolute;
  inset-inline: 12mm;
  bottom: 9mm;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4mm 8mm;
  padding-top: 4mm;
  border-top: 1.5px solid var(--ink);
}
.sh-contact h2 { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-d); margin-bottom: 4px; }
.sh-contact dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 11px; }
.sh-contact dt { color: var(--muted); font-weight: 600; }
.sh-contact dd { font-weight: 700; overflow-wrap: anywhere; }
.sh-qr { display: grid; justify-items: center; gap: 4px; width: 30mm; text-align: center; }
.sh-qr #shQr svg { display: block; width: 25mm; height: 25mm; }
.sh-qr figcaption { font-size: 8.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.sh-note { grid-column: 1 / -1; font-size: 9.5px; color: var(--muted); }

/* Applied by sheet.js only when long translations would collide with the footer */
.sheet.is-compact .sh-hero { padding-top: 5mm; padding-bottom: 2mm; }
.sheet.is-compact .sh-grid { padding-block: 2mm; }
.sheet.is-compact .sh-table th, .sheet.is-compact .sh-table td { padding-block: 3.2px; }
.sheet.is-compact .sh-list li { padding-block: 2.8px; }
.sheet.is-compact .sh-desc { font-size: 11px; }
.sheet.is-compact .sh-block * + h2 { margin-top: 8px; }
.sheet.is-tight .sh-table, .sheet.is-tight .sh-list { font-size: 10.5px; }
.sheet.is-tight .sh-table th, .sheet.is-tight .sh-table td { padding-block: 2.6px; }
.sheet.is-tight .sh-list li { padding-block: 2.2px; }
.sheet.is-tight .sh-hero { grid-template-columns: 54mm minmax(0, 1fr); gap: 6mm; }
.sheet.is-tight .sh-name { font-size: 25px; }
.sheet.is-tight .sh-keys b { font-size: 15px; }
.sheet.is-tight .sh-block * + h2 { margin-top: 6px; }

@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .toolbar { display: none; }
  .sheet { margin: 0; box-shadow: none; zoom: 1 !important; }
}
