/*
 * ЮрШаг — единый файл стилей. Mobile-first, без внешних шрифтов и библиотек.
 * Дизайн-система: токены → база → компоненты → страницы → адаптив.
 * Контраст текста — WCAG AA и выше (цифры в output/design/DESIGN_REPORT.md).
 */

/* ============ 1. Токены ============ */
:root {
  /* цвета */
  --c-bg: #f4f6f9;            /* фон страницы */
  --c-surface: #ffffff;       /* карточки */
  --c-warm: #faf6ee;          /* тёплый фон секций-примеров */
  --c-text: #14202e;          /* основной текст: 16.5:1 на белом */
  --c-muted: #46546a;         /* вторичный текст: 7.7:1 на белом, 7.1:1 на фоне */
  --c-line: #d5dce5;          /* декоративные рамки */
  --c-control: #6b7a90;       /* рамки полей ввода: 4.4:1 (≥3:1 для элементов управления) */
  --c-primary: #1d4f91;       /* основной синий: 8.1:1 на белом */
  --c-primary-strong: #163e73;/* наведение, тёмная секция: белый текст 10.7:1 */
  --c-primary-soft: #eaf1fa;  /* мягкий фон: синий текст 7.2:1 */
  --c-ok: #0d6b57;            /* «бесплатно», успех: 6.5:1 */
  --c-ok-soft: #e6f4ef;
  --c-danger: #a4262c;        /* ошибки: 7.3:1 */
  --c-danger-soft: #fbeaea;
  --c-gold: #f2b441;          /* только декор (точка в логотипе) */
  --c-note-bg: #fff4d6;
  --c-note-text: #7a4d00;     /* 6.6:1 на --c-note-bg */
  --c-focus: #b45309;         /* рамка фокуса на светлом: 5:1 */
  --c-focus-dark: #ffd166;    /* рамка фокуса на тёмном: 11.4:1 */

  /* типографика — только системные шрифты */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-doc: Georgia, "Times New Roman", "PT Serif", serif;
  --fs-base: 1.125rem;        /* 18px */
  --fs-small: 1rem;           /* 16px — минимум для пояснений */
  --fs-lead: 1.2rem;
  --lh: 1.6;

  /* форма и ритм */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 6px 20px rgba(20, 32, 46, .07);
  --shadow-lg: 0 2px 4px rgba(20, 32, 46, .06), 0 16px 40px rgba(20, 32, 46, .12);
  --tap: 48px;                /* минимальная высота нажимаемых элементов */
  --max: 1160px;
  --gutter: 16px;
  --section: 56px;
}

/* ============ 2. База ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  padding-bottom: 88px; /* место под нижнюю кнопку на телефоне */
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--c-primary); text-underline-offset: .18em; }
a:hover { color: var(--c-primary-strong); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .55em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.95rem, 6.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.15rem); }
h3, .h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
b, strong { font-weight: 700; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { left: 16px; }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 3. Шапка ============ */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 40; }
.site-header__row { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); margin-right: auto; min-height: var(--tap); }
.logo:hover { color: var(--c-text); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.logo__tag { font-size: .8rem; color: var(--c-muted); margin-top: 2px; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 8px 14px;
  background: var(--c-surface); border: 2px solid var(--c-line); border-radius: var(--r-sm);
  font: inherit; font-weight: 700; color: var(--c-text); cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--c-primary); color: var(--c-primary); }
.site-nav { display: none; width: 100%; padding: 4px 0 12px; order: 5; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; text-decoration: none; color: var(--c-text); font-weight: 600; border-bottom: 1px solid var(--c-line); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--c-primary); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-header .header-cta { display: none; }

/* ============ 4. Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--r-sm); border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-strong); color: #fff; }
.btn--primary:disabled { opacity: .7; cursor: wait; }
.btn--secondary { background: var(--c-surface); color: var(--c-primary); border-color: var(--c-primary); }
.btn--secondary:hover { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.btn--link { background: none; color: var(--c-primary); padding-left: 4px; padding-right: 4px; text-decoration: underline; text-underline-offset: .2em; }
.btn--link .ico { width: 20px; height: 20px; }
.btn--lg { font-size: 1.15rem; min-height: 60px; padding: 14px 26px; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 4px 2px; min-height: 32px; color: var(--c-primary); text-decoration: underline; font: inherit; cursor: pointer; }

/* ============ 5. Секции ============ */
.section { padding: var(--section) 0; }
.section--tight { padding: 28px 0; }
.section--alt { background: var(--c-surface); }
.section--warm { background: var(--c-warm); }
.section--brand { background: var(--c-primary-strong); color: #fff; }
.section--brand :focus-visible { outline-color: var(--c-focus-dark); }
.section--form { background: linear-gradient(180deg, var(--c-primary-soft), var(--c-bg)); }
.section__head { max-width: 48rem; margin-bottom: 28px; }
.section__head .lead { margin-bottom: 0; }
.section__more { margin: 24px 0 0; font-weight: 600; }
.lead { font-size: var(--fs-lead); color: var(--c-muted); max-width: 46em; }
.note { font-size: var(--fs-small); color: var(--c-muted); margin-top: 20px; max-width: 60em; }
.hint { font-size: var(--fs-small); color: var(--c-muted); margin: 0 0 10px; }
.eyebrow { font-size: 1rem; font-weight: 700; color: var(--c-ok); margin-bottom: .6em; letter-spacing: .01em; }
.eyebrow--light { color: #ffd166; }

/* хлебные крошки */
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-small); color: var(--c-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin: 0 10px; color: var(--c-muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumbs--doc ol { margin: 24px 0 0; }

/* ============ 6. Первый экран ============ */
.hero { padding: 36px 0 44px; background: linear-gradient(180deg, var(--c-primary-soft) 0%, var(--c-bg) 100%); }
.hero--page { padding: 24px 0 36px; }
.hero__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.hero .lead { margin-bottom: 1.3em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 22px; }
.hero__actions .btn--primary { width: 100%; }
.hero__topic { display: flex; align-items: flex-start; gap: 14px; }
.hero__topic h1 { margin-top: 2px; }
@media (max-width: 639px) { .hero__topic > .tile__ico { display: none; } }
.trustline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trustline li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.trustline .ico { color: var(--c-ok); width: 26px; height: 26px; }

/* карточка «путь клиента» */
.path-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px 18px; align-self: start; }
.path-card__title { font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.path-card__list { list-style: none; margin: 0; padding: 0; }
.path-card__list li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--c-line); position: relative; }
.path-card__list li:first-child { border-top: 0; padding-top: 4px; }
.path-card__n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.path-card__list b { display: block; }
.path-card__list div > span { display: block; color: var(--c-muted); font-size: var(--fs-small); }
.path-card__price { grid-column: 2; font-style: normal; font-weight: 800; color: var(--c-primary); font-size: 1.15rem; }
.path-card__price--free { color: var(--c-ok); }
.path-card__note { margin: 8px 0 0; padding-top: 12px; border-top: 1px dashed var(--c-line); font-size: var(--fs-small); color: var(--c-muted); }

/* ============ 7. Плитки направлений ============ */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tile {
  display: flex; align-items: center; gap: 14px; height: 100%; min-height: 88px; padding: 16px;
  background: var(--c-surface); border: 2px solid var(--c-line); border-radius: var(--r); text-decoration: none; color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--c-primary); box-shadow: var(--shadow); color: var(--c-text); }
.tile__ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; }
.tile__ico .ico { width: 28px; height: 28px; }
.tile__ico--lg { width: 60px; height: 60px; }
.tile__ico--lg .ico { width: 32px; height: 32px; }
.tile__body { flex: 1; display: flex; flex-direction: column; }
.tile__title { font-weight: 800; font-size: 1.15rem; }
.tile__text { color: var(--c-muted); font-size: var(--fs-small); line-height: 1.45; }
.tile__go { color: var(--c-primary); }
.tile--other { border-style: dashed; }

/* ============ 8. Документы ============ */
.docs-band { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.docs-band h2 { color: #fff; }
.docs-band__intro p { color: #dfe8f5; font-size: var(--fs-lead); }
.docs-band__rules { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.docs-band__rules li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.docs-band__rules .ico { color: #ffd166; margin-top: 2px; }
.docs-band .btn--light { width: 100%; }
.docs-band__list { background: var(--c-surface); color: var(--c-text); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); }
.docs-band__caption { font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.docs-band__small { font-size: var(--fs-small); color: var(--c-muted); margin: 12px 0 0; }
.doc-links { list-style: none; margin: 0; padding: 0; }
.doc-links li + li { border-top: 1px solid var(--c-line); }
.doc-link { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 12px 4px; min-height: var(--tap); text-decoration: none; color: var(--c-text); align-items: center; }
.doc-link .ico { color: var(--c-primary); grid-row: span 2; }
.doc-link__name { font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: .2em; }
.doc-link:hover .doc-link__name { text-decoration-color: var(--c-primary); color: var(--c-primary); }
.doc-link__price { font-size: var(--fs-small); color: var(--c-muted); }

.rule-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rule-cards li { display: flex; gap: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-left: 5px solid var(--c-primary); border-radius: var(--r); padding: 16px; }
.rule-cards .ico { color: var(--c-primary); width: 28px; height: 28px; margin-top: 2px; }
.rule-cards h3 { font-size: 1.1rem; margin-bottom: .25em; }
.rule-cards p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 8px 16px; border: 2px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-text); text-decoration: none; font-weight: 600; }
.chip .ico { color: var(--c-primary); }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }

.catalog .doc-group { padding: 40px 0; border-top: 1px solid var(--c-line); }
.catalog .doc-group:nth-child(even) { background: var(--c-surface); }
.doc-group__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.doc-group__head h2 { margin-bottom: .2em; }
.doc-group__head p { color: var(--c-muted); margin: 0; }
.doc-group__more { margin: 20px 0 0; font-weight: 600; }
.doc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.doc-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.doc-card__top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.doc-card__ico { width: 32px; height: 32px; color: var(--c-primary); margin-top: 1px; }
.doc-card__title { font-size: 1.15rem; margin: 0; }
.doc-card__when { color: var(--c-muted); font-size: var(--fs-small); }
.doc-card__when b { color: var(--c-text); }
.doc-card__note { font-size: var(--fs-small); background: var(--c-note-bg); color: var(--c-note-text); border-radius: var(--r-sm); padding: 8px 12px; }
.doc-card__meta { display: flex; gap: 10px; margin: auto 0 14px; padding-top: 6px; }
.doc-card__meta div { flex: 1; background: var(--c-primary-soft); border-radius: var(--r-sm); padding: 8px 12px; }
.doc-card__meta dt { font-size: 1rem; color: var(--c-muted); }
.doc-card__meta dd { margin: 0; font-weight: 800; color: var(--c-primary); }

/* ============ 9. Шаги ============ */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline__item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; position: relative; padding-bottom: 26px; align-content: start; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--c-line); }
.timeline__num { width: 52px; height: 52px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; position: relative; }
.timeline__body h3 { margin: 10px 0 .35em; }
.timeline__body p { color: var(--c-muted); margin-bottom: .6em; }
.timeline__tag { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 800; font-size: var(--fs-small); }
.timeline__tag--free { background: var(--c-ok-soft); color: var(--c-ok); }

.numlist { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.numlist li { counter-increment: n; position: relative; padding: 14px 16px 14px 62px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); min-height: 60px; }
.section--alt .numlist li { background: var(--c-bg); }
.numlist li::before { content: counter(n); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.numlist--compact li { padding: 6px 0 6px 50px; border: 0; background: none; min-height: 44px; }
.numlist--compact li::before { left: 0; top: 4px; }

/* ============ 10. Списки ============ */
.list-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 36px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6b57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.list-check--compact { gap: 6px; }
.list-check--cards { gap: 10px; }
.list-check--cards li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 14px 16px 14px 52px; }
.list-check--cards li::before { left: 16px; top: 16px; }
.list-dot { padding-left: 1.2em; margin: 0; }
.list-dot li { margin-bottom: 6px; }

/* ============ 11. Карточки, цены ============ */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.ico--ok { color: var(--c-ok); }
.two-col { display: grid; gap: 16px; }

.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--shadow); position: relative; }
.price-card h3 { margin-bottom: .3em; }
.price-card p { color: var(--c-muted); }
.price-card .btn { margin-top: auto; }
.price-card__price { font-size: 1.75rem; font-weight: 800; color: var(--c-text) !important; margin: .1em 0 .5em; letter-spacing: -.01em; }
.price-card--main { border: 3px solid var(--c-primary); }
.price-card__badge { align-self: flex-start; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--c-primary); color: #fff !important; font-weight: 700; font-size: 1rem; }
.price-card .list-check { margin-bottom: 1.2em; }

/* обещания / чего не делаем */
.promises, .notdo { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.promises li, .notdo li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line); }
.section--alt .promises li, .section--alt .notdo li { background: var(--c-bg); }
.promises .ico, .notdo .ico { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); }
.notdo .ico { background: var(--c-danger-soft); color: var(--c-danger); }
.promises h3, .notdo h3 { font-size: 1.12rem; margin: 2px 0 .3em; }
.promises p, .notdo p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }

/* кто отвечает */
.resp { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.resp__main p { max-width: 42em; }
.resp__links { font-weight: 600; }
.resp__req { margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 8px 18px; box-shadow: var(--shadow); }
.section--alt .resp__req { background: var(--c-bg); box-shadow: none; }
.resp__req div { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.resp__req div:last-child { border-bottom: 0; }
.resp__req dt { font-size: 1rem; color: var(--c-muted); }
.resp__req dd { margin: 0; font-weight: 700; }

/* баннер */
.banner { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.banner--plain { box-shadow: none; margin-top: 24px; }
.section--warm .banner--plain { background: transparent; border: 0; padding: 0; margin: 0; }
.banner__text { flex: 1 1 300px; }
.banner__text h2, .banner__text h3 { margin-bottom: .3em; font-size: clamp(1.3rem, 3.6vw, 1.6rem); }
.banner__text p { margin: 0; color: var(--c-muted); }
.banner > .btn { flex: 1 1 100%; }

/* уведомление */
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; background: var(--c-ok-soft); border-radius: var(--r); color: #0b4f43; }
.notice .ico { color: var(--c-ok); margin-top: 2px; }
.notice p { margin: 0; }

/* якорное меню страницы */
.anchors { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.anchors a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.anchors a:hover { border-color: var(--c-primary); }

/* ============ 12. Примеры документов («бумага») ============ */
.example { display: grid; gap: 28px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.paper {
  position: relative; background: #fff; color: #1b2430; border: 1px solid var(--c-line); border-radius: 6px;
  box-shadow: 0 1px 0 #e7ebf0, 0 3px 0 -1px #fff, 0 4px 0 -1px var(--c-line), var(--shadow-lg);
  padding: 18px 18px 22px; font-size: 1.02rem;
}
.paper__stamp {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px;
  border: 2px solid var(--c-note-text); color: var(--c-note-text); background: var(--c-note-bg);
  border-radius: 6px; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
}
.paper__head { border-bottom: 2px solid var(--c-text); padding-bottom: 10px; margin-bottom: 14px; }
.paper__kicker { font-size: 1rem; color: var(--c-muted); margin: 0 0 4px; }
.paper__title { font-size: 1.3rem; margin: 0 0 4px; }
.paper__meta { font-size: 1rem; color: var(--c-muted); margin: 0; }
.paper__sec h4 { font-size: 1.02rem; margin: 14px 0 6px; color: var(--c-primary); }
.paper__sec p, .paper__sec li { font-size: 1rem; }
.paper__sec ol { padding-left: 1.3em; }
.paper__sec li { margin-bottom: 6px; }
.paper--doc { font-family: var(--font-doc); line-height: 1.55; }
.paper--doc p { font-size: 1.02rem; text-align: left; }
.paper__addr { display: flex; justify-content: flex-end; }
.paper__addr p { max-width: 60%; min-width: 200px; }
.paper__doctitle { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 18px 0; }
.paper__doctitle span { text-transform: none; font-weight: 400; letter-spacing: 0; }
.paper__fade { color: #8a95a3; }
.clip { max-height: 560px; overflow: hidden; position: relative; border-radius: 6px; }
.clip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(250, 246, 238, 0), var(--c-warm)); pointer-events: none; }

/* ============ 13. FAQ ============ */
.faq { max-width: 880px; }
.faq details { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r); margin-bottom: 10px; }
.faq summary { cursor: pointer; min-height: 60px; padding: 16px 56px 16px 18px; font-weight: 700; list-style: none; position: relative; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--c-primary); }
.faq details > div { padding: 0 18px 16px; color: var(--c-muted); }
.faq details > div p { margin: 0; }

/* ============ 14. Форма-квиз ============ */
.form-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.form-wrap { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 20px 16px; box-shadow: var(--shadow-lg); max-width: 760px; width: 100%; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz legend { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; padding: 0; line-height: 1.3; }
.quiz__stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; }
.quiz__stepper li { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 1rem; color: var(--c-muted); text-align: center; }
.quiz__dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-control); display: grid; place-items: center; font-weight: 800; background: #fff; color: var(--c-muted); }
.quiz__stepper li.is-current { color: var(--c-text); font-weight: 700; }
.quiz__stepper li.is-current .quiz__dot { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.quiz__stepper li.is-done .quiz__dot { background: var(--c-ok-soft); border-color: var(--c-ok); color: var(--c-ok); }
.quiz__progress { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: 6px; }
.quiz__bar { height: 8px; background: var(--c-primary-soft); border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 25%; background: var(--c-primary); transition: width .25s; }
.quiz__chosen { color: var(--c-muted); }
.quiz__q { font-weight: 700; margin: 1.1rem 0 .5rem; }
.quiz__q:first-of-type { margin-top: .25rem; }
.quiz__free { text-align: center; font-size: var(--fs-small); color: var(--c-ok); font-weight: 600; margin: 12px 0 0; }
.choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  border: 2px solid var(--c-control); border-radius: var(--r-sm); background: #fff; font-weight: 600; line-height: 1.35;
}
.choice span::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-control); background: #fff; }
.choice:hover span { border-color: var(--c-primary); }
.choice input:checked + span { border-color: var(--c-primary); background: var(--c-primary-soft); }
.choice input:checked + span::before { border-color: var(--c-primary); box-shadow: inset 0 0 0 5px #fff; background: var(--c-primary); }
.choice input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--c-muted); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--c-control); border-radius: var(--r-sm); background: #fff; color: var(--c-text);
  min-height: 56px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder { color: #6b7a90; }
.field input:focus, .field textarea:focus { border-color: var(--c-primary); outline: 3px solid var(--c-focus); outline-offset: 2px; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; accent-color: var(--c-primary); }
.field--check label { font-weight: 400; margin: 0; }
.hint--safe { color: var(--c-note-text); background: var(--c-note-bg); border-radius: var(--r-sm); padding: 8px 12px; }
.field-error, .form-status { color: var(--c-danger); font-weight: 700; }
.field-error { background: var(--c-danger-soft); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px; }
.form-status { background: var(--c-danger-soft); padding: 12px 14px; border-radius: var(--r-sm); margin-top: 12px; }
.quiz__nav { display: flex; gap: 10px; margin-top: 20px; }
.quiz__nav .btn--primary { flex: 1; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quiz-done { padding: 4px 0; outline: none; }
.quiz-done__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--c-ok-soft); color: var(--c-ok); display: grid; place-items: center; margin: 0 0 12px; }
.quiz-done__icon .ico { width: 34px; height: 34px; stroke-width: 2.5; }
.quiz-done h3 { color: var(--c-ok); font-size: 1.45rem; }
.quiz-done .numlist { margin-bottom: 18px; }
.quiz-done__pay { border-top: 1px solid var(--c-line); padding-top: 16px; }

/* ============ 15. Правовые страницы ============ */
.doc { background: var(--c-surface); padding: 24px 16px; border-radius: var(--r); border: 1px solid var(--c-line); max-width: 880px; margin: 16px auto 32px; }
.doc h2 { font-size: 1.3rem; margin-top: 1.4em; }
.draft-note { background: var(--c-note-bg); color: var(--c-note-text); border: 1px solid #e6c34d; border-radius: var(--r-sm); padding: 12px 16px; font-weight: 700; }

/* ============ 16. Подвал ============ */
.site-footer { background: var(--c-text); color: #c9d2de; padding: 40px 0 28px; font-size: 1.02rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--c-focus-dark); }
.site-footer__grid { display: grid; gap: 28px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: #fff; }
.site-footer__brand .logo__mark { width: 36px; height: 36px; }
.site-footer__h { color: #fff; font-weight: 800; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer__small { font-size: var(--fs-small); }
.footer-legal { border-top: 1px solid #3a4556; margin-top: 28px; padding-top: 18px; font-size: var(--fs-small); }
.footer-legal b { color: #fff; }

/* ============ 17. Нижняя кнопка (телефон) ============ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(20, 32, 46, .08);
  transition: transform .2s;
}
.sticky-cta.is-hidden { transform: translateY(110%); }

/* ============ 18. Оплата ============ */
.pay { padding: 28px 0 48px; }
.pay__card { max-width: 600px; margin: 0 auto; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px 18px; }
.pay__eyebrow { margin: 0; color: var(--c-muted); font-size: var(--fs-small); font-weight: 600; }
.pay__title { margin: .2em 0 .15em; font-size: 1.8rem; }
.pay__service { margin: 0; color: var(--c-muted); }
.pay__amount { margin: .3em 0 .5em; font-size: 2.6rem; font-weight: 800; color: var(--c-primary); letter-spacing: -.01em; }
.pay__points { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.pay__points li { display: flex; gap: 12px; align-items: flex-start; }
.pay__points .ico { color: var(--c-ok); margin-top: 2px; }
.pay__h2 { font-size: 1.3rem; margin: 1.2em 0 .7em; padding-top: 1em; border-top: 1px solid var(--c-line); }
.pay__method { margin-bottom: 1.2em; }
.pay__step { margin: 0 0 .8em; display: flex; gap: 12px; align-items: flex-start; }
.pay__num { flex: none; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: var(--c-primary); color: #fff; display: inline-grid; place-items: center; font-size: 1rem; }
.pay__btn { width: 100%; }
.pay__req { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; background: var(--c-primary-soft); border-radius: var(--r-sm); padding: 12px 14px; margin: 8px 0; }
.pay__req b { font-size: 1.15rem; word-break: break-word; }
.pay__req b[data-sbp-phone] { white-space: nowrap; }
.pay__label { display: block; font-size: 1rem; color: var(--c-muted); }
.pay__copy { flex: none; min-height: var(--tap); padding: 8px 14px; font-size: 1rem; }
.pay__confirm { margin-top: 1.2em; padding-top: 1.2em; border-top: 1px dashed var(--c-line); }
.pay__state { margin-top: 1em; padding: 14px 16px; border-radius: var(--r-sm); background: var(--c-primary-soft); }
.pay__state--ok { background: var(--c-ok-soft); color: #0b4f43; }
.pay__state--err { background: var(--c-danger-soft); color: var(--c-danger); }
.pay__safe { display: flex; gap: 12px; align-items: flex-start; margin-top: 1.4em; padding: 14px 16px; border-radius: var(--r-sm); background: var(--c-bg); }
.pay__safe .ico { color: var(--c-ok); margin-top: 2px; }
.pay__safe p { margin: 0; font-size: var(--fs-small); }
.pay__legal { margin: 1.2em 0 0; font-size: var(--fs-small); color: var(--c-muted); }

/* ============ 19. Адаптив ============ */
@media (max-width: 380px) {
  .logo__tag { display: none; }
}
@media (max-width: 479px) {
  .quiz__stepper li:not(.is-current) .quiz__sname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .quiz__stepper li.is-current .quiz__sname { white-space: nowrap; }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choices--col { grid-template-columns: 1fr; }
  .hero__actions .btn--primary { width: auto; }
  .site-header .header-cta { display: inline-flex; min-height: var(--tap); padding: 8px 16px; font-size: 1rem; }
  .form-wrap { padding: 28px; }
  .doc { padding: 32px 40px; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .docs-band .btn--light { width: auto; }
  .banner > .btn { flex: 0 0 auto; }
  .paper { padding: 52px 32px 28px; }
  .paper__stamp { position: absolute; top: 12px; right: 12px; margin: 0; }
  .pay__card { padding: 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .list-check--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  :root { --section: 80px; }
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .hero { padding: 64px 0 72px; }
  .hero--page { padding: 32px 0 48px; }
  .hero__grid { grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; }
  .docs-band { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; padding-bottom: 0; }
  .timeline__item:not(:last-child)::before { left: 60px; right: -20px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .timeline--compact .timeline__body h3 { margin-top: 6px; }
  .example { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .form-layout { grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
  .resp { grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .promises--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; order: 0; margin-left: auto; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { min-height: var(--tap); padding: 0 12px; border-bottom: 0; border-radius: var(--r-sm); font-size: 1.02rem; }
  .site-nav a:hover { background: var(--c-primary-soft); }
  .site-header__row { flex-wrap: nowrap; }
  .logo { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .sticky-cta, .site-footer, .form-wrap, .hero__actions { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* ---------- Чат на сайте (chat.html) ---------- */
.chat-page { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 900px) { .chat-page { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.chat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 20px 16px; display: flex; flex-direction: column; min-height: 60vh; }
@media (min-width: 640px) { .chat { padding: 24px; } }
.chat__head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 12px; }
.chat__title { margin: 0; font-size: 1.5rem; }
.chat__sub { margin: .2em 0 0; color: var(--c-muted); }
.chat__link-btn { min-height: 40px; padding: 6px 14px; font-size: var(--fs-small); }
.chat__intro { display: flex; flex-direction: column; gap: 10px; }
.chat__intro-label { font-weight: 700; font-size: 1.25rem; }
.chat__intro textarea, .chat__send textarea { width: 100%; font: inherit; font-size: var(--fs-base); line-height: 1.5;
  border: 2px solid var(--c-control); border-radius: var(--r); padding: 12px; resize: vertical; background: #fff; color: var(--c-text); }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: min(62vh, 640px); overscroll-behavior: contain;
  padding: 4px 2px 8px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; line-height: 1.5; word-wrap: break-word; }
.msg__who { display: block; font-size: .85rem; font-weight: 700; color: var(--c-muted); margin-bottom: 2px; }
.msg--client { align-self: flex-end; background: var(--c-primary); color: #fff; border-bottom-right-radius: 4px; }
.msg--client .msg__who { color: #dbe7f7; }
.msg--agent { align-self: flex-start; background: var(--c-primary-soft); border-bottom-left-radius: 4px; }
.msg--lawyer { align-self: flex-start; background: var(--c-ok-soft); border: 1px solid #b9dfd2; border-bottom-left-radius: 4px; }
.msg--lawyer .msg__who { color: var(--c-ok); }
.msg--system { align-self: center; max-width: 94%; background: var(--c-note-bg); color: var(--c-note-text); font-size: var(--fs-small); text-align: center; }
.msg--card { background: #fff; border: 2px solid var(--c-primary); box-shadow: var(--shadow); }
.msg__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg__buttons .btn { min-height: var(--tap); }
.btn--choice { background: #fff; color: var(--c-primary); border: 2px solid var(--c-primary); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; min-height: var(--tap); }
.btn--choice:hover:not(:disabled) { background: var(--c-primary-soft); }
.btn--choice:disabled { opacity: .45; cursor: default; }
.chat__typing { margin: 4px 0; color: var(--c-muted); font-size: var(--fs-small); }
.chat__typing span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--c-muted);
  animation: chat-dot 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; } .chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat__typing span { animation: none; } }
.chat__send { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-line); }
.chat__send textarea { flex: 1; min-height: var(--tap); }
.chat__send-btn { flex: none; min-height: var(--tap); }
.chat__closed { margin-top: 12px; padding: 12px; background: var(--c-primary-soft); border-radius: var(--r); }
.chat__foot { margin: 10px 0 0; }
.chat-aside { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 20px; }
.chat-aside__title { font-size: 1.2rem; margin: 0 0 .6em; }
.chat-aside__steps { padding-left: 1.2em; margin: 0 0 1em; }
.chat-aside__steps li { margin: .5em 0; }
.page-chat .sticky-cta { display: none; }
.chat__attach { flex: none; min-height: var(--tap); min-width: var(--tap); padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat__attach:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.msg__file { font-weight: 700; margin-left: 4px; }
.msg--client .msg__file { color: #fff; }

/* ---------- Магазин бланков (blanki.html, zakaz.html) ---------- */
.shop-diff { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .shop-diff { grid-template-columns: 1fr 1fr; } }
.shop-diff > div { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 14px 16px; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.shop-search { flex: 1 1 280px; max-width: 460px; }
.shop-search input { width: 100%; min-height: var(--tap); font: inherit; padding: 10px 14px; border: 2px solid var(--c-control); border-radius: 999px; background: #fff; }
.shop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 12px; }
.shop-card { display: flex; flex-direction: column; gap: 8px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.shop-card[hidden] { display: none; }
.shop-card__aud { margin: 0; font-size: var(--fs-small); color: var(--c-ok); font-weight: 700; }
.shop-card__title { margin: 0; font-size: 1.2rem; }
.shop-card__when { margin: 0; }
.shop-card__meta { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 16px; margin: 4px 0; justify-content: start; }
.shop-card__meta dt { font-size: .85rem; color: var(--c-muted); }
.shop-card__meta dd { margin: 0; font-weight: 700; }
.shop-card__review { margin: 0; font-size: var(--fs-small); color: var(--c-muted); }
.shop-card__more summary { cursor: pointer; font-weight: 600; color: var(--c-primary); min-height: 32px; }
.shop-card__more[open] { padding-bottom: 6px; }
.shop-card__limits { font-size: var(--fs-small); background: var(--c-note-bg); color: var(--c-note-text); padding: 8px 10px; border-radius: var(--r-sm); }
.shop-card .btn { margin-top: auto; }
.shop-card__soon { margin-top: auto; color: var(--c-muted); font-weight: 600; }
.shop-sample { margin: 8px 0; }
.shop-sample figcaption { font-size: .85rem; color: var(--c-muted); }
.shop-sample blockquote { margin: 4px 0 0; padding: 10px 12px; border-left: 4px solid var(--c-primary); background: var(--c-warm); font-family: var(--font-doc); white-space: pre-line; }
.shop-empty, .shop-none { padding: 16px; background: var(--c-primary-soft); border-radius: var(--r); }
.shop-dialog { border: 0; border-radius: var(--r-lg); padding: 0; max-width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.shop-dialog::backdrop { background: rgba(20, 32, 46, .45); }
.shop-dialog__form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.shop-dialog__form h2 { margin: 0; font-size: 1.3rem; }
.shop-dialog__form input[type=text] { width: 100%; min-height: var(--tap); font: inherit; padding: 10px 12px; border: 2px solid var(--c-control); border-radius: var(--r-sm); }
.shop-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order-status { font-weight: 600; padding: 10px 12px; background: var(--c-primary-soft); border-radius: var(--r-sm); }
.order-status:empty { display: none; }
.order-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
/* страницы бланков blanki/<id>.html и ссылки на них */
.shop-card__title a { color: inherit; text-decoration: none; }
.shop-card__title a:hover { color: var(--c-primary); text-decoration: underline; }
.shop-card__link { font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.blank-buy { display: flex; flex-direction: column; gap: 8px; max-width: 520px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); margin-top: 8px; }
.blank-buy__price { margin: 0; font-size: 1.8rem; font-weight: 800; }
.blank-buy .hint { margin: 0; }
.blank-page { max-width: 880px; }
.blank-page h2 { margin-top: 1.6em; }
.blank-page h2:first-child { margin-top: 0; }
.blank-links { max-width: 720px; }
