:root {
  --ink-900: #0d0d0d;
  --ink-800: #161615;
  --ink-700: #222220;
  --ink-600: #3a3a36;
  --ink-100: #e9e5d5;
  --amber: #f5a524;
  --amber-dark: #b8760a;
  --cream: #f2efe3;
  --paper: #fbfaf4;
  --ink: #14130f;
  --muted: #6b675b;
  --line: #ddd8c6;
  --danger: #c2410c;
  --ok: #15803d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 13, 13, .06), 0 12px 32px -12px rgba(13, 13, 13, .14);
  --shadow-lg: 0 30px 60px -20px rgba(13, 13, 13, .28);
  --cream-brand: #f2efe3;
  --font-brand: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--ink-900); box-shadow: 0 6px 18px -6px rgba(245, 165, 36, .7); }
.btn-primary:hover { background: #ffb53d; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; padding: .95em; font-size: 1rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-dark);
}
.eyebrow.light { color: var(--amber); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13, 13, 13, .9); backdrop-filter: blur(12px);
  color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--cream-brand); }
.brand-icon { width: 52px; height: 35px; flex: none; color: var(--cream-brand); }
.brand-name {
  font-family: var(--font-brand); font-weight: 300; font-size: .98rem;
  letter-spacing: .19em; text-transform: uppercase; white-space: nowrap;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; opacity: .8; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 999px;
  padding: .45em .8em; font-weight: 700; font-size: .8rem; letter-spacing: .05em;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .18); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 84% 12%, rgba(245, 165, 36, .16), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(242, 239, 227, .09), transparent 60%),
    linear-gradient(165deg, #121211, var(--ink-900) 60%);
  padding: 88px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60px;
  background: var(--cream); clip-path: ellipse(75% 100% at 50% 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.9rem); margin: 14px 0 20px; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 36px; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--amber); }
.hero-trust span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

.hero-visual { position: relative; }
.hero-card { border-radius: 22px; box-shadow: var(--shadow-lg); }
.map-card { overflow: hidden; border: 6px solid rgba(255, 255, 255, .08); transform: rotate(1.5deg); }
.hero-map { display: block; width: 100%; height: auto; }
.hero-fence { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s .4s ease forwards; }
.hero-tag { opacity: 0; animation: fade .5s 2.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.quote-float {
  position: absolute; left: -28px; bottom: -34px;
  background: var(--paper); color: var(--ink); padding: 18px 22px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; animation: rise .6s 2.8s cubic-bezier(.2, .8, .2, 1) forwards;
}
.qf-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.qf-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink-800); }
.qf-meta { font-size: .85rem; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-mark { display: block; width: 96px; height: 64px; margin: 0 auto 18px; color: var(--ink-900); opacity: .9; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 10px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step {
  background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--ink-800); color: var(--amber); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type-card {
  border-radius: var(--radius); overflow: hidden; background: var(--cream);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.type-art { background: linear-gradient(#e6e2d2, #f6f4ec); padding: 22px 0 0; }
.type-art svg { display: block; width: 100%; height: 120px; }
.type-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.type-body h3 { font-size: 1.15rem; }
.type-body p { color: var(--muted); font-size: .92rem; }
.type-price { font-size: .9rem; color: var(--muted); margin: 6px 0 14px; }
.type-price strong { color: var(--ink-800); font-size: 1.15rem; }
.type-body .btn { margin-top: auto; align-self: flex-start; color: var(--ink-800); }
.type-body .btn:hover { background: var(--ink-100); }

/* ---------------------------------------------------------------- quote tool */
.quote-section { padding-top: 96px; }
.tool {
  display: grid; grid-template-columns: 400px 1fr; gap: 0;
  background: var(--paper); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  min-height: 720px;
}
.panel { padding: 8px 26px 24px; overflow-y: auto; max-height: 820px; }
.panel-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.panel-block:last-child { border-bottom: 0; }
.block-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; }
.dot {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-800); color: var(--amber); font-size: .8rem;
}
.hint { font-size: .86rem; color: var(--muted); }
.hint.ok { color: var(--ok); font-weight: 600; margin-top: 8px; }
.hint.error { color: var(--danger); font-weight: 600; margin-top: 8px; }

.search {
  position: relative; display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 14px;
  background: var(--cream); transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.search-icon { width: 18px; height: 18px; color: var(--amber-dark); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: .95rem; padding: 6px 0; }
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1200;
  list-style: none; margin: 0; padding: 6px; background: var(--paper);
  border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.suggestions li { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
.suggestions li strong { font-size: .92rem; }
.suggestions li span { font-size: .8rem; color: var(--muted); }
.suggestions li:hover, .suggestions li.hl { background: var(--ink-100); }

.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: .45em .9em; font-size: .85rem; font-weight: 600;
  transition: all .15s;
}
.chip:not(:disabled):hover { border-color: var(--ink-600); }
.chip.is-on { background: var(--ink-800); color: #fff; border-color: var(--ink-800); }
.chip-danger:not(:disabled):hover { border-color: var(--danger); color: var(--danger); }

.measure {
  display: flex; align-items: center; justify-content: space-around;
  background: var(--ink-800); color: #fff; border-radius: var(--radius-sm); padding: 14px 10px;
}
.measure > div:not(.measure-sep) { display: flex; flex-direction: column; align-items: center; }
.measure-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--amber); line-height: 1.1; }
.measure-unit { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.measure-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .15); }

.field-label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 8px; }
.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.type-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
  padding: 8px 10px 10px; transition: all .15s; color: var(--ink);
}
.type-opt:hover { border-color: var(--ink-600); }
.type-opt.active { border-color: var(--amber); background: #fdf3e0; box-shadow: 0 0 0 3px rgba(245, 165, 36, .18); }
.type-opt-art { width: 100%; height: 42px; border-radius: 8px; overflow: hidden; background: linear-gradient(#e6e2d2, #f6f4ec); margin-bottom: 6px; }
.type-opt-art svg { width: 100%; height: 100%; display: block; }
.type-opt-name { font-weight: 700; font-size: .9rem; }
.type-opt-price { font-size: .78rem; color: var(--muted); }

.segmented { display: flex; background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.segmented button { flex: 1; border: 0; background: none; border-radius: 999px; padding: .5em; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .15s; }
.segmented button.active { background: var(--ink-800); color: #fff; }

.counters { display: grid; gap: 10px; margin-bottom: 16px; }
.counter { display: flex; align-items: center; justify-content: space-between; font-size: .92rem; font-weight: 500; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 999px; padding: 3px; border: 1.5px solid var(--line); }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.1rem; font-weight: 700; color: var(--ink-800); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.stepper button:hover { background: var(--amber); }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; font-weight: 500; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { width: 44px; height: 26px; border-radius: 999px; background: #d6d3ca; position: relative; transition: background .2s; flex: none; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle input:checked + .toggle-ui { background: var(--ink-600); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--amber); outline-offset: 2px; }

/* map */
.map-wrap { position: relative; min-height: 720px; background: #1b1b19; }
#map { position: absolute; inset: 0; }
#map.is-drawing { cursor: crosshair; }
#map.is-drawing .leaflet-interactive { cursor: crosshair; }
.map-banner {
  position: absolute; z-index: 500; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(13, 13, 13, .88); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; backdrop-filter: blur(6px); pointer-events: none; transition: opacity .3s;
  text-align: center; box-shadow: var(--shadow-lg);
}
.map-banner.hidden { opacity: 0; }
.layer-switch {
  position: absolute; z-index: 500; top: 12px; right: 12px; display: flex;
  background: rgba(255, 255, 255, .95); border-radius: 999px; padding: 3px; box-shadow: var(--shadow);
}
.layer-switch button { border: 0; background: none; border-radius: 999px; padding: .4em .9em; font-size: .82rem; font-weight: 600; color: var(--muted); }
.layer-switch button.active { background: var(--ink-800); color: #fff; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-bar a { color: var(--ink-800); }

.vertex {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--amber); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .15s;
}
.vertex:hover { transform: scale(1.25); }
.vertex-first { background: var(--amber); }
.vertex-closable { animation: pulse 1.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .8); }
  100% { box-shadow: 0 0 0 14px rgba(245, 165, 36, 0); }
}
.edge-label {
  display: inline-block; transform: translate(-50%, -50%); white-space: nowrap;
  background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.home-pin {
  display: grid; place-items: center; width: 62px; height: 46px; padding: 5px 6px;
  border-radius: 14px; background: rgba(13, 13, 13, .72); backdrop-filter: blur(2px);
  color: var(--cream-brand); box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
}
.home-pin svg { width: 100%; height: 100%; }

/* result */
.result {
  margin-top: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.result-mark {
  position: absolute; right: -40px; bottom: -30px; width: 340px; height: 226px;
  color: var(--cream-brand); opacity: .07; pointer-events: none;
}
.result-main {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(245, 165, 36, .18), transparent 62%),
    linear-gradient(150deg, #121211, var(--ink-800));
  color: #fff; padding: 40px 44px;
}
.result-price {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 10px 0 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.result.is-empty .result-price { color: rgba(255, 255, 255, .35); }
.result-note { color: rgba(255, 255, 255, .75); }
.breakdown { margin: 26px 0 0; display: grid; gap: 2px; max-width: 460px; }
.breakdown div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.breakdown dt { color: rgba(255, 255, 255, .7); }
.breakdown dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown .total { border-bottom: 0; padding-top: 12px; }
.breakdown .total dt, .breakdown .total dd { color: var(--amber); font-weight: 700; }
.disclaimer { margin-top: 24px; font-size: .8rem; color: rgba(255, 255, 255, .55); max-width: 520px; }

.lead-form { background: var(--paper); padding: 36px 36px; display: flex; flex-direction: column; gap: 10px; }
.lead-form h3 { font-family: var(--font-display); font-size: 1.6rem; }
.lead-form .hint { margin-bottom: 8px; }
.lead-form input, .lead-form textarea {
  font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--cream); outline: none; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.error { color: var(--danger); }

/* footer */
.footer { background: var(--ink-900); color: #fff; padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { display: block; width: 230px; max-width: 60vw; height: auto; margin-bottom: 4px; }
.footer .hint { color: rgba(255, 255, 255, .55); margin-top: 6px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.footer-contact a { color: var(--amber); font-weight: 700; text-decoration: none; font-size: 1.1rem; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 2000;
  background: var(--ink-900); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .tool { grid-template-columns: 350px 1fr; }
}
/* map HUD + mobile price bar (only shown on small screens) */
.hud-measure, .hud-tools, .mobile-bar { display: none; }

@media (max-width: 900px) {
  body { -webkit-tap-highlight-color: transparent; }
  .nav-inner { height: 60px; gap: 12px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  html { scroll-padding-top: 68px; }

  .hero { padding: 44px 0 84px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { margin: 12px 0 16px; }
  .hero .lead { font-size: 1.05rem; }
  .hero-cta { margin-top: 26px; }
  .hero-cta .btn { flex: 1 1 200px; }
  .hero-trust { margin-top: 34px; justify-content: space-between; gap: 12px; }
  .hero-trust strong { font-size: 1.6rem; }
  .map-card { transform: none; }
  .quote-float { left: 12px; bottom: -26px; padding: 14px 18px; }
  .qf-price { font-size: 1.35rem; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-sub { font-size: .95rem; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .step-num { grid-row: span 2; margin: 0; }

  /* quote tool: address → map → options */
  .quote-section { padding-top: 64px; }
  .tool { display: flex; flex-direction: column; min-height: 0; border-radius: 20px; }
  .panel { display: contents; }
  .panel-block { padding: 18px; }
  .panel-block:nth-child(1) { order: 1; border-bottom: 0; }
  .map-wrap { order: 2; min-height: 0; height: clamp(400px, 64svh, 600px); }
  .panel-block:nth-child(2) { order: 3; }
  .panel-block:nth-child(3) { order: 4; }
  .panel .tools-row { display: none; }
  .panel-block:nth-child(2) .hint { margin-bottom: 14px; }

  .search input, .lead-form input, .lead-form textarea { font-size: 16px; }
  .search { padding: 4px 4px 4px 14px; }
  .search .btn { padding: .7em 1em; }
  .suggestions li { padding: 12px; }

  .chip { padding: .6em 1em; }
  .type-opt { padding: 8px 10px 12px; }
  .segmented button { padding: .7em; }
  .stepper button { width: 38px; height: 38px; }
  .counter { gap: 12px; }
  .toggle { padding: 4px 0; }

  .layer-switch { top: 12px; right: 12px; }
  .layer-switch button { padding: .5em .85em; }
  .map-banner { font-size: .92rem; padding: 12px 18px; max-width: calc(100% - 48px); }
  .leaflet-bottom { bottom: 84px; }
  .leaflet-control-attribution { font-size: 9px; }

  .hud-measure {
    display: flex; flex-direction: column; position: absolute; z-index: 600; top: 12px; left: 12px;
    background: rgba(13, 13, 13, .92); color: #fff; backdrop-filter: blur(6px);
    border-radius: 14px; padding: 7px 12px; line-height: 1.25; box-shadow: var(--shadow);
    pointer-events: none;
  }
  .hud-measure strong { color: var(--amber); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
  .hud-measure > span { font-size: .78rem; font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }

  .hud-tools {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
    position: absolute; z-index: 600; left: 10px; right: 10px; bottom: 10px;
    background: rgba(255, 255, 255, .97); border-radius: 18px; padding: 6px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  }
  .hud-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; border: 0; border-radius: 13px; background: none;
    color: var(--ink-800); font-size: .7rem; font-weight: 700; padding: 6px 2px;
    transition: background .15s, color .15s;
  }
  .hud-btn svg { width: 22px; height: 22px; }
  .hud-btn:active:not(:disabled) { background: var(--ink-100); }
  .hud-btn.is-on { background: var(--ink-800); color: #fff; }
  .hud-btn.hud-primary { background: var(--amber); color: var(--ink-900); }
  .hud-btn .i-close, .hud-btn .l-close { display: none; }

  /* full-screen drawing */
  body.map-fullscreen { overflow: hidden; }
  body.map-fullscreen .map-wrap {
    position: fixed; inset: 0; z-index: 1500; height: 100dvh; border-radius: 0;
  }
  body.map-fullscreen .hud-measure { top: calc(12px + env(safe-area-inset-top)); }
  body.map-fullscreen .layer-switch { top: calc(12px + env(safe-area-inset-top)); }
  body.map-fullscreen .hud-tools { bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.map-fullscreen .leaflet-bottom { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.map-fullscreen .hud-btn .i-expand, body.map-fullscreen .hud-btn .l-expand { display: none; }
  body.map-fullscreen .hud-btn .i-close, body.map-fullscreen .hud-btn .l-close { display: block; }
  body.map-fullscreen .mobile-bar { transform: translateY(160%); }

  .result { grid-template-columns: 1fr; margin-top: 18px; border-radius: 20px; }
  .result-main, .lead-form { padding: 28px 20px; }
  .breakdown { max-width: none; }

  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; z-index: 1200; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--ink-900); color: #fff; border-radius: 18px;
    padding: 10px 10px 10px 16px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55);
    transform: translateY(160%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  .mobile-bar.show { transform: none; }
  .mb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .mb-label { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
  .mb-text strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mobile-bar .btn { padding: .75em 1.1em; }
  body:has(.mobile-bar.show) .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}
@media (max-width: 560px) {
  .types-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .types-grid::-webkit-scrollbar { display: none; }
  .type-card { flex: 0 0 76%; scroll-snap-align: start; }
  .type-card:hover { transform: none; }
  .type-art svg { height: 96px; }
  .type-body { padding: 16px 18px 18px; }
  .nav .btn-sm { display: none; }
  .brand-name { font-size: .82rem; letter-spacing: .15em; }
  .section-mark { width: 74px; height: 50px; margin-bottom: 14px; }
  .result-mark { width: 230px; height: 153px; right: -30px; bottom: -20px; }
  .brand-icon { width: 38px; height: 26px; }
}
@media (max-width: 360px) {
  .hud-btn { font-size: .62rem; }
  .mb-text strong { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .hero-fence { stroke-dashoffset: 0; }
}
