/* dogovor.infologia.kz — ата-ана беті. Көбі телефоннан ашады: стиль алдымен телефонға жазылған. */
.dg { min-height: 100vh; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
.dg input[type=text], .dg input[type=tel], .dg textarea { font-size: 16px; padding: 12px 13px; border-radius: 11px; } /* iOS үлкейтпеуі үшін 16px */
.dg .btn { min-height: 46px; justify-content: center; }
.dg-top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.dg-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 15px; }
.dg-brand:hover { text-decoration: none; }
.dg-page { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
.dg-page h1 { font-size: 22px; line-height: 1.3; margin: 6px 0 4px; }
.dg-page .card { margin-top: 14px; }
.dg-pages { display: grid; gap: 10px; }
.dg-pages img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.dg-doc { max-height: 70vh; overflow-y: auto; border-radius: 10px; background: var(--surface-2); padding: 10px; -webkit-overflow-scrolling: touch; }
.dg-kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; }
.dg-kv dt { color: var(--muted); }
.dg-kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.dg-big { width: 100%; font-size: 16px; padding: 14px 18px; border-radius: 12px; white-space: normal; text-align: center; line-height: 1.3; }
.dg-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin: 4px 0 14px; cursor: pointer; }
.dg-agree input { margin-top: 3px; width: 20px; height: 20px; flex-shrink: 0; }
.dg-code { font-size: 26px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.dg-done { text-align: center; padding: 28px 18px; }
.dg-done .ico { font-size: 44px; }
.dg-link { background: none; border: 0; color: var(--accent-text); font: inherit; padding: 8px 0; cursor: pointer; text-decoration: underline; }
.dg-hash { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; word-break: break-all; }
.dg-sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding-top: 16px; }
@media (max-width: 520px) { .dg-kv { grid-template-columns: 1fr; gap: 0; } .dg-kv dd { margin-bottom: 8px; } }
