/* NazzAR 13 — review of 2 October 2026.
 * The original SVG/video files are untouched.  These rules override only the
 * reviewed hero, full-width rails, object overlays, media lightbox and CTA type.
 * Source anchors: 1920px canvas, hero controls y=987, tags y=249/294/333/378/417;
 * indicator component 453:1618: 209px dotted track, 34px active dash, 33px arrows.
 */

/* 1. Menu starts below the 82px header, not inside it. */
.desktop-actions .language-menu {
  top: 66px; right: 0; width: 109px;
  padding: 15px 20px; border: 0; border-radius: 8px;
  background: #000; box-shadow: none;
}
.desktop-actions .language-menu button {
  display: block; width: 100%; height: 22px; min-height: 22px;
  margin: 0; padding: 0; border: 0;
  font: 500 17px/22px 'Onest', Arial, sans-serif;
  text-align: left; color: #b2b2b2;
}
.desktop-actions .language-menu button + button { margin-top: 10px; }
.desktop-actions .language-menu button.active { color: #fff; }
.desktop-actions .language-menu button:disabled { opacity: .6; }

/* 2–5. A transparent/surface backing reveals the actual curved SVG silhouette.
 * Never rebuild the notch out of a circle or stretch the supplied vector paths. */
.hero { background: var(--surface); }
.hero-content { z-index: 8; }
.learn-more-hit { z-index: 9; }
.hero::before {
  content: ''; position: absolute; z-index: 0;
  inset: 0 0 220px; background: #000; pointer-events: none;
}
@media (min-width:769px) {
  .hero-tags .tag-exhibitions { top: 212px; }
  .hero-tags .tag-museums { top: 167px; }
  .hero-tags .tag-architecture { top: 251px; }
  .hero-tags .tag-culture { top: 296px; }
  .hero-tags .tag-tourism { top: 335px; }
  .hero-content .hero-buttons { top: 905px; }
  .hero-bottom-desktop { object-fit: cover; }
}
@media (min-width:1600px) {
  .hero-tags .tag-exhibitions { width:198px; }
  .hero-tags .tag-museums { width:154px; }
  .hero-tags .tag-architecture { width:352px; }
  .hero-tags .tag-culture { width:341px; }
  .hero-tags .tag-tourism { width:327px; }
}
@media (max-width:768px) {
  .hero::before { bottom: 113px; }
}

/* 6,10. Only the viewport edge clips the main rails. The first/last padding
 * aligns their resting positions to the text grid; it scrolls with the cards. */
.features-inner > .feature-carousel,
.section-shell > .object-carousel {
  width: 100vw; max-width: none;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: 0; border: 0;
}
.feature-carousel > .feature-track,
.object-carousel > .object-track {
  width: 100%; max-width: none; box-sizing: border-box;
  padding: 0 var(--edge); margin: 0;
  scroll-padding: 0; scroll-snap-type: none;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; border: 0;
}
.feature-carousel > .feature-track::-webkit-scrollbar,
.object-carousel > .object-track::-webkit-scrollbar { display: none; }
.feature-track.is-dragging, .object-track.is-dragging { cursor: grabbing; user-select: none; }

/* 7,13. Fixed geometry: the dash moves OVER stationary dots, not by growing
 * flex items that shift the entire control row. Eight source states, nine dots. */
.carousel-controls.rail-controls,
.object-controls.rail-controls {
  --dot-step: 25px; --dot-size: 9px; --dash-width: 34px;
  width: 331px; max-width: calc(100vw - 24px); height: 33px;
  margin: 48px auto 0; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 28px;
}
.rail-controls > button.rail-arrow {
  display: block; position: relative; flex: 0 0 33px;
  width: 33px; height: 33px; min-width: 33px; min-height: 33px;
  padding: 0; margin: 0; border: 0; background: transparent; border-radius: 50%;
  opacity: 1; visibility: visible; cursor: pointer;
}
.rail-controls > button.rail-arrow img { display: block; }
.rail-controls > button.rail-arrow::before {
  content: ''; position: absolute; inset: -5.5px;
}
.rail-controls > button.rail-arrow:disabled {
  visibility: hidden; opacity: 0; pointer-events: none;
}
.rail-controls > .step-dots {
  position: relative; flex: 0 0 209px; display: block;
  width: 209px; max-width: none; height: 33px; margin: 0; padding: 0;
}
.rail-controls .rail-dot-track {
  position: absolute; inset: 12px 0 auto; height: 9px;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.rail-controls .rail-dot-track > i {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  background: #333336; flex: none;
}
.rail-controls .rail-active-dash {
  display: block; position: absolute; left: 0; top: 12px;
  width: var(--dash-width); height: 9px; border-radius: 999px;
  background: #fff; transform: translateX(calc(var(--active-step,0) * var(--dot-step)));
  transition: transform .18s ease-out; pointer-events: none;
}
.rail-controls .step-dots > button.step-dot,
.object-controls.rail-controls .step-dots > button.step-dot {
  position: absolute; left: calc(var(--step) * var(--dot-step)); top: -5.5px;
  display: block; width: var(--dot-step); height: 44px;
  min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
  border-radius: 0; background: transparent; color: inherit;
  transform: translateX(4.5px); cursor: pointer;
}
.rail-controls .step-dots > button.step-dot::before { content: none; }
.rail-controls .step-dots > button.step-dot:focus-visible { outline-offset: 0; border-radius: 5px; }
.rail-controls.is-static { visibility: hidden; }
@media (max-width:768px) {
  .carousel-controls.rail-controls, .object-controls.rail-controls {
    --dot-step: 20px; --dash-width: 29px;
    width: 169px; max-width: calc(100vw - 60px); height: 33px;
    margin: 20px auto 0; gap: 0;
  }
  .rail-controls > button.rail-arrow { display: none; }
  .rail-controls > .step-dots { width:169px; flex-basis:169px; }
}

/* 9,11. The source city fill has alpha=.5; the image fades into the black card. */
.object-card .object-photo > .city-badge {
  background: rgba(255,255,255,.5); opacity: 1; border: 0; box-shadow: none;
  color: #515151;
}
.object-card .object-photo::after {
  content: ''; position: absolute; z-index: 1;
  left: 0; right: 0; top: auto; bottom: -1px;
  height: calc(var(--photo-fade, .315) * 100% + 1px);
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* 12. The icon starts alone, expansion takes .3s; the label fades in afterwards.
 * Touch and keyboard access never depend on hover or an initial dummy tap. */
.object-card .object-actions > a.object-map {
  position: relative; display: block; justify-self: center;
  width: 36px; max-width: 100%; height: 36px; min-height: 36px;
  padding: 0; margin-top: 10px; overflow: hidden;
  border: 0; border-radius: 9px; background: #000;
  font: 500 13px/18px 'Onest',Arial,sans-serif;
  transition: width .3s cubic-bezier(0,0,.58,1);
}
.object-card .object-map > img {
  position: absolute; top: 7px; left: 10.5px; margin: 0;
  width: 15px; height: 22px; transition: left .3s cubic-bezier(0,0,.58,1);
}
.object-card .object-map > span {
  position: absolute; top: 50%; left: 38px; margin: 0;
  transform: translateY(-50%); white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity .12s ease, visibility 0s .12s;
}
@media (hover:hover) and (pointer:fine) {
  .object-card .object-actions > a.object-map:hover { width: 164px; }
  .object-card .object-map:hover > img { left: 9px; }
  .object-card .object-map:hover > span {
    opacity: 1; visibility: visible;
    transition: opacity .15s ease .3s, visibility 0s .3s;
  }
}
.object-card .object-actions > a.object-map:focus-visible { width: 164px; }
.object-card .object-map:focus-visible > span { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (hover:none), (pointer:coarse) {
  .object-card .object-actions > a.object-map {
    width:164px; height:44px; min-height:44px;
  }
  .object-card .object-map > img { top:11px; left:9px; }
  .object-card .object-map > span { opacity:1; visibility:visible; transition:none; }
}

/* 8,14. Media-only lightbox. No surrounding card, headline or caption.
 * Only the native controls and a separate accessible close button remain. */
.action-dialog.media-dialog {
  --media-ratio: 1.777778;
  width: min(1120px, calc(100vw - 48px), calc((100vh - 104px) * var(--media-ratio)));
  max-width: calc(100vw - 48px); max-height: none;
  padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: transparent; overflow: visible;
}
.action-dialog.media-dialog::backdrop { background: rgba(0,0,0,.88); }
.media-dialog > .dialog-shell { position:relative; margin:0; padding:0; }
.media-dialog .dialog-close {
  display:grid; place-items:center; position:absolute; z-index:2;
  top:-44px; right:0; width:44px; height:44px; min-height:44px;
  margin:0; padding:0; border:0; border-radius:0; background:transparent;
  color:#fff; font:400 32px/1 Arial,sans-serif; cursor:pointer;
}
.media-dialog .dialog-video, .media-dialog .dialog-image {
  display:block; width:100%; height:auto; max-width:100%; max-height:none;
  margin:0; padding:0; border:0; border-radius:0;
  object-fit:contain;
}
.media-dialog .dialog-video { background:#000; }
.media-dialog .dialog-image { background:transparent; }
.media-dialog .media-error:not([hidden]) {
  position:absolute; inset:0; display:grid; place-items:center;
  padding:24px; margin:0; background:#000; font-size:16px;
}
.media-dialog .dialog-retry:not([hidden]) { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); }
@supports(height:100dvh) {
  .action-dialog.media-dialog {
    width:min(1120px,calc(100vw - 48px),calc((100dvh - 104px) * var(--media-ratio)));
  }
}
@media(max-width:768px) {
  .action-dialog.media-dialog { max-width:calc(100vw - 24px); width:min(calc(100vw - 24px),calc((100vh - 112px) * var(--media-ratio))); }
  @supports(height:100dvh) { .action-dialog.media-dialog { width:min(calc(100vw - 24px),calc((100dvh - 112px) * var(--media-ratio))); } }
}

/* 15. Source primary CTA label: Golos Text Medium, 19px (not draft 17px). */
.museum-shell > .wide-button.consultation-button {
  display:grid; place-items:center; font:500 19px/23px 'Golos Text','Onest',Arial,sans-serif;
  text-align:center;
}
@media(max-width:768px) {
  .museum-shell > .wide-button.consultation-button { font-size:15px; line-height:20px; }
}
@media(prefers-reduced-motion:reduce) {
  .rail-active-dash,.object-card .object-actions > a.object-map,
  .object-card .object-map > img,.object-card .object-map > span { transition:none!important; }
}

/* Reuse the enabled right-arrow original for the mirrored enabled left control. */
.rail-arrow .rail-reversed { transform: rotate(180deg); }


/* Release 14. Each method owns its instruction. The original blue play artwork is reused.
 * No additional marketing text, no change to the App Store/Google Play links or decorative QR. */
.how-card-heading {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex:0 0 auto; min-width:0;
}
.how-card-heading > h4 { flex:1 1 auto; min-width:0; margin:0; }
.instruction-play {
  display:grid; place-items:center; width:44px; height:44px; min-width:44px;
  flex:0 0 44px; padding:0; margin:-5px -4px -6px 0;
  border:0; border-radius:50%; background:transparent; text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.instruction-play-icon { display:block; width:36px; height:36px; pointer-events:none; }
.instruction-play-icon > img { display:block; width:75px; height:75px; max-width:none; transform:scale(.48); transform-origin:0 0; }
.instruction-play:focus-visible { outline:3px solid #1977f3; outline-offset:3px; }
@media (hover:hover) and (pointer:fine) { .instruction-play:hover { filter:brightness(1.14); } }
@media (max-width:768px) {
  /* The old lone Web play button is gone. It no longer needs a gap above the photo. */
  .how-section.has-guide-choices .how-intro { min-height:0; padding-bottom:45px; }
  .how-card-heading { gap:8px; }
  .instruction-play { margin:-9px -4px -9px 0; }
}
/* Media-only YouTube player: no site border/caption/header; native YouTube controls are untouched. */
.action-dialog.media-dialog.youtube-dialog { min-width:200px; }
.youtube-dialog .dialog-embed { position:relative; width:100%; aspect-ratio:16/9; min-height:200px; background:#000; }
.dialog-embed > iframe { display:block; width:100%; height:100%; min-height:200px; border:0; margin:0; }
.youtube-dialog .youtube-fallback:not([hidden]) {
  width:100%; min-height:200px; aspect-ratio:16/9; padding:24px;
  background:#111; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px;
  text-align:center; color:#fff;
}
.youtube-fallback p { margin:0; font:500 16px/1.5 'Onest',Arial,sans-serif; }
.youtube-fallback a, .youtube-fallback button { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:10px 18px; border-radius:9px; font:500 15px/1.35 'Onest',Arial,sans-serif; cursor:pointer; }
.youtube-fallback a { background:#1977f3; text-decoration:none; color:#fff; }
.youtube-fallback button { background:transparent; border:1px solid #888; color:#fff; }
.youtube-fallback a:focus-visible, .youtube-fallback button:focus-visible { outline:2px solid #fff; outline-offset:4px; }
/* Keep YouTube's 200px minimum player viewport reachable even in short landscape screens. */
@media (max-height:340px) { .action-dialog.media-dialog.youtube-dialog { top:44px; bottom:0; max-height:none; overflow:visible; } }
