:root {
  --bg: #ededed;
  --deep-blue: #1d1871;
  --deep-blue-2: #21196f;
  --soft-blue: #2fa2ec;
  --gold: #f3cb07;
  --orange: #f48b19;
  --red: #b93a34;
  --text: #6a6a6a;
  --shadow: 0 10px 30px rgba(20, 24, 58, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 76px 1fr auto;
  overflow: hidden;
}

.top-header {
  background: var(--deep-blue);
  box-shadow: 0 4px 12px rgba(9, 15, 40, 0.15);
  z-index: 10;
}

.brand-strip {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(11, minmax(70px, 1fr));
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  color: #fff;
  text-align: center;
}

.brand-logo { opacity: 0.95; line-height: 1; }
.brand-logo.circle {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  font-weight: 700;
  font-size: 20px;
}
.brand-logo.circle.small { font-size: 24px; font-style: italic; }
.brand-logo.circle.big { font-size: 40px; font-weight: 500; }
.brand-logo.word { font-family: 'Oswald', sans-serif; letter-spacing: 0.04em; font-size: 22px; }
.brand-logo.word.thin { font-size: 18px; letter-spacing: 0.25em; }
.brand-logo.word.stacked { font-size: 12px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.brand-logo.word.micro { font-size: 12px; }
.brand-logo.word.micro span { font-family: 'Montserrat', sans-serif; font-size: 8px; }
.brand-logo.script { font-family: cursive; font-size: 24px; }

.hero-area {
  position: relative;
  min-height: calc(100vh - 76px - 56px);
  background: var(--bg);
  overflow: hidden;
}

.nav-chip {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease, filter 180ms ease;
}
.nav-chip:hover { transform: translateY(-2px); }
.nav-chip:focus-visible, .arc-button:focus-visible, .center-caption:focus-visible {
  outline: 2px solid rgba(47, 162, 236, 0.5);
  outline-offset: 4px;
}

.nav-top { top: 2px; }
.nav-top.left { left: 8%; }
.nav-top.center { left: 50%; transform: translateX(-50%); }
.nav-top.center:hover { transform: translateX(-50%) translateY(-2px); }
.nav-top.right { right: 8%; }

.nav-chip__accent {
  display: block;
  margin: 0 auto 10px;
  width: 120px;
  height: 18px;
  background: var(--orange);
  border-radius: 0 0 60px 60px;
  position: relative;
}
.nav-chip__accent::after {
  content: '˅';
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
}
.nav-chip__label { display: block; font-size: 14px; }

.nav-chip.center {
  min-width: 280px;
  color: #f05c19;
  text-align: center;
}
.nav-chip__title {
  display: block;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
  font-size: 20px;
}
.nav-chip__logo {
  display: inline-grid;
  width: 72px;
  height: 28px;
  place-items: center;
  margin-top: 3px;
  background: var(--orange);
  color: #fff;
  font-size: 24px;
  border-radius: 0 0 50px 50px;
}

.side-menu {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 92px;
}
.side-menu.left { left: 0; }
.side-menu.right { right: 0; }

.arc-button {
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: #666;
  font-weight: 700;
  font-size: 16px;
  padding: 0;
  transition: transform 180ms ease, filter 180ms ease;
}
.arc-button.left { flex-direction: row-reverse; }
.arc-button__text { white-space: nowrap; }
.arc-button__cap {
  width: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
}
.arc-button.blue .arc-button__cap,
.arc-button.gold .arc-button__cap {
  width: 26px;
  height: 146px;
}
.arc-button.blue .arc-button__cap {
  background: #2ba3e7;
  border-radius: 0 100px 100px 0;
}
.arc-button.gold .arc-button__cap {
  background: var(--gold);
  border-radius: 100px 0 0 100px;
}
.arc-button.blue .arc-button__text { margin-left: 12px; }
.arc-button.gold .arc-button__text { margin-right: 12px; }
.arc-button.soft { font-weight: 600; font-size: 18px; }
.arc-button:hover { transform: scale(1.015); }

.center-stage {
  position: absolute;
  inset: 40px 120px 120px;
  display: grid;
  place-items: center;
}

.center-emblem {
  position: relative;
  width: min(520px, 54vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.symbol-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.36;
  filter: drop-shadow(0 15px 18px rgba(37, 44, 62, 0.12));
}

.map-outline {
  position: absolute;
  width: 52%;
  max-width: 300px;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.05));
}

.center-caption {
  position: absolute;
  top: 74%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--deep-blue);
  font-family: 'Oswald', sans-serif;
  line-height: 1.05;
  cursor: pointer;
}
.center-caption span, .center-caption strong { display: block; }
.center-caption span { font-size: clamp(15px, 1.4vw, 22px); }
.center-caption strong { font-size: clamp(18px, 1.6vw, 26px); }
.center-caption em {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 14px;
  margin-top: 5px;
  background: var(--orange);
  color: #fff;
  font-style: normal;
  border-radius: 0 0 40px 40px;
}

.more-link {
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  text-align: center;
  background: #fff;
  color: var(--deep-blue);
  border: 1px solid rgba(29, 24, 113, 0.35);
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.bottom-status {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1.1fr);
  border-top: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}

.bottom-status__message {
  background: var(--red);
  color: #fff;
  padding: 8px 24px;
  font-size: clamp(16px, 1.55vw, 22px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bottom-status__message strong { font-size: 1.1em; }

.bottom-status__meta {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(280px, 1fr);
  min-height: 56px;
  background: #2c2c2c;
}
.bottom-status__note {
  background: #fff;
  color: #111;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
}
.bottom-status__steps {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 6px 12px;
  color: #fff;
}
.place-label {
  color: #f39219;
  font-family: 'Oswald', sans-serif;
  text-align: left;
  line-height: 1.1;
}
.place-label strong { display: block; font-size: 18px; }
.place-label span { display: block; font-size: 14px; }
.steps-wrapper { display: grid; gap: 5px; }
.step-row { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; }
.step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f39219;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.step.active { background: #7087b8; }
.line {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.35);
  overflow: hidden;
}
.line::before {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--fill, 50%);
  background: #f39219;
}
.fill-1 { --fill: 78%; }
.fill-2 { --fill: 86%; }
.fill-3 { --fill: 34%; }

.pulse-chip {
  animation: pulseElegant 3.6s ease-in-out infinite;
}
.pulse-chip.soft { animation-duration: 4.6s; }
.pulse-chip.active { animation-duration: 2.8s; }

@keyframes pulseElegant {
  0%, 100% {
    filter: brightness(0.96);
    transform: scale(1);
  }
  40% {
    filter: brightness(1.06);
    transform: scale(1.018);
  }
  50% {
    filter: brightness(1.08);
    transform: scale(1.01);
  }
  65% {
    filter: brightness(0.99);
    transform: scale(1.014);
  }
}
.nav-top.center.pulse-chip {
  animation-name: pulseCenter;
}
@keyframes pulseCenter {
  0%, 100% { filter: brightness(0.98); transform: translateX(-50%) scale(1); }
  50% { filter: brightness(1.08); transform: translateX(-50%) scale(1.022); }
}
.center-caption.pulse-chip {
  animation-name: pulseCaption;
}
@keyframes pulseCaption {
  0%, 100% { filter: brightness(0.98); transform: translateX(-50%) scale(1); }
  50% { filter: brightness(1.07); transform: translateX(-50%) scale(1.018); }
}

.flyout-panel {
  position: absolute;
  width: min(380px, 42vw);
  min-height: 240px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(29, 24, 113, 0.18);
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 18px 48px rgba(17, 28, 62, 0.17);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
  transform-origin: var(--origin-x, left) var(--origin-y, top);
  transition: opacity 220ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1);
  z-index: 30;
}
.flyout-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.flyout-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #6a6a6a;
  font-size: 28px;
  cursor: pointer;
}
.flyout-panel__header small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 8px;
}
.flyout-panel__header h2 {
  margin: 0 0 10px;
  color: var(--deep-blue);
  font-size: 26px;
}
.flyout-panel__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.flyout-panel__content h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}
.flyout-panel__content ul {
  margin: 0;
  padding-left: 18px;
}
.flyout-panel__content li { margin-bottom: 8px; }
.flyout-links {
  display: grid;
  gap: 8px;
}
.flyout-links a {
  text-decoration: none;
  color: var(--deep-blue);
  border: 1px solid rgba(29, 24, 113, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  background: rgba(244, 139, 25, 0.05);
}
.flyout-links a:hover { background: rgba(47, 162, 236, 0.08); }

@media (max-width: 1100px) {
  .brand-strip { grid-template-columns: repeat(6, minmax(80px, 1fr)); row-gap: 10px; height: auto; }
  .top-header { padding: 6px 0; }
  .side-menu { gap: 30px; }
  .center-stage { inset-inline: 70px; }
  .bottom-status { grid-template-columns: 1fr; }
  .bottom-status__meta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-shell { grid-template-rows: auto 1fr auto; }
  .hero-area { min-height: 920px; }
  .nav-top.left, .nav-top.right { top: 14px; }
  .nav-top.left { left: 20px; }
  .nav-top.right { right: 20px; }
  .nav-top.center { top: 80px; }
  .side-menu { top: auto; transform: none; bottom: 140px; gap: 14px; }
  .side-menu.left, .side-menu.right { position: static; display: flex; justify-content: center; }
  .hero-area { display: flex; flex-direction: column; }
  .center-stage { position: relative; inset: auto; flex: 1; margin-top: 130px; }
  .flyout-panel { width: calc(100vw - 40px); left: 20px !important; top: auto !important; bottom: 96px; }
  .flyout-panel__content { grid-template-columns: 1fr; }
}
