.crmh, .crmh * { box-sizing: border-box; }
:root {
    --crmh-blue: #0068d0;
    --crmh-blue-soft: #eaf3fc;
    --crmh-text: #1d1d1f;
    --crmh-muted: #6e6e73;
    --crmh-border: #dcdce0;
    --crmh-bg: #f5f5f7;
    --crmh-green: #2e8b47;
    --crmh-yellow: #d9a400;
    --crmh-red: #d0342c;
}
body { background: var(--crmh-bg); color: var(--crmh-text); }
.mobile-bottom-menu, #toggleAddMenu { display: none !important; }
.crmh { max-width: 1040px; margin: 0 auto; padding: 82px 24px 72px; font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.crmh a { color: var(--crmh-blue); }
.crmh-back { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; text-decoration: none; }
.crmh-back:hover { text-decoration: underline; }
.crmh-hero { padding: 24px 0 20px; }
.crmh-kicker { margin: 0 0 8px; color: var(--crmh-green); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.crmh h1 { max-width: 760px; margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.crmh-lead { max-width: 780px; margin: 0; color: var(--crmh-muted); font-size: 17px; line-height: 1.55; }
.crmh-card { margin-bottom: 18px; padding: 24px 28px; border: 1px solid var(--crmh-border); border-radius: 14px; background: #fff; }
.crmh h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; letter-spacing: -.018em; scroll-margin-top: 76px; }
.crmh h3 { margin: 22px 0 8px; font-size: 16px; line-height: 1.4; }
.crmh p { margin: 0 0 12px; }
.crmh ul, .crmh ol { margin: 0 0 12px; padding-left: 22px; }
.crmh li { margin: 5px 0; }
.crmh section { scroll-margin-top: 76px; }
.crmh-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 30px; margin: 0; padding-left: 24px; }
.crmh-toc a { text-decoration: none; }
.crmh-toc a:hover { text-decoration: underline; }
.crmh-note { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--crmh-blue); border-radius: 0 9px 9px 0; background: var(--crmh-blue-soft); }
.crmh-good { border-left-color: var(--crmh-green); background: #edf7ef; }
.crmh-warn { border-left-color: var(--crmh-yellow); background: #fff8db; }
.crmh-steps { counter-reset: crmh-step; list-style: none; padding: 0 !important; }
.crmh-steps > li { counter-increment: crmh-step; position: relative; min-height: 28px; margin: 10px 0; padding-left: 38px; }
.crmh-steps > li::before { content: counter(crmh-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--crmh-blue); color: #fff; font-size: 13px; font-weight: 700; }
.crmh-btn { display: inline-block; padding: 1px 8px; border: 1px solid var(--crmh-border); border-radius: 5px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.crmh-table-wrap { margin: 12px 0 16px; overflow-x: auto; border: 1px solid var(--crmh-border); border-radius: 9px; }
.crmh table { width: 100%; border-collapse: collapse; font-size: 14px; }
.crmh th, .crmh td { padding: 11px 13px; border-bottom: 1px solid var(--crmh-border); text-align: left; vertical-align: top; }
.crmh tr:last-child td { border-bottom: 0; }
.crmh th { background: var(--crmh-bg); font-size: 13px; font-weight: 600; }
.crmh-formula { display: block; margin: 6px 0 2px; padding: 10px 12px; border-radius: 7px; background: var(--crmh-bg); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: normal; }
.crmh-figure { margin: 18px 0 8px; }
.crmh-shot { display: block; overflow: hidden; border: 1px solid #cfcfd4; border-radius: 11px; background: #fff; box-shadow: 0 8px 26px rgba(0, 0, 0, .07); }
.crmh-shot-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-bottom: 1px solid #e5e5e8; background: #f7f7f8; }
.crmh-shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c7c7cc; }
.crmh-shot img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.crmh-shot:hover img { transform: scale(1.008); }
.crmh-figure figcaption { margin-top: 8px; color: var(--crmh-muted); font-size: 12.5px; text-align: center; }
.crmh-rating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.crmh-grade { padding: 12px 8px; border: 1px solid var(--crmh-border); border-radius: 9px; text-align: center; }
.crmh-grade b { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 5px; border-radius: 50%; color: #fff; }
.crmh-grade span { color: var(--crmh-muted); font-size: 12px; }
.crmh-a { background: var(--crmh-green); }
.crmh-b { background: #7cc47f; }
.crmh-c { background: var(--crmh-yellow); }
.crmh-d { background: var(--crmh-red); }
.crmh-empty { background: #c7c7cc; }
.crmh-score { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0; padding: 16px 18px; border-radius: 10px; background: var(--crmh-text); color: #fff; }
.crmh-score strong { font-size: 20px; white-space: nowrap; }
.crmh-score span { color: #d1d1d6; font-size: 13px; }
.crmh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.crmh-mini { padding: 14px 16px; border: 1px solid var(--crmh-border); border-radius: 9px; background: #fff; }
.crmh-mini h3 { margin: 0 0 5px; }
.crmh-mini p { margin: 0; color: var(--crmh-muted); font-size: 13.5px; }
.crmh details { border-top: 1px solid var(--crmh-border); padding: 12px 0; }
.crmh details:first-of-type { border-top: 0; }
.crmh summary { cursor: pointer; font-weight: 600; }
.crmh details p { margin: 9px 0 0; }
.crmh-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 20px 24px; border-radius: 12px; background: var(--crmh-blue-soft); }
.crmh-bottom p { margin: 0; }
.crmh-bottom a { font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) {
    .crmh { padding: 68px 12px 56px; font-size: 14.5px; }
    .crmh-hero { padding: 14px 4px 18px; }
    .crmh-lead { font-size: 15px; }
    .crmh-card { padding: 18px 16px; border-radius: 11px; }
    .crmh h2 { font-size: 20px; }
    .crmh-toc ol { grid-template-columns: 1fr; }
    .crmh-rating { gap: 5px; }
    .crmh-grade { padding: 9px 3px; }
    .crmh-grade b { width: 27px; height: 27px; }
    .crmh-grade span { font-size: 10px; }
    .crmh-score { align-items: flex-start; flex-direction: column; gap: 3px; }
    .crmh-score strong { white-space: normal; }
    .crmh-grid { grid-template-columns: 1fr; }
    .crmh th, .crmh td { min-width: 130px; padding: 9px 10px; }
    .crmh th:first-child, .crmh td:first-child { min-width: 105px; }
    .crmh-bottom { align-items: flex-start; flex-direction: column; }
    .crmh-shot-bar { height: 22px; }
}
@media print {
    .header, .mobile-bottom-menu, .crmh-back, .crmh-bottom { display: none !important; }
    .crmh { max-width: none; padding: 0; }
    .crmh-card { break-inside: avoid; }
    .crmh-shot { box-shadow: none; }
}
