.compat-page { max-width: 1440px; margin: 0 auto; --compat-ink: #153f36; }
.compat-hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 22px; padding: 32px; margin-bottom: 28px; border: 1px solid #d8e8de; border-radius: 24px; background: linear-gradient(125deg, #f4f8ef, #e7f2eb); color: var(--compat-ink); overflow: hidden; }
.compat-hero h2 { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -.045em; line-height: 1.08; margin: 14px 0 18px; }
.compat-hero p:not(.eyebrow) { max-width: 430px; line-height: 1.7; color: #426257; }
.compat-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.compat-tags span { border: 1px solid #bfd6c8; border-radius: 20px; padding: 6px 11px; background: #ffffff90; font-size: 11px; font-weight: 650; }
.compat-diagram { width: 100%; height: auto; display: block; }
.compat-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compat-step { min-width: 0; padding: 24px; margin: 0 0 24px; border: 1px solid #dce5df; }
.compat-step legend { width: auto; margin: 0; padding: 0 8px; font-size: 17px; font-weight: 700; color: #153f36; }
.compat-step legend > span { color: #456b5a; margin-right: 8px; font-size: 13px; letter-spacing: .06em; }
.compat-step .field { margin-bottom: 15px; }
.compat-picker { padding: 16px; background: #f7f9f6; border: 1px solid #e2e9e3; border-radius: 12px; margin-bottom: 18px; }
.compat-picker input, .compat-step select { width: 100%; min-width: 0; max-width: 100%; }
.compat-picker > small, .compat-firmware small { font-size: 12px; color: #52655b; }
.compat-hint { font-size: 13px; color: #52655b; line-height: 1.65; }
.compat-step [hidden] { display: none !important; }
.compat-firmware { max-width: 360px; }
.compat-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.compat-checks label { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #dce5df; border-radius: 10px; font-size: 13px; line-height: 1.55; color: #28493c; }
.compat-checks input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: #0b4d45; }
.compat-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.compat-submit p { font-size: 13px; color: #345848; line-height: 1.7; }
.compat-submit small { color: #52655b; }
.compat-submit .primary-button { padding: 17px 24px; }
[data-compat-feedback]:not(:empty) { padding: 16px; background: #eef3ee; border-radius: 12px; margin-bottom: 20px; }
.compat-result { padding: 28px; border-top: 5px solid #6a7d88; }
.compat-status-compatible { border-top-color: #14744e; }
.compat-status-conditional { border-top-color: #ac6b12; }
.compat-status-incompatible { border-top-color: #ad3d3d; }
.compat-result-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.compat-result h2 { font-size: 28px; margin: 8px 0 12px; }
.compat-result p, .compat-result li { line-height: 1.65; }
.compat-result-head > div { max-width: 700px; }
.compat-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 16px 26px; background: #f6f8f4; border-radius: 12px; margin: 24px 0; }
.compat-summary dt { color: #536558; font-size: 12px; margin-bottom: 5px; }
.compat-summary dd { margin: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.compat-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.compat-result-grid h3, .compat-sources h3 { font-size: 17px; }
.compat-result ul { padding-left: 20px; font-size: 13px; }
.compat-result li { margin: 7px 0; }
.compat-status-label { font-size: 13px; font-weight: 700; }
.compat-result details { margin: 20px 0; font-size: 13px; }
.compat-result summary { cursor: pointer; }
.compat-sources { border-top: 1px solid #dce5df; margin-top: 24px; padding-top: 16px; }
.compat-sources small { display: block; color: #52655b; font-size: 11px; }
.compat-sources a { color: #0b4d45; text-decoration: underline; overflow-wrap: anywhere; }
.compat-stamp { font-size: 11px; color: #52655b; }
.compat-print { padding: 15mm; color: #183e33; font-family: Arial, sans-serif; }
.compat-print-brand { font-size: 13px; letter-spacing: .12em; font-weight: 700; }
@media (max-width: 850px) { .compat-hero { grid-template-columns: 1fr; padding: 24px; } .compat-art { max-width: 620px; } .compat-form-grid, .compat-checks, .compat-result-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .compat-hero { padding: 20px; } .compat-step { padding: 16px; } .compat-result { padding: 20px; } .compat-summary { grid-template-columns: 1fr; } .compat-submit, .compat-result-head { flex-direction: column; align-items: stretch; } .compat-tags span { font-size: 10px; } }
@media print { body:has(.compat-print) > :not(#print-document) { display: none !important; } .compat-print .compat-result { padding: 0; border: 0; box-shadow: none; } .compat-print .compat-summary { grid-template-columns: 1fr 1fr; } .compat-print .compat-result-grid { display: block; } .compat-print article, .compat-print .compat-summary > div, .compat-print li { break-inside: avoid; } .compat-print .compat-sources a::after { content: ' (' attr(href) ')'; display: block; font-size: 9px; overflow-wrap: anywhere; } }
