:root {
  --prussian: #0f2a3c;
  --prussian-deep: #081822;
  --prussian-mid: #16364c;
  --ink: #1c2328;
  --muted: #5a646c;
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --cream: #faf7f1;
  --white: #fffcf7;
  --brass: #a67c3d;
  --brass-2: #c4a36c;
  --line: #d5ccbc;
  --line-strong: #b9ae9a;
  --danger: #8b3a2f;
  --ok: #2f5d4a;
  --shadow: 0 18px 40px rgba(15, 42, 60, 0.08);
  --radius: 2px;
  --max: 1180px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", Consolas, "Courier New", monospace;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--prussian); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--prussian); font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--prussian-deep);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.wrap-wide { width: min(1320px, calc(100% - 2.4rem)); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--prussian);
  background: var(--prussian);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--prussian-mid); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--prussian);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--prussian); background: var(--white); color: var(--prussian); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--prussian-deep); }
.btn-brass:hover { background: var(--brass-2); color: var(--prussian-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.topbar {
  background: var(--prussian-deep);
  color: #d7cbb6;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 34px;
}
.topbar a { color: #d7cbb6; text-decoration: none; }
.topbar a:hover { color: var(--brass-2); }
.topbar-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  gap: 1.2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--prussian);
}
.logo svg { width: 42px; height: 42px; }
.logo-name { font-family: var(--serif); font-size: 1.18rem; line-height: 1; letter-spacing: 0.01em; }
.logo-sub {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; justify-content: center; gap: 0.2rem; }
.nav a, .nav-btn {
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
}
.nav a:hover, .nav-btn:hover, .nav a.is-active { color: var(--brass); }
.nav-drop { position: relative; }
.nav-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-42%);
  width: min(760px, 86vw);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: none;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 0.35rem 1rem;
  z-index: 50;
}
.nav-drop:hover .nav-panel,
.nav-drop:focus-within .nav-panel { display: grid; }
.nav-panel a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius);
}
.nav-panel a:hover { background: var(--paper); }
.nav-feature {
  grid-row: span 6;
  background: var(--prussian);
  color: var(--paper);
  padding: 1rem;
  text-decoration: none;
}
.nav-feature:hover { color: var(--brass-2); }
.nav-feature strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.35rem; }
.nav-feature span { color: #d7cbb6; font-size: 0.88rem; }

.header-cta { display: flex; align-items: center; gap: 0.55rem; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--prussian);
  position: relative;
  margin: 0 auto;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(78vh, 740px);
  align-items: stretch;
}
.hero-copy {
  padding: 4.2rem 0 3.4rem;
  max-width: 640px;
}
.hero-copy p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}
.hero-visual {
  position: relative;
  min-height: 420px;
  background: var(--prussian-deep);
  overflow: hidden;
}
.hero-visual img,
.hero-visual svg {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.coord-chip {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  background: rgba(8, 24, 34, 0.86);
  color: #e6dccb;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.7rem;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.stat {
  padding: 1.15rem 1.3rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--prussian);
}
.stat span { color: var(--muted); font-size: 0.86rem; }

.section { padding: 4.4rem 0; }
.section-alt { background: var(--paper); }
.section-dark {
  background: var(--prussian-deep);
  color: #d7cbb6;
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.feature-plankote {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
}
.feature-plankote img { width: 100%; border: 1px solid var(--line); background: var(--paper-2); }
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "＋";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-size: 0.8rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.2rem 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.card:hover { border-color: var(--prussian); color: inherit; }
.card.featured {
  grid-column: span 2;
  background: var(--prussian);
  color: var(--paper);
  min-height: 280px;
}
.card.featured h3, .card.featured a, .card.featured { color: var(--paper); }
.card.featured p { color: #d7cbb6; }
.card-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}
.card p { flex: 1; color: var(--muted); font-size: 0.95rem; }
.card .more {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--prussian);
}
.card.featured .more { color: var(--brass-2); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step {
  border-top: 1px solid var(--prussian);
  padding-top: 1rem;
}
.step b {
  display: block;
  font-family: var(--mono);
  color: var(--brass);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.equip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.equip figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.8rem;
}
.equip img { width: 100%; height: 150px; object-fit: cover; background: var(--paper); }
.equip figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1rem;
}
.toc b { display: block; font-size: 0.82rem; margin-bottom: 0.6rem; }
.toc a { display: block; text-decoration: none; padding: 0.28rem 0; font-size: 0.9rem; color: var(--muted); }
.toc a:hover { color: var(--prussian); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--prussian);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--brass);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0.7rem 0 0.2rem; color: var(--muted); }

.cta-band {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--prussian);
  color: var(--paper);
  padding: 2.2rem;
}
.cta-band h2 { color: var(--paper); margin-bottom: 0.4rem; }
.cta-band p { color: #d7cbb6; margin: 0; }

.page-hero {
  padding: 3.2rem 0 2.2rem;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--prussian); }
.crumbs span { opacity: 0.55; }

.service-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.4rem;
  align-items: start;
}
.side {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 1rem;
}
.side-box {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1rem;
}
.side-box h3 { font-size: 1.05rem; }
.side-box a { display: block; text-decoration: none; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.side-box a:last-child { border-bottom: 0; }

.city-grid, .district-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.chip {
  display: block;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}
.chip:hover { border-color: var(--prussian); }
.chip small { display: block; color: var(--muted); font-size: 0.75rem; }

.form { display: grid; gap: 0.8rem; }
.form label { font-size: 0.86rem; font-weight: 600; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: inherit;
  border-radius: var(--radius);
}
.form textarea { min-height: 140px; resize: vertical; }
.nap { font-style: normal; }
.nap p { margin: 0 0 0.35rem; }

.site-footer {
  background: var(--prussian-deep);
  color: #cfc3ae;
  padding: 3rem 0 1.2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(215, 203, 182, 0.16);
}
.site-footer a { color: #e6dccb; text-decoration: none; }
.site-footer a:hover { color: var(--brass-2); }
.site-footer h3 {
  color: var(--paper);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.38rem; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #9a8f7c;
}

.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.45rem;
  z-index: 30;
}
.float-cta a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.float-cta .tel { background: var(--prussian); color: var(--paper); }
.float-cta .wa { background: #2f5d4a; color: #fff; }

.cover-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin: 0 0 1.4rem;
}

.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ref-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.1rem;
}
.ref-card span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.error-page { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.error-page .code { font-family: var(--mono); color: var(--brass); letter-spacing: 0.2em; }

@media (max-width: 980px) {
  .hero-grid, .feature-plankote, .split, .service-layout, .article-layout, .cta-band, .footer-grid, .header-inner {
    grid-template-columns: 1fr;
  }
  .cards, .steps, .equip, .stat-row, .city-grid, .district-grid, .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card.featured { grid-column: span 2; }
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.2rem;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }
  .nav-panel {
    position: static;
    transform: none;
    width: auto;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0.2rem 0 0.6rem;
    grid-template-columns: 1fr;
  }
  .nav-drop.is-open .nav-panel { display: grid; }
  .side { position: static; }
  .hero-copy { padding: 2.4rem 0 1.5rem; max-width: none; }
}

@media (max-width: 640px) {
  .cards, .steps, .equip, .stat-row, .city-grid, .district-grid, .ref-grid, .topbar .wrap {
    grid-template-columns: 1fr;
  }
  .card.featured { grid-column: auto; min-height: 0; }
  .topbar { display: none; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .wrap, .wrap-wide { width: min(var(--max), calc(100% - 1.4rem)); }
}
