/* Fixly: дизайн-система публичного сайта.
   Системные шрифты (нет загрузки шрифтов, быстрый первый экран), один файл стилей.
   Порядок: токены, база, типографика, раскладка, компоненты, формы, шапка и подвал, прочее. */

:root {
  --c-bg: #ffffff;
  --c-surface: #f5f6f8;
  --c-surface-2: #eceef2;
  --c-text: #14171f;
  --c-muted: #4b5463;
  --c-faint: #5d6573;
  --c-line: #dde1e8;
  --c-accent: #2342c9;
  --c-accent-hover: #1a339e;
  --c-accent-soft: #eaeefd;
  --c-ok: #0b6b43;
  --c-ok-soft: #e6f4ec;
  --c-warn: #8a4b00;
  --c-warn-soft: #fff3df;
  --c-err: #b3261e;
  --c-err-soft: #fdecea;
  --c-dark: #11151f;
  --c-dark-2: #1b2130;
  --c-on-dark: #e8ebf2;
  --c-on-dark-muted: #aab2c3;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-0: 0.875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --fs-5: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);

  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --shadow-1: 0 1px 2px rgba(17, 21, 31, .06), 0 2px 8px rgba(17, 21, 31, .05);
  --shadow-2: 0 8px 28px rgba(17, 21, 31, .12);
  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--c-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent-hover); }
:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; border-radius: 3px; }
::selection { background: #cfd8ff; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--c-text); color: #fff; padding: 10px 14px; border-radius: var(--r-1); }
.skip-link:focus { top: 8px; color: #fff; }

/* Типографика */
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: var(--fs-5); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
p { margin: 0 0 1em; }
.lead { font-size: var(--fs-2); color: var(--c-muted); max-width: 46rem; }
.summary { color: var(--c-text); max-width: 46rem; margin: 0 0 12px; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-0); }
.nowrap { white-space: nowrap; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--c-surface-2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
.tbl code { overflow-wrap: break-word; }

/* Раскладка */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .muted, .section--dark .lead { color: var(--c-on-dark-muted); }
.section--dark a { color: #9db4ff; }
.section__head { max-width: 48rem; margin-bottom: 28px; }
.section__head h2 { margin-bottom: .3em; }
.section__head p { color: var(--c-muted); margin: 0; font-size: var(--fs-2); }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: var(--r-2); border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn--secondary:hover { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.btn--light { background: #fff; color: var(--c-text); }
.btn--light:hover { background: var(--c-surface-2); color: var(--c-text); }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: var(--fs-2); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* Карточки, плашки */
.card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-3); padding: 24px; }
.card h3 { font-size: var(--fs-2); margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card--link:hover { border-color: var(--c-accent); box-shadow: var(--shadow-1); color: inherit; }
.card--link h3 { color: var(--c-accent); }
.section--alt .card { background: #fff; }
.tag { display: inline-block; padding: 2px 10px; font-size: var(--fs-0); font-weight: 600; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent); }
.tag--ok { background: var(--c-ok-soft); color: var(--c-ok); }
.tag--warn { background: var(--c-warn-soft); color: var(--c-warn); }
.tag--gray { background: var(--c-surface-2); color: var(--c-muted); }
.callout { border-left: 4px solid var(--c-accent); background: var(--c-accent-soft); padding: 16px 20px; border-radius: 0 var(--r-2) var(--r-2) 0; margin: 20px 0; }
.callout > :last-child { margin-bottom: 0; }
.callout--warn { border-color: #c77700; background: var(--c-warn-soft); }
.callout--ok { border-color: var(--c-ok); background: var(--c-ok-soft); }
.callout strong:first-child { display: block; margin-bottom: 4px; }

/* Ключевые условия */
.facts { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-2); background: #fff; }
.facts b { display: block; font-size: var(--fs-3); line-height: 1.2; }
.facts span { color: var(--c-muted); font-size: var(--fs-0); }

/* Шаги */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: s; position: relative; padding-left: 52px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3, .steps h4 { margin: 0 0 .15em; font-size: var(--fs-2); }
.steps p { margin: 0; color: var(--c-muted); }
.steps--cols { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.steps--cols > li { padding: 52px 0 0; }

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-2); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.tbl thead th { background: var(--c-surface); font-weight: 600; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl caption { text-align: left; padding: 0 0 8px; color: var(--c-muted); font-size: var(--fs-0); caption-side: top; }
.tbl-note { color: var(--c-muted); font-size: var(--fs-0); margin-top: 8px; }

/* FAQ без JS */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--c-line); border-radius: var(--r-2); background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 20px 16px; color: var(--c-muted); }
.faq .faq__a > :last-child { margin-bottom: 0; }

/* Хлебные крошки */
.crumbs { font-size: var(--fs-0); color: var(--c-faint); padding: 16px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--c-line); }
.crumbs a { color: var(--c-muted); }
.crumbs [aria-current] { color: var(--c-text); }

/* Статьи */
.page-head { padding-block: 28px 8px; }
.page-head .lead { margin-bottom: 0; }
.meta-line { color: var(--c-faint); font-size: var(--fs-0); margin-top: 12px; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose pre { background: var(--c-dark); color: var(--c-on-dark); padding: 14px 16px; border-radius: var(--r-2); overflow-x: auto; line-height: 1.5; margin: 0 0 1em; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose th { background: var(--c-surface); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--c-line); color: var(--c-muted); }
.prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-block: 24px 64px; }
.aside { display: grid; gap: 16px; }
@media (min-height: 940px) and (min-width: 1021px) { .aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.toc { font-size: var(--fs-0); }
.toc ol { padding-left: 1.1em; margin: .4em 0 0; }
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Формы */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-3); padding: 24px; box-shadow: var(--shadow-1); }
.form-card h2, .form-card h3, .form-card__title { font-size: var(--fs-3); margin: 0 0 .2em; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.form-card .hint-top { color: var(--c-muted); margin-bottom: 16px; font-size: .95rem; }
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--c-faint); }
.field input[type="text"], .field input[type="url"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--c-text);
  background: #fff; border: 1.5px solid #8a93a3; border-radius: var(--r-2);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #f0a500; outline-offset: 1px; border-color: var(--c-text); }
.field .hint { color: var(--c-faint); font-size: var(--fs-0); margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-err); }
.field .err { color: var(--c-err); font-size: var(--fs-0); margin-top: 4px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-0); color: var(--c-muted); margin: 4px 0 16px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-accent); }
.check.has-error { color: var(--c-err); }
.form-after { margin-top: 12px; font-size: var(--fs-0); color: var(--c-faint); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 14px 18px; border-radius: var(--r-2); margin-bottom: 16px; font-weight: 500; }
.msg--success { background: var(--c-ok-soft); color: var(--c-ok); border: 1px solid #a9d8bf; }
.msg--error { background: var(--c-err-soft); color: var(--c-err); border: 1px solid #f0b4af; }
.form-ok h3, .form-ok .form-card__title { color: var(--c-ok); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--c-line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; flex: none; }
.logo:hover { color: var(--c-text); }
.logo svg { display: block; }
.logo small { display: block; font-size: .7rem; font-weight: 500; color: var(--c-faint); letter-spacing: 0; line-height: 1; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav a { display: block; white-space: nowrap; padding: 8px 12px; color: var(--c-text); text-decoration: none; border-radius: var(--r-1); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--c-surface); color: var(--c-text); }
.nav a[aria-current="page"], .nav a.is-current { color: var(--c-accent); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .login { color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 4px; }
.header-actions .login:hover { text-decoration: underline; }
.header-actions .btn { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: var(--r-2); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--c-text); position: relative; border-radius: 2px; transition: transform .15s, background .15s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--c-line); background: #fff; padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 4px; color: var(--c-text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--c-line); }
.mobile-menu .btn { margin-top: 16px; border-bottom: 0; color: #fff; }

/* Подвал */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-muted); padding: 48px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--fs-0); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Cookie */
.cookie { position: fixed; left: 8px; bottom: 8px; z-index: 150; max-width: 560px; width: calc(100% - 16px); background: var(--c-dark); color: var(--c-on-dark); border-radius: var(--r-3); padding: 10px 12px 10px 16px; box-shadow: var(--shadow-2); display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: .875rem; line-height: 1.4; }
.cookie a { color: #9db4ff; }
.cookie .btn { flex: none; min-height: 44px; padding: 6px 16px; }
.cookie__btns { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; } .cookie__btns .btn { flex: 1 1 auto; } }
.btn--ghost-light { background: transparent; color: var(--c-on-dark); border: 1px solid rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-on-dark); text-decoration: underline; cursor: pointer; min-height: 24px; }

/* Главная: первый экран */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--c-surface) 0, #fff 100%); }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--c-accent); display: block; }
.hero .lead { margin-bottom: 24px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero .facts { margin-bottom: 24px; }
.hero-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Список ссылок */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-2); background: #fff; text-decoration: none; color: var(--c-text); font-weight: 500; }
.link-list a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.link-list small { color: var(--c-faint); font-weight: 400; white-space: nowrap; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-box { width: 44px; height: 44px; border-radius: var(--r-2); background: var(--c-accent-soft); color: var(--c-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Пример депозита */
.ledger { width: 100%; border-collapse: collapse; }
.ledger td { padding: 11px 0; border-bottom: 1px solid var(--c-line); }
.ledger td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .in td:last-child { color: var(--c-ok); font-weight: 600; }
.ledger .bal td { font-weight: 700; border-bottom: 0; }

/* Чипы-якоря на хабе проблем и плашка «Срочно» (S-014) */
.prose .trust__facts { padding-left: 0; list-style: none; }
.helpful { margin-top: 32px; }
.prose .helpful__q, .helpful__q { font-size: var(--fs-2); margin: 0 0 12px; }
.helpful__btns { display: flex; gap: 12px; }
.helpful__btns .btn { min-width: 96px; }
.helpful__more textarea { width: 100%; margin: 6px 0 12px; font: inherit; padding: 10px; border: 1px solid var(--c-line); border-radius: var(--r-1, 8px); box-sizing: border-box; }
.author-box { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-bg-soft, #f6f7fb); }
.author-box p { margin: 0 0 6px; }
.author-box p:last-child { margin: 0; }
.plan-card { display: flex; flex-direction: column; }
.plan-card__cta { margin-top: auto; }
.plan-card ul { margin-bottom: 20px !important; }
.router { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.router .card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.router strong { color: var(--c-accent); }
@media (max-width: 860px) { .router { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .router { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-text); text-decoration: none; font-size: var(--fs-0); white-space: nowrap; }
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
.chip.is-on, .chip.is-on:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
button.chip { cursor: pointer; font: inherit; font-size: var(--fs-0); min-height: 36px; }
.urgent-bar { background: #fff6d6; border: 1px solid #f0d68a; border-radius: var(--r-2); padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.urgent-bar p { margin: 0; }

/* Страницы проблем: «не ваш сайт» и ранняя кнопка (S-017) */
.audience-note { background: var(--c-surface); border-color: var(--c-line); margin-bottom: 20px; }
.audience-note p { margin: 0; }
.prose .mid-cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 28px 0; padding: 16px 18px; }
.prose .mid-cta p { margin: 0; flex: 1 1 260px; }

/* Мини-проверка сайта на страницах проблем (S-034) */
.mini-check { margin-bottom: 20px; padding: 16px 18px; }
.mini-check__row { display: flex; gap: 8px; margin-top: 8px; }
.mini-check input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--r-1); font: inherit; }
.mini-check input:focus { outline: 3px solid #f0a500; outline-offset: 1px; }
.mini-check p { margin: 8px 0 0; }

/* Калькулятор на странице сравнения (S-030) */
.calc__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.calc__fields .field { font-weight: 600; font-size: .95rem; }
.calc__fields input { margin-top: 6px; display: block; }
.calc__out p { margin: 6px 0 0; }
.calc__out [data-out="verdict"] { font-weight: 700; }
@media (max-width: 860px) { .calc__fields { grid-template-columns: minmax(0, 1fr); } }

/* Скриншот кабинета на главной (S-016) */
.cabinet-shot { margin: 0; }
.prose .cabinet-shot { margin: 20px 0 28px; }
.cabinet-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: var(--r-3); box-shadow: var(--shadow-2); background: #f4f5f7; }
.cabinet-shot figcaption { margin-top: 10px; color: var(--c-muted); font-size: var(--fs-0); }

/* Блок доверия на главной (S-015) */
.trust__facts b { font-size: var(--fs-4, 1.75rem); white-space: nowrap; }
/* переход по якорю к форме: заголовок не прячется под липкой шапкой */
.form-card, [id$="-form"] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Кнопка на первом экране мобильной главной и липкая плашка на услугах и проблемах (S-008) */
.hero-cta-mobile, .sticky-cta, .hero-check-mobile { display: none; }
.hero-check-desktop { margin: 14px 0 0; }

/* Адаптив */
@media (max-width: 1020px) {
  .nav, .header-actions .login { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .prose-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .hero__grid, .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-cta-mobile { display: flex; margin-bottom: 10px; }
  .hero-check-mobile { display: block; margin: 0 0 20px; }
  .hero-check-desktop { display: none; }
  .hero .facts li { padding: 12px; }
  .hero .facts span { font-size: .875rem; }
  .sticky-cta:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 140; min-height: 56px; box-shadow: var(--shadow-2); }
  body.has-sticky-cta .site-footer { padding-bottom: 92px; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .tbl { font-size: .875rem; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .tbl thead th { white-space: normal; }
  .nowrap { white-space: normal; }
  body { font-size: 1rem; }
  .section { padding: 44px 0; }
  .cols-2, .cols-3, .cols-4, .steps--cols { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .facts b { font-size: var(--fs-2); }
  .card, .form-card { padding: 18px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .btn--lg { width: 100%; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* S-200: печать разборов, руководств, примеров оценки/отчёта/аудита и чек-листа — один общий стиль */
@media print {
  @page { margin: 16mm 14mm; }
  .site-header, .site-footer, .mobile-menu, .skip-link, .crumbs, .cookie, .aside, .btn, .form-card, .sticky-cta, .no-print,
  .toc, .mini-check, .mid-cta, .helpful, .related, .hint-top, .scroll-hint, .code-copy, .author-box form, form,
  section[aria-labelledby="trust-h"] { display: none !important; }
  body { background: #fff !important; color: #000; font-size: 11pt; line-height: 1.45; }
  .wrap, .prose, .prose-layout { max-width: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; display: block !important; }
  .card, .callout { box-shadow: none !important; border: 1px solid #999 !important; background: #fff !important; break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; color: #000; }
  p, li { orphans: 3; widows: 3; }
  .prose a, main a { color: inherit; text-decoration: underline; }
  main a[href^="http"]:not([href*="getfixly.ru"])::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; overflow-wrap: anywhere; }
  main a[href^="/"]::after { content: " (getfixly.ru" attr(href) ")"; font-size: 9pt; color: #444; overflow-wrap: anywhere; }
  main a[href^="#"]::after, main a.btn::after { content: none; }
  pre, code { white-space: pre-wrap !important; overflow-wrap: anywhere; word-break: break-word; }
  pre { border: 1px solid #999; background: #f6f6f6 !important; color: #000 !important; break-inside: avoid; max-height: none !important; overflow: visible !important; }
  pre code { color: #000 !important; }
  .table-wrap { overflow: visible !important; }
  table { width: 100% !important; border-collapse: collapse; }
  thead { display: table-header-group; }
  tr, td, th { break-inside: avoid; }
  details > summary { list-style: none; font-weight: 700; }
  details::details-content { content-visibility: visible; display: block; }
  img { max-width: 100% !important; break-inside: avoid; }
}

.scroll-hint { color: var(--c-muted); font-size: var(--fs-0); margin: 6px 0 16px; }
.prose pre + .scroll-hint { margin-top: -8px; } /* S-096: подсказка под блоком кода не липнет к следующему абзацу */
.is-scroll:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }
@media (min-width: 769px) { .scroll-hint { display: none; } }

.logo__dot { font-style: normal; color: #2342c9; }
.site-footer .logo__dot { color: #7b93ff; }
/* S-078: кнопка «Копировать» у блоков кода */
.code-wrap { position: relative; }
.code-wrap pre { padding-top: 40px; }
.code-copy { position: absolute; top: 6px; right: 6px; font: 600 13px/1 var(--font, inherit); padding: 7px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: var(--c-on-dark); cursor: pointer; }
.code-copy:hover { background: rgba(255,255,255,.2); }
.code-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.code-copy.is-done { background: #1f7a45; border-color: #1f7a45; }

/* S-196: /status/ — полоса доступности по дням. Цвет дублируется значком и подписью. */
.uptime-bar { display: flex; gap: 3px; list-style: none; margin: .5rem 0 .25rem; padding: 0; }
.ub { position: relative; flex: 1 1 0; min-width: 0; height: 34px; border-radius: 3px; background: var(--c-line); display: block; }
.ub--ok { background: var(--c-ok); }
.ub--warn { background: #c77700; }
.ub--bad { background: var(--c-err); }
.ub--none { background: repeating-linear-gradient(135deg, var(--c-line) 0 4px, var(--c-surface) 4px 8px); }
.ub--warn::after, .ub--bad::after { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; color: #fff; font: 700 11px/1 var(--font, inherit); }
.ub--warn::after { content: "·"; }
.ub--bad::after { content: "!"; }
.ub-legend .ub::after { bottom: 1px; font-size: 10px; }
.ub:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* подпись скрыта визуально, но доступна скринридеру; видна при наведении и фокусе */
.ub-tip { clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap; padding: 6px 8px; border-radius: 6px; background: var(--c-dark); color: var(--c-on-dark); font-size: .8rem; line-height: 1.3; }
.ub--l .ub-tip { left: 0; transform: none; }
.ub--r .ub-tip { left: auto; right: 0; transform: none; }
.ub:hover .ub-tip, .ub:focus .ub-tip { clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; }
.ub-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--c-muted); }
.ub-legend .ub { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
@media (max-width: 560px) { .uptime-bar { gap: 2px; } .ub { height: 28px; } .ub:hover .ub-tip, .ub:focus .ub-tip { white-space: normal; width: 13rem; } }

/* S-220: «Создать кабинет» в шапке — только на широких экранах; уже — в мобильном меню */
.header-actions .login--signup { display: none; }
@media (min-width: 1200px) { .header-actions .login--signup { display: inline-flex; } }
/* S-241: «Создать кабинет» в первом экране главной — вторичная кнопка вместо ссылки на проверку сайта */
.hero-signup { margin: 14px 0 0; }
@media (max-width: 860px) { .hero-signup { margin: 0 0 20px; } .hero-signup .btn { min-height: 44px; padding-top: 8px; padding-bottom: 8px; } }

/* S-252: метка распознанного контакта */
.contact-kind { color: var(--ok, #1f7a3d); font-weight: 600; }
