:root {
  --navy: #14385f;
  --off: #f4f1ea;
  --mist: #a6b0b9;
  --ink: var(--navy);
  --muted: #5c738a;
  --paper: #e8e4db;
  --white: var(--off);
  --line: #d0d3d4;
  --accent: var(--navy);
  --dark: #1b3d6d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack-card { transition: none; }
  .stack-card.is-front .card-timer { animation: none; transform: scaleX(1); }
  .stack-card.is-front .card-line { max-height: 18px; margin-top: 6px; opacity: 1; }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 17px/1.55 Bahnschrift, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--dark);
  color: var(--off);
  border-bottom: 1px dotted var(--mist);
}
.bar {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 96px;
}
.brand { display: block; height: 78px; line-height: 0; }
.brand img { height: 78px; width: auto; filter: invert(1); }
nav { display: flex; gap: 4px; }
nav a {
  padding: 8px 12px;
  color: var(--mist);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav a:hover { color: var(--off); }
nav a[aria-current="page"] { color: var(--off); box-shadow: inset 0 -2px 0 var(--off); }
.header-mail {
  margin-left: auto;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
}
.header-mail:hover { color: var(--off); }
.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 { font-size: clamp(42px, 6vw, 76px); max-width: 16ch; }
h2 { font-size: clamp(28px, 3vw, 40px); }
.lead { max-width: 38rem; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: var(--off);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn:hover { background: #142f54; border-color: #142f54; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--paper); }
.mast {
  background: var(--dark);
  color: var(--off);
  padding: 88px 0 72px;
}
.mast .kicker { color: var(--mist); }
.mast .lead { color: var(--mist); }
.mast .btn { background: var(--off); color: var(--navy); border-color: var(--off); }
.mast .btn:hover { background: #fff; }
.mast .btn.ghost { background: transparent; color: var(--off); border-color: var(--off); }
.mast .btn.ghost:hover { background: transparent; color: #fff; border-color: #fff; }
.mast-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: end;
}
.mast-logo { width: min(320px, 100%); margin-left: auto; filter: invert(1); }
.mast-with-cards {
  display: grid;
  grid-template-columns: 1fr min(420px, 42%);
  gap: 48px;
  align-items: center;
}
.stack { position: relative; height: 560px; }
.stack-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 280px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--off);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: top 0.65s ease, left 0.65s ease;
}
.stack-card.is-slot-0 { top: 0; left: 0; z-index: 1; }
.stack-card.is-slot-1 { top: 96px; left: 200px; z-index: 2; }
.stack-card.is-slot-2 { top: 192px; left: 88px; z-index: 3; }
.card-top {
  position: relative;
  height: 188px;
  background: var(--dark);
}
.card-top .card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-top .card-logo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46px;
  padding: 6px 12px;
  object-fit: contain;
  object-position: center;
  background: rgba(244, 241, 234, 0.94);
}
.card-bottom { padding: 14px 16px 18px; }
.card-bottom h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
}
.card-line {
  display: block;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: #8a6814;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  transition: max-height 0.45s ease, margin-top 0.45s ease, opacity 0.35s ease;
}
.stack-card.is-front .card-line {
  max-height: 18px;
  margin-top: 6px;
  opacity: 1;
}
.stack-card.is-front::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #e6c34a;
  z-index: 1;
}
.card-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
}
.stack-card.is-front .card-timer { animation: card-timer 5s linear forwards; }
.stack.is-paused .stack-card.is-front .card-timer { animation-play-state: paused; }
@keyframes card-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.section { padding: 72px 0; }
.split-copy {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.prose p { margin: 0 0 16px; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.index { border-top: 0; }
.row {
  display: grid;
  grid-template-columns: 56px 140px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row .num { color: var(--accent); font-size: 14px; font-weight: 700; }
.row img { width: 140px; height: 88px; object-fit: cover; }
.row .mark {
  display: grid;
  place-items: center;
  width: 140px;
  height: 88px;
  background: var(--off);
  border: 1px solid var(--line);
}
.row .mark img { width: 78%; height: auto; object-fit: contain; }
.row h2, .row h3 { margin: 0 0 6px; font-size: 26px; }
.row p { margin: 0; color: var(--muted); }
.row .more { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.row:hover h2, .row:hover h3 { color: var(--accent); }
.row:last-child { border-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
form.panel { padding: 0; }
.panel { padding: 8px 32px 8px 0; }
.panel + .panel { padding: 8px 0 8px 32px; border-left: 1px solid var(--line); }
.panel h2 { margin-bottom: 12px; }
.panel p { margin: 0; color: var(--muted); }
.page-hero { background: var(--dark); color: var(--off); padding: 72px 0 56px; }
.page-hero .kicker { color: var(--mist); }
.page-hero .lead { color: var(--mist); }
.page-hero h1 { max-width: 18ch; }
.block { padding: 36px 0; border-top: 1px solid var(--line); }
.block h2 { margin: 0 0 14px; font-size: 32px; }
.block p, .block li { color: var(--muted); }
.block p { margin: 0 0 14px; }
.block ul { margin: 0; padding-left: 18px; }
.block li + li { margin-top: 6px; }
.block a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.block a:hover { color: var(--dark); }
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 14px; }
.regions h3 { margin: 0 0 8px; font-size: 18px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
#values { padding: 36px 0 48px; }
.value-grid li { padding-top: 14px; border-top: 2px solid var(--dark); }
.value-grid li:nth-child(-n+3) { padding-top: 0; border-top: 0; }
.value-grid h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.03em; }
.value-grid p { margin: 0; color: var(--muted); font-size: 16px; }
.values li { padding: 18px 0 0; border-top: 2px solid var(--accent); }
.values h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.values p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 48px; align-items: start; }
.contact-band { display: grid; grid-template-columns: 1.05fr 0.7fr 1.75fr; gap: 48px; align-items: start; }
.contact-band .contact-list { margin-top: 0; }
.contact-band .contact-list li:first-child { margin-top: 0; }
.contact-map-frame {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
}
.contact-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.contact-map-frame .contact-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px 18px 42px;
  text-align: center;
  color: #fff;
  pointer-events: none;
}
.contact-map-frame .contact-copy a { pointer-events: auto; }
.contact-map-frame .kicker { margin-bottom: 6px; color: #fff; }
.contact-map-frame .contact-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.contact-map-frame .phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  color: #e6c34a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.contact-map-frame .phone svg {
  width: 18px;
  height: 18px;
  fill: none;
  color: #d7263d;
  stroke: currentColor;
  stroke-width: 1.7;
}
.contact-map-frame .phone:hover { color: #f3d56b; }
.contact-map-frame .contact-copy p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.contact-list { margin: 18px 0 0; padding: 0; list-style: none; }
.contact-list li { margin-top: 10px; }
.contact-list a { color: var(--accent); font-weight: 700; text-decoration: none; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
input, textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
button.btn { cursor: pointer; }
.note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.note a { color: var(--accent); }
footer {
  padding: 22px 0 28px;
  background: var(--dark);
  color: var(--mist);
  font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer .tagline { margin-left: auto; }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; padding: 14px 0; gap: 8px 16px; }
  nav { order: 3; width: 100%; flex-wrap: wrap; }
  .header-mail { margin-left: 0; }
  .mast { padding: 56px 0 48px; }
  .mast-split, .mast-with-cards, .split-copy, .split, .contact-grid, .contact-band, .regions, .values, .value-grid { grid-template-columns: 1fr; }
  .value-grid li:nth-child(n+2):nth-child(-n+3) { padding-top: 14px; border-top: 2px solid var(--dark); }
  .stack-fit {
    container-type: inline-size;
    display: flex;
    justify-content: center;
    width: 100%;
    height: calc(560px * min(1, 100cqi / 480px));
    overflow: hidden;
  }
  .stack {
    flex: none;
    width: 480px;
    transform: scale(min(1, 100cqi / 480px));
    transform-origin: top center;
  }
  .panel, .panel + .panel { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .row { grid-template-columns: 40px 1fr; }
  .row img, .row .mark { display: none; }
  .row .more { grid-column: 2; }
  h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  footer .tagline { margin-left: 0; }
}
