/* styles.css — статическая замена Tailwind Play CDN.
   Содержит только те утилиты, что реально используются на manual-hub.ru */

*,::before,::after{box-sizing:border-box;border:0 solid #e5e7eb}
html{-webkit-text-size-adjust:100%;line-height:1.5;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
body{margin:0;line-height:inherit}
h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}
ul,ol{margin:0;padding:0}
a{color:inherit;text-decoration:inherit}
button{font-family:inherit;font-size:100%;margin:0;padding:0;background:none;cursor:pointer}
input{font-family:inherit;font-size:100%;margin:0;padding:0;line-height:inherit;color:inherit}
img,svg{display:block;vertical-align:middle;max-width:100%;height:auto}
table{border-collapse:collapse;text-indent:0;border-color:inherit}
strong{font-weight:bolder}

/* --- display / layout --- */
.block{display:block}
.inline-flex{display:inline-flex}
.flex{display:flex}
.grid{display:grid}
.hidden{display:none}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}
.items-center{align-items:center}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.overflow-hidden{overflow:hidden}
.fixed{position:fixed}
.sticky{position:sticky}
.top-0{top:0}
.right-4{right:1rem}
.bottom-4{bottom:1rem}
.bottom-20{bottom:5rem}
.z-10{z-index:10}
.z-20{z-index:20}

/* --- sizing --- */
.w-full{width:100%}
.w-5{width:1.25rem}
.w-11{width:2.75rem}
.h-5{height:1.25rem}
.h-11{height:2.75rem}
.min-h-screen{min-height:100vh}
.max-w-none{max-width:none}
.max-w-4xl{max-width:56rem}
.max-w-5xl{max-width:64rem}
.mx-auto{margin-left:auto;margin-right:auto}

/* --- spacing --- */
.gap-2{gap:.5rem}
.gap-3{gap:.75rem}
.gap-4{gap:1rem}
.space-y-2>*+*{margin-top:.5rem}
.space-y-6>*+*{margin-top:1.5rem}
.p-5{padding:1.25rem}
.p-6{padding:1.5rem}
.px-2{padding-left:.5rem;padding-right:.5rem}
.px-3{padding-left:.75rem;padding-right:.75rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}
.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-4{padding-top:1rem;padding-bottom:1rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.py-8{padding-top:2rem;padding-bottom:2rem}
.ml-2{margin-left:.5rem}
.mb-1{margin-bottom:.25rem}
.mb-2{margin-bottom:.5rem}
.mb-3{margin-bottom:.75rem}
.mb-4{margin-bottom:1rem}
.mb-6{margin-bottom:1.5rem}
.mb-8{margin-bottom:2rem}
.mb-10{margin-bottom:2.5rem}
.mr-4{margin-right:1rem}
.mt-10{margin-top:2.5rem}
.mt-12{margin-top:3rem}
.my-6{margin-top:1.5rem;margin-bottom:1.5rem}

/* --- typography --- */
.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
.text-xs{font-size:.75rem;line-height:1rem}
.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.font-bold{font-weight:700}
.font-extrabold{font-weight:800}
.italic{font-style:italic}
.capitalize{text-transform:capitalize}
.text-left{text-align:left}
.text-center{text-align:center}
.leading-normal{line-height:1.5}
.tracking-normal{letter-spacing:0}
.tracking-tight{letter-spacing:-.025em}
.whitespace-nowrap{white-space:nowrap}
.list-none{list-style-type:none}

/* --- colors --- */
.text-white{color:#fff}
.text-gray-400{color:#9ca3af}
.text-gray-500{color:#6b7280}
.text-gray-600{color:#4b5563}
.text-gray-700{color:#374151}
.text-gray-800{color:#1f2937}
.text-gray-900{color:#111827}
.text-blue-600{color:#2563eb}
.bg-white{background-color:#fff}
.bg-gray-50{background-color:#f9fafb}
.bg-gray-100{background-color:#f3f4f6}
.bg-blue-50{background-color:#eff6ff}
.bg-blue-600{background-color:#2563eb}

/* --- borders --- */
.border{border-width:1px}
.border-b{border-bottom-width:1px}
.border-t{border-top-width:1px}
.border-gray-100{border-color:#f3f4f6}
.border-gray-200{border-color:#e5e7eb}
.border-gray-300{border-color:#d1d5db}
.border-blue-200{border-color:#bfdbfe}
.rounded{border-radius:.25rem}
.rounded-md{border-radius:.375rem}
.rounded-lg{border-radius:.5rem}
.rounded-full{border-radius:9999px}
.last\:border-0:last-child{border-width:0}

/* --- effects --- */
.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}
.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.shadow-md{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.transition-colors{transition-property:color,background-color,border-color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}

/* --- states --- */
.hover\:underline:hover{text-decoration-line:underline}
.hover\:text-blue-600:hover{color:#2563eb}
.hover\:text-blue-700:hover{color:#1d4ed8}
.hover\:bg-blue-700:hover{background-color:#1d4ed8}
.hover\:border-blue-400:hover{border-color:#60a5fa}
.hover\:border-blue-500:hover{border-color:#3b82f6}
.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}
.focus\:ring-2:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(96,165,250,.5)}
.focus\:ring-blue-400:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(96,165,250,.5)}

/* --- prose (минимальная типографика статьи) --- */
.prose h2{font-size:1.5rem;line-height:2rem;font-weight:700;margin-top:1.75rem;margin-bottom:.75rem;color:#111827}
.prose h3{font-size:1.15rem;line-height:1.6rem;font-weight:600;margin-top:1.4rem;margin-bottom:.5rem;color:#1f2937}
.prose p{margin-bottom:.9rem;line-height:1.75}
.prose ul,.prose ol{padding-left:1.5rem;margin-bottom:1rem}
.prose ul{list-style-type:disc}
.prose ol{list-style-type:decimal}
.prose li{margin-bottom:.4rem;line-height:1.7}
.prose table{width:100%;margin:1.25rem 0}
.prose a{color:#2563eb}
.prose a:hover{text-decoration-line:underline}

/* --- responsive --- */
@media (min-width:640px){
  .sm\:flex-row{flex-direction:row}
  .sm\:max-w-xs{max-width:20rem}
  .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:768px){
  .md\:p-8{padding:2rem}
  .md\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}
  .md\:text-2xl{font-size:1.5rem;line-height:2rem}
  .md\:text-3xl{font-size:1.875rem;line-height:2.25rem}
}

/* Единый отступ списков на всём сайте: карточка документа, советы, ячейки таблиц, «Похожие документы».
   Маркер (точка или номер) стоит с отступом от края текста, текст пункта — ещё правее. */
.a4-page ul, .a4-page ol, .doc-list { padding-left: 1.75rem; margin-bottom: 0.75rem; list-style-position: outside; }
.a4-page ul, .doc-list { list-style-type: disc; }
.a4-page ol { list-style-type: decimal; }
.a4-page li > ul, .a4-page li > ol { margin-top: 0.25rem; margin-bottom: 0.25rem; }

/* Таблицы «Пункт | Сведения»: узкая колонка названия, широкая — для заполнения. Поля ввода — на всю ячейку. */
.a4-page tr > td:first-child:nth-last-child(2) { width: 35%; }
/* Реквизиты сторон: стороны друг под другом, каждая на всю ширину; каждое поле — своей строкой. */
.a4-page .sides-1col { margin: 0.5rem 0 1rem; }
.a4-page .sides-1col .side-head { margin: 0.9rem 0 0.25rem; font-weight: 600; break-after: avoid; }
.a4-page .sides-1col .side-head:first-child { margin-top: 0; }
.a4-page .sides-1col .side-line { margin: 0.2rem 0; }
.a4-page .sides-1col .frow > input:not([size]):not([type=checkbox]):not([type=radio]) { flex: 1 1 8em; width: auto !important; min-width: min(8em, 100%); }
.a4-page li.side-li { list-style: none; }
/* В строке стороны линия и запятая после неё — один кусок: запятая не уезжает в начало следующей строки. */
.a4-page .sides-1col .frow > .fw { display: inline-flex; align-items: baseline; white-space: nowrap; max-width: 100%; }
/* Поля ввода в пунктах и абзацах — видимая линия (без неё «Марка:» стоит пустым). */
.a4-page :is(li, p) > input:not([type=checkbox]):not([type=radio]) { border: 0; border-bottom: 1px solid currentColor; background: transparent; border-radius: 0; min-width: min(12em, 100%); }
.a4-page :is(li, p) > textarea { display: block; width: 100%; border: 1px solid #cbd5e1; border-radius: 4px; min-height: 3em; }
/* Поле ввода в строке стороны — линия, как .fill (рамку ему давала ячейка таблицы). */
.a4-page .sides-1col input:not([type=checkbox]):not([type=radio]), .a4-page .sides-1col textarea { border: 0; border-bottom: 1px solid currentColor; background: transparent; border-radius: 0; }
.a4-page td > input[type=text]:only-child, .a4-page td > input[type=date]:only-child, .a4-page td > input[type=tel]:only-child, .a4-page td > input[type=datetime-local]:only-child, .a4-page td > textarea:only-child { width: 100%; box-sizing: border-box; }

/* Списки-чек-листы: маркером служит квадратик «□», точка не нужна; отступ тот же, что у остальных списков. */
.a4-page ul.checklist { list-style: none; }

/* Длинные линии «____» для заполнения переносятся, а не расширяют страницу на телефоне. */
.a4-page td, .a4-page th, .a4-page p, .a4-page li { overflow-wrap: anywhere; }

/* Линии для заполнения — нижняя граница, а не символы «_» (ширины: field_widths_sources.md).
   .fill с width:Nch — поле известной длины; .fill-grow внутри .frow — линия до правого края строки/ячейки. */
.a4-page .fill { display: inline-block; max-width: 100%; height: 1.2em; vertical-align: -0.3em; border-bottom: 1px solid currentColor; }
.a4-page .frow { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.3em; }
.a4-page .frow > .fill { flex: 0 1 auto; min-width: min(2em, 100%); }
.a4-page .fw { white-space: nowrap; } /* линия и знак препинания после неё не разрываются */
.a4-page .fw > .fill { max-width: calc(100% - 1em); }
.a4-page .frow > .fw { display: contents; }
.a4-page input, .a4-page select, .a4-page textarea { max-width: 100%; box-sizing: border-box; }
/* На телефоне ячейка не раздвигается линией: таблица делится по ширине экрана, линия ужимается до ширины ячейки. */
@media (max-width: 767px) {
  .a4-page table { table-layout: fixed; }
  .a4-page .fw { white-space: normal; }
}
/* Карточки — только на экране телефона; на печати и в Word документ остаётся таблицей. */
@media screen and (max-width: 767px) {
  /* Таблицы с заголовком колонок или от 3 колонок: строка = карточка, подпись колонки над значением (как на repairs). */
  .a4-page table.table-stack, .a4-page table.table-stack tbody, .a4-page table.table-stack tr, .a4-page table.table-stack td, .a4-page table.table-stack th { display: block; width: 100% !important; box-sizing: border-box; }
  .a4-page table.table-stack tr.stack-head { display: none !important; }
  .a4-page table.table-stack { border: 0; }
  .a4-page table.table-stack tr { border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 0.5rem; overflow: hidden; }
  .a4-page table.table-stack td { border: 0; border-bottom: 1px solid #f3f4f6; padding: 0.4rem 0.6rem; }
  .a4-page table.table-stack td:last-child { border-bottom: 0; }
  .a4-page table.table-stack td[data-label]::before { content: attr(data-label); display: block; font-weight: 600; font-size: 0.75rem; color: #6b7280; margin-bottom: 0.1rem; }
  .a4-page table.table-stack td:empty::after { content: ""; display: block; height: 1.4rem; border-bottom: 1px solid currentColor; }
  .a4-page table.table-stack td > input:not([type=checkbox]):not([type=radio]), .a4-page table.table-stack td > textarea { border: 0; border-bottom: 1px solid currentColor; background: transparent; }
  .a4-page table.table-stack td > input:only-child, .a4-page table.table-stack td > textarea:only-child { width: 100%; }
  /* «Название | поле» на телефоне — карточка: название сверху, поле под ним на всю ширину (документ не ужимается). */
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) { display: block; border: 0; }
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) > tbody { display: block; }
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) tr { display: block; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0.4rem 0.6rem; margin-bottom: 0.4rem; }
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) td { display: block; width: auto !important; border: 0; padding: 0.1rem 0; }
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) td:first-child:not(:only-child) { font-size: 0.85rem; color: #4b5563; }
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) td:last-child:not(:only-child):empty { height: 1.6rem; border-bottom: 1px solid currentColor; }
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) td > input:not([type=checkbox]):not([type=radio]), .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) td > textarea { border: 0; border-bottom: 1px solid currentColor; background: transparent; }
  .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) td > input:only-child, .a4-page table:not(.official-form table):not(:has(th, td:nth-child(3))) td > textarea:only-child { width: 100%; }
}
.a4-page .frow > .fill-grow { flex: 1 1 6em; min-width: min(6em, 100%); }

/* Официальные формы (заявления о регистрации): текст формы дословно, подписи под строками — мелко по центру. */
.a4-page .official-form table { font-size: 0.85rem; margin: 0.6rem 0; }
.a4-page .official-form td, .a4-page .official-form th { padding: 0.3rem 0.45rem; }
.a4-page .official-form p { margin-bottom: 0.35rem; }
.a4-page .official-form .cap { font-size: 0.72rem; line-height: 1.25; text-align: center; margin: -0.25rem 0 0.5rem; color: #374151; }
.a4-page .hint { display: block; font-size: 0.72rem; line-height: 1.25; text-align: center; color: #374151; margin: 0.05rem 0 0.4rem; }  /* подсказка под линией мелким шрифтом (layout §5 п. 5, §9) */
.a4-page .official-form .center { text-align: center; }
.a4-page .official-form .right { text-align: right; }
.a4-page .official-form .b { font-weight: 700; letter-spacing: 0.1em; }
.a4-page .official-form .fv { border-bottom: 1px solid currentColor; padding: 0 0.2em; color: #1e3a8a; font-style: italic; }
.a4-page .official-form table.sig { border: none; margin: 0.3rem 0 0.8rem; }
.a4-page .official-form table.sig td { border: none; text-align: center; vertical-align: bottom; padding: 0.2rem 0.6rem; }
.a4-page .official-form table.sig .cap { display: block; margin: 0.1rem 0 0; }
.a4-page .official-form td .cap { display: block; margin: 0.1rem 0 0; }
.a4-page .official-form table.grid6, .a4-page .official-form table.grid5 { table-layout: fixed; }
.a4-page .official-form td, .a4-page .official-form th { overflow-wrap: break-word; hyphens: auto; }
.a4-page .web-only .src { font-size: 0.85rem; color: #4b5563; }

/* Печать: только лист документа на А4, без шапки, кнопок, пояснений и похожих документов. */
@page { size: A4; margin: 20mm 25mm; }
@media print {
  body { background: #fff !important; }
  header, footer, main > *:not(.a4-page), .a4-page .web-only { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .a4-page { width: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  .a4-page tr, .a4-page .frow { break-inside: avoid; }
  .a4-page h3, .a4-page h4 { break-after: avoid; }  /* заголовок раздела не остаётся внизу листа без текста */
}

/* Название документа — по центру, прописными (эталон document_layout.md, разд. 1; формы МВД и ГТН). Официальные формы лежат в .official-form и не затрагиваются. */
.a4-page > h2:first-of-type { text-align: center; text-transform: uppercase; letter-spacing: 0.02em; }
/* Приложение к договору (акт приёма-передачи): на экране — отбивка, в печати — с новой страницы (решение владельца 02.10, п. 3) */
.a4-page .appendix { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed #9ca3af; }
.a4-page .appendix .right { text-align: right; }
.a4-page .appendix > h2 { text-align: center; text-transform: uppercase; letter-spacing: 0.02em; }
/* Шапка «Город/населенный пункт … Дата …»: место — слева, дата — у правого края (блок А, 02.10); в docx — табуляция к правому полю */
.a4-page p.place-date { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 1.5em; }
/* Разрыв между полями одной строки («Цвет … Год выпуска», «Телефон … Электронная почта») — вместо двойного пробела, который схлопывался */
.a4-page .gap { display: inline-block; width: 2.5em; }
/* «№ ___» под названием договора — по центру (решение владельца 02.10) */
.a4-page p.doc-num { text-align: center; }
/* Печать: ряд подписи второй стороны не уходит один на новый лист — держится с первым */
@media print { .a4-page .sig-block + .sig-block { break-before: avoid; page-break-before: avoid; } }
@media print { .a4-page .appendix { break-before: page; margin-top: 0; padding-top: 0; border-top: 0; } }

/* Ряд подписи стороны (эталон, разд. 8; формы МВД и ГТН): линия, под ней мелко — что пишется: (подпись) (фамилия, имя, отчество) (дата). */
.a4-page .sig-block { margin: 0.6rem 0 0.9rem; break-inside: avoid; }
.a4-page .sig-block .sig-role { margin: 0 0 0.15rem; }
.a4-page .sig-block .sig-note { margin: 0 0 0.15rem; }  /* отметка стороны над рядом: «Деньги получил.» (эталон, разд. 8 п. 3) */
.a4-page table.sig-row { width: 100%; border: 0; table-layout: fixed; margin: 0; }
.a4-page table.sig-row td { border: 0; padding: 0.1rem 0.5rem 0 0; vertical-align: bottom; text-align: center; }
.a4-page table.sig-row td:first-child { width: 28%; }
.a4-page table.sig-row td:last-child { width: 30%; white-space: nowrap; }
.a4-page table.sig-row .fill { display: block; width: 100%; max-width: none; }
.a4-page table.sig-row .fv { display: block; border-bottom: 1px solid currentColor; min-height: 1.2em; }
.a4-page table.sig-row .cap { display: block; font-size: 0.72rem; line-height: 1.2; color: #4b5563; }
.a4-page table.sig-row br { display: none; }  /* линия и .cap — блоки; <br> между ними давал пустую строку под линией (решение владельца 02.10, п. 3б) */
@media screen and (max-width: 767px) {
  .a4-page table.sig-row, .a4-page table.sig-row tbody, .a4-page table.sig-row tr, .a4-page table.sig-row td { display: block; width: 100% !important; }
  .a4-page table.sig-row td { padding: 0.35rem 0 0; text-align: left; }
}

@media (max-width: 640px) { .dl-tight { font-size: .875rem; padding-left: 1rem; padding-right: 1rem; } }  /* длинная подпись кнопки скачивания — в одну строку на 390 px */
/* Печать: пара полей в строке стороны («Телефон … Электронная почта», «ОГРНИП … ИНН») — в одну строку, как в Word: разрыв 1em, линии делят остаток ширины; стороны в ячейке таблицы не трогаем — там узко (03.10, журнал разд. 64) */
@media print {
  .a4-page .sides-1col:not(td .sides-1col) > p.side-line:has(> .gap):has(> .fill) { display: flex; flex-wrap: nowrap; align-items: baseline; column-gap: 0.3em; white-space: nowrap; }
  .a4-page .sides-1col:not(td .sides-1col) > p.side-line:has(> .gap):has(> .fill) > .gap { flex: none; width: 0.7em; }
  .a4-page .sides-1col:not(td .sides-1col) > p.side-line:has(> .gap):has(> .fill) > .fill { flex: 1 1 0; width: auto !important; min-width: 4em; position: relative; top: 0.3em; }
}
@media print { .a4-page tr.stack-head, .a4-page table tr:first-child { break-after: avoid; page-break-after: avoid; } }  /* шапка таблицы (первая строка) не остаётся одна внизу листа — держится с первой строкой данных */
