:root {
  --bg: #0e1116; --bg-2: #161b23; --bg-3: #1e2530; --fg: #eae6dc; --muted: #a7a293; --line: #2c3442;
  --accent: #f5a524; --accent-2: #ffd27a; --link: #7cc4ff; --glow: rgba(245, 165, 36, 0.35);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.05rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #a9d9ff; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0.4em 0 0.3em; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.3rem; }
p { margin: 0.6rem 0 1rem; }
.lead { font-size: 1.15rem; color: #d8d3c6; }
.sub, .muted { color: var(--muted); }
.sub { margin-top: -0.4rem; }
small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; overflow-x: auto; font-size: 0.95rem; }
code { background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand .logo { width: 28px; height: 28px; color: var(--accent); }
.site-header nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-header nav a { color: var(--fg); text-decoration: none; font-size: 0.98rem; opacity: 0.9; }
.site-header nav a:hover { color: var(--accent-2); }
main { padding: 1.2rem 1.25rem 3rem; }
p, li, .lead, .facts dd { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }

.hero { padding: 1rem 0 0.5rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0.8rem 0 0.2rem; }
.crumbs .sep { opacity: 0.5; margin: 0 0.15rem; }

.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.25rem 1.4rem; margin: 1rem 0 1.5rem; }
.calc h2 { margin: 0 0 0.8rem; }
.calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.9rem 1rem; }
.calc-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; min-width: 0; }
.calc-form .hint { font-weight: 400; font-size: 0.85rem; margin-left: 0.3rem; }
select, input, button { font: inherit; }
select { width: 100%; max-width: 100%; min-width: 0; padding: 0.55rem 0.65rem; background: var(--bg); color: var(--fg); border: 1px solid #4a5468; border-radius: 8px; }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
input[type="text"] { width: 100%; min-width: 0; padding: 0.5rem 0.65rem; background: var(--bg); color: var(--fg); border: 1px solid #4a5468; border-radius: 8px; }
input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.geo-row { display: flex; gap: 0.5rem; margin-top: 0.45rem; align-items: stretch; }
.geo-row input { flex: 1; font-weight: 400; }
.btn-small { padding: 0.45rem 0.75rem; font-size: 0.9rem; white-space: nowrap; }
#geo-note { margin-top: 0.3rem; font-weight: 400; }
.btn { display: inline-block; padding: 0.55rem 1rem; background: var(--accent); color: #1a1205; border: 0; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-2); color: #1a1205; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--glow); }
.btn-quiet { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--bg-3); color: var(--fg); }

.results { margin-top: 1.2rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.result { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }
.result h3 { margin: 0 0 0.2rem; font-size: 0.95rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.result .time { font-size: 1.7rem; font-weight: 700; color: var(--accent-2); line-height: 1.1; }
.result .subs { color: var(--fg); margin-top: 0.2rem; }
.result-note { margin-top: 0.9rem; color: #d8d3c6; }
.result-note strong { color: var(--fg); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.8rem 0 1.2rem; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 0.97rem; }
caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 0.88rem; padding: 0.6rem 0.8rem; }
th, td { padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
th small, td small { white-space: normal; max-width: 11rem; }
thead th { background: var(--bg-2); font-weight: 700; position: sticky; top: 0; }
tbody th { font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--bg); z-index: 1; }
thead th:first-child { position: sticky; left: 0; z-index: 2; }
.specs { width: 100%; }
.specs td { white-space: normal; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
td a { font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin: 1rem 0; padding: 0; }
.facts div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.75rem; }
.facts dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.7rem; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 0.9rem; color: var(--fg); text-decoration: none; }
.card:hover { border-color: var(--accent); color: var(--fg); }
.card strong { font-size: 1.02rem; }
.card span { font-size: 0.88rem; color: var(--muted); }
.card .muted { color: var(--accent-2); }

.bullets { padding-left: 1.2rem; }
.bullets li { margin: 0.4rem 0; }
.links { padding-left: 1.2rem; columns: 1; }
.links li { margin: 0.3rem 0; }
.gear { padding-left: 1.2rem; }
.gear li { margin: 0.35rem 0; }
.ad { margin: 1.5rem 0; min-height: 90px; }

.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 10; }
.consent p { margin: 0 0 0.7rem; }
.consent div { display: flex; gap: 0.6rem; flex-wrap: wrap; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  table { font-size: 0.9rem; }
  th, td { padding: 0.5rem 0.55rem; }
  th small, td small { max-width: 7rem; font-size: 0.78rem; }
  thead th small { display: none; }
  h2 { font-size: 1.3rem; }
  .result .time { font-size: 1.45rem; }
}
