@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/baloo-2-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ui: #1b3042;
  --ui-2: #24445a;
  --panel: #f7f4ee;
  --ink: #173246;
  --muted: #4d6b7c;
  --line: #16384a;
  --gem: #7ed957;
  --sea: #1a8cab;
  --sand: #f3e2c4;
  --sky: #8ec8ea;
  --display: "Baloo 2", "Nunito", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Trebuchet MS", sans-serif;
  --nav-h: 72px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(circle at 50% -10%, #d7f3fb 0, transparent 42%),
    linear-gradient(180deg, #b7e4f4 0%, #e7f6ef 28%, #f6e7c8 100%);
  min-height: 100vh;
}

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

h1, h2, h3, p { margin: 0; }

h1, h2, h3, .brand, .tab, .when, .footer-title, .bday strong, .countdown strong {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gem);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gem);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 50;
}

.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

.hud {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(27, 48, 66, 0.94);
  color: #f4fbff;
  border-bottom: 3px solid #0e2433;
  backdrop-filter: blur(10px);
}

.lang-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.langs button {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e7f6fb;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--gem);
  color: var(--ink);
}

.hud-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.gem {
  width: 22px;
  height: 32px;
  flex: none;
  background: linear-gradient(160deg, #e9ffb0 0%, #8cf25a 38%, #2fbe45 100%);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
  filter: drop-shadow(0 2px 0 #0e2433);
}

.tabs {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabs a {
  display: inline-block;
  text-decoration: none;
  color: #e7f6fb;
  font-family: var(--display);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.tabs a:hover,
.tabs a.is-active {
  background: var(--gem);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--gem);
  cursor: pointer;
}

.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  display: block;
  width: 18px;
  height: 3px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 3px;
  position: relative;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .burger::before { top: -6px; }
.nav-toggle .burger::after { top: 6px; }

.household {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 16px 0 0;
}

.sim {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
}

.sim img {
  width: 92px;
  height: 112px;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 22px;
  border: 4px solid #2f6f86;
  background: #efe6d4;
  box-shadow: 0 8px 0 rgba(22, 52, 71, 0.18);
}

.sim:hover img,
.sim:focus-visible img {
  border-color: #39b54a;
}

main { padding-bottom: 28px; }

.section { padding: 22px 0; scroll-margin-top: 128px; }

.stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 1.2fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 10px 0 rgba(22, 52, 71, 0.16);
  padding: 22px 22px 20px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  color: #0e7494;
  margin-bottom: 8px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 10px; }

.lede { font-size: 1.08rem; }

.big-date {
  margin: 14px 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #0e7494;
}

.chips, .queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip, .queue a, .queue span {
  text-decoration: none;
  background: #e7f6f8;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--display);
  font-weight: 700;
}

.chip:hover, .queue a:hover { background: #d8ffb0; }

.countdown {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.countdown strong {
  font-size: 2rem;
  color: #137a32;
}

.lot-view {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 8px solid #3e7594;
  box-shadow:
    0 0 0 4px #163447,
    0 16px 30px rgba(18, 48, 64, 0.18);
  background: #1b3042;
}

.lot-view > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.lot-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(27, 48, 66, 0.88);
  color: white;
  font-family: var(--display);
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.lot-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1b3042;
  color: #f4fbff;
  padding: 8px 12px;
}

.lot-hud img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 82%;
  border: 3px solid #7ed957;
  aspect-ratio: auto;
  flex: none;
}

.lot-hud .hud-face-2 { margin-left: -18px; }

.hud-meta { min-width: 0; flex: 1; }
.hud-meta strong { display: block; font-family: var(--display); font-size: 1rem; }

.meters { display: flex; gap: 4px; margin-top: 4px; }
.meters i {
  width: 18px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(#d8ff8a, #39b54a);
}

.hud-time { text-align: right; }
.hud-time span { display: block; font-size: 0.75rem; color: #b7d4e2; }
.hud-time strong { font-family: var(--display); font-size: 1.15rem; }

.day {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  scroll-margin-top: 128px;
}

.lot-card {
  display: block;
  background: #f3fbfb;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.lot-card:hover { background: #e7f6e4; }

.lot-card h3 { font-size: 1.35rem; margin: 8px 0; }

.day .panel { height: auto; }

.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #0e7494;
  margin-bottom: 4px;
}

.day h3 { font-size: 1.8rem; margin-bottom: 8px; }

.timeline {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  background: #f3fbfb;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 7px 10px;
}

.when {
  background: #ffe08a;
  border-radius: 999px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  white-space: nowrap;
}

.note {
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 10px;
  border: 2px solid var(--line);
}

.note-sand { background: #fff1dc; }
.note-night { background: #1b4668; color: #f4fbff; }

.faces {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.faces img {
  width: 64px;
  height: 78px;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 16px;
  border: 3px solid #2f6f86;
}

.stay-map {
  height: 440px;
  margin-top: 16px;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid var(--line);
  background: #d7eef6;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.stay-map img {
  max-width: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.map-legend a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  background: #f3fbfb;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
}

.map-legend a:hover,
.map-legend a.is-on {
  background: #d8ffb0;
}

.map-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
}

.pin-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #16384a;
  box-shadow: 0 2px 0 rgba(22, 52, 71, 0.35);
  box-sizing: border-box;
}

.pin-dot.is-venue { width: 22px; height: 22px; }

.leaflet-container { font-family: var(--body); }
.leaflet-div-icon { background: transparent; border: 0; }

.leaflet-popup-content-wrapper {
  border-radius: 16px;
  border: 2px solid var(--line);
  box-shadow: 0 8px 0 rgba(22, 52, 71, 0.12);
}

.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content strong { font-family: var(--display); display: block; font-size: 1.05rem; }
.leaflet-popup-content p { margin: 4px 0 8px; color: var(--muted); }
.leaflet-popup-content a { color: #0e7494; font-family: var(--display); font-weight: 800; }

.lots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.help { margin-top: 12px; }
.help-budget { background: #e9fbe3; }

.qa-grid { display: grid; gap: 12px; }

.qa h3 { font-size: 1.45rem; margin-bottom: 8px; }

.midpoint {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
}

.bday {
  text-align: center;
  background: #fff6e8;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 10px 8px;
}

.bday.main { background: #d8ffb0; }

.bday strong { display: block; font-size: 1.4rem; }
.bday span { color: var(--muted); font-size: 0.85rem; }

.gift-row, .outfit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.outfit-row { grid-template-columns: repeat(3, 1fr); }

.pick {
  background: #f3fbfb;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
}

.control {
  margin-top: 10px;
  margin-bottom: 18px;
  background: var(--ui);
  color: #f4fbff;
  border-radius: 22px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-title { font-size: 1.5rem; }

.dots { display: flex; gap: 6px; }
.dots i {
  width: 12px;
  height: 12px;
  background: var(--gem);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
}

@media (max-width: 900px) {
  .stage, .day, .lots { grid-template-columns: 1fr; }
  .lot-view img { aspect-ratio: 16 / 11; height: auto; }
  .stay-map { height: 320px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ui);
    padding: 8px;
    border-bottom: 3px solid #0e2433;
  }
  .tabs.is-open { display: flex; }
  .tabs a { padding: 12px; }
  .hud { position: sticky; }
  .midpoint, .outfit-row, .gift-row { grid-template-columns: 1fr; }
  .control { flex-direction: column; text-align: center; }
}

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