:root {
  --paper: #F4F6F1;
  --panel: #E6EBDF;
  --ink: #1E2A20;
  --moss: #3E6B41;
  --sage: #7B8A78;
  --line: rgba(30, 42, 32, 0.14);
  --moss-deep: #2F5333;
  --paper-lift: #FBFCF9;
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Merriweather", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--moss);
}

a:hover {
  color: var(--moss-deep);
}

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

h1,
h2,
h3,
.panel__title,
.headline,
.kpi__value,
.kpi__label,
.rail__brand,
.rail__cap,
.rail__link,
.panel__cap,
.btn,
.defs__term,
.steps__stage,
.qa__q,
.specs th,
.topbar,
.form-grid label,
.cta-band .panel__title {
  font-family: var(--font-ui);
  letter-spacing: -0.01em;
}

h1,
.headline {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 16px;
}

h2,
.panel__title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: 72ch;
}

.prose p + p {
  margin-top: 1em;
}

.lede {
  font-size: 1.05rem;
  max-width: 72ch;
  margin: 0 0 22px;
}

.pull {
  font-style: italic;
  border-left: 3px solid var(--moss);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  max-width: 72ch;
}

.panel__cap,
.rail__cap,
.kpi__label,
figcaption {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.panel__cap {
  margin: 0 0 10px;
}

.console {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 264px;
  height: 100vh;
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 28px 20px 32px;
  z-index: 30;
}

.rail__brand {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 28px;
  line-height: 1.3;
}

.rail__brand:hover,
.rail__brand:focus-visible {
  color: var(--moss);
}

.rail__group {
  margin-bottom: 22px;
}

.rail__cap {
  display: block;
  margin-bottom: 8px;
  padding: 0 10px;
}

.rail__link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 10px 8px 12px;
  border-radius: 6px;
  margin-bottom: 2px;
}

.rail__link:hover {
  background: var(--paper-lift);
  color: var(--ink);
}

.rail__link[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--moss);
  background: var(--paper-lift);
  font-weight: 700;
  color: var(--ink);
}

.rail__contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.rail__contact p {
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.5;
}

.rail__contact a {
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
}

.rail__contact a:hover {
  color: var(--moss);
}

.rail__contact .btn {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.topbar {
  display: none;
}

.main {
  grid-column: 2;
  padding: 28px 32px 48px;
  min-width: 0;
}

.board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 28px;
  box-shadow: inset 0 1px 0 rgba(251, 252, 249, 0.7);
}

.panel--main {
  grid-column: span 8;
}

.panel--side {
  grid-column: span 4;
}

.panel--full {
  grid-column: span 12;
}

.panel--pair {
  grid-column: span 6;
}

.kpi {
  grid-column: span 3;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: inset 0 1px 0 rgba(251, 252, 249, 0.7);
}

.kpi__value {
  font-size: clamp(1.35rem, 1rem + 1.1vw, 2rem);
  font-weight: 700;
  color: var(--moss);
  line-height: 1.15;
  margin-bottom: 6px;
}

.kpi__label {
  display: block;
  margin-bottom: 8px;
}

.kpi__note {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.btn {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  margin: 6px 10px 0 0;
}

.btn--solid {
  background: var(--moss);
  color: #F4F6F1;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--moss-deep);
  color: #F4F6F1;
}

.btn--quiet {
  background: var(--paper-lift);
  color: var(--ink);
  border: 1px solid var(--moss);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  background: var(--panel);
  color: var(--ink);
}

button.btn {
  font-family: var(--font-ui);
}

.defs {
  margin: 0;
}

.defs__item {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.defs__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.defs__term {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.defs__text {
  margin: 0;
  font-size: 0.98rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.steps__row:last-child {
  padding-bottom: 0;
}

.steps__stage {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--moss);
}

.steps__body {
  margin: 0;
  max-width: 72ch;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.specs th {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
}

.specs tr:last-child td {
  border-bottom: 0;
}

.qa {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.qa:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.qa__q {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.qa__a {
  max-width: 72ch;
}

.figurebox {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-lift);
}

.figurebox img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figurebox figcaption {
  padding: 10px 12px 12px;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-band .panel__title {
  margin: 0;
  flex: 1 1 280px;
}

.cta-band p {
  margin: 0;
  flex: 1 1 100%;
}

.foot-line {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.6;
}

.foot-line a {
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
}

.foot-line a:hover {
  color: var(--moss);
}

.notice {
  background: var(--paper-lift);
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  max-width: 72ch;
}

.cookiebar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.cookiebar p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookiebar a {
  color: #F4F6F1;
  text-decoration: underline;
}

.cookiebar a:hover {
  color: #F4F6F1;
}

.cookiebar .btn {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 20px;
  position: relative;
}

.field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--wide {
  grid-column: span 12;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font: 400 1rem/1.5 var(--font-body);
  color: var(--ink);
  background: var(--paper-lift);
  border: 1px solid var(--sage);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--moss);
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--sage);
}

.field__err {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.field--check input {
  width: auto;
  margin-top: 5px;
}

.field--check label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mapframe {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-lift);
}

.note-index a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.note-index a:hover {
  color: var(--moss);
}

.lift-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.js .lift-in {
  opacity: 0;
  transform: translateY(10px);
}

html.js .lift-in.is-shown {
  opacity: 1;
  transform: none;
}

.no-js .lift-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lift-in,
  html.js .lift-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .steps__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 1023px) {
  .console {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    grid-column: 1;
  }

  .topbar .rail__brand {
    margin: 0;
  }

  .topbar__toggle {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    background: var(--paper-lift);
    color: var(--ink);
    border: 1px solid var(--moss);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
  }

  .topbar__toggle:hover {
    background: var(--panel);
  }

  .rail {
    position: static;
    width: auto;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail .rail__brand {
    display: none;
  }

  html.js .rail:not(.rail--open) .rail__group,
  html.js .rail:not(.rail--open) .rail__contact {
    display: none;
  }

  .main {
    grid-column: 1;
    padding: 18px 16px 40px;
  }

  .panel--main,
  .panel--side,
  .panel--full,
  .panel--pair,
  .kpi {
    grid-column: span 12;
  }

  .field,
  .field--wide {
    grid-column: span 12;
  }

  .panel {
    padding: 22px 18px;
  }

  .specs {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .cookiebar {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cta-band .btn {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
}
