/* Mobile/tablet landing overrides loaded after generated landing.css. */
html { -webkit-text-size-adjust: 100%; }
[data-beltrip-page], .beltrip-landing-footer { min-width: 0; max-width: 100%; }
[data-beltrip-page] :where(h1,h2,h3,p,a) { overflow-wrap: anywhere; }
[data-beltrip-page] :where(img,video) { max-width: 100%; }
.beltrip-landing-header { color: #111; }
.beltrip-landing-header .beltrip-landing-menu-toggle {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.16); border-radius: 14px;
  background: rgba(255,255,255,.9); color: #111; cursor: pointer;
}
.beltrip-landing-header .beltrip-landing-menu {
  position: absolute; right: max(12px, env(safe-area-inset-right, 0px));
  top: calc(100% + 8px); z-index: 70;
  display: grid; gap: 4px; width: min(340px, calc(100vw - 24px));
  padding: 10px; background: #fff; border: 1px solid rgba(0,0,0,.13);
  border-radius: 18px; box-shadow: 0 15px 35px rgba(0,0,0,.16);
  max-height: calc(100dvh - 90px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
.beltrip-landing-menu a {
  display: flex; align-items: center; min-height: 48px;
  padding: 12px 14px; border-radius: 12px; font-size: 15px;
  line-height: 1.4; font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
}
.beltrip-landing-menu a:hover, .beltrip-landing-menu a:focus-visible,
.beltrip-landing-menu a[aria-current="page"] { background: #f2f2f2; }
.beltrip-landing-header :where(a,button,select):focus-visible,
.beltrip-landing-footer a:focus-visible,
[data-beltrip-page] :where(a,button,[role="button"]):focus-visible,
.beltrip-landing-events :where(a,button,[role="button"]):focus-visible {
  outline: 3px solid #38658d; outline-offset: 3px;
}
.beltrip-landing-footer .beltrip-footer-legal-links {
  flex-wrap: wrap; overflow: visible; white-space: normal; gap: 10px 16px;
}
.beltrip-landing-footer .beltrip-footer-legal-links a {
  min-height: 44px; display: inline-flex; align-items: center;
  white-space: normal; overflow-wrap: anywhere; text-align: center;
}
.beltrip-landing-footer .beltrip-footer-requisites {
  width: 100%; white-space: normal; overflow: visible;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 22px; line-height: 1.5;
}
.beltrip-footer-requisites > * { max-width: 100%; overflow-wrap: anywhere; }
.beltrip-date-wheel { overscroll-behavior: contain; user-select: none; -webkit-user-select: none; }
.beltrip-date-wheel [role="button"] { cursor: pointer; }
.beltrip-landing-features .beltrip-features-mobile { display: none; }
[data-beltrip-page="article"] :where(p,h1,h2,li),
[data-beltrip-page="event-detail"] :where(p,h1,h2,a) { overflow-wrap: anywhere; }
@media (max-width: 1024px) {
  .beltrip-landing-header { padding-inline: 16px; gap: 8px; }
  .beltrip-landing-header .beltrip-header-actions { gap: 10px; }
  .beltrip-landing-footer { padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  .beltrip-landing-header { min-height: 64px; padding: 8px 12px; }
  .beltrip-landing-header .beltrip-header-planner { display: none; }
  .beltrip-landing-header .beltrip-header-actions { gap: 6px; }
  .beltrip-landing-header .beltrip-language-select { max-width: 105px; height: 44px; font-size: 12px; }
  .beltrip-landing-header .beltrip-header-login {
    min-height: 44px; display: flex; align-items: center; justify-content: center;
  }
  .beltrip-landing-features .beltrip-features-desktop { display: none; }
  .beltrip-landing-features .beltrip-features-mobile {
    display: block; padding: 56px 16px; max-width: 740px; margin: 0 auto;
  }
  .beltrip-features-mobile > h2 {
    font-size: clamp(23px, 6vw, 36px); font-weight: 900;
    line-height: 1.12; text-transform: uppercase; overflow-wrap: anywhere; margin: 0 0 30px;
  }
  .beltrip-features-mobile ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .beltrip-features-mobile li {
    display: flex; gap: 14px; padding: 20px 16px;
    background: #f7f7f7; border: 1px solid #e9e9e9; border-radius: 18px; min-width: 0;
  }
  .beltrip-features-mobile li > span { font-size: 22px; font-weight: 900; line-height: 1; flex-shrink: 0; }
  .beltrip-features-mobile li > div { min-width: 0; }
  .beltrip-features-mobile h3 {
    font-size: clamp(18px,5vw,26px); line-height: 1.15; font-weight: 900; text-transform: uppercase;
  }
  .beltrip-features-mobile p { margin-top: 12px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
  .beltrip-landing-places { min-height: auto; }
  .beltrip-landing-journal, .beltrip-landing-events { padding-block: 48px; }
  .beltrip-landing-hero { min-height: 260px; height: 46svh; }
  [data-beltrip-page="article"] main > div:first-child { min-height: 330px; height: 50svh; }
  [data-beltrip-page="event-detail"] main > div:first-child { min-height: 260px; height: 38svh; }
  [data-beltrip-page="event-detail"] main > div:nth-child(2) > div:nth-child(2) { padding: 20px; }
  [data-beltrip-page="event-detail"] .space-y-8 { padding: 18px; }
  [data-beltrip-page="events"] main, [data-beltrip-page="journal"] main { padding-top: 104px; }
}
@media (max-width: 520px) {
  .beltrip-landing-journal-grid { grid-template-columns: minmax(0, 1fr); }
  .beltrip-landing-journal-grid > a { aspect-ratio: 4 / 3; }
  .beltrip-landing-journal-grid h3 { font-size: 17px; line-height: 1.25; }
  .beltrip-landing-footer .beltrip-footer-requisites { flex-direction: column; gap: 9px; }
  .beltrip-landing-footer .beltrip-footer-legal-links { gap: 4px 10px; }
  .beltrip-landing-events h2, [data-beltrip-page="events"] h1,
  [data-beltrip-page="journal"] h1 { font-size: clamp(30px, 9vw, 48px); line-height: 1; }
  [data-beltrip-page="event-detail"] h1 { font-size: clamp(27px, 9vw, 40px); line-height: 1.05; }
  [data-beltrip-page="article"] h1 { font-size: clamp(28px, 8vw, 40px); }
  .beltrip-landing-header .beltrip-header-logo { max-width: 108px; }
  .beltrip-landing-header .beltrip-language-select { max-width: 80px; }
  .beltrip-landing-header .beltrip-landing-menu { right: 8px; width: calc(100vw - 16px); }
  [data-beltrip-page="events"] main, .beltrip-landing-events { padding-inline: 12px; }
  .beltrip-landing-events .beltrip-date-wheel, [data-beltrip-page="events"] .beltrip-date-wheel { width: 116px; }
}
@media (max-width: 360px) {
  .beltrip-landing-header { padding-inline: 8px; }
  .beltrip-landing-header .beltrip-header-logo { max-width: 88px; }
  .beltrip-landing-header .beltrip-language-select { max-width: 66px; min-width: 0; }
  .beltrip-landing-header .beltrip-header-login { padding-inline: 9px; font-size: 11px; }
  .beltrip-landing-hero { min-height: 230px; }
  [data-beltrip-page="article"] main > div:first-child { min-height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  .beltrip-landing-header, .beltrip-landing-places *,
  .beltrip-landing-journal *, .beltrip-landing-events *,
  .beltrip-landing-menu * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Phone-only refinement of the landing header, date wheel and event cards. */
.beltrip-mobile-hero-logo { display: none; }
@media (max-width: 480px) {
  .beltrip-landing-header {
    width: 100%;
    max-width: 100vw;
    padding-inline: 10px;
    gap: 4px;
  }
  .beltrip-landing-header .beltrip-header-actions {
    flex: 0 1 auto;
    min-width: 0;
    gap: 5px !important;
    margin-left: auto !important;
  }
  .beltrip-landing-header .beltrip-header-logo {
    width: 86px !important;
    height: 32px !important;
    max-width: 86px !important;
  }
  .beltrip-landing-header-home > a:first-of-type { display: none; }
  .beltrip-landing-header .beltrip-language-wrap {
    min-width: 0;
    flex: 0 0 auto !important;
  }
  .beltrip-landing-header .beltrip-language-select {
    width: 78px !important;
    max-width: 78px !important;
    min-width: 78px !important;
    height: 38px;
    padding: 0 23px 0 9px !important;
    font-size: 11px;
  }
  .beltrip-landing-header .beltrip-language-chevron {
    width: 14px;
    height: 14px;
    right: 7px !important;
  }
  .beltrip-landing-header .beltrip-header-login {
    min-height: 38px;
    height: 38px;
    flex: 0 0 auto;
    padding: 0 9px;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }
  .beltrip-landing-header .beltrip-landing-menu-toggle {
    position: relative;
    z-index: 1;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    touch-action: manipulation;
  }
  .beltrip-landing-hero > div:first-child > img,
  .beltrip-landing-hero > div:first-child > video {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }
  .beltrip-landing-hero > div:first-child > div:last-child {
    background: rgba(0, 0, 0, 0.40) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }
  .beltrip-mobile-hero-logo {
    display: block;
    position: absolute;
    top: 83px;
    left: 16px;
    z-index: 12;
    width: clamp(150px, 42vw, 184px);
    height: auto;
    max-width: calc(100vw - 32px);
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    object-fit: contain;
  }
  .beltrip-landing-events .beltrip-date-selector,
  [data-beltrip-page="events"] .beltrip-date-selector {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(100%, 300px);
    padding: 12px 18px;
    margin-inline: auto;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fafafa;
  }
  .beltrip-landing-events .beltrip-date-arrow-controls,
  [data-beltrip-page="events"] .beltrip-date-arrow-controls {
    margin-right: 0;
    width: 48px;
    align-items: center;
  }
  .beltrip-date-arrow-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    touch-action: manipulation;
  }
  .beltrip-landing-events .beltrip-date-wheel,
  [data-beltrip-page="events"] .beltrip-date-wheel {
    width: 136px;
    max-width: 100%;
    justify-self: center;
    overflow: hidden;
  }
  .beltrip-date-wheel .event-date-number {
    display: block;
    margin-bottom: 0 !important;
    font-size: 46px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .beltrip-date-wheel .beltrip-date-weekday {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }
  .beltrip-landing-events .beltrip-event-cards,
  [data-beltrip-page="events"] .beltrip-event-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px !important;
    row-gap: 20px !important;
  }
  .beltrip-event-cards > [data-events-motion-card] {
    min-width: 0;
    width: 100%;
  }
  .beltrip-event-cards > [data-events-motion-card] > a {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
  .beltrip-annual-date-badge { display: none !important; }
}
