/* Строгий тёмный стиль — проверка открытого розыска МВД */
:root {
  --bg: #0b0e14;
  --bg-elev: #121722;
  --text: #e8eaed;
  --muted: #8b93a7;
  --muted-2: #5c6578;
  --card: #151a24;
  --accent: #c9a227;
  --accent-hover: #dfb52e;
  --accent-text: #0b0e14;
  --ok: #3dd68c;
  --ok-bg: rgba(61, 214, 140, 0.12);
  --found: #f0a020;
  --found-bg: rgba(240, 160, 32, 0.12);
  --warn: #e8b84a;
  --warn-bg: rgba(232, 184, 74, 0.12);
  --border: #252b3a;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --tryzub: #4b8bff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(75, 139, 255, 0.12), transparent),
    linear-gradient(180deg, #0b0e14 0%, #0d1118 100%);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.1rem 3rem;
}

.hero {
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tryzub {
  flex-shrink: 0;
  display: block;
  width: 42px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

.hero-text {
  text-align: left;
  min-width: 0;
  max-width: 28rem;
}

.hero h1 {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.25;
  color: var(--text);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.checklist-card,
.form-card,
.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checklist-card {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.checklist-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
  border: 1px solid rgba(61, 214, 140, 0.35);
}

.checklist-note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
  text-align: center;
}

.meta strong { color: var(--text); }

.form-card {
  padding: 1.5rem 1.35rem 1.4rem;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.grid .full { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .grid .full { grid-column: auto; }
  .hero-brand { flex-direction: column; text-align: center; }
  .hero-text { text-align: center; }
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}

input {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder { color: var(--muted-2); }

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
  background: #0f141c;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0 0.5rem;
}

.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid rgba(232, 184, 74, 0.3);
  border-radius: 10px;
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.85rem;
}

.btn-find {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: 10px;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.btn-find:hover { background: var(--accent-hover); }
.btn-find:active { transform: scale(0.99); }

.results { margin-bottom: 1.5rem; }

.badge {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.badge-found {
  background: var(--found-bg);
  color: var(--found);
  border: 1px solid rgba(240, 160, 32, 0.4);
}

.badge-none {
  background: rgba(139, 147, 167, 0.12);
  color: var(--muted);
  border: 1px solid var(--border);
}

.source-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.source-group {
  margin-bottom: 1.75rem;
}

.source-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

td { white-space: pre-line; overflow-wrap: anywhere; }

.source-note {
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid rgba(232, 184, 74, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  margin: 0 0 0.85rem;
}

.result-text + .source-note { margin-top: 0.75rem; }

.fines-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.fines-text {
  font-size: 0.92rem;
  margin: 0 0 0.9rem;
}

.fines-muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.fines-list {
  margin: 1rem 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text);
}

.fines-list li { margin-bottom: 0.35rem; }

.btn-link {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-link:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35);
}

.result-text {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.match-card {
  padding: 1rem 1.15rem;
  margin: 0.85rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.35rem 0.45rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  width: 38%;
  color: var(--muted);
  font-weight: 500;
}

td { color: var(--text); }

.links {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.links a {
  color: var(--accent);
  text-decoration: none;
}

.links a:hover { text-decoration: underline; }


/* checks scoreboard */
.checks-counter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.checks-label {
  color: var(--muted);
  font-weight: 600;
}
.scoreboard {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.85rem;
  margin: 0 2px;
  padding: 0 0.28rem;
  border-radius: 6px;
  background: #0a0d13;
  border: 1px solid #2a3345;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.35);
  color: #f2f4f8;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.digit-gap {
  display: inline-block;
  width: 0.35rem;
  height: 1px;
}
/* end checks scoreboard */

.footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.disclaimer-fine {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.sources {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.sources a {
  color: var(--accent);
  text-decoration: none;
}

.sources a:hover { text-decoration: underline; }

.local-note {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin: 0;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.btn-tg {
  min-width: 14rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.hero-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-switch a + a {
  border-left: 1px solid var(--accent);
}

.lang-switch a:hover,
.lang-switch a.active {
  background: var(--accent);
  color: var(--accent-text);
}

.lang-switch a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(201, 162, 39, 0.35);
}

/* ЄДР: розділ у пошуку людини й форма «Перевірка компанії» */
.edr-sub { font-size: 1rem; margin: 1rem 0 .4rem; }
.company-card { margin-top: 1.25rem; }
.inline-form { display: inline; margin: 0; }
.btn-mini { padding: .2rem .6rem; font-size: .85rem; cursor: pointer; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; }
.company-item .inline-form { float: right; margin-left: .5rem; }
.flag-card { border-left: 3px solid #e0a020; }

/* Свечение тризуба: добавить в конец static/style.css */
.tryzub { animation: tryzub-glow 4s ease-in-out infinite; }
@keyframes tryzub-glow {
  0%, 100% { opacity: .55; filter: drop-shadow(0 0 0 rgba(75,139,255,0)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 6px var(--tryzub)) drop-shadow(0 0 14px var(--tryzub)); }
}
@media (prefers-reduced-motion: reduce) { .tryzub { animation: none; opacity: .9; } }

/* Кнопка «Статті» і сторінки статей */
.btn-articles { border-color: var(--tryzub); box-shadow: 0 0 0 rgba(75,139,255,0); transition: box-shadow .3s, transform .1s; }
.btn-articles:hover, .btn-articles:focus-visible { box-shadow: 0 0 8px var(--tryzub), 0 0 18px var(--tryzub); }
.article-body { line-height: 1.65; }
.article-body h1 { margin-top: 0; }
.article-body a, .article-page .subtitle a { color: var(--tryzub); }
