:root {
  --ink: #15202b;
  --muted: #53616f;
  --paper: #f7f8f9;
  --line: #d7dde3;
  --blue: #1f5f8b;
  --blue-dark: #123c5c;
  --yellow: #f2c94c;
  --white: #ffffff;
  --focus: #0b6fb3;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 249, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
}
.brand {
  display: grid;
  gap: .05rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 10rem;
}
.brand strong { font-size: 1.05rem; letter-spacing: 0; }
.brand span { color: var(--muted); font-size: .82rem; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: .55rem .8rem;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: .55rem .65rem;
  border-radius: 7px;
  font-size: .94rem;
}
.site-nav a[aria-current="page"], .site-nav a:hover { background: #e8eef4; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  position: relative;
  background: #dce3ea;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,248,249,.94) 0%, rgba(247,248,249,.76) 42%, rgba(247,248,249,.18) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1rem 4.5rem;
  width: 100%;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--blue-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .78rem;
}
.kicker::before {
  content: "";
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--yellow);
}
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; margin: 0 0 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 5.6rem); max-width: 9.5em; }
h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 44rem; color: #243442; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .72rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.button:hover { color: var(--white); background: var(--blue-dark); }
.button.secondary:hover { color: var(--ink); background: #eef3f7; }
.band { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.band.white { background: var(--white); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1.15rem;
}
.marker { border-left: 5px solid var(--yellow); padding-left: 1rem; }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, .45fr);
  gap: 2rem;
  align-items: start;
}
.chapter img { border-radius: 8px; border: 1px solid var(--line); }
.caption { color: var(--muted); font-size: .88rem; margin-top: .55rem; }
.timeline {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0;
}
.timeline-step {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.timecode { font-weight: 800; color: var(--blue-dark); }
form { display: grid; gap: 1rem; }
label { font-weight: 700; display: grid; gap: .35rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid #b9c4ce;
  border-radius: 7px;
  padding: .75rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 9rem; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.checkline {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-weight: 500;
}
.checkline input { width: auto; margin-top: .33rem; }
.form-status, .planner-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #eef3f7;
}
.error { color: #8a1f1f; }
.success { color: #14642f; }
.planner-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.range-value { font-weight: 800; color: var(--blue-dark); }
.footer {
  background: #101820;
  color: #eef3f7;
  padding: 2.5rem 0;
}
.footer a { color: #f7d765; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; }
.legal-text { max-width: 850px; }
.legal-text h2 { margin-top: 2rem; font-size: 1.45rem; }
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(16, 24, 32, .18);
  border-radius: 8px;
  padding: 1rem;
}
.cookie-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.small { font-size: .9rem; color: var(--muted); }
.route-list { columns: 2; padding-left: 1.2rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .75rem;
  }
  .site-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
  .hero-content { padding-top: 6rem; }
  .hero::after { background: linear-gradient(0deg, rgba(247,248,249,.98) 0%, rgba(247,248,249,.78) 66%, rgba(247,248,249,.35) 100%); }
  .grid, .grid.two, .chapter, .field-row, .planner-controls, .footer-grid { grid-template-columns: 1fr; }
  .timeline-step { grid-template-columns: 1fr; }
  .route-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
