*, *::before, *::after { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.cp { margin: 0; background: #e5e7eb; color: #111827; font: 13px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.cp-toolbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; padding: 12px; background: #111827; }
.cp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font: 600 14px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.cp-btn-ghost { background: transparent; color: #e5e7eb; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

.cp-sheet { width: 210mm; max-width: 100%; margin: 24px auto; padding: 14mm 13mm; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }

.cp-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--primary); }
.cp-brand img { display: block; max-height: 48px; max-width: 220px; }
.cp-brand strong { display: block; font-size: 22px; line-height: 1.1; }
.cp-brand span { color: #6b7280; font-size: 12px; }
.cp-contacts { margin: 0; padding: 0; list-style: none; text-align: right; font-size: 12px; color: #374151; }
.cp-contacts strong { font-size: 16px; color: #111827; }

.cp-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 14px 0 12px; }
.cp-title h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.15; }
.cp-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: #4b5563; font-size: 12px; }
.cp-badge { padding: 1px 8px; border-radius: 99px; background: #111827; color: #fff; font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: .04em; }
.cp-price { flex: none; text-align: right; }
.cp-price s { display: block; color: #9ca3af; font-size: 13px; }
.cp-price strong { display: block; color: var(--primary); font-size: 28px; line-height: 1.1; }
.cp-price small { display: block; max-width: 220px; margin-top: 2px; color: #6b7280; font-size: 11px; }

.cp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.cp-photos figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #f3f4f6; }
.cp-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-photos-1 { grid-template-columns: 1fr; }
.cp-photos-1 figure { aspect-ratio: 16 / 9; }
.cp-photos-2, .cp-photos-4 { grid-template-columns: repeat(2, 1fr); }
.cp-photos-5 figure:first-child { grid-row: span 2; aspect-ratio: auto; }

.cp-columns { display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: start; }
.cp-block { margin-bottom: 14px; break-inside: avoid; }
.cp-block h2 { margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e5e7eb; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.cp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 0; }
.cp-specs div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted #d1d5db; }
.cp-specs dt { color: #6b7280; }
.cp-specs dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.cp-qr { padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px; text-align: center; }
.cp-qr svg { display: block; width: 100%; height: auto; }
.cp-qr p { margin: 6px 0 2px; font-weight: 600; font-size: 11px; }
.cp-qr small { display: block; color: #6b7280; font-size: 9px; overflow-wrap: anywhere; }
.cp-hours { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #e5e7eb; list-style: none; font-size: 10px; color: #374151; }

.cp-features { columns: 3; column-gap: 18px; margin: 0; padding: 0; list-style: none; }
.cp-features li { position: relative; padding: 2px 0 2px 16px; break-inside: avoid; }
.cp-features li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 4px; border: solid var(--primary); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.cp-desc div { color: #374151; font-size: 12px; }
.cp-desc { break-inside: auto; }

.cp-footer { margin-top: 16px; padding-top: 10px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 10px; }
.cp-footer p { margin: 0 0 4px; }

@media screen and (max-width: 720px) {
    .cp-sheet { margin: 0; padding: 16px; }
    .cp-header, .cp-title { flex-direction: column; align-items: stretch; }
    .cp-contacts, .cp-price { text-align: left; }
    .cp-columns { grid-template-columns: 1fr; }
    .cp-qr { max-width: 180px; }
    .cp-specs { grid-template-columns: 1fr; }
    .cp-features { columns: 2; }
}

@page { size: A4 portrait; margin: 14mm 13mm; }
@media print {
    body.cp { background: #fff; }
    .cp-toolbar { display: none; }
    .cp-sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
    .cp-photos { break-inside: avoid; }
}

/* Long humanoid specifications may continue on the following print page. */
.cp-technical{break-inside:auto}.cp-specs{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-specs>div{min-width:0;break-inside:avoid}.cp-specs dt,.cp-specs dd{min-width:0;overflow-wrap:anywhere;flex:1}
@media screen and (max-width:720px){.cp-specs{grid-template-columns:minmax(0,1fr)}}
