:root {
  --ink: #1b2329;
  --ink-2: #46525b;
  --muted: #6b7780;
  --bg: #f5f4f1;
  --card: #fff;
  --line: #e2e0da;
  --brand: #2f5d7c;
  --brand-dark: #1f2a33;
  --accent: #e0a526;
  --accent-ink: #2b1d00;
  --stone: #c9c4ba;
  --red: #b3342a;
  --red-bg: #fbeae8;
  --amber-bg: #fff4dc;
  --green: #22744a;
  --green-bg: #e7f4ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 35, 41, .06), 0 6px 20px rgba(27, 35, 41, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: .4em 0 .3em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .6em; }
h3, .h3 { font-size: 1.06rem; margin: 0 0 .35em; }
code { background: #eceae4; padding: .1em .35em; border-radius: 5px; font-size: .92em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 64ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 12px 16px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo-mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.nav { display: flex; gap: 2px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.nav a { padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem; white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: #e6eef4; color: var(--brand-dark); }
.nav .nav-acct { border: 1px solid var(--line); }
.langs { display: flex; gap: 2px; font-size: .8rem; font-weight: 700; }
.langs a, .langs span { padding: 4px 7px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.langs span { background: var(--brand-dark); color: #fff; }
.langs a:hover { background: var(--bg); color: var(--ink); }

/* hero */
.hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(224, 165, 38, .28), transparent 60%),
    linear-gradient(90deg, rgba(28, 37, 45, .82), rgba(28, 37, 45, .35) 70%),
    url("/marble.svg") center / cover,
    var(--brand-dark);
  color: #fff; padding: 44px 0 36px;
}
.hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero h1 { margin-top: 0; max-width: 22ch; }
.hero .lead { color: #d4dde3; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }

/* buttons & fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-go { background: var(--accent); color: var(--accent-ink); }
.btn-go:hover { background: #c98f12; color: var(--accent-ink); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #e6eef4; color: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { background: #eef3f7; color: var(--brand-dark); }
.btn-danger { background: #fff; color: var(--red); border-color: #efc3be; }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fbfaf8; border: 1px solid #d5d2ca; border-radius: 10px;
  padding: 10px 12px; width: 100%; min-width: 0;
}
textarea { resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid rgba(47, 93, 124, .3); outline-offset: 1px; border-color: var(--brand); }

.filters {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 10px; align-items: end;
  background: #fff; color: var(--ink); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); margin: 18px 0 10px;
}
.hero .filters { box-shadow: 0 10px 30px rgba(0, 0, 0, .2); border: 0; margin-top: 22px; }
.filters label, .field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 650; color: var(--ink-2); min-width: 0; }
.field { margin-bottom: 14px; }
.field small { font-weight: 400; }
.opt { font-weight: 400; color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; background: #fbfaf8; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 500; font-size: .95rem; color: var(--ink); cursor: pointer; margin-bottom: 10px; }
.checks .check { margin: 0; }
.has-err input, .has-err select, .has-err textarea, .has-err .check { border-color: var(--red); }
.field-err { color: var(--red); font-weight: 600; font-size: .85rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form { padding: 22px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* layout blocks */
.page { padding-bottom: 40px; }
.section { padding-top: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head a:not(.btn) { font-weight: 600; text-decoration: none; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-link { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--ink); }
.card-link h3 { color: var(--brand-dark); }
.card p { margin: .3em 0 0; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e6eef4; color: var(--brand-dark); font-weight: 800; margin-bottom: 6px; }

.items { display: grid; gap: 12px; margin: 12px 0; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.item h3 { margin: 4px 0; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--brand); text-decoration: underline; }
.item p { margin: .2em 0; color: var(--ink-2); font-size: .95rem; }
.item .pay { font-weight: 700; color: var(--green); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: .76rem; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: #e6eef4; color: var(--brand-dark); }
.tag-off { background: #eceae4; color: var(--muted); }
.empty { background: #fff; border: 1px dashed var(--stone); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; }

.crumbs { font-size: .86rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .5; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 18px 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.facts dt { font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.prose { max-width: 70ch; }
.prose li { margin: .3em 0; }
.contact-box { margin: 22px 0 10px; }
.contact-out { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.contact-out a { font-size: 1.02rem; }
.owner-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.owner-bar form { margin: 0; }
.report { margin: 18px 0; font-size: .92rem; }
.report summary { cursor: pointer; color: var(--muted); }
.report form { margin-top: 10px; display: grid; gap: 10px; max-width: 480px; }
.report label { display: grid; gap: 4px; }
.safety { border-left: 3px solid var(--accent); padding-left: 12px; }
.danger-zone { margin-top: 30px; border-top: 1px solid var(--line); }

.notice { border-radius: 12px; padding: 12px 16px; margin: 12px 0; border: 1px solid; }
.notice-ok { background: var(--green-bg); border-color: #bfe0cc; }
.notice-warn { background: var(--amber-bg); border-color: #f0d9a2; }
.notice-error { background: var(--red-bg); border-color: #f0c2bd; }
.notice a { word-break: break-all; }

/* calculators */
.calc { margin: 18px 0; }
.table-scroll { overflow-x: auto; }
.pieces { width: 100%; border-collapse: collapse; min-width: 560px; }
.pieces th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px; }
.pieces td { padding: 4px; }
.pieces td:first-child { width: 34%; }
.pieces .num { font-weight: 700; text-align: right; white-space: nowrap; padding-right: 10px; }
.x { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.x:hover { color: var(--red); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; margin-top: 18px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 8px; }
.totals div { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.totals span { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.totals strong { font-size: 1.5rem; }
.totals .grand { background: var(--brand-dark); color: #fff; }
.totals .grand span { color: #b9c7d0; }

.glossary { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.glossary th { text-align: left; background: var(--brand-dark); color: #fff; padding: 10px 12px; }
.glossary td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.glossary .def td { border-top: 0; color: var(--ink-2); font-size: .92rem; padding-top: 0; }
.glossary-filter { max-width: 360px; }

/* job cards: pay on the right, trade chips */
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; border-left: 4px solid var(--accent); }
.job-card .company { font-weight: 650; color: var(--ink-2); }
.pay-box { text-align: right; background: var(--green-bg); border-radius: 12px; padding: 8px 12px; min-width: 104px; }
.pay-box strong { display: block; font-size: 1.45rem; line-height: 1.1; color: var(--green); }
.pay-box span { display: block; font-size: .78rem; font-weight: 650; color: var(--green); }
.pay-box.pay-none { background: var(--bg); }
.pay-box.pay-none span { color: var(--muted); font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-t { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; background: #eef2f5; color: var(--ink-2); border-radius: 999px; padding: 3px 10px; }

/* WhatsApp share */
.btn-wa { background: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #17703c; color: #fff; }
.ico { width: 20px; height: 20px; flex: none; }
.share { margin: 6px 0 10px; }
.calc .share { margin-top: 16px; }

.top .logo-mark { color: var(--brand-dark); }

/* bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 720px) {
  .top .nav { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(27, 35, 41, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 650; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--brand-dark); }
  .tabbar a[aria-current="page"] svg { color: var(--accent); }
  .job-card { grid-template-columns: 1fr; }
  .pay-box { text-align: left; display: flex; align-items: baseline; gap: 6px; justify-self: start; }
  .pay-box strong { font-size: 1.25rem; }
}

/* footer */
.foot { background: var(--brand-dark); color: #c3ced5; margin-top: 50px; padding: 30px 0 18px; }
.foot .brand { color: #fff; }
.foot .logo-mark { color: #2e3d49; }
.foot .muted { color: #9fb0bb; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-content: start; }
.foot-links a { color: #dbe4ea; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 20px; padding-top: 14px; }

@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:nth-child(3) { grid-column: 1 / -1; }
  .filters .btn { grid-column: 1 / -1; }
  .two-col, .grid-3, .grid-2, .foot-in { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .nav { margin-left: 0; order: 3; width: 100%; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .row-2, .calc-grid { grid-template-columns: 1fr; }
  .form { padding: 16px; }
  .langs { margin-left: auto; }
}
