:root {
  --green: #008732;
  --green-dark: #006527;
  --purple: #59358c;
  --ink: #17201a;
  --muted: #5f6b63;
  --line: #dbe4dc;
  --surface: #ffffff;
  --soft: #f3f7f3;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(23, 50, 31, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--green-dark); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.preview-banner { padding: 11px 0; color: white; background: var(--purple); }
.preview-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; }
.preview-message { display: flex; align-items: center; gap: 12px 20px; }
.preview-banner strong { text-transform: uppercase; letter-spacing: .08em; }
.preview-back-link { flex: none; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 8px 14px; color: white; font-size: .85rem; font-weight: 750; text-decoration: none; }
.preview-back-link:hover { border-color: white; background: rgba(255,255,255,.12); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 184px; display: block; }
.company-contact { display: flex; gap: 18px; font-size: .9rem; }
.hero { padding: 88px 0 72px; background: radial-gradient(circle at 85% 10%, rgba(89,53,140,.10), transparent 34%), linear-gradient(145deg, #f5fbf6, #fff); }
.owner-intro { min-height: 245px; display: flex; align-items: center; }
.owner-intro-copy { width: 100%; padding-inline: clamp(28px, 5vw, 58px); }
.lead.owner-greeting { margin: 0 0 20px; color: var(--green-dark); font-size: clamp(1.75rem, 3.7vw, 2.65rem); font-weight: 800; line-height: 1.14; letter-spacing: -.025em; }
.owner-intro-text { max-width: 590px; margin: 0; color: #405047; font-size: 1.05rem; line-height: 1.72; }
h1, h2 { line-height: 1.12; letter-spacing: -.03em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 10px 0 28px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin: 8px 0 20px; }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lead { font-size: 1.25rem; }
.notice { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--purple); background: rgba(89,53,140,.06); }
.preserve-lines { white-space: pre-line; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-tinted { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.owner-summary { text-align: right; color: var(--muted); }
.project-summary { padding-bottom: 0; }
.project-summary-panel { padding: clamp(28px, 5vw, 58px); overflow: hidden; border: 1px solid #dce8de; border-radius: 28px; background: radial-gradient(circle at 92% 0, rgba(89,53,140,.10), transparent 31%), linear-gradient(145deg, #f2faf4, #fff 62%); box-shadow: 0 20px 60px rgba(23,50,31,.08); }
.project-summary-header { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr); align-items: end; gap: 44px; margin-bottom: 38px; }
.project-summary-header h2 { margin-bottom: 0; }
.project-summary-header > p { max-width: 680px; margin: 0; padding-left: 24px; border-left: 3px solid var(--green); font-size: 1.08rem; }
.project-facts { display: grid; grid-template-columns: 1.08fr .96fr .96fr; gap: 16px; }
.project-fact { min-height: 255px; padding: 26px; display: flex; flex-direction: column; border: 1px solid rgba(23,50,31,.11); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 12px 34px rgba(23,50,31,.06); }
.project-fact h3 { margin: 10px 0 12px; font-size: 1.15rem; line-height: 1.25; }
.project-fact p { margin: auto 0 0; color: var(--muted); font-size: .94rem; }
.project-fact-index { margin-bottom: 22px; color: var(--green-dark); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.project-fact-number { display: block; color: var(--purple); font-size: clamp(1.55rem, 2.3vw, 2.1rem); font-weight: 900; line-height: 1.05; letter-spacing: -.025em; }
.project-fact-featured { color: white; border-color: transparent; background: linear-gradient(145deg, var(--green), var(--green-dark)); box-shadow: 0 18px 38px rgba(0,101,39,.22); }
.project-fact-featured .project-fact-index, .project-fact-featured .project-fact-number { color: white; }
.project-fact-featured p { color: rgba(255,255,255,.78); }
.project-restoration { margin-top: 18px; padding: 20px 24px; display: flex; align-items: center; gap: 17px; border: 1px solid rgba(89,53,140,.16); border-radius: 17px; background: rgba(89,53,140,.07); }
.project-restoration-mark { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--purple); font-size: 1.15rem; font-weight: 900; }
.project-restoration strong { display: block; margin-bottom: 2px; }
.project-restoration p { margin: 0; color: var(--muted); font-size: .92rem; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow); }
.parcel-table { width: 100%; border-collapse: collapse; }
.parcel-table th, .parcel-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.parcel-table th { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; background: #fafcfa; }
.parcel-table tbody tr { cursor: pointer; transition: background .15s ease; }
.parcel-table tbody tr:hover, .parcel-table tbody tr.is-active { background: #edf8f0; }
.parcel-table td span { display: block; color: var(--muted); font-size: .86rem; }
.parcel-list { display: grid; gap: 18px; }
.parcel-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.parcel-details { align-self: center; padding: 26px 28px; }
.parcel-title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.parcel-title h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.parcel-title p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.parcel-cadastral-link { display: inline-block; margin-top: 7px; font-size: .84rem; font-weight: 750; text-decoration: none; }
.parcel-cadastral-link:hover { text-decoration: underline; }
.parcel-index { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }
.parcel-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
.parcel-facts div { min-width: 0; }
.parcel-facts dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.parcel-facts dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.parcel-visual { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: #f7f9f7; }
.parcel-map { position: relative; min-height: 230px; flex: 1; display: grid; place-items: center; background: #dce5dc; overflow: hidden; isolation: isolate; }
.map-stage, .map-tiles, .map-overlay { position: absolute; inset: 0; }
.map-stage { overflow: hidden; background: #dce5dc; }
.map-interactive { cursor: grab; touch-action: none; user-select: none; }
.map-interactive.is-dragging { cursor: grabbing; }
.map-interactive:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; }
.map-tile { position: absolute; display: block; width: 256px; height: 256px; max-width: none; user-select: none; }
.map-overlay { z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.parcel-shape { fill: rgba(0,135,50,.28); stroke: #fff; stroke-width: 4; paint-order: stroke fill; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s ease, stroke .15s ease; }
.parcel-shape:hover, .parcel-shape.is-active { fill: rgba(89,53,140,.48); stroke: var(--purple); }
.vte-candidate-layer.is-hidden { display: none; }
.vte-candidate-marker circle { fill: var(--purple); stroke: white; stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 3px rgba(23,32,26,.4)); }
.vte-candidate-marker text { fill: white; font-family: Arial, sans-serif; font-size: 7px; font-weight: 800; letter-spacing: -.02em; }
.map-controls { position: absolute; z-index: 4; top: 12px; right: 12px; display: grid; gap: 5px; }
.map-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(23,32,26,.18); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(23,32,26,.16); font-size: 1.3rem; line-height: 1; }
.map-controls button:hover { color: var(--green-dark); background: white; }
.map-controls button:disabled { opacity: .5; cursor: default; }
.map-layer-control { position: absolute; z-index: 4; top: 12px; left: 12px; display: grid; gap: 3px; padding: 6px 8px; border: 1px solid rgba(23,32,26,.18); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(23,32,26,.16); cursor: default; }
.map-layer-control span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .05em; line-height: 1; text-transform: uppercase; }
.map-layer-control select { min-width: 108px; padding: 2px 22px 2px 2px; border: 0; color: var(--ink); background-color: transparent; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.map-layer-control select:focus { outline: 2px solid var(--purple); outline-offset: 2px; }
.map-layer-control.is-inline { position: static; min-height: 0; padding: 0; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.map-layer-control.is-inline span { white-space: nowrap; }
.map-layer-control.is-inline select { min-width: 112px; padding: 5px 24px 5px 7px; border: 1px solid var(--line); border-radius: 8px; background-color: white; }
.parcel-layer-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; }
.map-vte-control { position: absolute; z-index: 4; top: 78px; left: 12px; min-height: 36px; padding: 7px 9px; display: flex; grid-template-columns: none; align-items: center; gap: 7px; border: 1px solid rgba(23,32,26,.18); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(23,32,26,.16); cursor: pointer; font-size: .78rem; font-weight: 750; }
.map-vte-control.is-inline { position: static; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.map-vte-control input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--purple); }
.map-vte-control input:disabled ~ span { opacity: .55; }
.map-vte-swatch { width: 11px; height: 11px; flex: none; border: 2px solid white; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.map-attribution { position: absolute; z-index: 3; right: 8px; bottom: 6px; left: 8px; display: flex; align-items: end; justify-content: space-between; gap: 8px; pointer-events: none; }
.map-attribution a { pointer-events: auto; }
.mapy-logo { display: block; height: 30px; padding: 3px 5px; border-radius: 5px; background: rgba(255,255,255,.9); line-height: 0; }
.mapy-logo img { display: block; width: 100px; height: auto; }
.mapy-copyright { padding: 3px 5px; border-radius: 4px; color: #26332b; background: rgba(255,255,255,.9); font-size: .62rem; line-height: 1.2; text-decoration: none; }
.mapy-copyright:hover { text-decoration: underline; }
.map-message, .map-source { color: var(--muted); font-size: .86rem; }
.parcel-map-footer { min-height: 52px; padding: 7px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); background: white; }
.parcel-mapy-link { margin-left: auto; font-size: .84rem; font-weight: 750; text-align: right; text-decoration: none; }
.parcel-mapy-link:hover { text-decoration: underline; }
.parcel-mapy-link.is-disabled { color: var(--muted); cursor: default; }
.parcel-mapy-link.is-disabled:hover { text-decoration: none; }
.map-source { margin: 14px 2px 0; text-align: right; }
.empty-state { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.contact-form { margin-top: 30px; }
.contact-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-fieldset:disabled { opacity: .58; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #b7c5b9; border-radius: 10px; background: white; color: var(--ink); font: inherit; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0,135,50,.16); border-color: var(--green); }
.phone-field, .email-field { min-width: 0; }
.phone-input-row, .email-input-row { width: 100%; min-width: 0; }
.phone-input-row { display: grid; grid-template-columns: 82px minmax(160px, 1fr); gap: 8px; }
.email-input-row { display: block; }
.phone-country { min-width: 0; padding-right: 8px; }
.field-hint { color: var(--muted); font-size: .78rem; font-weight: 400; }
.cf-turnstile { min-height: 65px; }
.access-form .cf-turnstile, .contact-form .cf-turnstile { width: 100%; min-width: 0; margin: 18px 0; }
.turnstile-gate-form { justify-items: start; }
textarea { resize: vertical; margin-bottom: 18px; }
.checkbox-row { grid-template-columns: 22px 1fr; align-items: start; font-weight: 400; }
.checkbox-row input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--green); }
.form-hint { color: var(--muted); font-size: .9rem; }
button { border: 0; border-radius: 999px; padding: 13px 24px; color: white; background: var(--green); font: inherit; font-weight: 750; cursor: pointer; }
button:hover { background: var(--green-dark); }
.alert { margin: 24px 0; padding: 14px 18px; border-radius: 10px; }
.alert.success { color: #075b27; background: #dff5e6; }
.alert.error { color: #831b1b; background: #fde8e8; }
.alert ul { margin: 0; padding-left: 20px; }
.privacy-copy { color: var(--muted); }
.status-page { min-height: 65vh; padding-top: 100px; text-align: center; }
.status-symbol { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; color: white; background: var(--purple); font-size: 1.7rem; font-weight: 800; }
.status-symbol.success { background: var(--green); }
.contact-thanks { max-width: 720px; }
.contact-thanks h1 { margin-bottom: 20px; }
.contact-thanks .notice { max-width: 560px; margin: 28px auto 0; text-align: left; }
.status-actions { display: flex; justify-content: center; margin-top: 30px; }
.primary-link { display: inline-block; border-radius: 999px; padding: 13px 24px; color: white; background: var(--green); font-weight: 750; text-decoration: none; }
.primary-link:hover { background: var(--green-dark); }
.contact-thanks-help { margin-top: 34px; color: var(--muted); font-size: .9rem; }
.access-landing { min-height: calc(100vh - 169px); padding: 80px 0; display: grid; place-items: center; background: radial-gradient(circle at 82% 14%, rgba(89,53,140,.12), transparent 36%), linear-gradient(145deg, #f2faf4, #fff); }
.access-card { padding: clamp(30px, 6vw, 58px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); text-align: center; }
.access-card h1 { margin-bottom: 18px; font-size: clamp(2.3rem, 6vw, 4rem); }
.access-card .lead { max-width: 620px; margin: 0 auto; }
.access-form { max-width: 620px; margin: 34px auto 0; text-align: left; }
.access-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.access-code-row input {
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  word-spacing: .45em;
  text-align: center;
}
.access-code-row button { white-space: nowrap; }
.access-security { margin: 30px 0 0; color: var(--muted); font-size: .84rem; }
.site-footer { padding: 30px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner a { color: var(--green-dark); font-weight: 750; text-decoration: none; white-space: nowrap; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 850px) {
  .parcel-row { grid-template-columns: minmax(0, 1fr) minmax(270px, 42%); }
  .project-summary-header { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .project-summary-header > p { padding: 0; border-left: 0; }
  .project-facts { grid-template-columns: 1fr; }
  .project-fact { min-height: auto; }
  .project-fact-index { margin-bottom: 14px; }
  .project-fact p { margin-top: 14px; }
  .hero { padding: 60px 0 52px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 158px; }
  .preview-banner .container, .preview-message { align-items: flex-start; flex-direction: column; }
  .header-inner, .section-heading { align-items: flex-start; flex-direction: column; }
  .company-contact { display: none; }
  .hero { padding: 42px 0 40px; }
  .owner-intro { min-height: 0; }
  .lead.owner-greeting { margin-bottom: 16px; font-size: clamp(1.55rem, 8vw, 2rem); }
  .owner-intro-text { font-size: .98rem; line-height: 1.65; }
  h1 { margin: 8px 0 20px; font-size: clamp(2rem, 10vw, 2.55rem); }
  h2 { margin-bottom: 16px; font-size: clamp(1.65rem, 8vw, 2.1rem); }
  .lead { font-size: 1.08rem; line-height: 1.5; }
  .notice { margin-top: 22px; padding: 15px 16px; }
  .section { padding-top: 46px; padding-bottom: 46px; }
  .section-heading { gap: 8px; margin-bottom: 22px; }
  .owner-summary { text-align: left; margin: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  input, select, textarea { min-height: 48px; padding: 12px; font-size: 1rem; }
  textarea { min-height: 132px; }
  .phone-input-row { grid-template-columns: 76px minmax(145px, 1fr); }
  .checkbox-row { grid-template-columns: 26px 1fr; gap: 10px; line-height: 1.45; }
  .checkbox-row input { width: 22px; height: 22px; margin-top: 1px; }
  button, .primary-link { min-height: 48px; padding: 13px 20px; }
  .contact-form button[type="submit"], .turnstile-gate-form button { width: 100%; }
  .table-wrap { overflow-x: auto; }
  .parcel-table { min-width: 660px; }
  .parcel-row { grid-template-columns: 1fr; }
  .parcel-details { padding: 22px 20px; }
  .parcel-title { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .parcel-title h3 { font-size: 1.12rem; }
  .parcel-facts { gap: 16px; }
  .parcel-visual { border-top: 1px solid var(--line); border-left: 0; }
  .parcel-map { min-height: 260px; }
  .map-controls button { width: 44px; height: 44px; }
  .map-layer-control:not(.is-inline) { min-height: 44px; padding: 5px 7px; }
  .map-layer-control select { min-width: 104px; min-height: 24px; padding-top: 0; padding-bottom: 0; }
  .map-layer-control.is-inline select { min-height: 38px; padding: 5px 23px 5px 6px; }
  .parcel-map-footer { flex-wrap: wrap; padding: 10px 14px; }
  .parcel-mapy-link { padding: 5px 0; text-align: center; }
  .map-source { text-align: left; }
  .project-summary { padding-top: 46px; }
  .project-summary-panel { padding: 24px 20px; border-radius: 20px; }
  .project-summary-header { margin-bottom: 24px; }
  .project-summary-header > p { font-size: 1rem; }
  .project-facts { gap: 12px; }
  .project-fact { padding: 21px; border-radius: 16px; }
  .project-fact-index { margin-bottom: 10px; }
  .project-fact h3 { margin: 8px 0 6px; }
  .project-fact p { margin-top: 8px; }
  .project-restoration { align-items: flex-start; }
  .access-landing { min-height: calc(100vh - 137px); padding: 28px 0; place-items: start center; }
  .access-card { padding: 28px 22px; border-radius: 19px; }
  .access-card h1 { margin-bottom: 14px; font-size: clamp(2rem, 10vw, 2.45rem); }
  .access-card .lead { font-size: 1.04rem; }
  .access-form { margin-top: 26px; }
  .access-code-row { grid-template-columns: 1fr; }
  .access-code-row input { min-height: 54px; font-size: 1.15rem; }
  .access-code-row button { width: 100%; }
  .access-form .cf-turnstile { position: relative; left: 50%; width: max(100%, 300px); transform: translateX(-50%); }
  .access-security { margin-top: 22px; }
  .site-footer { padding: 24px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .container { width: min(100% - 16px, 1180px); }
  .access-card { padding-right: 16px; padding-left: 16px; }
  .project-summary-panel { padding-right: 16px; padding-left: 16px; }
  .parcel-details { padding-right: 16px; padding-left: 16px; }
  .parcel-facts { grid-template-columns: 1fr; gap: 13px; }
  .map-layer-control:not(.is-inline) { left: 8px; }
  .map-controls { right: 8px; }
}
