body[data-route="home"] .map-veil {
  background:
    linear-gradient(90deg, rgba(242, 240, 234, 0.94) 0%, rgba(242, 240, 234, 0.7) 30%, rgba(242, 240, 234, 0) 56%),
    linear-gradient(180deg, rgba(242, 240, 234, 0.5), rgba(242, 240, 234, 0) 20%);
}

.story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.beat {
  position: absolute;
  top: 50%;
  left: max(20px, calc((100vw - 1180px) / 2));
  width: min(470px, 40vw);
  padding: 30px 32px 32px;
  transform: translate3d(0, calc(-50% + var(--d, 0) * -110px), 0) scale(var(--s, 1));
  will-change: transform, opacity;
}
.beat p { margin: 0; color: var(--ink-2); }
.beat .h2 { margin-bottom: 14px; }
.beat .btn { margin-top: 22px; }
.beat-hero {
  width: min(660px, 54vw);
  padding: 0;
  transform: translate3d(0, calc(-50% + var(--d, 0) * -160px), 0);
}
.beat-hero .display em { font-style: normal; color: var(--teal-2); }
.beat-hero .lead { margin-top: 22px; }
.beat-hero .kicker { color: var(--teal); }

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  max-width: 560px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
}
.hero-search .search { flex: 1; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chips .chip { text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.search { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.search-ico { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.search input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.04rem;
  appearance: none;
}
.search input::-webkit-search-cancel-button { opacity: 0.5; }
.search input::placeholder { color: var(--ink-3); }
.search-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  left: -12px;
  width: max(100%, 340px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
}
.search-list li[role="option"] {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}
.search-list li[aria-selected="true"], .search-list li[role="option"]:hover { background: rgba(29, 131, 124, 0.1); }
.sl-name { font-weight: 600; }
.sl-meta { font-size: 0.82rem; color: var(--ink-3); }
.sl-empty { padding: 12px; color: var(--ink-3); font-size: 0.92rem; }

.beat-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.beat-stats b { display: block; font-size: 2.1rem; font-weight: 680; letter-spacing: -0.04em; line-height: 1; }
.beat-stats span { display: block; margin-top: 6px; font-size: 0.82rem; line-height: 1.25; color: var(--ink-3); }

.story-rail {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 7px;
  list-style: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.story-rail li { width: 6px; height: 6px; border-radius: 3px; background: rgba(15, 36, 39, 0.25); transition: height 0.35s var(--ease-out), background-color 0.3s; }
.story-rail li.is-on { height: 24px; background: var(--ink); }
.story-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: opacity 0.4s;
}
.story-hint span { width: 2px; height: 34px; border-radius: 1px; background: linear-gradient(var(--ink), transparent); animation: hint 1.8s var(--ease-out) infinite; transform-origin: top; }
.story-hint.is-gone { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.sheet {
  position: relative;
  z-index: 3;
  padding-top: 76px;
  background: var(--paper);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -40px 80px -40px rgba(15, 36, 39, 0.35);
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* Блок, а не flex-колонка: в WebKit обложка с aspect-ratio во flex-колонке
   растягивается шире карточки и вылезает за экран телефона. */
.zcard {
  display: block;
  text-decoration: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.zcard:hover { transform: translateY(-4px); }
.zcard-cover { position: relative; aspect-ratio: 16 / 10; margin: 8px; overflow: hidden; border-radius: 24px; background: #dfe7e3; }
.cover, .cover-sky { position: absolute; inset: 0; }
.cover img, .cover-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover img { transition: transform 0.8s var(--ease-out); }
.zcard:hover .cover img { transform: scale(1.04); }
.zcard-badge { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 650; }
.zcard-body { padding: 10px 22px 24px; }
.zcard-meta { margin: 0 0 6px; font-size: 0.82rem; color: var(--ink-3); }
.zcard-price { margin: 12px 0 2px; font-size: 1.35rem; font-weight: 680; letter-spacing: -0.025em; }
.zcard-avail { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.zcard-rooms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mini-chip { padding: 4px 10px; border-radius: 999px; background: var(--paper-2); font-size: 0.78rem; font-weight: 650; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 88px 0 72px; }
.how-item b { display: block; margin-bottom: 14px; font-size: 0.8rem; color: var(--teal-2); letter-spacing: 0.1em; }
.how-item p { margin: 10px 0 0; color: var(--ink-2); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 0 44px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.footer .logo { font-size: 1.2rem; }

@media (max-width: 820px) {
  body[data-route="home"] .map-veil {
    background:
      linear-gradient(180deg, rgba(242, 240, 234, 0.95) 0%, rgba(242, 240, 234, 0.75) 42%, rgba(242, 240, 234, 0) 64%),
      linear-gradient(0deg, rgba(242, 240, 234, 0.55), rgba(242, 240, 234, 0) 30%);
  }
  .beat {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
    padding: 22px 22px 24px;
    transform: translate3d(0, calc(var(--d, 0) * -70px), 0);
  }
  .beat-hero { top: 92px; bottom: auto; width: auto; padding: 0 4px; transform: translate3d(0, calc(var(--d, 0) * -120px), 0); }
  .beat-hero .lead { margin-top: 14px; }
  .hero-search { margin-top: 20px; }
  .beat-stats b { font-size: 1.6rem; }
  .story-rail { display: none; }
  .story-hint { display: none; }
  .how { grid-template-columns: 1fr; gap: 22px; padding: 56px 0 40px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .sheet { padding-top: 48px; border-radius: 28px 28px 0 0; }
  .zgrid { grid-template-columns: minmax(0, 1fr); }
}
