/* Статья-«дело»: вид страниц stati/* и чтения поверх главной (index.html подключает этот же файл) */
:root {
  --doc-paper: #f5f1e9;
  --doc-ink: #152540;
  --doc-soft: rgba(21, 37, 64, .68);
  --doc-line: rgba(21, 37, 64, .14);
  --doc-gold: #c3a256;
  --doc-navy: #0d1829;
  --doc-sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --doc-serif: "PT Serif", Georgia, "Times New Roman", serif;
}

.doc {
  position: relative; box-sizing: border-box; width: min(880px, 100%); margin-inline: auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 7vw, 84px) clamp(32px, 6vw, 80px);
  background: var(--doc-paper); color: var(--doc-ink);
  font: 400 clamp(17px, .5vw + 14px, 19px) / 1.62 var(--doc-serif);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
.doc *, .doc *::before, .doc *::after { box-sizing: border-box; }
.doc-head { font-family: var(--doc-sans); }
.doc-no { margin: 0 0 clamp(14px, 2vw, 22px); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--doc-soft); }
.doc-sign { font-family: var(--doc-serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
.doc-title { margin: 0; font-weight: 500; font-size: clamp(28px, 2.4vw + 14px, 46px); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.doc-meta { margin: clamp(14px, 2vw, 22px) 0 0; font-size: 14px; letter-spacing: .02em; color: var(--doc-soft); }
.doc-cover { margin: clamp(24px, 3.4vw, 44px) 0; }
.doc img { display: block; width: 100%; height: auto; background: var(--doc-line); }
.doc figure { margin: 1.8em 0; }
.doc-cover img, .doc-body figure img { box-shadow: 0 0 0 1px var(--doc-line); }

.doc-body h2, .doc-body h3 { font-family: var(--doc-sans); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.doc-body h2 { margin: 1.9em 0 .7em; font-size: clamp(22px, 1.1vw + 13px, 29px); }
.doc-body h3 { margin: 1.6em 0 .5em; font-size: clamp(19px, .5vw + 14px, 22px); }
.doc-body h2 + h3 { margin-top: .9em; }
.doc-body p { margin: 0 0 .85em; }
.doc p { text-wrap: pretty; }
.doc-body ul, .doc-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.doc-body li { margin: .35em 0; padding-left: .2em; }
.doc-body ul li::marker { content: "—  "; color: var(--doc-gold); }
.doc-body ol li::marker { font-family: var(--doc-sans); font-weight: 500; color: var(--doc-gold); }
.doc-body a { color: inherit; text-decoration: underline; text-decoration-color: var(--doc-gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.doc-body a:hover { text-decoration-thickness: 2px; }
.doc-body b { font-weight: 700; }
.doc-note { font-style: italic; font-size: .9em; color: var(--doc-soft); }
.doc-sources { font-size: .86em; color: var(--doc-soft); }

.doc-cta { margin-top: 2.4em; padding: clamp(22px, 3vw, 36px); background: var(--doc-navy); color: #ebe6e2; font: 400 16px / 1.5 var(--doc-sans); }
.doc-cta p { margin: 0; }
.doc-cta .doc-cta-title { margin-bottom: 8px; font-size: clamp(22px, 1.4vw + 14px, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.doc-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 16px; }
.doc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--doc-gold); color: var(--doc-navy); font-weight: 500; text-decoration: none; transition: background-color .25s; }
.doc-btn:hover { background: #d4b46a; }
.doc-btn--line { background: transparent; color: #ebe6e2; box-shadow: inset 0 0 0 1px rgba(235, 230, 226, .42); }
.doc-btn--line:hover { background: rgba(235, 230, 226, .1); }
.doc-cta .doc-addr { font-size: 14px; opacity: .72; }

/* Отдельная страница статьи */
.doc-page { margin: 0; min-height: 100vh; background: var(--doc-navy); }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 880px; margin: 0 auto; padding: 22px 20px;
  font: 500 12.5px / 1 var(--doc-sans); letter-spacing: .16em; text-transform: uppercase; color: #ebe6e2; }
.doc-top a { color: inherit; text-decoration: none; opacity: .86; }
.doc-top a:hover, .doc-top a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.doc-back::before { content: "← "; }
.doc-desk { padding: 0 clamp(0px, 3vw, 48px) clamp(40px, 8vw, 96px); }
@media (min-width: 921px) { .doc-top { padding-inline: 0; } }
/* статья без обложки (перенесённые со старого сайта): текст не прилипает к строке «мин чтения» */
.doc-head + .doc-body { margin-top: clamp(24px, 4vw, 40px); }

/* Форма заявки (тёмный фон: контакты на главной, блок связи на страницах) → /lead.php → Телеграм-группа и почта. Скрипт — lead.js */
.lead { margin-top: clamp(36px, 4.6vw, 64px); max-width: 980px; }
.lead-title { margin: 0 0 18px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--doc-gold); outline: none; }
.lead-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px 28px; align-items: end; }
.lead-field--q { margin-top: 22px; }
.lead-field textarea { width: 100%; min-height: 52px; padding: 13px 0 10px; border: 0; border-bottom: 1px solid rgba(235, 230, 226, .35); border-radius: 0;
  background: transparent; color: #ebe6e2; font: 400 18px/1.45 var(--doc-sans); resize: none; overflow: hidden; transition: border-color .25s; }
.lead-field textarea:hover { border-bottom-color: rgba(235, 230, 226, .6); }
.lead-field textarea:focus { outline: none; border-bottom-color: var(--doc-gold); box-shadow: 0 1px 0 var(--doc-gold); }
.lead-field textarea::placeholder { color: rgba(235, 230, 226, .32); }
.lead-field .lead-opt { margin-left: 8px; font: inherit; text-transform: none; letter-spacing: .02em; color: rgba(235, 230, 226, .42); }
.lead-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 24px; }
.lead-foot .lead-consent { margin-top: 0; }
.lead-field { display: grid; gap: 8px; }
.lead-field span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(235, 230, 226, .66); }
.lead-field input { width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(235, 230, 226, .35); border-radius: 0;
  background: transparent; color: #ebe6e2; font: 400 19px/1.3 var(--doc-sans); transition: border-color .25s; }
.lead-field input:hover { border-bottom-color: rgba(235, 230, 226, .6); }
.lead-field input:focus { outline: none; border-bottom-color: var(--doc-gold); box-shadow: 0 1px 0 var(--doc-gold); }
.lead-field.is-bad input { border-bottom-color: #f0a090; box-shadow: 0 1px 0 #f0a090; }
.lead-send { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 180px; padding: 0 28px; border: 0;
  background: var(--doc-gold); color: var(--doc-navy); cursor: pointer; font: 500 14px/1 var(--doc-sans); letter-spacing: .14em; text-transform: uppercase; transition: background-color .25s; }
.lead-send:hover, .lead-send:focus-visible { background: #d4b46a; }
.lead-send:disabled { opacity: .6; cursor: progress; }
.lead-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: rgba(235, 230, 226, .66); cursor: pointer; max-width: 44rem; }
.lead-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--doc-gold); cursor: pointer; }
.lead-consent a { color: #ebe6e2; text-decoration: underline; text-decoration-color: var(--doc-gold); text-underline-offset: 4px; }
.lead-consent.is-bad { color: #f0a090; }
.lead-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14.5px; line-height: 1.45; color: rgba(235, 230, 226, .66); }
.lead-msg[data-kind="err"] { color: #f0a090; }
.lead.is-done .lead-title { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.01em; text-transform: none; color: #ebe6e2; }
.lead-done { max-width: 40rem; margin: 0; font-size: 17px; line-height: 1.55; color: rgba(235, 230, 226, .66); }
@media (max-width: 899px) {
  .lead-row { grid-template-columns: minmax(0, 1fr); }
  .lead-foot { flex-direction: column; align-items: stretch; }
  .lead-field textarea { min-height: 78px; }        /* на телефоне — две строки: подсказка не обрезается, видно, что можно писать */
  .lead-send { width: 100%; }
}

/* ── Страницы услуг и практики (перенос с прежнего сайта): крошки, таблицы, шаги, вопросы, заявка внизу ── */
.doc-crumbs { margin: 0 0 clamp(14px, 2vw, 22px); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--doc-soft); }
.doc-crumbs a { color: inherit; text-decoration: none; }
.doc-crumbs a:hover, .doc-crumbs a:focus-visible { color: var(--doc-ink); text-decoration: underline; text-decoration-color: var(--doc-gold); text-underline-offset: 4px; }
.doc-crumbs-sep { margin: 0 .6em; color: var(--doc-gold); }
.doc-cover--small img { width: auto; max-width: 100%; }
.doc-cover--small { margin-bottom: 0; }

.doc-table { margin: 1.2em 0 1.5em; }
.doc-table table { width: 100%; border-collapse: collapse; font: 400 16px / 1.45 var(--doc-sans); }
.doc-table th { padding: 0 16px 10px 0; border-bottom: 1px solid var(--doc-ink); text-align: left; vertical-align: bottom;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--doc-soft); }
.doc-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--doc-line); vertical-align: top; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; }
.doc-table td p { margin: 0; }
.doc-table .doc-nw { white-space: nowrap; }          /* столбец из коротких значений: цена, норма */
@media (max-width: 640px) {
  .doc-table table { font-size: 15px; }
  /* от трёх столбцов — строки карточками, подпись столбца берётся из data-label; роли таблицы проставлены в разметке */
  .doc-table--cards table, .doc-table--cards tbody, .doc-table--cards tr, .doc-table--cards td { display: block; }
  .doc-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-table--cards tr { padding: 4px 0 6px; border-bottom: 1px solid var(--doc-ink); }
  .doc-table--cards td { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--doc-line); }
  .doc-table--cards tr td:last-child { border-bottom: 0; }
  .doc-table--cards td::before { content: attr(data-label); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--doc-soft); }
  .doc-table--cards td:not([data-label]) { grid-template-columns: minmax(0, 1fr); }
  .doc-table--cards td:not([data-label])::before { display: none; }
}

.doc-body ol.doc-steps { list-style: none; counter-reset: step; padding-left: 0; }
.doc-steps > li { position: relative; counter-increment: step; margin: 0 0 .8em; padding-left: 2.6em; }
.doc-steps > li::before { content: counter(step); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 1.75em; height: 1.75em;
  border: 1px solid var(--doc-gold); border-radius: 50%; font: 500 .82em / 1 var(--doc-sans); color: var(--doc-ink); }

.doc-faq { border-bottom: 1px solid var(--doc-line); }
.doc-faq:first-of-type { border-top: 1px solid var(--doc-line); }
.doc-faq summary { position: relative; display: block; padding: 16px 40px 16px 0; cursor: pointer; list-style: none;
  font: 500 clamp(17px, .4vw + 14px, 19px) / 1.35 var(--doc-sans); }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 300 26px / 1 var(--doc-sans); color: var(--doc-gold); transition: transform .25s; }
.doc-faq[open] summary::after { transform: rotate(45deg); }
.doc-faq-answer { padding: 0 0 12px; }

/* телефон в шапке страницы услуги: тот, кто торопится, звонит с первого экрана */
.doc-top .doc-top-tel { margin-left: auto; color: var(--doc-gold); font-size: 14px; letter-spacing: .06em; white-space: nowrap; opacity: 1; }
@media (max-width: 560px) { .doc-top:has(.doc-top-tel) .doc-back { display: none; } }   /* домой ведут и «Урал-Адвокат», и крошки */
.doc-tel { white-space: nowrap; }

/* «Куда дальше»: подписанные списки ссылок */
.doc-related { margin: 1.3em 0 1.7em; }
.doc-related-title { margin: 0 0 .4em; font: 500 12.5px / 1.4 var(--doc-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--doc-soft); }
.doc-body .doc-related-list { margin: 0; padding: 0; list-style: none; columns: 2 300px; column-gap: 36px; }
.doc-body .doc-related-list li { display: block; position: relative; margin: 0; padding: 8px 0 8px 1.5em; break-inside: avoid;
  border-bottom: 1px solid var(--doc-line); font: 400 16.5px / 1.4 var(--doc-sans); }
.doc-related-list li::before { content: "→"; position: absolute; left: 0; top: 8px; color: var(--doc-gold); }
.doc-body .doc-related-list a { text-decoration: none; }
.doc-body .doc-related-list a:hover, .doc-body .doc-related-list a:focus-visible { text-decoration: underline; text-decoration-color: var(--doc-gold); }

/* «Практика»: список дел — картинка слева, заголовок-ссылка и дата */
.doc-case { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--doc-line); }
.doc-case:first-child { border-top: 1px solid var(--doc-line); }
.doc-case-pic img { width: 132px; height: 99px; object-fit: cover; }
.doc-case-text p { margin: 0; }
.doc-body .doc-case-title { font: 500 17px / 1.4 var(--doc-sans); }
.doc-body .doc-case-title a { text-decoration: none; }
.doc-body .doc-case-title a:hover, .doc-body .doc-case-title a:focus-visible { text-decoration: underline; text-decoration-color: var(--doc-gold); }
.doc-case-date { margin-top: 6px !important; font: 400 14px / 1.4 var(--doc-sans); color: var(--doc-soft); }
@media (max-width: 520px) { .doc-case { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .doc-case-pic img { width: 96px; height: 72px; } }

/* «О нас»: карточки людей, награды, сканы документов */
.doc-ab-person { padding: 1.6em 0; border-top: 1px solid var(--doc-line); }
.doc-ab-person:first-child { border-top: 0; padding-top: .4em; }
.doc-ab-person__head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 22px; align-items: start; }
.doc-ab-person__head > div { display: contents; }
.doc .doc-ab-person__photo { grid-row: 1 / span 3; width: 140px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.doc-body .doc-ab-person__name { margin: 0; font-size: clamp(21px, .8vw + 15px, 25px); }
.doc-ab-person__title { display: block; margin-bottom: 4px; font: 500 12.5px / 1.4 var(--doc-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--doc-soft); }
.doc-body .doc-ab-person__role { grid-column: 2; margin: 6px 0 0; }
.doc-ab-awards { margin-top: 1.1em; }
.doc-body .doc-ab-awards__title { margin: 0 0 .3em; font: 500 12.5px / 1.4 var(--doc-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--doc-soft); }
.doc .doc-ab-awards__doc img { width: 180px; margin-top: 12px; box-shadow: 0 0 0 1px var(--doc-line); }
.doc-ab-person__text { margin-top: 1em; }
.doc-ab-services { margin-top: 1.2em; }
.doc-ab-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin: 1.6em 0; }
.doc .doc-ab-doc { margin: 0; }
.doc .doc-ab-doc img { aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 1px var(--doc-line); }
.doc-ab-doc figcaption { margin-top: 8px; font: 400 14px / 1.35 var(--doc-sans); color: var(--doc-soft); }
@media (max-width: 520px) {
  .doc-ab-person__head { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; }
  .doc .doc-ab-person__photo { width: 96px; grid-row: 1; }
  .doc-body .doc-ab-person__role { grid-column: 1 / -1; }
  .doc-ab-gallery { grid-template-columns: 1fr 1fr; gap: 14px; }   /* сканы — по два в ряд, а не лентой во всю ширину */
}

/* «Статьи»: список со вступлением */
.doc-body .doc-art-list { list-style: none; margin: 0; padding: 0; }
.doc-body .doc-art-list li { display: block; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--doc-line); }
.doc-body .doc-art-list li:first-child { border-top: 1px solid var(--doc-line); }
.doc-body .doc-art-list a { font: 500 clamp(18px, .4vw + 15px, 20px) / 1.3 var(--doc-sans); text-decoration: none; }
.doc-body .doc-art-list a:hover, .doc-body .doc-art-list a:focus-visible { text-decoration: underline; text-decoration-color: var(--doc-gold); }
.doc-art-list p { margin: 6px 0 0; font-size: .92em; color: var(--doc-soft); }

/* «Отзывы» */
.doc-reviews-rating { font-family: var(--doc-sans); }
.doc .doc-review { margin: 0; padding: 1.2em 0; border-top: 1px solid var(--doc-line); }
.doc-review blockquote { margin: 0; }
.doc-review blockquote p { margin: 0 0 .6em; }
.doc-review figcaption { font: 400 14.5px / 1.45 var(--doc-sans); color: var(--doc-soft); }
.doc-review figcaption b { font-weight: 500; color: var(--doc-ink); }
.doc-review figcaption a { color: inherit; }

.doc-cta-inline { margin: 1.4em 0 1.8em; }
.doc-cta-inline .doc-btn { min-height: 52px; padding: 0 28px; font-family: var(--doc-sans); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.doc-cta--form { margin-top: 3em; scroll-margin-top: 24px; }
.doc-cta--form .lead { margin-top: 26px; max-width: none; }
.doc-cta--form .doc-cta-row { margin-top: 30px; }
.doc-cta--form .lead-send { min-width: 160px; }
@media (max-width: 640px) { .doc-cta--form .lead-row { grid-template-columns: minmax(0, 1fr); } }
