@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600;1,700&display=swap');

/* Compass & Coast → Полоцк Гид (tokens from live SITE123 preview) */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #023047;
  --muted: #4a6a7a;
  --border: rgba(2, 48, 71, 0.12);
  --accent: #F97316;
  --navy: #023047;
  --blue: #0077B6;
  --sand: #E9C46A;
  --sand-soft: #FFF4D7;
  --paper: #FFF4D7;
  --ink-deep: #023047;
  --sos: #dc2626;
  --status-ok: #15803d;
  --accent-blue: #0077B6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --radius: 24px;
  --radius-sm: 16px;
  --hit: 48px;
  --safe-b: max(18px, env(safe-area-inset-bottom));
  --dock-clear: calc(108px + var(--safe-b));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(2, 48, 71, 0.12);
  --shadow-lg: 0 28px 80px rgba(2, 48, 71, 0.18);
  --kiosk-w: min(100vw, 1080px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  letter-spacing: -0.02em;
}

.grain { display: none; }
.spot { display: none; }

/* ——— Shell ——— */
.kiosk {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--dock-clear);
}
@media (min-width: 1200px) {
  .kiosk { max-width: 1440px; }
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 12px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  border-radius: 20px;
  background: rgba(2, 48, 71, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  color: #fff;
}
.page-home .topbar,
.topbar.on-light {
  /* home hero is dark; keep glass navy */
}
.brand { display: flex; align-items: center; gap: 12px; min-height: var(--hit); color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}
.brand strong { display: block; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-body); font-weight: 800; }
.brand strong i { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: none; color: var(--sand); }
.brand small { display: block; color: rgba(255,255,255,0.72); font-size: 11px; margin-top: 2px; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  display: flex; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px dashed rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}
.lang button {
  min-width: 40px; min-height: 36px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.7); letter-spacing: 0.04em;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.ambience {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08);
  color: #fff;
}
.ambience[aria-pressed="true"] { border-color: var(--accent); color: #fff; background: rgba(249,115,22,0.25); }
.wave { display: inline-flex; gap: 2px; height: 14px; align-items: flex-end; }
.wave i { width: 2px; background: currentColor; border-radius: 2px; height: 40%; }
.ambience[aria-pressed="true"] .wave i { animation: wave 0.9s ease-in-out infinite; }
.ambience[aria-pressed="true"] .wave i:nth-child(2) { animation-delay: 0.1s; height: 80%; }
.ambience[aria-pressed="true"] .wave i:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.ambience[aria-pressed="true"] .wave i:nth-child(4) { animation-delay: 0.3s; height: 55%; }
@keyframes wave { 0%,100%{transform:scaleY(0.5)} 50%{transform:scaleY(1)} }
.ambience-label { font-size: 12px; font-weight: 700; }
@media (max-width: 420px) { .ambience-label { display: none; } }

.stage { flex: 1; display: flex; flex-direction: column; position: relative; }
.stage.pad { padding: 18px 18px 8px; }

.nav-dock {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 1080px); z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(2, 48, 71, 0.08);
}
@media (min-width: 1200px) {
  .nav-dock { width: min(100%, 720px); border-radius: 22px 22px 0 0; }
}
.nav-dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 52px; border-radius: 14px;
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-dock a svg { width: 20px; height: 20px; opacity: 0.75; }
.nav-dock a[aria-current="page"] { color: var(--navy); background: var(--sand-soft); }
.nav-dock a[aria-current="page"] svg { opacity: 1; color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow.pill {
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--sand) 55%, #fff);
  color: var(--navy);
}
.eyebrow.on-dark { color: var(--sand); }
.eyebrow.pill.on-dark {
  background: rgba(233, 196, 106, 0.92);
  color: var(--navy);
}
.h1 {
  font-size: clamp(42px, 9vw, 88px);
  line-height: 0.98;
  font-weight: 900;
  font-style: normal;
  white-space: normal;
}
.h2 { font-size: clamp(28px, 5vw, 48px); line-height: 1.05; font-weight: 900; }
.h3 { font-size: clamp(20px, 3vw, 28px); line-height: 1.15; font-weight: 700; font-style: italic; }
#poi-title, .map-detail .h3, .menu-item h2 {
  white-space: normal; overflow-wrap: normal; word-break: keep-all;
}
.lead { color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.55; max-width: 42ch; }
.meta { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--hit); padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(249, 115, 22, 0.45); }
.btn-ghost {
  border: 1px solid var(--border); background: #fff; color: var(--navy);
}
.btn-ghost.on-dark {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-paper { background: var(--sand-soft); color: var(--navy); }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 800; color: var(--muted); background: #fff;
}
.chip[aria-pressed="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

.glass, .glass-dark {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  color: var(--navy);
}
.paper {
  border-radius: var(--radius);
  background: var(--sand-soft);
  color: var(--ink-deep);
  box-shadow: var(--shadow);
}

/* ——— Boot (kept subtle / skippable) ——— */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--navy);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-letterbox { display: none; }
.boot-center { text-align: center; z-index: 1; color: #fff; }
.boot-year { letter-spacing: 0.4em; font-size: 11px; color: var(--sand); font-weight: 800; }
.boot-line { margin-top: 10px; color: rgba(255,255,255,0.7); font-size: 13px; }
.boot-num {
  margin-top: 8px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(64px, 18vw, 120px); line-height: 1; color: #fff;
}
.boot-place { margin-top: 6px; letter-spacing: 0.35em; text-transform: uppercase; font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 800; }

/* ——— HOME: Compass-style hero ——— */
.page-home .kiosk { max-width: 100%; }
.page-home .stage { padding: 0; }

.hero-coast {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 24px);
  margin: 0 0 0;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  color: #fff;
  background: #0a1a24 center / cover no-repeat;
}
.hero-coast__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(2, 48, 71, 0.78) 0%, rgba(2, 48, 71, 0.35) 48%, rgba(2, 48, 71, 0.55) 100%),
    var(--hero-bg, url('../img/named/sophia-river.jpg')) center / cover no-repeat;
  transform: scale(1.04);
  animation: ken 32s ease-in-out infinite alternate;
}
@keyframes ken {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}
.hero-coast__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image:
    repeating-linear-gradient(
      -32deg,
      transparent 0,
      transparent 46px,
      rgba(255,255,255,0.45) 46px,
      rgba(255,255,255,0.45) 47px
    );
  mix-blend-mode: soft-light;
}
.hero-coast__inner {
  position: relative; z-index: 2;
  display: grid;
  gap: 28px;
  padding: 28px 22px 36px;
  min-height: calc(100dvh - 100px);
  align-content: center;
}
@media (min-width: 960px) {
  .hero-coast__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 40px 48px 48px;
    gap: 40px;
  }
}

.hero-copy { max-width: 36rem; }
.hero-copy .h1 {
  margin-top: 18px;
  color: #fff;
  max-width: 14ch;
}
.hero-copy .lead {
  margin-top: 16px;
  color: rgba(255,255,255,0.86);
  max-width: 38ch;
}
.hero-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-copy .h1,
.hero-copy .h1.split {
  white-space: nowrap;
  word-break: keep-all;
}
@media (max-width: 420px) {
  .hero-copy .h1 {
    white-space: normal;
    font-size: clamp(36px, 11vw, 52px);
  }
}

.postcard-stack {
  position: relative;
  min-height: 340px;
  width: min(100%, 420px);
  margin: 0 auto;
}
@media (min-width: 960px) {
  .postcard-stack { min-height: 480px; width: 100%; max-width: 480px; margin-left: auto; }
}
.postcard {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  background: #fff center / cover no-repeat;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}
.postcard--a {
  width: 58%; aspect-ratio: 3/4;
  left: 0; top: 8%;
  transform: rotate(-8deg);
  z-index: 1;
}
.postcard--b {
  width: 62%; aspect-ratio: 4/3;
  right: 0; top: 0;
  transform: rotate(6deg);
  z-index: 2;
}
.postcard--c {
  width: 55%; aspect-ratio: 1;
  left: 18%; bottom: 0;
  transform: rotate(-3deg);
  z-index: 3;
}
.trust-card {
  position: absolute;
  z-index: 4;
  left: 6%;
  bottom: 8%;
  max-width: 200px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.trust-card .meta { color: var(--accent); }
.trust-card strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.trust-card span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Home sections below hero */
.section {
  padding: 48px 22px;
}
.section--sand { background: var(--sand-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .lead { color: rgba(255,255,255,0.75); }
.section--navy .eyebrow { color: var(--sand); }
.section-head { max-width: 40rem; margin-bottom: 28px; }

.steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.step-card {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.step-card .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--accent);
}
.step-card h3 { margin-top: 10px; font-size: 22px; }
.step-card p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.dest-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .dest-grid { grid-template-columns: repeat(3, 1fr); }
}
.dest-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: #123 center / cover no-repeat;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}
.dest-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(2, 48, 71, 0.88));
}
.dest-card > * { position: relative; z-index: 1; color: #fff; }
.dest-card:hover { transform: translateY(-4px); }
.dest-card .stamp {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.dest-card h3 {
  font-size: 28px;
  font-style: italic;
  font-weight: 700;
}
.dest-card p { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; }
.dest-card .ask {
  margin-top: 14px;
  display: inline-flex;
  color: var(--sand);
  font-size: 13px;
  font-weight: 800;
}

.home-quick {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .home-quick { grid-template-columns: 0.9fr 1.1fr; }
}
.time-card, .quick-card { padding: 18px 20px; }
.time-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 32px; letter-spacing: -0.02em; color: var(--navy); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quick-grid a {
  display: flex; flex-direction: column; gap: 6px; min-height: 72px; padding: 10px;
  border-radius: 16px; background: #fff; border: 1px solid var(--border);
  font-size: 11px; font-weight: 800; color: var(--navy);
}
.quick-grid a span:first-child {
  width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-size: 13px;
  background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--accent);
}

/* Legacy cinema hooks (no-op / soft) */
.home-cinema { min-height: auto; }
.hero-stage, .parallax, .layer, .hero-shade, .hero-rim, .water-shimmer, .float-stack, .hero-title, .cta-magnetic { display: none; }
.char { display: inline; opacity: 1; }

/* ——— Launcher ——— */
.launcher {
  max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px;
}
.launcher-hero {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 440px;
  display: grid; align-items: end; padding: 36px;
  background: var(--navy) center / cover no-repeat;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.launcher-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(2,48,71,0.82), rgba(2,48,71,0.35) 55%, rgba(2,48,71,0.7));
}
.launcher-hero > * { position: relative; z-index: 1; }
.launcher-title {
  max-width: 14ch;
  line-height: 1.02;
  font-size: clamp(40px, 8vw, 72px);
  color: #fff;
}
.launcher-grid {
  margin-top: 28px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.launch-card {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 200px;
  padding: 20px; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: flex-end;
  background: #123 center / cover no-repeat; transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.launch-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2,48,71,0.9));
}
.launch-card > * { position: relative; z-index: 1; color: #fff; }
.launch-card:hover { transform: translateY(-4px); }
.launch-card .tag { color: var(--sand); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.launch-card h2 { margin-top: 8px; font-size: 26px; font-style: italic; font-weight: 700; }
.launch-card p { margin-top: 8px; color: rgba(255,255,255,0.78); font-size: 13px; line-height: 1.45; }

/* ——— Menu ——— */
.menu-list { display: grid; gap: 12px; }
.menu-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.menu-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, #fff); }
.menu-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 14px; }
.menu-item h2 { font-size: 22px; font-style: italic; font-weight: 700; }
.menu-item p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.menu-item .go { color: var(--accent); font-weight: 800; padding-right: 8px; }

/* ——— POI ——— */
.poi-media {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 280px;
  background: #123 center / cover no-repeat; box-shadow: var(--shadow-lg);
}
.poi-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2,48,71,0.75));
}
.poi-badge {
  position: absolute; z-index: 2; left: 16px; top: 16px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fact {
  padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.fact b { display: block; font-size: 18px; margin-top: 4px; color: var(--navy); }
.fact span { font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.audio-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--blue) 10%, #fff); border: 1px solid var(--border);
}
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs button {
  aspect-ratio: 1.2; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  background-size: cover; background-position: center;
}
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }

/* ——— Gallery ——— */
.era-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.era-tabs [role="tab"] {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border); font-weight: 800; font-size: 13px; color: var(--muted); background: #fff;
}
.era-tabs [aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery-mosaic {
  display: grid; gap: 10px;
  grid-template-columns: 1.4fr 1fr; grid-auto-rows: 140px;
}
.gallery-mosaic .tile {
  position: relative; overflow: hidden; border-radius: 18px;
  background: #123 center / cover no-repeat; box-shadow: var(--shadow);
}
.gallery-mosaic .tile:first-child { grid-row: span 2; min-height: 290px; }
.gallery-mosaic .tile span {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.quote-block {
  margin: 18px 0 0; padding: 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--accent);
}

/* ——— Map ——— */
.map-page { padding-bottom: calc(var(--dock-clear, 110px) + 12px); }
.map-shell { display: grid; gap: 14px; }
@media (min-width: 1100px) {
  .map-shell {
    grid-template-columns: 1.45fr 0.85fr;
    align-items: start;
  }
  .map-canvas {
    height: min(42dvh, 460px);
    min-height: 320px;
  }
  .map-aside { display: flex; flex-direction: column; min-height: 0; }
  .poi-side { flex: 1; max-height: min(42dvh, 460px); }
}
.map-canvas {
  position: relative; overflow: hidden; border-radius: 24px;
  /* Compact on purpose: kiosk swipe must reach dock, not fill the screen */
  min-height: 240px;
  height: min(36dvh, 380px);
  background: var(--sand-soft);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  touch-action: pan-y;
}
.map-canvas.is-unlocked {
  touch-action: none;
}
.map-scroll-shield {
  position: absolute; inset: 0; z-index: 400;
  display: grid; place-items: end center;
  padding: 12px 16px 40px;
  background: transparent;
  /* Lets one-finger swipe scroll the page instead of panning the map */
  touch-action: pan-y;
  pointer-events: auto;
  cursor: default;
}
.map-scroll-shield p {
  margin: 0;
  max-width: 34ch;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.map-canvas.is-unlocked .map-scroll-shield {
  display: none;
}
.map-tool--accent {
  color: #fff;
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, #000);
}
.map-tool--accent[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
}
.leaflet-host {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  border-radius: inherit;
}
.leaflet-host.is-yandex,
.leaflet-host.is-yandex > ymaps,
.leaflet-host.is-yandex .ymaps-2-1-79-map {
  width: 100% !important;
  height: 100% !important;
}
.leaflet-container {
  width: 100%; height: 100%;
  background: #e8eef2;
  font: inherit;
  border-radius: inherit;
}
.leaflet-control-zoom a {
  width: 40px !important; height: 40px !important; line-height: 40px !important;
  background: #fff !important;
  color: var(--navy) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  margin-bottom: 8px !important;
  box-shadow: var(--shadow);
}
.leaflet-control-zoom {
  border: 0 !important;
  background: transparent !important;
  margin-top: 14px !important;
  margin-right: 14px !important;
}
.leaflet-control-attribution {
  background: rgba(255,255,255,0.88) !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  max-width: 55%;
  border-radius: 10px 0 0 0;
}
.leaflet-control-attribution a { color: var(--blue) !important; }

.poi-marker { background: transparent !important; border: 0 !important; display: flex; flex-direction: column; align-items: center; }
.poi-marker__pin {
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgba(2,48,71,0.25);
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.poi-marker.is-active .poi-marker__pin {
  background: var(--navy);
  transform: rotate(-45deg) scale(1.28);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 35%, transparent), 0 10px 20px rgba(2,48,71,0.25);
}
.poi-marker__label {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  padding: 4px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  color: var(--navy); opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.poi-marker.is-active .poi-marker__label,
.poi-marker:hover .poi-marker__label { opacity: 1; }

.poi-tooltip.leaflet-tooltip {
  background: #fff; color: var(--navy);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); font-size: 12px; font-weight: 700;
  padding: 6px 10px;
}
.poi-tooltip.leaflet-tooltip::before { border-top-color: #fff; }

.route-line-live {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 45%, transparent));
  stroke-dasharray: 10 12;
  animation: dash 22s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -220; } }

.map-toolbar {
  position: absolute; top: 12px; left: 12px; z-index: 700;
  display: flex; gap: 8px; flex-wrap: wrap;
  max-width: calc(100% - 24px);
}
.map-tool {
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  color: var(--navy);
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  min-height: 44px;
  box-shadow: var(--shadow);
}
.map-tool:hover, .map-tool:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 50%, #fff);
  outline: none;
}
.map-legend {
  position: absolute; left: 12px; bottom: 28px; z-index: 500;
  display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none;
}
.map-legend span {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border); color: var(--muted);
}
.map-status {
  position: absolute; inset: auto 16px 72px 16px; z-index: 600;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 13px; line-height: 1.45;
}
.map-status.is-error { border-color: color-mix(in srgb, #c2410c 40%, #fff); }
.map-status code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  background: var(--sand-soft);
  padding: 1px 6px; border-radius: 6px;
}
.map-page code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.92em;
  background: var(--sand-soft);
  padding: 1px 6px; border-radius: 6px;
}
.poi-side { display: flex; flex-direction: column; gap: 12px; max-height: min(48dvh, 520px); overflow: auto; }
.poi-side-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px;
  border-radius: 18px; border: 1px solid var(--border); background: #fff;
  text-align: left; cursor: pointer; transition: border-color 0.2s;
  color: inherit; box-shadow: var(--shadow);
}
.poi-side-card.active { border-color: var(--accent); }
.poi-side-card img { width: 72px; height: 64px; object-fit: cover; border-radius: 12px; }
.poi-side-card h3 { font-size: 16px; font-style: italic; font-family: var(--font-display); font-weight: 700; }
.poi-side-card p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.nav-panel { padding: 16px; }
.nav-panel .steps { margin-top: 12px; display: grid; gap: 8px; }
.nav-panel .step {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  font-size: 13px; color: var(--ink-deep);
}
.nav-panel .step-btn {
  width: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
.nav-panel .step b {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 25%, #fff); font-size: 12px; color: var(--accent);
}

@media (max-width: 1099px) and (orientation: portrait) {
  .map-canvas {
    min-height: 220px;
    height: min(32dvh, 340px);
  }
  .map-legend { bottom: 36px; max-width: calc(100% - 24px); }
  .poi-side { max-height: min(36dvh, 360px); }
}

/* Portrait Full HD rhythm */
@media (max-aspect-ratio: 1/1) {
  .hero-coast { min-height: auto; }
  .hero-coast__inner {
    padding-top: 18px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .postcard-stack { min-height: 300px; margin-top: 8px; }
  .section { padding: 40px 18px; }
}

.reveal { opacity: 0; transform: translateY(18px); animation: fade-up 0.7s var(--ease) forwards; }
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .boot { display: none; }
  .hero-coast__bg { animation: none; }
}
