/* Подстрахуем — one stylesheet, mobile first (360 px), system fonts, no external assets. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --fg: #1b2230;
  --muted: #5a6474;
  --line: #dfe4ec;
  --accent: #1f4e79;
  --accent-hover: #173d60;
  --accent-soft: #e8f0f8;
  --focus: #f0a500;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --g-a: #1e7d4f; --g-b: #4a7317; --g-c: #8a5800; --g-d: #b0470c; --g-f: #b42318;
  --s1: #e9eefb; --s1-line: #6f86d6;
  --s2: #fdf1e3; --s2-line: #d9913c;
  --s3: #eaf6f0; --s3-line: #4d9b75;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font: .92em var(--mono); background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.logo { font-weight: 800; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.header-link { font-weight: 600; text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; padding: 24px 0 40px; margin-top: 32px; }
.site-footer a { color: var(--muted); }

/* sections */
.hero { padding: 40px 0 32px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.section-cta { background: var(--accent-soft); }
.page { padding: 32px 0 48px; }
.caption { color: var(--muted); margin-top: 16px; }
.list { padding-left: 1.2em; margin: 0 0 1em; }
.list li { margin-bottom: .4em; }

/* buttons */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 20px; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* check form */
.check-form { max-width: 640px; margin-top: 20px; }
.check-row { display: flex; flex-direction: column; gap: 10px; }
.check-row input { flex: 1; min-width: 0; font: 1.1rem var(--font); padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg); }
.check-row input:focus { border-color: var(--accent); outline: none; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.form-error { color: var(--g-f); font-weight: 600; margin: 10px 0 0; }
.form-steps { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); }
.form-steps li { display: none; }
.form-steps li.active { display: block; }
.form-steps li.active::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .5em; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form-steps li.active::before { animation: none; } html { scroll-behavior: auto; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* banner */
.banner { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--g-c); background: #fff8e8; border-radius: 8px; }
.banner p { margin: 0; }

/* cards */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section-alt .card { border-color: transparent; }
.price-card { display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card-main { box-shadow: inset 0 0 0 2px var(--accent); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 16px 16px 16px 56px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.contacts { margin-top: 16px; }

/* report */
.report-head { padding: 28px 0 8px; }
.crumbs { margin-bottom: 12px; }
.grade { display: flex; align-items: center; gap: 16px; margin: 16px 0; padding: 16px; border-radius: var(--radius); background: var(--bg-alt); border-left: 6px solid var(--gc); }
.grade-letter { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--gc); color: #fff; font: 800 2.4rem/64px var(--font); text-align: center; }
.grade-score { font-weight: 700; font-size: 1.15rem; margin: 0; }
.grade-caption { margin: 0; }
.grade-A { --gc: var(--g-a); } .grade-B { --gc: var(--g-b); } .grade-C { --gc: var(--g-c); }
.grade-D { --gc: var(--g-d); } .grade-F { --gc: var(--g-f); }
.grade-partial { --gc: #5f6876; }
.recheck { margin: -4px 0 16px; }
.warnings { color: var(--muted); font-size: .92rem; padding-left: 1.2em; }
.layer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.layer-head h3 { margin: 0 0 8px; }
.tag { font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sc, var(--bg-alt)); box-shadow: inset 0 0 0 1px var(--sl, var(--line)); }
.layer.shared { background: var(--sc); border-color: var(--sl); }
.shared-1 { --sc: var(--s1); --sl: var(--s1-line); }
.shared-2 { --sc: var(--s2); --sl: var(--s2-line); }
.shared-3 { --sc: var(--s3); --sl: var(--s3-line); }
.providers, .hosts-list { list-style: none; padding: 0; margin: 0 0 8px; }
.hosts, .hosts-list { font: .9rem var(--mono); color: var(--muted); word-break: break-word; }
.ips { margin-top: 8px; font-size: .9rem; }
.ips ul { padding-left: 1.1em; margin: 6px 0 0; }
details > summary { cursor: pointer; color: var(--accent); }
details .when-open, details[open] .when-closed { display: none; }
details[open] .when-open { display: inline; }
.finding { background: #fff; border-radius: var(--radius); padding: 18px 18px 14px; margin-bottom: 14px; border-left: 5px solid var(--fc, var(--line)); }
.finding h3 { margin-bottom: .4em; }
.sev { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fc, var(--muted)); margin: 0 0 4px; }
.sev-critical { --fc: var(--g-f); } .sev-high { --fc: var(--g-d); } .sev-medium { --fc: var(--g-c); }
.sev-low { --fc: var(--g-b); } .sev-info { --fc: #5f6876; }
.fix { background: var(--bg-alt); border-radius: 8px; padding: 10px 12px; }
.evidence dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; margin: 8px 0 0; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; }
.ok-note { font-weight: 600; }
.readiness { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.readiness-label { font-size: 1.2rem; font-weight: 700; margin-bottom: .4em; }
.selfcheck fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.selfcheck legend { font-weight: 600; margin-bottom: 6px; }
.radio { display: block; padding: 6px 0; cursor: pointer; }
.radio input { margin-right: 8px; transform: scale(1.15); }
.report-foot { padding: 16px 0 0; }

@media (min-width: 640px) {
  .check-row { flex-direction: row; }
  .check-row .btn { padding-left: 28px; padding-right: 28px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}
@media (min-width: 900px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 56px 16px 16px; }
}
@media print {
  .site-header, .site-footer, .check-form, .section-cta, .selfcheck, .crumbs { display: none; }
  details > *:not(summary) { display: block; }
}

/* lead form */
.lead-form { max-width: 560px; margin-top: 16px; }
.field { display: block; font-weight: 600; margin-bottom: 14px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; font: 1rem var(--font); padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--g-f); }
.field-error { color: var(--g-f); font-weight: 600; margin: -8px 0 14px; }
.check { display: block; margin: 6px 0 18px; }
.check input { margin-right: 8px; transform: scale(1.15); }

/* admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 24px; }
.admin-nav form { margin: 0 0 0 auto; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.total td { font-weight: 700; }
.big { font-size: 2rem; font-weight: 800; margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pre { white-space: pre-wrap; }
.filters a[aria-current] { font-weight: 700; text-decoration: none; color: var(--fg); }
.field select { display: block; margin-top: 6px; font: 1rem var(--font); padding: 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
