/* ДоКого — граждански сигнал. Ляга върху /css/home-v1.css. */

.dk-page { --dk-accent: #2c64b4; --dk-accent-2: #1f4e8c; --dk-ok: #1f8a4c; --dk-warn: #c98a00; --dk-bad: #c0392b; }

.dk-wrap { max-width: 780px; margin: 0 auto; padding: 24px 18px 96px; }
.dk-hero { text-align: center; padding: 40px 18px 8px; }
.dk-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.dk-hero p { color: #4a4a53; max-width: 560px; margin: 0 auto; line-height: 1.55; }
.dk-hero .dk-q { font-weight: 700; color: var(--dk-accent-2); }
.dk-subnav { margin-top: 14px; font-size: .88rem; color: #8a8a95; }
.dk-subnav a { color: var(--dk-accent-2); text-decoration: none; font-weight: 600; }
.dk-subnav a:hover { text-decoration: underline; }

.dk-emergency-bar {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: linear-gradient(180deg,#fff2f0,#ffe1dc); border: 1px solid rgba(192,57,43,.35);
  border-radius: 14px; padding: 12px 16px; margin: 18px auto 0; max-width: 780px;
}
.dk-emergency-bar strong { color: var(--dk-bad); }
.dk-emergency-bar a { flex: none; }

.dk-steps { display: flex; gap: 6px; margin: 26px 0 18px; flex-wrap: wrap; scroll-margin-top: 88px; }
.dk-steps li {
  list-style: none; font-size: .78rem; color: #7a7a85; padding: 6px 10px; border-radius: 999px;
  background: rgba(44,100,180,.08); border: 1px solid transparent; white-space: nowrap;
}
.dk-steps li.is-active { color: #fff; background: var(--dk-accent); font-weight: 600; }
.dk-steps li.is-done { color: var(--dk-accent-2); border-color: rgba(44,100,180,.3); }

.dk-card {
  background: #fff; border: 1px solid #e7e7ee; border-radius: 18px; padding: 22px;
  box-shadow: 0 6px 20px rgba(20,20,40,.05); margin-bottom: 18px;
}
.dk-card h2 { font-size: 1.2rem; margin: 0 0 6px; }
.dk-card .dk-help { color: #6a6a75; font-size: .92rem; line-height: 1.5; margin: 0 0 16px; }

.dk-field { margin-bottom: 16px; }
.dk-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.dk-field input[type=text], .dk-field input[type=email], .dk-field input[type=tel],
.dk-field input[type=datetime-local], .dk-field select, .dk-field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #e6e6ee; border-radius: 12px;
  font: inherit; background: #fbfbfd; box-sizing: border-box;
}
.dk-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.dk-field input:focus, .dk-field select:focus, .dk-field textarea:focus {
  outline: none; border-color: var(--dk-accent); background: #fff;
}
.dk-field .dk-hint { font-size: .8rem; color: #8a8a95; margin-top: 6px; }
.dk-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dk-row > * { flex: 1 1 200px; }

.dk-btn {
  appearance: none; border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 600;
  cursor: pointer; background: var(--dk-accent); color: #fff; transition: filter .15s, transform .05s;
}
.dk-btn:hover { filter: brightness(1.06); }
.dk-btn:active { transform: translateY(1px); }
.dk-btn[disabled] { opacity: .5; cursor: not-allowed; }
.dk-btn--ghost { background: transparent; color: var(--dk-accent-2); border: 2px solid rgba(44,100,180,.35); }
.dk-btn--danger { background: var(--dk-bad); }
.dk-btn--rec { background: #b0263a; }
.dk-btn--rec.is-recording { animation: dk-pulse 1.1s infinite; }
@keyframes dk-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(176,38,58,.5);} 50% { box-shadow: 0 0 0 10px rgba(176,38,58,0);} }
.dk-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }

.dk-capture-box {
  border: 2px dashed #cfd6e4; border-radius: 14px; padding: 16px; text-align: center; background: #f7f9fc;
}
.dk-capture-box video, .dk-capture-box audio { width: 100%; border-radius: 10px; margin-top: 12px; background: #000; }
.dk-media-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.dk-media-list li {
  display: flex; align-items: center; gap: 8px; font-size: .85rem; background: #f2f5fa;
  border: 1px solid #e2e8f2; border-radius: 10px; padding: 8px 10px;
}
.dk-media-list li .dk-mtag { flex: none; font-size: .7rem; text-transform: uppercase; color: #fff; background: var(--dk-accent); border-radius: 6px; padding: 2px 6px; }
.dk-media-list li .dk-mname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-media-list li button { flex: none; background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 1rem; line-height: 1; padding: 4px 6px; border-radius: 6px; color: var(--dk-accent-2); }
.dk-media-list li button:hover { background: rgba(44,100,180,.12); }
.dk-media-list li button.dk-mrm { color: var(--dk-bad); }
.dk-media-list li button.dk-mrm:hover { background: rgba(192,57,43,.12); }

.dk-loc { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #445; background: #eef3fb; border-radius: 10px; padding: 10px 12px; }
.dk-loc code { font-size: .8rem; }

.dk-assessment { border-radius: 14px; padding: 16px; margin-bottom: 16px; border: 1px solid; }
.dk-assessment--ready { background: #eefaf1; border-color: rgba(31,138,76,.35); }
.dk-assessment--improve { background: #fff6e6; border-color: rgba(201,138,0,.35); }
.dk-assessment--weak { background: #fdeeec; border-color: rgba(192,57,43,.35); }
.dk-assessment h3 { margin: 0 0 4px; font-size: 1rem; }
.dk-assessment .dk-score { float: right; font-weight: 800; font-size: 1.1rem; }
.dk-assessment--ready .dk-score { color: var(--dk-ok); }
.dk-assessment--improve .dk-score { color: var(--dk-warn); }
.dk-assessment--weak .dk-score { color: var(--dk-bad); }
.dk-check { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.dk-check li { font-size: .86rem; display: flex; gap: 8px; align-items: flex-start; }
.dk-check li .dk-ic { flex: none; font-weight: 800; }
.dk-check li.ok .dk-ic { color: var(--dk-ok); }
.dk-check li.no .dk-ic { color: var(--dk-bad); }
.dk-check li .dk-fix { color: #7a6a45; display: block; font-size: .8rem; }

.dk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin-bottom: 12px; line-height: 1.45; }
.dk-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; }

.dk-disclaimer { font-size: .8rem; color: #8a8a95; line-height: 1.5; border-left: 3px solid #dfe4ee; padding-left: 12px; margin-top: 14px; }
.dk-error { background: #fdeeec; border: 1px solid rgba(192,57,43,.35); color: var(--dk-bad); border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin: 12px 0; }
.dk-ok-box { background: #eefaf1; border: 1px solid rgba(31,138,76,.35); border-radius: 14px; padding: 20px; }
.dk-ok-box h2 { color: var(--dk-ok); margin-top: 0; }
.dk-ref { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; font-weight: 700; background: #fff; border: 1px dashed var(--dk-ok); border-radius: 8px; padding: 6px 12px; display: inline-block; }
.dk-hashes { font-family: ui-monospace, Menlo, monospace; font-size: .72rem; word-break: break-all; color: #556; background:#fff; border-radius:8px; padding:10px 12px; border:1px solid #e2e8f2; }

.dk-hidden { display: none !important; }

@media (max-width: 560px) {
  .dk-actions { flex-direction: column-reverse; }
  .dk-actions .dk-btn { width: 100%; }
}
