:root {
  --lake: #1f3b4d;
  --lake-deep: #142a38;
  --pine: #2f5d50;
  --birch: #f6f3ec;
  --paper: #fffdf8;
  --ink: #23272a;
  --muted: #5f6b70;
  --wood: #b5651d;
  --line: #e2ddd0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 42, 56, .10);
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--birch);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--lake-deep); }

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 0 16px 56px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20,42,56,.15) 0%, rgba(20,42,56,.25) 45%, rgba(20,42,56,.85) 100%),
    url("/img/logmozero.jpg") center 40% / cover no-repeat var(--lake);
}
.hero__inner { max-width: 1100px; width: 100%; margin: 0 auto; }
.hero__kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  opacity: .9;
}
.hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(40px, 8vw, 84px);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__lead { max-width: 640px; font-size: clamp(17px, 2.2vw, 21px); margin: 0 0 28px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--wood);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #9a5416; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--lake); border: 2px solid var(--lake); }
.btn--ghost:hover { background: var(--lake); color: #fff; }

/* ---------- Stats ---------- */
.stats {
  max-width: 1100px;
  margin: -32px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.stat {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.stat b { display: block; font: 700 26px/1.1 var(--serif); color: var(--lake); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
  padding: 8px 16px;
  background: rgba(246, 243, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--lake);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.tabs a:hover { background: rgba(31, 59, 77, .08); }
.tabs a[aria-selected="true"] { background: var(--lake); color: #fff; }

/* ---------- Panels ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; }
.panel { scroll-margin-top: 72px; }
.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 64px; }          /* no-JS: all panels stacked */
.js .panel + .panel { margin-top: 0; }
.panel h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.panel__intro { max-width: 760px; color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.js .panel:not([hidden]) { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Advantages */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.wide-figure { margin: 40px 0 0; }
.wide-figure img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--line); max-width: 820px; }
.timeline li { position: relative; padding: 0 0 26px 8px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--pine);
}
.timeline time { font: 700 19px var(--serif); color: var(--wood); }
.timeline p { margin: 4px 0 0; }

/* Directions */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split h3 { margin: 0 0 6px; font-size: 21px; }
.split h3:not(:first-child) { margin-top: 24px; }
.split p { margin: 0; }
.split figure { margin: 0; }
.split img { border-radius: var(--radius); }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--lake-deep);
  color: #cfd8dc;
  padding: 32px 16px;
  font-size: 14px;
}
.footer > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.footer b { color: #fff; }
.footer a { color: #9fd3c7; }
.footer summary { cursor: pointer; margin-top: 8px; }
.credits { padding-left: 18px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: rgba(10, 18, 24, .94);
  color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(1600px, 100%); text-align: center; }
.lightbox img { max-height: calc(100vh - 100px); margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #cfd8dc; font-size: 15px; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .tabs { justify-content: flex-start; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { min-height: 70vh; padding-bottom: 48px; }
  .stat { padding: 14px; }
  .stat b { font-size: 22px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery span { font-size: 13px; padding: 20px 8px 6px; }
  .lightbox__nav { top: auto !important; bottom: 16px; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
