/* Mobile navigation — deterministic single-row layout. Desktop untouched. */
@media (max-width: 760px) {
  .nav {
    position: relative;
    min-height: 76px;
    padding: 8px 0;
    display: grid !important;
    grid-template-columns: 48px minmax(64px, 1fr) auto 50px;
    align-items: center;
    gap: 7px;
  }

  /* Let the controls participate directly in the header grid. */
  .nav-actions {
    display: contents !important;
  }

  .hamburger {
    grid-column: 1;
    grid-row: 1;
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 13px;
    font-size: 24px;
    background: rgba(255,255,255,.07);
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    position: static !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .brand-logo {
    width: 82px;
    height: 56px;
    object-fit: contain;
    display: block;
  }

  /* Reuse the same desktop ticket button/popup on mobile. */
  .nav-actions .btn-primary {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  /* Compact language dropdown. */
  .lang-switch {
    grid-column: 4;
    grid-row: 1;
    position: relative;
    width: 50px;
    height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    border-radius: 13px;
    overflow: visible;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
  }

  .lang-switch::after {
    content: "⌄";
    position: absolute;
    right: 5px;
    top: 8px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    pointer-events: none;
  }

  .lang-switch button {
    display: none;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 11px 0 6px;
    border-radius: 11px;
    font-size: 12px;
    flex: 0 0 40px;
  }

  .lang-switch button.active {
    display: grid;
    place-items: center;
    order: -1;
  }

  .lang-switch.open {
    position: absolute;
    right: 0;
    top: 0;
    width: 54px;
    height: auto;
    padding: 4px !important;
    background: rgba(8,41,29,.99);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 16px 38px rgba(0,0,0,.36);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 95;
  }

  .lang-switch.open::after { display: none; }

  .lang-switch.open button {
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
  }

  /* Hamburger dropdown stays compact and readable. */
  .menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    width: max-content !important;
    min-width: 196px;
    max-width: calc(100vw - 24px);
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 1px !important;
    border-radius: 16px !important;
    background: rgba(8,41,29,.985) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,.34) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    z-index: 90;
  }

  .menu.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  .menu a {
    display: block;
    width: auto;
    padding: 9px 12px !important;
    margin: 0;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.25;
  }

  .menu a:hover,
  .menu a:focus-visible {
    background: rgba(255,255,255,.09);
  }

  /* HERO: copy is row 1, rotating real photo is row 2. Nothing may overlay the title. */
  .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    gap: 22px !important;
  }

  .hero-grid > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative !important;
    z-index: 4 !important;
  }

  .hero-photo-stage {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 235px !important;
    min-height: 235px !important;
    margin: 0 auto !important;
    align-self: auto !important;
    z-index: 1 !important;
    overflow: hidden !important;
    border-radius: 24px !important;
  }

  .hero-main-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .hero-main-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
  }

  .hero-photo-stage .photo-curve,
  .hero-animal-rail {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .nav {
    grid-template-columns: 44px minmax(58px, 1fr) auto 47px;
    gap: 5px;
  }

  .brand-logo {
    width: 72px;
    height: 52px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
  }

  .nav-actions .btn-primary {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 10px;
  }

  .lang-switch { width: 47px; }
  .lang-switch.open { width: 51px; }

  .hero-photo-stage {
    height: 215px !important;
    min-height: 215px !important;
  }
}
