:root {
  --ink: #14212b;
  --muted: #5b6b77;
  --line: #d9e1e7;
  --bg: #f5f7f9;
  --card: #ffffff;
  --brand: #103245;
  --brand-ink: #ffffff;
  --accent: #b5862b;
  --ok: #1d7a46;
  --warn: #9a6a00;
  --warn-bg: #fff6e0;
  --err: #b42318;
  --err-bg: #fdecea;
  --ok-bg: #e7f5ec;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef2; --muted: #a2b1bc; --line: #2c3a45; --bg: #0f171d; --card: #16212a;
    --brand: #8cc1de; --brand-ink: #0f171d; --accent: #e0b35a;
    --warn-bg: #3a2e10; --err-bg: #3d1714; --ok-bg: #12301f; --ok: #6fd39b; --err: #ff8a80; --warn: #f0c060;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1 { font-size: 1.5rem; line-height: 1.25; margin: .2rem 0 .8rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
p { margin: .5rem 0; }
.zd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: var(--brand); color: var(--brand-ink); position: sticky; top: 0; z-index: 5; }
.zd-top a { color: var(--brand-ink); text-decoration: none; }
.zd-brand { font-size: 1.05rem; }
.zd-brand span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.zd-topnav { display: flex; gap: 12px; align-items: center; font-size: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.zd-lang a { padding: 2px 6px; border-radius: 6px; opacity: .75; }
.zd-lang a.on { opacity: 1; outline: 1px solid currentColor; }
.zd-main { max-width: 720px; margin: 0 auto; padding: 16px; }
.zd-foot { max-width: 720px; margin: 24px auto 0; padding: 16px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
.zd-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.zd-card > :first-child { margin-top: 0; }
.zd-hero { padding: 8px 0 4px; }
.zd-hero p.lead { font-size: 1.05rem; color: var(--muted); }
.zd-steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; }
.zd-steps li { counter-increment: s; padding: 8px 0 8px 40px; position: relative; }
.zd-steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.zd-btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; background: var(--brand); color: var(--brand-ink); min-height: 48px; }
.zd-btn:disabled { opacity: .6; }
.zd-btn-block { display: block; width: 100%; }
.zd-btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.zd-btn-danger { background: transparent; color: var(--err); border: 1px solid var(--err); }
.zd-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.zd-hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-height: 46px;
}
textarea { min-height: 96px; }
.zd-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.zd-check input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; }
.zd-alert { border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.zd-alert-error { background: var(--err-bg); color: var(--err); }
.zd-alert-warning, .zd-urgent { background: var(--warn-bg); color: var(--warn); }
.zd-alert-success { background: var(--ok-bg); color: var(--ok); }
.zd-urgent { border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.zd-urgent strong { display: block; }
.zd-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 12px 0; }
.zd-page { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.zd-page img { display: block; width: 100%; height: 130px; object-fit: cover; }
.zd-page .zd-pdf { height: 130px; display: grid; place-items: center; color: var(--muted); }
.zd-page span { position: absolute; left: 6px; top: 6px; background: var(--brand); color: var(--brand-ink); border-radius: 6px; padding: 0 6px; font-size: .8rem; }
.zd-page form { position: absolute; right: 4px; top: 4px; }
.zd-page button { border: 0; border-radius: 50%; width: 28px; height: 28px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.zd-drop { display: block; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 14px; text-align: center; cursor: pointer; background: var(--card); }
.zd-drop input { display: none; }
.zd-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.zd-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.zd-count { border-left: 4px solid var(--brand); }
.zd-count-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.zd-section { line-height: 1.6; }
.zd-section table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.zd-section td, .zd-section th { border: 1px solid var(--line); padding: 6px; vertical-align: top; }
.zd-pack { display: flex; flex-direction: column; gap: 6px; }
.zd-pack .zd-price { font-weight: 700; font-size: 1.1rem; }
.zd-tag { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.zd-tag-ok { color: var(--ok); border-color: var(--ok); }
.zd-wait { text-align: center; padding: 28px 12px; color: var(--muted); }
.zd-spinner { width: 36px; height: 36px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: zdspin 1s linear infinite; margin: 0 auto 12px; }
@keyframes zdspin { to { transform: rotate(360deg); } }
.zd-list { list-style: none; padding: 0; margin: 0; }
.zd-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.zd-muted { color: var(--muted); }
.zd-small { font-size: .88rem; }
.zd-legal { font-size: .9rem; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
@media (min-width: 640px) { .zd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } }
/* Brief-first layout: short headline, three icon steps, one button; detail tucked into <details>. */
.zd-quick { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 14px 0 16px; }
.zd-quick li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 6px; text-align: center; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.zd-quick li span { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.zd-urgent-slim { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zd-urgent-slim .zd-btn { min-height: 40px; padding: 8px 14px; }
details.zd-more > summary, details.zd-sec > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.zd-more > summary::-webkit-details-marker, details.zd-sec > summary::-webkit-details-marker { display: none; }
details.zd-more > summary::after, details.zd-sec > summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
details.zd-more[open] > summary::after, details.zd-sec[open] > summary::after { content: "−"; }
details.zd-more { padding: 12px 16px; }
details.zd-sec { border-top: 1px solid var(--line); padding: 10px 0; }
details.zd-sec > summary h3 { margin: 0; font-size: 1rem; }
.zd-brief { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.zd-brief h3 { margin-top: 0; }
.zd-lead-sm { color: var(--muted); margin: -4px 0 12px; }
.zd-pack-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
