:root {
  --bg: #faf5f0;
  --surface: #ffffff;
  --surface-soft: #f6ece4;
  --border: #e9ddd3;
  --text: #2c2420;
  --muted: #8c7d72;
  --primary: #c1623f;
  --primary-hover: #a64e30;
  --primary-soft: #f5e3d9;
  --ok: #3f7d5a;
  --warn: #b4791f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(44,36,32,.04), 0 8px 24px rgba(44,36,32,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
/* Три зоны: логотип слева, меню строго по центру, пустая зона справа.
   Боковые зоны с flex:1 и basis:0 равны по ширине, поэтому середина
   центрируется относительно всей шапки, а не остатка после логотипа. */
.nav { display: flex; align-items: center; gap: 6px; height: 60px; flex-wrap: wrap; }
.nav > .brand { flex: 1 1 0; min-width: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; }
.nav-side { flex: 1 1 0; display: flex; justify-content: flex-end; }
.nav-gap { width: 14px; flex: 0 0 auto; }
.brand { font-weight: 700; font-size: 19px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.brand .logo { color: var(--primary); flex: 0 0 auto; }
.nav a.link { padding: 7px 11px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.nav a.link:hover { background: var(--surface-soft); }
.nav a.link.active { color: var(--primary); background: var(--primary-soft); }
.nav .spacer { flex: 1; }
.nav .nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 8px; align-self: center; }
.nav .who { color: var(--muted); font-size: 13px; margin-right: 4px; }

main { padding: 28px 0 60px; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 22px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 2px 0 14px; }
.crumbs a { color: var(--primary); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
textarea, input[type=text], input[type=email], input[type=password], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 130px; resize: vertical; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
input[type=file] { font-size: 13px; }

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > .col { flex: 1; min-width: 180px; }

.opts { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px; }
.check input { width: auto; }

.btn {
  display: inline-block; cursor: pointer;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 11px 20px; font-size: 15px; font-weight: 600;
  font-family: var(--font); transition: background .15s ease;
}
.btn:hover { background: var(--primary-hover); }
.btn.secondary { background: var(--surface-soft); color: var(--text); }
.btn.secondary:hover { background: var(--primary-soft); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: #fff; color: #b23b3b; border: 1px solid #ecc9c9; }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
pre.box {
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  white-space: pre-wrap; word-break: break-word; font-size: 13px; margin: 0;
}
.token { background: var(--primary-soft); color: var(--primary-hover); padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, monospace; font-size: 13px; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.badge { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 20px; padding: 3px 11px; font-size: 12px; font-weight: 600; }
.badge.ok { background: #e7f1ea; border-color: #cfe5d8; color: var(--ok); }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert.err { background: #fbeaea; border: 1px solid #f0cccc; color: #a13030; }
.alert.ok { background: #e7f1ea; border: 1px solid #cfe5d8; color: var(--ok); }
.alert.info { background: var(--primary-soft); border: 1px solid #ecd3c6; color: var(--primary-hover); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

.hero-tag { display:inline-block; background: var(--primary-soft); color: var(--primary-hover); font-weight:600; font-size:12px; padding:4px 12px; border-radius:20px; margin-bottom:14px; }
.dl { display:inline-flex; align-items:center; gap:8px; margin-top:10px; }

/* лендинг */
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 44px 0 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-hover); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.step h3 { margin: 0 0 5px; font-size: 15px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; font-size: 13px; font-weight: 500; }
a.pill { color: var(--text); transition: background .15s ease, border-color .15s ease, color .15s ease; }
a.pill:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* переключатель источника (файл/текст) */
.seg { display: inline-flex; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 3px; margin-bottom: 14px; }
.seg-btn, .demo-btn { border: none; background: transparent; padding: 7px 16px; border-radius: 6px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-btn.active, .demo-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* зона перетаскивания файла */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 34px 20px; cursor: pointer;
  color: var(--muted); background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone:focus { border-color: var(--primary); outline: none; }
.dropzone.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); }
.dz-ico { color: var(--primary); }
.dz-text { font-size: 14px; }
.dz-link { color: var(--primary); font-weight: 600; text-decoration: underline; }
.dz-file { font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; margin-top: 4px; }

/* полоса-баннер на всю ширину над hero */
.topbanner {
  position: relative; width: 100vw; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw; margin-top: -28px;
  background: var(--primary);
}
.topbanner-inner {
  max-width: 880px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: #fff; font-size: 13.5px; font-weight: 500; text-align: center; line-height: 1.35;
}
.topbanner-inner svg { flex: 0 0 auto; opacity: .92; }

/* hero */
.hero-band {
  position: relative; width: 100vw; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw; margin-top: 0; margin-bottom: 14px;
  padding: 48px 0 42px;
  background:
    radial-gradient(620px 320px at 88% -15%, rgba(193, 98, 63, .14), transparent 60%),
    radial-gradient(520px 300px at -5% 120%, rgba(193, 98, 63, .10), transparent 55%),
    linear-gradient(135deg, #faf6f1 0%, #f3ddcf 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-inner { max-width: 880px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .hero-tag { background: #fff; border: 1px solid var(--border); }
.hero-copy h1 { font-size: 34px; line-height: 1.12; margin: 14px 0 12px; }
.hero-copy .lead { font-size: 16px; margin-bottom: 20px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-points li { font-weight: 500; font-size: 14.5px; }
.hero-points .ck { display: inline-block; color: var(--primary); font-weight: 800; margin-right: 8px; }
.hero-tool .card { margin-bottom: 0; }
.tool-h { font-weight: 700; font-size: 16px; margin: 0 0 14px; }
.tool-badge { font-size: 11px; font-weight: 600; color: var(--primary-hover); background: var(--primary-soft); border-radius: 20px; padding: 2px 9px; margin-left: 4px; vertical-align: middle; }
.quick-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.quick-note a { font-weight: 600; white-space: nowrap; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.example .ex-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.example .ex-row:last-child { border-bottom: 0; }
.example .ex-from { flex: 1; color: var(--muted); }
.example .ex-arrow { color: var(--primary); font-weight: 700; }

/* анимация карточки «было → стало» в hero */
.example .ex-row { opacity: 0; transform: translateY(8px); animation: exRowIn .55s cubic-bezier(.2, .7, .3, 1) forwards; }
.example .ex-row:nth-child(2) { animation-delay: .05s; }
.example .ex-row:nth-child(3) { animation-delay: .18s; }
.example .ex-row:nth-child(4) { animation-delay: .31s; }
.example .ex-row:nth-child(5) { animation-delay: .44s; }
.example .ex-row:nth-child(6) { animation-delay: .57s; }
@keyframes exRowIn { to { opacity: 1; transform: none; } }
.example .ex-arrow { display: inline-block; animation: arrowNudge 1.8s ease-in-out infinite; animation-delay: .9s; }
@keyframes arrowNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.example .token { animation: tokenPop .45s ease both; animation-delay: .9s; }
@keyframes tokenPop { 0% { transform: scale(.85); opacity: .3; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .example .ex-row, .example .ex-arrow, .example .token { animation: none; opacity: 1; transform: none; }
}

/* интерактивное демо */
.demo-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.demo-hint { color: var(--muted); font-size: 12.5px; }
.demo-doc { font-size: 14.5px; line-height: 2; color: var(--text); }
.demo-doc p { margin: 0 0 2px; }
.pii { border-radius: 5px; padding: 1px 6px; transition: background .2s ease, color .2s ease; }
.pii:not(.masked) { background: #f4ead0; color: #7a6a4f; }
.pii.masked { background: var(--primary-soft); color: var(--primary-hover); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

/* FAQ-аккордеон */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-weight: 700; font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--primary-hover); }
.faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* лёгкие ховеры карточек */
.step, .trust-tile { transition: transform .15s ease, box-shadow .15s ease; }
.step:hover, .trust-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(44, 36, 32, .05), 0 12px 28px rgba(44, 36, 32, .09); }

/* контент Markdown */
.prose { font-size: 15px; line-height: 1.65; color: var(--text); }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose h3 { font-size: 16px; margin: 20px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--primary); }
.prose code { background: var(--surface-soft); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.prose pre { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--primary); background: var(--surface-soft); border-radius: 0 8px 8px 0; color: var(--muted); }

/* блог */
.post-list { display: grid; gap: 12px; }
.post-card { display: block; transition: transform .15s ease; }
.post-card h3 { margin: 0 0 6px; font-size: 17px; }
.post-card:hover { transform: translateY(-2px); }
.post-date { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* выпадающий список с подсказкой под вариантом */
.rsel { position: relative; }
.rsel-native { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.rsel-btn { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; color: var(--text); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.rsel-btn:hover { border-color: var(--primary); }
.rsel-btn:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.rsel.is-open .rsel-btn { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.rsel-cur { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rsel-title { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.rsel-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.rsel-arrow { flex: 0 0 auto; color: var(--muted); transition: transform .15s ease; }
.rsel.is-open .rsel-arrow { transform: rotate(180deg); }

.rsel-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 28px rgba(44,36,32,.14); padding: 5px; max-height: 320px; overflow-y: auto; }
.rsel-opt { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border-radius: 7px; cursor: pointer; outline: none; }
.rsel-opt:hover, .rsel-opt:focus-visible { background: var(--surface-soft); }
.rsel-opt.is-on { background: var(--primary-soft); }
.rsel-opt.is-on .rsel-title { color: var(--primary-hover); }
.rsel-opt .rsel-desc { color: var(--muted); }
.rsel-opt.is-on .rsel-desc { color: var(--primary-hover); opacity: .8; }

/* подпись поля + ссылка-справка справа */
.lbl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lbl-row label { margin-bottom: 6px; }
.hint-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-style: dotted; white-space: nowrap; }
.hint-link:hover { color: var(--primary-hover); text-decoration-style: solid; }

/* модальная справка */
.modal { border: 0; padding: 0; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(44,36,32,.18); max-width: 620px; width: calc(100% - 32px); color: var(--text); background: var(--surface); }
.modal::backdrop { background: rgba(44,36,32,.45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: var(--text); }
.modal-body { padding: 6px 20px 20px; max-height: 70vh; overflow-y: auto; font-size: 14.5px; line-height: 1.55; }
.modal-body h4 { margin: 18px 0 6px; font-size: 14.5px; }
.modal-body p { margin: 0 0 10px; }
.modal-note { margin-top: 16px; padding: 11px 14px; background: var(--primary-soft); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--primary-hover); }

/* фильтр «что обезличивать» */
.filter { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); margin-top: 16px; }
.filter > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; list-style: none; }
.filter > summary::-webkit-details-marker { display: none; }
.filter > summary::before { content: "▸"; color: var(--muted); transition: transform .15s ease; }
.filter[open] > summary::before { transform: rotate(90deg); }
.filter > summary:hover .filter-name { color: var(--primary); }
.filter-count { font-weight: 500; font-size: 12.5px; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; color: var(--muted); }
.filter[open] > summary { border-bottom: 1px solid var(--border); }
.filter-body { padding-top: 12px; }
.filter-lead { padding: 0 14px 12px; font-size: 13px; line-height: 1.5; margin: 0; }
.filter-actions { display: flex; gap: 8px; padding: 0 14px 12px; }
.filter-group { padding: 0 14px 12px; }
.filter-title { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; margin-bottom: 7px; }
.filter-items { display: flex; flex-wrap: wrap; gap: 7px; }
.chk { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px 5px 9px; font-size: 13px; cursor: pointer; user-select: none; transition: border-color .15s ease, background .15s ease; }
.chk:hover { border-color: var(--primary); }
.chk input { margin: 0; accent-color: var(--primary); }
.chk:has(input:checked) { background: var(--primary-soft); border-color: #e6c7b8; }

/* сканер персональных данных */
.rescan { margin-bottom: 18px; }
.rescan > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; font-weight: 600; list-style: none; transition: border-color .15s ease, color .15s ease; }
.rescan > summary::-webkit-details-marker { display: none; }
.rescan > summary:hover { border-color: var(--primary); color: var(--primary); }
.rescan[open] > summary { margin-bottom: 14px; }
.verdict-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.verdict-hint { font-size: 12.5px; line-height: 1.5; margin: 12px 0 0; }
.scan-verdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 16px; }
.scan-verdict h2 { margin: 0 0 6px; font-size: 17px; }
.scan-verdict p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.scan-verdict p b { color: var(--text); }
.verdict-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.scan-verdict.high { border-color: #f0cccc; background: #fdf4f4; }
.scan-verdict.high .verdict-ico { background: #fbeaea; color: #a13030; }
.scan-verdict.medium { border-color: #ecd9c4; background: #fdf7f0; }
.scan-verdict.medium .verdict-ico { background: #f8ead9; color: var(--warn); }
.scan-verdict.low { border-color: var(--border); }
.scan-verdict.low .verdict-ico { background: var(--surface-soft); color: var(--muted); }
.scan-verdict.clean { border-color: #cfe5d8; background: #f4faf6; }
.scan-verdict.clean .verdict-ico { background: #e7f1ea; color: var(--ok); }

.scan-doc { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.7; max-height: 460px; overflow-y: auto; }
mark.hl, span.hl { background: #fdf0c8; color: inherit; border-radius: 3px; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.hl.high, span.hl.high { background: #f8d8cc; }
.scan-table > summary { cursor: pointer; font-size: 14px; }
.badge-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); vertical-align: middle; }

/* страница результата */
.done-head { display: flex; align-items: flex-start; gap: 14px; margin: 8px 0 14px; }
.done-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #e7f1ea; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.done-head h1 { margin: 4px 0 2px; }
.done-sub { margin: 0; color: var(--muted); font-size: 14px; }
.done-sub b { color: var(--text); }
.done-badges { margin-bottom: 18px; }
.out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -2px 0 10px; font-size: 13px; }

.keycard { border-color: #e6c7b8; box-shadow: 0 1px 2px rgba(44,36,32,.04), 0 10px 28px rgba(193,98,63,.10); }
.keycard-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.keycard-head h2 { margin: 0 0 4px; }
.keycard-head p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.keycard-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.keycard-ico.danger { background: #fbeaea; color: #a13030; }

.keyline { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; }
.keyval { flex: 1 1 auto; min-width: 0; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; overflow-x: auto; white-space: nowrap; display: flex; align-items: center; }
.keyline .btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; }
.btn.copied { background: var(--ok); border-color: var(--ok); }

/* store-nothing: ключ и файл как два обязательных шага */
.keysteps { list-style: none; counter-reset: none; margin: 0; padding: 0; }
.keysteps > li { margin-bottom: 16px; }
.keysteps > li:last-child { margin-bottom: 0; }
.keystep-h { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.keystep-n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; }
.keystep-warn { display: inline-block; margin-left: 10px; font-size: 12.5px; color: var(--warn); font-weight: 500; }
.keystep-warn.ok { color: var(--ok); }

.keynote { background: var(--surface-soft); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 11px 14px; font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.keynote b { color: var(--text); }
.keynote.warn { background: #fdf3ec; border-left-color: var(--warn); }

.nextsteps { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.steps-list { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.steps-list li { margin: 5px 0; }
.steps-list a { color: var(--primary); }

/* восстановление: блоки под табами, крупная кнопка отправки */
.seg-note { font-size: 13px; margin: 12px 0 14px; line-height: 1.5; }
.dropzone.dz-sm { padding: 16px 14px; }
.paste-json { margin-top: 10px; }
.paste-json > summary { cursor: pointer; font-size: 13px; }
.paste-json textarea { margin-top: 8px; }
.submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.btn-lg { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; font-size: 15px; }
.submit-note { font-size: 12.5px; }

/* страницы ошибок (404 / 429 / 500) */
.err-page { max-width: 560px; margin: 48px auto; text-align: center; }
.err-code { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--primary-soft); margin-bottom: 6px; }
.err-page h1 { margin: 0 0 10px; }
.err-page .lead { margin-bottom: 24px; }

/* подвал */
footer { background: var(--surface-soft); border-top: 1px solid var(--border); padding: 40px 0 0; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 32px; }
.footer-brand .brand { font-size: 18px; margin: 0 0 12px; }
.footer-about { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 14px; max-width: 34ch; }
.footer-mail { font-size: 13.5px; font-weight: 500; color: var(--primary); }
.footer-mail:hover { color: var(--primary-hover); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.footer-col a { color: var(--text); font-size: 13.5px; line-height: 1.35; transition: color .15s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 62ch; }
.footer-legal { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-about { max-width: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* брендбук */
.bb-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bb-wordmark { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swatch { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.swatch b { font-size: 13.5px; }
.swatch .mono { color: var(--muted); font-size: 12px; }
.sw-box { height: 64px; border-radius: var(--radius-sm); margin-bottom: 6px; }
.sw-box.bordered { border: 1px solid var(--border); }
.bb-type { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.bb-type:last-child { border-bottom: 0; }
.bb-tag { flex: 0 0 130px; color: var(--muted); font-size: 12px; font-family: ui-monospace, monospace; }
@media (max-width: 640px) {
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .bb-type { flex-direction: column; gap: 4px; }
  .bb-tag { flex: none; }
}

/* desktop-лендинг: клавиши и имитация уведомления */
.kbd { display: inline-block; font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.4; background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--text); }
.app-toast { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-width: 340px; margin: 0 auto; }
.app-toast-bar { width: 5px; background: var(--primary); flex: 0 0 auto; }
.app-toast-body { padding: 14px 16px; flex: 1; }
.app-toast-title { font-weight: 700; margin-bottom: 8px; }
.app-toast-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.app-toast-row b { color: var(--primary-hover); }
.app-toast .btn { margin-top: 12px; width: 100%; }

/* врезка-промо десктоп-версии */
.promo { display: flex; align-items: center; gap: 16px; background: var(--primary-soft); border: 1px solid #ecd3c6; border-radius: var(--radius); padding: 18px 22px; margin: 10px 0 26px; color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.promo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-ico { color: var(--primary); flex: 0 0 auto; display: inline-flex; }
.promo-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.promo-text b { font-size: 15px; }
.promo-text span { font-size: 13.5px; color: var(--muted); }
.promo-arrow { color: var(--primary); font-weight: 700; font-size: 22px; flex: 0 0 auto; }
@media (max-width: 560px) { .promo-arrow { display: none; } }

/* блог: тулбар, чипы, карточки */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search-wrap { position: relative; max-width: 320px; flex: 1; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#blog-search { width: 100%; max-width: none; padding-left: 38px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .12s ease; }
.filter-chip:hover { color: var(--primary); border-color: var(--primary-soft); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-emoji { color: var(--primary); line-height: 1; display: inline-flex; flex: 0 0 auto; }
.post-emoji svg { width: 22px; height: 22px; }
.post-emoji.big svg { width: 40px; height: 40px; }
.post-meta { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.post-flag { background: var(--primary-soft); color: var(--primary-hover); font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 2px 9px; text-transform: uppercase; letter-spacing: .04em; }
.post-featured { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.post-featured-body { flex: 1; }
.post-featured h2 { margin: 2px 0 6px; font-size: 21px; }

/* админка */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.stat-num { font-size: 30px; font-weight: 700; color: var(--primary); letter-spacing: -.02em; line-height: 1; }
.stat-label { font-weight: 600; margin-top: 6px; }
.stat .muted { font-size: 12.5px; margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 18px 0 22px; }
.bar { flex: 1; background: var(--primary-soft); border: 1px solid #ecd3c6; border-radius: 6px 6px 0 0; position: relative; min-height: 3px; }
.bar > span { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.bar > em { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); font-style: normal; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .bar > em { display: none; } }
.post-list { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .post-list { grid-template-columns: 1fr; } .post-featured { flex-direction: column; } .post-emoji.big svg { width: 32px; height: 32px; } }
@media (max-width: 760px) {
  .hero-band { margin-bottom: 8px; padding: 26px 0 26px; }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .hero-copy h1 { font-size: 26px; }
}

/* лента ключевых фактов */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 10px 0 24px; }
.trust-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.trust-ico { color: var(--primary); margin-bottom: 8px; }
.trust-num { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.trust-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* иконки шагов */
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.step-ico { color: var(--primary); display: inline-flex; }
.step .num { margin: 0; }

/* схема восстановления */
.restore-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: center; }
.restore-grid .diagram { width: 100%; height: auto; display: block; }
.restore-grid p { margin: 0 0 12px; }
.restore-grid p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .restore-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* навигация на узких экранах */
@media (max-width: 720px) {
  /* Узкий экран: логотип на своей строке, все пункты — одной строкой под ним.
     nav-side раскрывается в общий поток (display: contents), иначе «Блог»
     не влезал в строку меню и уезжал третьей строкой в одиночку. */
  .nav { height: auto; padding: 10px 0; row-gap: 6px; justify-content: center; }
  .nav > .brand { flex: 0 0 100%; font-size: 17px; }
  .nav-menu { flex: 0 1 auto; justify-content: center; flex-wrap: wrap; gap: 2px; }
  .nav-side { display: contents; }
  .nav-gap { display: none; }
  .nav a.link { padding: 6px 7px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  /* Совсем узко: подписи короче, чтобы строка не разъезжалась. */
  .nav a.link { padding: 5px 6px; font-size: 13px; }
}
@media (max-width: 560px) {
  .nav .who { display: none; }
}
