:root {
  --bg: #fbfaf7; --surface: #ffffff; --text: #1c1f23; --muted: #5f6670; --line: #e4e1da;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #e3f3f1;
  --ok: #17803d; --ok-soft: #e6f4ea; --no: #b42318; --no-soft: #fdecea; --ask: #9a6700; --ask-soft: #fff4d6;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416; --surface: #1b1e21; --text: #e9e7e2; --muted: #a2a8b0; --line: #2d3136;
    --brand: #2dd4bf; --brand-ink: #062a26; --brand-soft: #123532;
    --ok: #4ade80; --ok-soft: #132a1b; --no: #f87171; --no-soft: #331718; --ask: #fbbf24; --ask-soft: #33290f;
  }
}
* { 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: 1080px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: .3em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .3em; line-height: 1.35; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.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); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.logo { font-weight: 700; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo svg { color: var(--brand); }
header nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
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: 24px 0; font-size: .9rem; color: var(--muted); }

.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: 7px 14px; 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.05rem; }

.hero { padding: 24px 0 8px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fcard { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text); }
.fcard:hover { border-color: var(--brand); }
.fcard span { color: var(--muted); font-size: .92rem; }
.fcard em { font-style: normal; font-size: .82rem; color: var(--brand); }
.dest-list { list-style: none; padding: 0; columns: 4 180px; }
.dest-list li { break-inside: avoid; padding: 2px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card .count { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 3px 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: 4px 12px; text-decoration: none; font-size: .9rem; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
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: 130px; }
blockquote { margin: 6px 0 0; color: var(--muted); font-size: .85rem; border-left: 3px solid var(--line); padding-left: 8px; }

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
select, input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; max-width: 100%; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; 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: .92rem; }
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: 4px 12px; cursor: pointer; }
label.toggle:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
label.toggle[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; }
.inline { display: flex; gap: 6px; }
.inline input { flex: 1; min-width: 0; }

.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: .88rem; 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: .82rem; }
.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; }
.rchips li.no { background: var(--no-soft); border-color: transparent; }
.why { margin: 0; font-size: .88rem; font-weight: 600; }
.why.no { color: var(--no); } .why.warn, .why.ask { color: var(--ask); }
h2.ok { color: var(--ok); } h2.no { color: var(--no); } h2.ask { color: var(--ask); }

@media (max-width: 640px) {
  .hide-sm { display: none; }
  th, td { padding: 8px; }
  .cards { grid-template-columns: 1fr; }
  blockquote { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

.faq h3 { margin: 1.1em 0 .25em; font-size: 1rem; }
.faq p { margin: 0; max-width: 760px; }
