/* Конструктор документов */
.dt { padding-top: 110px; padding-bottom: 60px; max-width: 980px; }
.dt h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.dt .lead { color: var(--muted); font-size: 17px; max-width: 760px; }
.dt-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.dt-types a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--card-b); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.dt-types a.on { background: var(--grad); border-color: transparent; color: #fff; }
.dt-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.dt-card, .dt-grid2 > *, .dt-grid3 > * { min-width: 0; }
.dt-card { border: 1px solid var(--card-b); background: var(--card); border-radius: 18px; padding: 18px; }
.dt-card h2 { font-size: 18px; margin: 0 0 12px; }
.dt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dt-head h2 { margin: 0; }
.dt-grid2, .dt-grid3 { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.dt-grid3 { grid-template-columns: repeat(3, 1fr); }
.dt-grid2 .span2 { grid-column: span 2; }
.dt-form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.dt-form label small { font-weight: 400; opacity: .8; }
.dt-form input, .dt-form select { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--card-b); background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 15px; }
.dt-form input:focus, .dt-form select:focus { outline: 2px solid #6366f1; border-color: transparent; }
.dt-check { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; color: var(--text) !important; }
.dt-check input { width: auto; } .dt-check select { width: auto; padding: 6px 10px; }
.dt-lines-wrap { overflow-x: auto; }
.dt-lines { width: 100%; border-collapse: collapse; min-width: 620px; }
.dt-lines th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 6px; }
.dt-lines td { padding: 4px; }
.dt-lines td:nth-child(2), .dt-lines td:nth-child(3) { width: 80px; } .dt-lines td:nth-child(4) { width: 120px; }
.dt-sum { text-align: right; white-space: nowrap; width: 110px; font-variant-numeric: tabular-nums; }
.dt-del { border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.dt-total { text-align: right; margin: 12px 0; font-size: 16px; }
.dt-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dt-hint, .dt-note { color: var(--muted); font-size: 13px; }
.form-err { color: #fca5a5; margin: 0; }
.dt-seo { margin: 40px 0; line-height: 1.65; color: #cbd2e4; }
.dt-seo h2 { font-size: 22px; margin: 28px 0 10px; color: var(--text); }
.dt-seo ul { padding-left: 20px; }
.dt-cta { border-radius: 22px; padding: 26px; background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(6,182,212,.14)); border: 1px solid var(--card-b); }
.dt-cta h2 { margin: 0 0 8px; }
.dt-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 700px) {
  .dt { padding-top: 90px; }
  .dt-grid2, .dt-grid3 { grid-template-columns: 1fr; }
  .dt-grid2 .span2 { grid-column: auto; }
}
.dt-kind { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--card-b); margin-bottom: 12px; }
.dt-kind button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 9px; cursor: pointer; }
.dt-kind button.on { background: var(--grad); color: #fff; }
.dt-form [hidden] { display: none !important; }
