:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #1e3a8a;
  --brand-ink: #ffffff;
  --brand-soft: #e0e7ff;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --no: #b91c1c;
  --no-soft: #fee2e2;
  --ask: #b45309;
  --ask-soft: #fef3c7;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --surface: #111827;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --line: #1e293b;
    --brand: #60a5fa;
    --brand-ink: #08142c;
    --brand-soft: #1e293b;
    --ok: #4ade80;
    --ok-soft: #142e1f;
    --no: #f87171;
    --no-soft: #311518;
    --ask: #fbbf24;
    --ask-soft: #33260d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-underline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 56px; }
h1 { font-size: clamp(1.65rem, 3.8vw, 2.35rem); line-height: 1.2; margin: .3em 0 .4em; letter-spacing: -.015em; }
h2 { font-size: 1.32rem; margin: 1.9em 0 .6em; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 0 0 .35em; line-height: 1.35; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.note { background: var(--ask-soft); border-radius: var(--radius); padding: 10px 14px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo svg { color: var(--brand); }
header nav { display: flex; gap: 15px; flex-wrap: wrap; font-size: .92rem; font-weight: 500; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--brand); }
footer.site { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); background: var(--surface); }

.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 1px solid transparent; border-radius: 8px; padding: 8px 15px; font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.big { padding: 12px 22px; font-size: 1.02rem; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }

.hero { padding: 20px 0 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.badges-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.no { background: var(--no-soft); color: var(--no); }
.badge.ask { background: var(--ask-soft); color: var(--ask); }
.badge.neutral { background: var(--brand-soft); color: var(--brand); }

.callout { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; border-left: 4px solid var(--brand); background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.callout.danger { background: var(--no-soft); border-left-color: var(--no); }
.callout.warn { background: var(--ask-soft); border-left-color: var(--ask); }
.callout h3 { margin-top: 0; }
.callout p { margin-bottom: 0; }

.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 10px; }
.fcard { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.fcard:hover { border-color: var(--brand); }
.fcard span { color: var(--muted); font-size: .9rem; }
.fcard em { font-style: normal; font-size: .82rem; color: var(--brand); font-weight: 600; margin-top: auto; padding-top: 4px; }

.dest-list { list-style: none; padding: 0; columns: 4 190px; }
.dest-list li { break-inside: avoid; padding: 3px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.grid2-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 16px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
dl.kv { margin: 0; display: grid; gap: 8px; font-size: .93rem; }
dl.kv div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
dl.kv div:last-child { border-bottom: 0; padding-bottom: 0; }
dl.kv dt { color: var(--muted); font-weight: 600; }
dl.kv dd { margin: 0; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; }
ul.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.chips a { display: inline-block; background: var(--brand-soft); border-radius: 999px; padding: 5px 13px; text-decoration: none; font-size: .89rem; font-weight: 500; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
table.tours tr.pass td.val { color: var(--ok); font-weight: 600; }
td.val { font-weight: 600; min-width: 140px; }
blockquote { margin: 6px 0 0; color: var(--muted); font-size: .84rem; border-left: 3px solid var(--brand); padding-left: 8px; }

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
select, input, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; max-width: 100%; width: 100%; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.tool-row label { flex-direction: row; align-items: center; gap: 8px; }
.toggles { border: 0; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toggles legend { font-weight: 600; margin-bottom: 8px; font-size: .9rem; }
label.toggle { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; width: auto; }
label.toggle input { width: auto; }
label.toggle:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 12px; margin-bottom: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tcard h3 a { color: var(--text); text-decoration: none; }
.tcard h3 a:hover { color: var(--brand); }
.tcard .meta { margin: 0; color: var(--muted); font-size: .87rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tcard .btn { align-self: flex-start; margin-top: auto; }
.rchips { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .81rem; }
.rchips li { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.rchips li.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.rchips li.no { background: var(--no-soft); border-color: transparent; color: var(--no); }
.why { margin: 0; font-size: .88rem; font-weight: 600; }
.why.no { color: var(--no); }
.why.warn, .why.ask { color: var(--ask); }
.why.ok { color: var(--ok); }
h2.ok { color: var(--ok); }
h2.no { color: var(--no); }
h2.ask { color: var(--ask); }

.lead-box { background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.lead-head h2 { margin: 6px 0 8px; }
.lead-head p { margin: 0 0 16px; color: var(--muted); }
.consent { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: .85rem; color: var(--muted); margin: 12px 0; }
.consent input { width: auto; margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ad-slot { margin: 18px 0; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.ad-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.faq h3 { margin: 1.1em 0 .25em; font-size: 1rem; }
.faq p { margin: 0; max-width: 820px; }
.answer { background: var(--brand-soft); border-radius: var(--radius); padding: 13px 16px; max-width: 880px; }

details.embed { margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
details.embed summary { cursor: pointer; font-weight: 600; }
details.embed textarea { width: 100%; font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 8px; }

@media (max-width: 640px) {
  .hide-sm { display: none; }
  th, td { padding: 8px; }
  .cards { grid-template-columns: 1fr; }
  dl.kv div { grid-template-columns: 1fr; gap: 2px; }
}
