/* Раздел «Образцы документов» (cool-doc.ru/obrazcy). Токены — из /style.css. */
.doc-page { padding-block: 28px 64px; }
.crumbs { font-size: 13px; color: var(--fg-muted); margin-bottom: 18px; }
.crumbs a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.doc-page h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.5px; }
.doc-page .lead { font-size: 17px; line-height: 1.6; color: var(--fg-muted); max-width: 820px; margin-bottom: 28px; }
.doc-page .lead a { color: var(--brand); }
.muted { color: var(--fg-muted); font-size: 13px; line-height: 1.5; }
.center { text-align: center; }

/* Превью + колонка скачивания */
.doc-layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.doc-previews { display: flex; flex-direction: column; gap: 16px; }
.doc-preview { margin: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.doc-preview img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow); background: #fff; }
.doc-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .doc-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.download-card, .try-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.download-card h2 { font-size: 18px; margin-bottom: 14px; }
.download-card .btn { width: 100%; justify-content: center; }
.download-card .muted { margin: 8px 0 16px; }
.download-card .muted:last-child { margin-bottom: 0; }
.try-card { background: var(--brand-soft); border-color: transparent; }
.try-card p { margin-bottom: 12px; line-height: 1.55; }
.try-card.wide { margin-top: 32px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.try-card.wide p { margin: 0; flex: 1 1 420px; }
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

/* Текст статьи */
.doc-text { max-width: 820px; margin-top: 40px; line-height: 1.65; }
.doc-text h2 { font-size: 22px; margin: 32px 0 12px; }
.doc-text ul, .doc-text ol { padding-left: 22px; margin-bottom: 12px; }
.doc-text ul { list-style: disc; }
.doc-text ol { list-style: decimal; }
.doc-text li { margin-bottom: 6px; }
.doc-text p { margin-bottom: 12px; }
.doc-text a { color: var(--brand); }
.steps li { padding-left: 4px; }
.related { list-style: none !important; padding-left: 0 !important; display: grid; gap: 8px; }
.related a { font-weight: 600; }
.table-wrap { overflow-x: auto; margin-bottom: 8px; }
.doc-text table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc-text th, .doc-text td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-text th { background: var(--bg-soft); }

/* FAQ — как на главной */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding-bottom: 14px; color: var(--fg-muted); }

/* Список образцов */
.doc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.doc-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.doc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.doc-card-img { display: block; height: 220px; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 14px 18px 0; }
.doc-card-img img { width: 100%; height: auto; box-shadow: var(--shadow); border-radius: 3px 3px 0 0; background: #fff; }
.doc-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.doc-card-body b { font-size: 16px; line-height: 1.3; }
.doc-card-body span:last-child { color: var(--fg-muted); font-size: 14px; line-height: 1.45; }
.doc-card-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--brand); }
