/* ============================================================
   Стоп Приказ — Единый стиль правовых страниц (вариант A)
   Документ с боковым оглавлением (scrollspy). Reuses tokens
   + nav/footer/buttons from styles.css.
   ============================================================ */

.doc-a { width: min(1180px, 100% - 48px); margin: clamp(24px,4vh,48px) auto clamp(64px,8vh,110px); }

.doc-a__head { padding: clamp(30px,4vw,52px) clamp(28px,4vw,56px); border-radius: var(--radius-xl); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.doc-a__head::before { content:""; position:absolute; inset:0; opacity:.5; background-image: repeating-linear-gradient(135deg, transparent 0 40px, rgba(198,249,43,0.06) 40px 41px); }
.doc-a__head > * { position: relative; }
.doc-a__tag { display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color: var(--lime); }
.doc-a__tag::before { content:""; width:22px; height:3px; background: var(--lime); border-radius:3px; }
.doc-a__title { font-family: var(--font-head); font-weight:800; font-size: clamp(34px,5vw,64px); line-height:.98; letter-spacing:-.04em; margin:20px 0 14px; max-width: 18ch; }
.doc-a__sub { color: rgba(255,255,255,.74); font-size: clamp(16px,1.4vw,19px); line-height:1.5; max-width: 60ch; }
.doc-a__meta { margin-top:26px; display:flex; flex-wrap:wrap; gap:10px; }
.doc-a__meta span { font-size:13px; font-weight:600; color:#fff; background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); padding:8px 14px; border-radius: var(--radius-pill); }
.doc-a__meta span b { color: var(--lime); font-weight:700; }

.doc-a__grid { display:grid; grid-template-columns: 248px 1fr; gap: clamp(28px,4vw,64px); margin-top: clamp(28px,4vw,52px); align-items:start; }

/* sticky table of contents */
.toc { position: sticky; top: 98px; }
.toc__t { font-weight:700; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); margin-bottom:14px; padding-left:14px; }
.toc__list { list-style:none; margin:0; padding:0; display:grid; gap:2px; max-height: calc(100vh - 150px); overflow:auto; }
.toc__list a { display:flex; gap:10px; align-items:baseline; padding:8px 14px; border-radius:10px; font-size:14px; font-weight:600; color: var(--muted); line-height:1.3; transition: background .15s, color .15s; }
.toc__list a:hover { background: var(--paper); color: var(--ink); }
.toc__list a.active { background: var(--ink); color:#fff; }
.toc__n { flex:none; font-family: var(--font-head); font-weight:800; font-size:12px; color: var(--ink); width:20px; }
.toc__list a.active .toc__n { color: var(--lime); }

/* body + sections */
.doc-a__body { min-width:0; font-size:17px; line-height:1.7; color: var(--ink-2); }
.doc-a__intro { font-size: clamp(18px,1.6vw,21px); line-height:1.6; color: var(--ink); padding-bottom:8px; }
.doc-a__intro strong { font-weight:700; }
.sec { padding-top: 14px; margin-top: 30px; border-top: 1.5px solid var(--line); scroll-margin-top: 96px; }
.sec:first-of-type { border-top: none; }
.sec__h { display:flex; gap:16px; align-items:flex-start; margin-bottom:18px; }
.sec__n { flex:none; font-family: var(--font-head); font-weight:800; font-size:18px; color: var(--ink); background: var(--lime); width:42px; height:42px; border-radius:12px; display:grid; place-items:center; letter-spacing:-.02em; }
.sec__t { font-family: var(--font-head); font-weight:800; font-size: clamp(22px,2.6vw,30px); letter-spacing:-.03em; line-height:1.1; padding-top:6px; }
.sec p { margin:0 0 14px; max-width: 70ch; }
.sec p .cl { font-family: var(--font-head); font-weight:800; color: var(--ink); margin-right:7px; font-size: .94em; }
.sec p.note { background: var(--paper); border:1.5px solid var(--line); border-left: 4px solid var(--lime); border-radius: 12px; padding:16px 20px; color: var(--ink-2); }
.sec p.intro { font-weight:600; color: var(--ink); }

/* clean bullet / cross lists inside sections */
.sec__list { list-style:none; margin:4px 0 18px; padding:0; display:grid; gap:11px; max-width:70ch; }
.sec__list li { display:flex; gap:12px; font-size:16px; line-height:1.5; color: var(--ink-2); }
.sec__list li::before { content:""; flex:none; width:22px; height:22px; margin-top:1px; border-radius:50%; background: var(--lime); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314160B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; background-size:13px; }
.sec__list.x li::before { background-color: var(--paper); border:1.5px solid var(--line); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0432f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; background-size:11px; }
/* нейтральный маркер — для перечислений без оценочного смысла */
.sec__list.n li { gap:14px; }
.sec__list.n li::before { width:7px; height:7px; margin:9px 0 0 7px; border:none; background: var(--lime); background-image:none; }

/* tariff mini-table */
.ptable { border:1.5px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; margin:8px 0 18px; max-width:none; }
.ptable__row { display:grid; grid-template-columns: 200px 1fr; gap:0; border-top:1.5px solid var(--line); }
.ptable__row:first-child { border-top:none; }
.ptable__c { padding:18px 22px; }
.ptable__c--l { background: var(--paper); border-right:1.5px solid var(--line); }
.ptable__name { font-family: var(--font-head); font-weight:800; font-size:18px; letter-spacing:-.02em; }
.ptable__price { font-family: var(--font-head); font-weight:800; font-size:30px; letter-spacing:-.03em; margin-top:6px; }
.ptable__price span { font-size:14px; font-weight:600; color: var(--muted); }

/* requisites card */
.req { background: var(--paper); border:1.5px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 10px; max-width:none; }
.req__t { font-family: var(--font-head); font-weight:800; font-size:18px; margin-bottom:12px; }
.req p { margin:0; line-height:1.8; }
.req a { color: var(--ink); text-decoration: underline; text-underline-offset:3px; text-decoration-color: var(--lime); text-decoration-thickness:2px; font-weight:600; }

/* ---------- feedback form (contacts) ---------- */
.form { display:grid; gap:18px; max-width:560px; margin-top: 6px; }
.form__row { display:grid; gap:8px; }
.form__row label { font-weight:700; font-size:14px; color: var(--ink); }
.form__row label .opt { color: var(--muted); font-weight:600; }
.form input, .form textarea { font-family: var(--font-body); font-size:16px; padding:14px 16px; border:1.5px solid var(--line); border-radius:14px; background:#fff; color: var(--ink); width:100%; transition: border-color .15s; }
.form input::placeholder, .form textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.form input:focus, .form textarea:focus { outline:none; border-color: var(--ink); }
.form textarea { min-height:150px; resize:vertical; line-height:1.5; }
.form__actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.form__hint { font-size:13px; color: var(--muted); max-width:34ch; line-height:1.4; }
.form__ok { display:none; align-items:flex-start; gap:14px; background: var(--lime-pale); border:1.5px solid var(--lime); border-radius: var(--radius); padding:18px 20px; }
.form__ok.show { display:flex; }
.form__ok svg { flex:none; width:24px; height:24px; stroke: var(--ink); margin-top:1px; }
.form__ok b { font-family: var(--font-head); font-weight:800; font-size:16px; display:block; margin-bottom:3px; }
.form__ok span { font-size:14.5px; color: var(--ink-2); line-height:1.5; }

@media (max-width: 900px) {
  .doc-a__grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height:none; margin-bottom: 8px; border:1.5px solid var(--line); border-radius: var(--radius); padding:18px; }
  .toc__list { max-height:none; }
  .ptable__row { grid-template-columns: 1fr; }
  .ptable__c--l { border-right:none; border-bottom:1.5px solid var(--line); }
}

/* --- Доработки интеграции: honeypot, блок ошибки формы, чекбокс согласия --- */
/* honeypot anti-spam field (must stay visually hidden) */
.hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
/* form error block (mirrors .form__ok) */
.form__err { display:none; align-items:flex-start; gap:14px; background:#fbeae6; border:1.5px solid #b0432f; border-radius: var(--radius); padding:18px 20px; }
.form__err.show { display:flex; }
.form__err svg { flex:none; width:24px; height:24px; stroke:#b0432f; margin-top:1px; }
.form__err b { font-family: var(--font-head); font-weight:800; font-size:16px; display:block; margin-bottom:3px; color:#8f3325; }
.form__err span { font-size:14.5px; color:#7a3a30; line-height:1.5; }
/* consent checkbox row */
.form__consent { display:flex; gap:10px; align-items:flex-start; font-size:14px; color: var(--ink-2); line-height:1.45; }
.form__consent input { width:18px; height:18px; margin-top:2px; flex:none; accent-color: var(--ink); }
.form__consent a { color:inherit; text-decoration:underline; }
