/* Montserrat — self-hosted, offline-friendly */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* CarboShare — design system v2. Minimal, calm, trustworthy.
   Palette: deep blue (trust) + graphite (text) + green (eco) + lots of white.
   Reference mood: troostwijkauctions.com structure, user-specified colors. */
:root {
  --navy: #1f3a5f;
  --navy-deep: #16283f;
  --navy-soft: #eef2f7;
  --graphite: #2b3240;
  --muted: #6b7484;
  --green: #2f7d5c;
  --green-deep: #256348;
  --green-soft: #e8f3ee;
  --amber: #b97a1f;
  --amber-soft: #faf3e6;
  --bg: #ffffff;
  --surface: #ffffff;
  --alt: #ffffff;
  --line: #e6e9ef;
  --line-strong: #d5dae3;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 40, 63, .05);
  --shadow: 0 2px 6px rgba(22, 40, 63, .06), 0 10px 28px -14px rgba(22, 40, 63, .14);
  --font: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--graphite);
  line-height: 1.65; font-size: 1rem; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .6rem; font-weight: 700; letter-spacing: -.01em; color: var(--navy-deep); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.08rem; color: var(--graphite); }
p { margin: 0 0 .85rem; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid rgba(47, 125, 92, .45); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-deep); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; text-decoration: none; }
.skip-link:focus { left: 0; }

/* banner */
.demo-banner { background: var(--alt); color: var(--muted); font-size: .85rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line); }
.demo-banner .container { display: flex; align-items: center; gap: .75rem; justify-content: center; text-align: center; }
.demo-banner button { background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; font-size: .85rem; line-height: 1; padding: .15rem .55rem; color: var(--muted); }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50; }
.site-header .container { padding-top: .85rem; padding-bottom: .85rem; }
.header-top { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-bottom: .5rem !important; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.12rem;
  color: var(--navy-deep); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; }
.brand-tag { font-size: .68rem; font-weight: 500; color: var(--muted); }
.header-search { flex: 1 1 240px; max-width: 400px; display: flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; }
.header-search:focus-within { border-color: var(--navy); }
.header-search input { border: none; background: transparent; font: inherit; width: 100%; outline: none;
  color: var(--graphite); font-size: .95rem; }
@media (max-width: 700px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
}
.main-nav { display: flex; gap: .15rem; margin-left: .25rem; flex-wrap: wrap; }
.nav-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-left: 0; padding-top: .35rem !important; padding-bottom: 0 !important; }
.nav-scroll::-webkit-scrollbar { display: none; }
.main-nav a { padding: .45rem .85rem; border-radius: 8px; text-decoration: none; color: var(--graphite);
  font-weight: 500; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { background: var(--navy-soft); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.header-actions { margin-left: auto; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.lang-switch { display: flex; gap: .1rem; background: var(--alt); padding: .18rem; border-radius: 8px;
  border: 1px solid var(--line); }
.lang-switch button, .lang-switch a.lang-btn { border: none; background: transparent; padding: .3rem .6rem;
  border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .82rem; color: var(--muted);
  font-family: var(--font); text-decoration: none; display: inline-block; }
.lang-switch button[aria-pressed="true"], .lang-switch a.lang-btn[aria-current="true"] {
  background: var(--surface); color: var(--navy-deep); box-shadow: 0 1px 2px rgba(22,40,63,.12); }

/* buttons */
.btn { display: inline-block; border: none; cursor: pointer; font: inherit; font-weight: 600;
  padding: .7rem 1.35rem; border-radius: 8px; text-decoration: none; text-align: center;
  transition: background .12s ease, box-shadow .12s ease, transform .06s ease; line-height: 1.4; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-deep); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy-soft); }
.btn-sm { padding: .45rem .95rem; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600;
  color: var(--green-deep); background: var(--green-soft); padding: .3rem .8rem; border-radius: 999px;
  margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: .9rem; max-width: 46rem; }
.hero p { font-size: 1.13rem; max-width: 44rem; color: var(--muted); margin-bottom: 1.6rem; }
.hero .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .trust-row { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line); }
.hero .trust-item { display: flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 500; color: var(--graphite); }
.hero .trust-item .tic { color: var(--green); font-weight: 700; }

/* icons */
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; }
.card .ic, .card .meta .ic, .distance-list .ic { color: var(--muted); }
.cat-tile .ic { color: var(--navy); width: 26px; height: 26px; }
.cat-tile:hover .ic { color: var(--navy-deep); }
.card:hover .ic { color: var(--navy); }

/* about blocks */
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 2.2rem; box-shadow: var(--shadow); max-width: 60rem; }
.about-card h2 { margin-bottom: .7rem; }
.about-card p { color: var(--muted); max-width: 52rem; margin-bottom: 0; }

/* sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head a { font-weight: 600; }
.section-sub { color: var(--muted); max-width: 46rem; margin-bottom: 1.75rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow); }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem;
  border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: .9rem; }
.step h3 { margin-bottom: .45rem; }
.step p { margin: 0; color: var(--muted); }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .85rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem .8rem; text-decoration: none;
  color: var(--graphite); font-weight: 600; transition: border-color .12s ease, box-shadow .12s ease; }
.cat-tile:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.cat-tile .icon { font-size: 1.75rem; line-height: 1; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.05rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; text-decoration: none; color: var(--graphite);
  transition: border-color .12s ease, box-shadow .12s ease; }
.card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .55rem; }
.card .icon { font-size: 1.6rem; line-height: 1; }
.card h3 { font-size: 1.02rem; margin: .2rem 0 .4rem; color: var(--navy-deep); }
.card .meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .55rem; }
.card .meta span { display: inline-flex; align-items: center; gap: .25rem; }

/* badges */
.badge { display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .78rem;
  font-weight: 600; line-height: 1.55; white-space: nowrap; letter-spacing: .01em; }
.b-free, .b-open, .b-approve { background: var(--green-soft); color: var(--green-deep); }
.b-fee { background: var(--navy-soft); color: var(--navy); }
.b-res, .b-paused { background: var(--amber-soft); color: var(--amber); }
.b-closed { background: #eef0f3; color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .85rem 1.6rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.2rem; margin-bottom: 1.4rem; }
.dist-form { display: flex; flex-direction: column; gap: .4rem; }
.dist-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.dist-row input { font: inherit; padding: .5rem .8rem; border: 1px solid var(--line);
  border-radius: 8px; width: 170px; color: var(--graphite); }
.dist-row input:focus { border-color: var(--navy); outline: none; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: .4rem 0 1rem;
  display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; font-weight: 500; }
.breadcrumbs [aria-current="page"] { color: var(--graphite); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-box { flex: 1 1 270px; display: flex; align-items: center; gap: .5rem; background: var(--alt);
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; }
.search-box:focus-within { border-color: var(--navy); background: var(--surface); }
.search-box input { border: none; background: transparent; font: inherit; width: 100%; outline: none; color: var(--graphite); }
.chip-group { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .4rem .85rem;
  cursor: pointer; font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted);
  text-decoration: none; display: inline-block; transition: border-color .12s ease, color .12s ease; }
.chip:hover { border-color: var(--line-strong); color: var(--graphite); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .35rem; }
.sort select { font: inherit; padding: .42rem .6rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--graphite); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .32rem; margin-bottom: 1.05rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--graphite); }
.field input, .field select, .field textarea { font: inherit; padding: .62rem .85rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--graphite); transition: border-color .12s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .84rem; color: var(--muted); }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: 1rem; color: var(--graphite); }
.checkbox input { margin-top: .28rem; accent-color: var(--green); }

/* auth */
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.role-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; cursor: pointer; font: inherit; text-align: left; color: var(--graphite);
  transition: border-color .12s ease, background .12s ease; }
.role-card:hover { border-color: var(--line-strong); }
.role-card[aria-pressed="true"], .role-card:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.role-card h3 { margin-bottom: .35rem; }
.role-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.role-card .tag { display: inline-block; margin-top: .7rem; font-size: .78rem; font-weight: 600; color: var(--green-deep); }
.role-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.auth-wrap { max-width: 540px; margin: 0 auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; box-shadow: var(--shadow-sm); }
.auth-footer { text-align: center; margin-top: 1.3rem; color: var(--muted); }
.form-section[hidden] { display: none; }

/* notice */
.notice { background: var(--green-soft); border: 1px solid rgba(47,125,92,.35); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-bottom: 1.6rem; color: var(--graphite); }
.notice h3 { margin-bottom: .3rem; color: var(--green-deep); }
.notice[hidden] { display: none; }

/* dashboard */
.dash-role { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.6rem; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; }
.stat .num { font-size: 1.85rem; font-weight: 700; color: var(--navy); }
.stat .lbl { color: var(--muted); font-size: .88rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; margin-bottom: 1.5rem; }
.panel h2 { margin-bottom: 1.1rem; }
.view[hidden] { display: none; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.mini-btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: .3rem .75rem;
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--navy); }
.mini-btn:hover { border-color: var(--navy); }
.mini-btn.warn { color: var(--amber); }

/* listing detail */
.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-main, .detail-side { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; }
.detail-side dl { margin: 0; }
.detail-side dt { font-weight: 700; font-size: .78rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; margin-top: 1rem; }
.detail-side dd { margin: .15rem 0 0; }
.req-btn { width: 100%; margin-top: 1.4rem; }
.badge-row { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .85rem; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(22, 40, 63, .5); display: flex;
  align-items: center; justify-content: center; padding: 1rem; z-index: 200; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--surface); border-radius: var(--radius-lg); max-width: 480px; width: 100%;
  padding: 1.7rem; max-height: 90vh; overflow: auto; position: relative; box-shadow: var(--shadow); }
.modal h2 { margin-bottom: 1rem; }
.modal .actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }
.modal .close-x { position: absolute; right: 1rem; top: .85rem; border: none; background: none;
  font-size: 1.3rem; cursor: pointer; color: var(--muted); }

/* certificate */
.cert-controls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; margin-bottom: 1.6rem; }
.cert-controls .form-grid { gap: 1rem; }
.sheet { background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; max-width: 210mm;
  margin: 0 auto; padding: 18mm 16mm; box-shadow: var(--shadow-sm); color: #16181c; }
.sheet .sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  border-bottom: 3px solid var(--navy); padding-bottom: .9rem; margin-bottom: 1.1rem; }
.sheet .sheet-head .brand { color: var(--navy-deep); }
.sheet .sheet-head img { width: 40px; height: 40px; }
.sheet h2 { font-size: 1.5rem; margin: 0; color: var(--navy-deep); }
.sheet .cert-no { text-align: right; font-size: .85rem; color: var(--muted); }
.sheet .cert-sub { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.sheet table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.sheet th, .sheet td { border: 1px solid var(--line-strong); padding: .5rem .7rem; text-align: left; font-size: .95rem; }
.sheet th { background: var(--alt); width: 38%; }
.sheet .sign-row { display: flex; gap: 2rem; margin-top: 2.2rem; }
.sheet .sign { flex: 1; border-top: 1.5px solid #333; padding-top: .4rem; font-size: .9rem; color: var(--muted); }
.sheet .disclaimer { margin-top: 1.8rem; font-size: .8rem; color: var(--muted);
  border-top: 1px dashed var(--line-strong); padding-top: .6rem; }

/* map */
.map-figure { max-width: 520px; margin: 0 auto; }
.map-svg { width: 100%; height: auto; }
.distance-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.distance-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.distance-list .d { font-weight: 700; color: var(--navy); white-space: nowrap; }
.distance-list a { text-decoration: none; color: var(--navy-deep); font-weight: 600; }
.distance-list .sub { color: var(--muted); font-size: .85rem; }

/* footer */
.site-footer { background: var(--navy-deep); color: #c7d2e0; padding: 3rem 0 1.6rem; margin-top: 4rem; }
.site-footer a { color: #9fb8d8; }
.brand-inv { font-size: 1.15rem; font-weight: 700; display: block; margin-bottom: .55rem; color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 1.6rem; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.f-links { list-style: none; padding: 0; margin: .55rem 0 0; display: grid; gap: .5rem; }
.f-links a { color: #9fb8d8; text-decoration: none; font-size: .9rem; }
.f-links a:hover { color: #fff; }
.sitemap-links a { color: var(--navy); }
.sitemap-links a:hover { color: var(--navy-deep); }
.site-footer .f-t { font-size: 1rem; color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; font-size: .84rem;
  color: #93a3ba; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .lang-switch { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.site-footer .lang-switch button, .site-footer .lang-switch a.lang-btn { color: #c7d2e0; }
.site-footer .lang-switch button[aria-pressed="true"],
.site-footer .lang-switch a.lang-btn[aria-current="true"] { background: var(--surface); color: var(--navy-deep); }

/* utilities */
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row form { margin: 0; }

/* mobile refinements */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.6rem 0; }
  .hero { padding: 3rem 0 2.6rem; }
  .hero p { font-size: 1.02rem; }
  .site-header .container { gap: .75rem; }
  .main-nav { order: 3; width: 100%; }
  .main-nav a { padding: .5rem .8rem; }
  .header-actions { margin-left: 0; }
  .chip { padding: .45rem .8rem; } /* ≥40px touch target */
  .btn { padding: .72rem 1.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero .trust-row { gap: .9rem 1.3rem; }
}

/* print (certificate) */
@media print {
  .site-header, .site-footer, .demo-banner, .cert-controls, .no-print, .skip-link { display: none !important; }
  body { background: #fff; }
  .sheet { border: none; box-shadow: none; padding: 0; max-width: none; }
  .section { padding: 0; }
  @page { size: A4; margin: 14mm; }
}
