:root {
  --ink: #1F2937;
  --muted: #4B5563;
  --line: #E5E7EB;
  --bg: #F5F7FA;
  --accent: #1D4ED8;
  --accent-dark: #1E3A8A;
  --healthy: #15803D; --healthy-bg: #E8F5EC;
  --wearing: #B45309; --wearing-bg: #FEF3E2;
  --replace: #B91C1C; --replace-bg: #FDECEC;
  --unknown: #4B5563; --unknown-bg: #EEF0F3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; }
.nav a { color: #374151; text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section.tight { padding: 40px 0; }
h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 640px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 64px 0 72px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-card { flex: 1 1 360px; min-width: 0; background: var(--bg); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.big { font-size: 20px; padding: 18px 32px; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid #D1D5DB; }
.btn.secondary:hover { background: var(--bg); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.section.alt .card { border-color: transparent; }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 21px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.result { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.result p { margin: 0; }
.dot { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dot.healthy { background: var(--healthy-bg); } .dot.replace { background: var(--replace-bg); }
.dot.wearing { background: var(--wearing-bg); } .dot.unknown { background: var(--unknown-bg); }
.status { font-size: 20px; font-weight: 700; }
.status.healthy { color: var(--healthy); } .status.wearing { color: var(--wearing); }
.status.replace { color: var(--replace); } .status.unknown { color: #374151; }
.verdict { border-top: 6px solid; }
.verdict.healthy { border-top-color: var(--healthy); } .verdict.wearing { border-top-color: var(--wearing); }
.verdict.replace { border-top-color: var(--replace); } .verdict.unknown { border-top-color: var(--unknown); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature svg { flex: 0 0 auto; margin-top: 3px; }
.feature p { margin: 0; }

/* Notices */
.notice { border-radius: 14px; padding: 18px 22px; margin: 0 0 22px; }
.notice.info { background: #EEF4FF; border: 1px solid #C7D7FE; }
.notice.warn { background: #FFF8E1; border: 1px solid #F0D48A; }
.notice.danger { background: var(--replace-bg); border: 1px solid #F5B5B5; }
.notice p:last-child { margin-bottom: 0; }
.disclosure { font-size: 15px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 16px; }

/* Prose (guides, legal) */
.prose h2 { margin-top: 44px; font-size: 28px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose .card { margin: 0 0 18px; }
.updated { font-size: 15px; color: var(--muted); }
.breadcrumb { font-size: 15px; margin: 0 0 12px; }

/* Windows box illustration */
.winbox { border: 1px solid #D1D5DB; border-radius: 12px; overflow: hidden; background: #fff; max-width: 440px; }
.winbox-title { background: #1F2937; color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 600; }
.winbox-body { padding: 20px 18px; }
.winbox-body p { margin: 0 0 12px; }
.winbox-q { font-size: 18px; font-weight: 600; }
.winbox-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.winbox-yes { border: 3px solid var(--accent); border-radius: 8px; padding: 8px; text-align: center; font-weight: 600; }
.winbox-no { border: 1px solid #D1D5DB; border-radius: 8px; padding: 8px; text-align: center; color: var(--muted); }
.caption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg); border-top: 0; }

/* FAQ */
details { background: #fff; border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; border: 1px solid var(--line); }
.section.alt details { border-color: transparent; }
summary { cursor: pointer; font-size: 19px; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--muted); }

code, .mono { font-family: Consolas, ui-monospace, monospace; font-size: 14px; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 36px 0; font-size: 15px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 48px; gap: 32px; }
  .btn.big { width: 100%; }
}
@media print {
  .site-header, .site-footer, .btn { display: none; }
}

.section-top { margin-top: 2.5rem; }
.center-row { justify-content: center; }
