/* Копии шрифтов прежнего футера имеют собственные имена и не затрагивают сцены. */
@font-face {
  font-family:"Story Footer Brand";
  font-style:normal;
  font-weight:200 900;
  font-display:swap;
  src:url("../../assets/fonts/footer-brand.woff2") format("woff2");
}
@font-face {
  font-family:"Story Footer Text";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("../../assets/fonts/footer-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family:"Story Footer Text";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("../../assets/fonts/footer-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;
}

/* Обычный блок после main: не участвует в закреплении и автоматическом переключении сцен. */
.story-site-footer {
  position:relative;
  z-index:40;
  padding:34px 0 calc(34px + env(safe-area-inset-bottom));
  background:#d5e1ff;
  color:#0b1535;
  font:400 13px/1.5 "Story Footer Text",sans-serif;
}
.story-footer-inner {
  width:min(1240px,calc(100% - clamp(48px,10vw,128px)));
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
}
.story-footer-brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#0b1535;
  font:600 17px "Story Footer Brand",sans-serif;
  letter-spacing:-.045em;
  white-space:nowrap;
}
.story-footer-icon { display:grid; place-items:center; flex:none; width:44px; height:44px; }
.story-footer-icon img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Crect x='44' y='44' width='551' height='547' rx='100' fill='white'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.story-document-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; text-align:center; color:#5a6692; }
.story-document-links a { text-underline-offset:3px; }
.story-document-links a:hover { color:#3f62f0; }
/* На телефоне время остаётся в шапке; скрываем только большой закреплённый циферблат. */
@media (min-width:900px) {
  .story-footer-visible .day-clock { visibility:hidden !important; }
}
@media (max-width:699px) {
  .story-footer-inner { width:calc(100% - 56px); margin-left:36px; margin-right:20px; }
  .story-footer-brand { font-size:14px; gap:9px; }
  .story-footer-icon { width:36px; height:36px; }
}
