:root {
  --paper: #f6f5f1;
  --paper-2: #ecebe5;
  --surface: #ffffff;
  --ink: #12202f;
  --ink-2: #3a4a5c;
  --muted: #6b7785;
  --line: #d9d7cf;
  --accent: #e8590c;
  --accent-ink: #b8460a;
  --navy: #0f2a44;
  --navy-2: #173a5c;
  --ok: #2b8a3e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 32, 47, .06), 0 8px 24px rgba(18, 32, 47, .06);
  --max: 1160px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* --- eyebrow / coordinate label --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor;
}

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 600; font-size: 1.02rem; }
.brand-text span { font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.nav a.btn, .btn-primary { background: var(--accent); color: #fff; }
.nav a.btn:hover, .btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper-2); color: var(--navy); }

/* --- hero --- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.contours { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--line); opacity: .9; }
.contours svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.6rem; font-weight: 600; }
.hero-facts span { font-size: .85rem; color: var(--muted); }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% 30%; width: 100%; height: auto; }
.hero-photo .tag {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 16px; font-size: .85rem; line-height: 1.35;
}
.hero-photo .tag strong { display: block; font-size: .95rem; }
.hero-photo .coord {
  position: absolute; right: 14px; top: 14px; font-family: var(--mono); font-size: .7rem;
  background: rgba(15, 42, 68, .78); color: #fff; padding: 6px 10px; border-radius: 8px; letter-spacing: .03em;
}

/* --- page header (subpages) --- */
.page-head { position: relative; overflow: hidden; padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head p { max-width: 42em; }
.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* --- sections --- */
section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative;
}
.section-alt .card { background: var(--paper); }
.card .num { font-family: var(--mono); font-size: .8rem; color: var(--accent-ink); letter-spacing: .06em; }
.card h3 { margin-top: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-media .card-body { padding: 28px 30px 30px; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 9px 0 9px 30px; border-top: 1px dashed var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 12px;
  border: 2px solid var(--accent); border-radius: 50%;
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 22px; width: 2px; height: 2px; background: var(--accent); border-radius: 50%;
}

.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  background: #fff7f1; border: 1px solid #f6d3bd; border-radius: var(--radius); padding: 28px 30px;
}
.callout .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.callout h3 { margin-bottom: .35em; }
.callout ul { margin: 0; padding-left: 1.1em; }
.callout li { margin-bottom: .5em; }

/* --- advantages --- */
.advantages { counter-reset: adv; display: grid; gap: 0; border-top: 1px solid var(--line); }
.adv { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.adv .n { font-family: var(--mono); font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 500; }
.adv h3 { font-size: 1.45rem; }
.adv p { color: var(--ink-2); max-width: 46em; }

/* --- timeline --- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.timeline .when { font-family: var(--mono); font-size: .82rem; color: var(--muted); display: block; }
.timeline strong { font-weight: 600; }

.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.docs figure { margin: 0; }
.docs img { border-radius: 10px; border: 1px solid var(--line); background: #fff; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.docs figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* --- map page --- */
.map-layout { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); height: 680px; }
.map-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.map-side .search { padding: 16px; border-bottom: 1px solid var(--line); }
.map-side .count { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: 8px; }
.place-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; }
.place-list button {
  display: flex; width: 100%; align-items: center; gap: 10px; text-align: left;
  background: none; border: 0; font: inherit; font-size: .93rem; color: var(--ink);
  padding: 7px 16px; cursor: pointer;
}
.place-list button:hover, .place-list button:focus-visible { background: var(--paper); outline: none; }
.place-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-2); flex: none; }
.place-list .main .dot { background: var(--accent); width: 10px; height: 10px; }
.place-list .main button { font-weight: 600; }
.place-list .group { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 6px; }
#map { width: 100%; height: 100%; background: var(--paper-2); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: .88rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.legend .l-main { background: var(--accent); box-shadow: 0 0 0 3px rgba(232, 89, 12, .2); }
.legend .l-area { background: var(--navy-2); width: 8px; height: 8px; }
.legend .l-hq { background: var(--navy); border-radius: 3px; }
.legend .l-zone { border: 2px dashed var(--accent); border-radius: 3px; background: rgba(232, 89, 12, .08); }
.also { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }

.leaflet-container { font-family: var(--sans); }
.tiles-muted { filter: saturate(.35) contrast(.95) brightness(1.03); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 16px; font-size: .92rem; line-height: 1.4; }
.leaflet-popup-content strong { display: block; font-size: 1rem; }
.leaflet-popup-content .mono { font-size: .72rem; color: var(--muted); }
.leaflet-tooltip.main-label {
  background: var(--surface); border: 1px solid var(--line); box-shadow: none; border-radius: 6px;
  font-weight: 600; font-size: .78rem; padding: 2px 7px; color: var(--ink);
}
.leaflet-tooltip.main-label::before { display: none; }
.hq-icon { background: var(--navy); color: #fff; border-radius: 8px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* --- contact --- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy-2); }
.contact-list small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--accent-ink); }
.mini-map { height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.field label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(23, 58, 92, .15); }
.search input { padding-left: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7785' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 13px center no-repeat; }
.consent { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #ebfbee; color: #1b5e2a; border: 1px solid #b2f2bb; }
.form-status.err { display: block; background: #fff4e6; color: #8a3a06; border: 1px solid #ffd8a8; }

/* --- CTA band --- */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band .contours { color: rgba(255, 255, 255, .08); }
.cta-band .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* --- footer --- */
.site-footer { background: #0b1f33; color: rgba(255, 255, 255, .72); padding: 56px 0 28px; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb88a; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .78rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.quote { font-style: italic; margin-top: 18px; max-width: 28em; }
.quote span { display: block; font-style: normal; font-size: .82rem; margin-top: 4px; color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.5); }

/* --- reveal --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- responsive --- */
@media (max-width: 960px) {
  .hero .wrap, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-photo { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; grid-template-rows: 420px 320px; height: auto; }
  .map-side { order: 2; border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; }
  .grid-3, .gallery, .docs, form .row { grid-template-columns: 1fr; }
  .adv { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .adv .n { font-size: 2rem; }
  .callout { grid-template-columns: 1fr; padding: 22px; }
  .card { padding: 22px; }
  .card-media .card-body { padding: 22px; }
  .hero-photo .tag { left: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
