/* ─── Base / global fallback ───────────────────── */

@import url("./cta.css");

/* global fallback background while procedural terrain renderer is disabled */
html, body { background: #dddddd !important; }

/* ─── Base reset / typography ─────────────────── */
html {
  overscroll-behavior: none;
}

html,
body {
  margin: 0;
  width: 100%;
}

body {
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ─── Navigation ───────────────────────────────── */

:root {
  --nav-link-font-size: 15px;
  --hamburger-top: 24px;
  --hamburger-right: 24px;
  --menu-panel-width: clamp(259px, 27.6vw, 446px);
  --menu-panel-radius: 18px;
  --menu-open-top-reserve: 60px;
  --menu-open-content-inset: 24px;
}

#logo-link {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  z-index: 6;
  line-height: 0;
}

#logo {
  display: block;
  opacity: 0;
  transform-origin: left top;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  object-fit: contain;
  max-width: none;
}

#top-mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: #fff;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  will-change: opacity;
}

#hamburger {
  position: absolute;
  right: 0;
  top: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.92) inset;
  display: block;
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  transition:
    border-radius 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease,
    transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#hamburger span {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -12px;
  margin-top: -1px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.86);
  transition:
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    top 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) 0.22s,
    opacity 0.08s linear 0.22s;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}

#hamburger span:nth-child(1) {
  top: calc(50% - 8.5px);
  transform: rotate(0deg);
}

#hamburger span:nth-child(2) {
  top: 50%;
  transform: rotate(0deg);
}

#hamburger span:nth-child(3) {
  top: calc(50% + 8.5px);
  transform: rotate(0deg);
}

#top-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 84px;
  box-sizing: border-box;
  z-index: 5;
  background: transparent;
  transform: translateY(-48px);
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
  opacity: 1;
  transition:
    top 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    right 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.26s ease,
    box-shadow 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease,
    transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: top right;
}

#top-menu.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.top-menu-inner {
  position: absolute;
  left: var(--menu-left-offset, 420px);
  right: 0;
  top: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.1vw, 42px);
  padding-left: 0;
  padding-right: 0;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: var(--nav-link-font-size);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.015em;
  transform: translateY(-5px);
}

.top-menu-inner a {
  color: rgba(0, 0, 0, 0.76);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.top-menu-inner a:hover,
.top-menu-inner a[aria-current="page"] {
  color: rgba(0, 0, 0, 0.98);
}

.menu-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-group.has-submenu {
  --submenu-left-pad: 32px;
  --submenu-right-pad: 24px;
  --submenu-top-pad: 12px;
  --submenu-bottom-pad: 30px;
  --submenu-heading-height: 22px;
  --submenu-list-gap: 24px;
  padding: 0;
  margin: 0;
  border-radius: 22px;
}

.menu-group-heading {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.menu-disclosure {
  width: 22px;
  height: 22px;
  margin: 0 0 0 -1px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.menu-disclosure::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(0px) rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 0.18s ease;
}

.menu-disclosure:hover,
.menu-disclosure:focus-visible,
.menu-group.is-submenu-open .menu-disclosure {
  color: rgba(0, 0, 0, 0.76);
  background: transparent;
}

.menu-disclosure:focus-visible {
  outline: 1px solid rgba(0, 0, 0, 0.28);
  outline-offset: 2px;
}

.menu-group.is-submenu-open .menu-disclosure::before {
  transform: translateY(3px) rotate(225deg);
}

.menu-subnav {
  position: absolute;
  left: calc(0px - var(--submenu-left-pad));
  top: calc(100% + var(--submenu-list-gap));
  width: max-content;
  min-width: calc(100% + var(--submenu-left-pad) + var(--submenu-right-pad));
  max-width: min(300px, calc(100vw - 48px));
  padding: 0 var(--submenu-right-pad) var(--submenu-bottom-pad) var(--submenu-left-pad);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-4px);
  transform-origin: top center;
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 7;
}

.menu-subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(0px - var(--submenu-heading-height) - var(--submenu-list-gap) - var(--submenu-top-pad));
  bottom: 0;
  z-index: -1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.menu-group.is-submenu-open .menu-subnav {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.top-menu-inner .menu-subnav a {
  color: rgba(0, 0, 0, 0.64);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 450;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform-origin: left center;
}

.top-menu-inner .menu-subnav a:hover,
.top-menu-inner .menu-subnav a:focus-visible {
  color: rgba(0, 0, 0, 0.82);
}

html.menu-open #hamburger,
html.menu-closing #hamburger {
  position: fixed;
  top: var(--hamburger-top);
  right: var(--hamburger-right);
  border-radius: var(--menu-panel-radius);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  z-index: 9;
}

html.menu-open #hamburger span:nth-child(1) {
  top: 50%;
  transition:
    top 0.18s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s;
  transform: rotate(-45deg);
}

html.menu-open #hamburger span:nth-child(2) {
  transition: opacity 0.08s linear 0.18s;
  opacity: 0;
  transform: rotate(0deg);
}

html.menu-open #hamburger span:nth-child(3) {
  top: 50%;
  transition:
    top 0.18s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s;
  transform: rotate(45deg);
}

html.menu-open #top-menu,
html.menu-closing #top-menu {
  left: auto;
  right: var(--hamburger-right);
  top: var(--hamburger-top);
  width: min(var(--menu-panel-width), calc(100vw - var(--hamburger-right) * 2));
  min-width: min(259px, calc(100vw - var(--hamburger-right) * 2));
  max-width: 446px;
  height: calc(100dvh - var(--hamburger-top) - var(--hamburger-right));
  min-height: min(420px, calc(100dvh - var(--hamburger-top) - var(--hamburger-right)));
  max-height: calc(100dvh - var(--hamburger-right) * 2);
  padding-top: var(--menu-open-top-reserve);
  border-radius: var(--menu-panel-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.46) inset;
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  box-sizing: border-box;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: none;
  transition: none;
  z-index: 8;
  overflow: hidden;
}

html.menu-open #top-menu {
  animation: menuPanelGrow 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

html.menu-closing #top-menu {
  pointer-events: none;
  animation: menuPanelShrink 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

html.menu-open .top-menu-inner,
html.menu-closing .top-menu-inner {
  position: static;
  width: 100%;
  height: 100%;
  padding:
    var(--menu-open-content-inset)
    var(--menu-open-content-inset)
    32px
    calc(var(--menu-open-top-reserve) + var(--menu-open-content-inset));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  transform: none;
}

html.menu-open .menu-group,
html.menu-closing .menu-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html.menu-open .menu-group.has-submenu,
html.menu-closing .menu-group.has-submenu {
  padding: 0;
  margin: 0;
  border-radius: 0;
}

html.menu-open .menu-group-heading,
html.menu-closing .menu-group-heading {
  display: flex;
  align-items: flex-start;
}

html.menu-open .menu-disclosure,
html.menu-closing .menu-disclosure {
  display: none;
}

html.menu-open .top-menu-inner a,
html.menu-closing .top-menu-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 2px;
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.82);
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: normal;
  text-wrap: balance;
  transform-origin: left center;
  transition:
    color 0.18s ease,
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

html.menu-open .menu-subnav,
html.menu-closing .menu-subnav {
  position: static;
  min-width: 0;
  max-width: none;
  padding: 0 0 0 18px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 10px;
  transform: none;
  transition: none;
}

html.menu-open .menu-subnav {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

html.menu-closing .menu-subnav {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

html.menu-open .menu-subnav::before {
  display: none;
}

html.menu-closing .menu-subnav::before {
  display: none;
}

html.menu-open .top-menu-inner .menu-subnav a,
html.menu-closing .top-menu-inner .menu-subnav a {
  min-height: 0;
  padding: 0 2px;
  color: rgba(0, 0, 0, 0.64);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 450;
  letter-spacing: -0.01em;
  transform-origin: left center;
  transition:
    color 0.18s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.menu-open .top-menu-inner .menu-subnav a.menu-subnav-feature,
html.menu-closing .top-menu-inner .menu-subnav a.menu-subnav-feature {
  margin-bottom: 2px;
}

html.menu-open .top-menu-inner .menu-subnav a:hover,
html.menu-open .top-menu-inner .menu-subnav a:focus-visible,
html.menu-closing .top-menu-inner .menu-subnav a:hover,
html.menu-closing .top-menu-inner .menu-subnav a:focus-visible {
  color: rgba(0, 0, 0, 0.78);
  transform: scale(1.018);
}

html.menu-open .top-menu-inner > a:hover,
html.menu-open .top-menu-inner > a:focus-visible,
html.menu-open .menu-group-heading > a:hover,
html.menu-open .menu-group-heading > a:focus-visible,
html.menu-closing .top-menu-inner > a:hover,
html.menu-closing .top-menu-inner > a:focus-visible,
html.menu-closing .menu-group-heading > a:hover,
html.menu-closing .menu-group-heading > a:focus-visible {
  color: rgba(0, 0, 0, 0.94);
  transform: scale(1.035);
}

@keyframes menuPanelGrow {
  from {
    clip-path: inset(0 0 calc(100% - 56px) calc(100% - 56px) round var(--menu-panel-radius));
  }

  to {
    clip-path: inset(0 0 0 0 round var(--menu-panel-radius));
  }
}

@keyframes menuPanelShrink {
  from {
    clip-path: inset(0 0 0 0 round var(--menu-panel-radius));
  }

  to {
    clip-path: inset(0 0 calc(100% - 56px) calc(100% - 56px) round var(--menu-panel-radius));
  }
}

@media (max-width: 760px) {
  html:not(.menu-open):not(.menu-closing) #top-menu {
    display: none;
  }

  #hamburger {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  #hamburger span {
    width: 22px;
    margin-left: -11px;
  }

  #top-menu {
    height: 74px;
  }

  .top-menu-inner {
    position: static;
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    transform: translateY(-3px);
  }

  .top-menu-inner::-webkit-scrollbar {
    display: none;
  }
}

/* ─── Shared UI controls ──────────────────────── */

.hero-carousel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #111;
  user-select: none;
}

.hero-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.54s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-carousel-img.is-scale-in {
  animation: heroScaleIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes heroScaleIn {
  from { transform: scale(2); }
  to   { transform: scale(1); }
}

#scroll-hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  color: rgba(255, 255, 255, 0.9);
  animation: scrollHintBounce 1.9s cubic-bezier(0.22, 0.9, 0.24, 1) infinite;
}

#scroll-hint svg {
  width: 40px;
  height: 11px;
  display: block;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0) scaleY(1); }
  46%      { transform: translateX(-50%) translateY(8px) scaleY(0.94); }
  64%      { transform: translateX(-50%) translateY(3px) scaleY(1.035); }
}

#terrain-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 400vh;
  z-index: 0;
  pointer-events: none;
  display: block;
  will-change: transform;
}

.nav-button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 80px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.34));
}

.nav-button:focus {
  outline: none;
}

.nav-button.prev {
  left: 18px;
}

.nav-button.next {
  right: 18px;
}

.nav-icon {
  width: 80px;
  height: 44px;
  display: block;
  flex: 0 0 auto;
}

.nav-icon path {
  stroke-width: 2.4;
}

.nav-button.prev .nav-icon {
  transform: scaleX(-0.66);
  transform-origin: 50% 50%;
}

.nav-button.next .nav-icon {
  transform: scaleX(0.66);
  transform-origin: 50% 50%;
}

.bottom-controls {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 7;
}

.hero-carousel-dots {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  box-sizing: border-box;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  transition: width 0.22s ease, height 0.22s ease, background 0.22s ease;
}

.dot.active,
.hero-carousel-dot.active {
  width: 16px;
  height: 16px;
  background: #fff;
}

.dot:focus,
.hero-carousel-dot:focus {
  outline: none;
}

#top-mask {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 1px 0 rgba(0, 0, 0, 0.04);
}

html.menu-open #top-menu,
html.menu-closing #top-menu {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 18px 54px rgba(0, 0, 0, 0.08);
  height: calc(100svh - var(--hamburger-top) - 36px);
  max-height: calc(100svh - 36px);
}

/* ─── Product plates ───────────────────────────── */

.product-plates {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.product-plate {
  --plate-saturate: 260%;
  position: fixed;
  top: 0;
  height: 52px;
  border-radius: 999px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  line-height: 1;
  white-space: nowrap;
  will-change: transform, opacity;
  pointer-events: auto;
}

.product-title-plate {
  --plate-blur: 54px;
  left: 0;
  width: auto;
  max-width: calc(100vw - 442px);
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(var(--plate-blur)) brightness(1.26) contrast(1.14);
  -webkit-backdrop-filter: saturate(180%) blur(var(--plate-blur)) brightness(1.26) contrast(1.14);
  color: rgba(0, 0, 0, 0.88);
  font-size: 23px;
  font-weight: 320;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(255, 255, 255, 0.24) inset,
    0 -12px 32px rgba(255, 255, 255, 0.1) inset;
}

.product-title-plate:hover {
  color: rgba(0, 0, 0, 0.98);
}

.product-title-plate strong {
  font-size: 25px;
  font-weight: 560;
}

.plate-city-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.city-card-name {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 52px;
  border-radius: 999px;
  padding: 0 18px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.75);
  color: rgba(0, 0, 0, 0.82);
  white-space: nowrap;
  line-height: 1;
}

.city-card-name strong {
  font-size: 15px;
  font-weight: 560;
}

.city-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  outline: 1px solid rgba(0, 0, 0, 0.055);
  transition: outline-color 0.24s ease;
}

.city-card:hover {
  outline-color: rgba(0, 0, 0, 0.1);
}

.city-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e4e4e4;
}

.city-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #e4e4e4;
  transform: scale(1);
  filter: brightness(1) saturate(1);
  transition:
    transform 0.62s cubic-bezier(0.16, 0.84, 0.22, 1),
    filter 0.46s ease;
  will-change: transform, filter;
}

.city-card:hover .city-card-img {
  transform: scale(1.085);
  filter: brightness(1.18) saturate(1.12) contrast(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .city-card-img {
    transition: none;
  }

  .city-card:hover .city-card-img {
    transform: none;
  }
}

@media (max-width: 760px) {
  .product-title-plate {
    left: 18px;
    width: calc(100vw - 234px);
    min-width: 128px;
    padding: 0 14px;
    font-size: 14px;
  }
}

/* ─── Catalog index ───────────────────────────── */

.catalog-index {
  max-width: 1400px;
  margin: 64px auto 0;
  padding-top: 0;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

.catalog-index-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
}

.catalog-index-tab,
.catalog-index-letter {
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
}

.catalog-index-tab {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.56);
  font-size: 13px;
  line-height: 1;
  font-weight: 560;
}

.catalog-index-tab.is-active {
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
}

.catalog-index-mode {
  margin-top: 18px;
}

.catalog-index-letters {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.catalog-index-letters::-webkit-scrollbar {
  display: none;
}

.catalog-index-letter {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  line-height: 1;
  font-weight: 620;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.045);
}

.catalog-index-letter:hover,
.catalog-index-letter.is-active {
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
}

.catalog-index-letter.is-empty,
.catalog-index-letter:disabled {
  cursor: default;
  opacity: 0.28;
}

.catalog-index-letter.is-empty:hover,
.catalog-index-letter:disabled:hover {
  background: rgba(255, 255, 255, 0.64);
  color: rgba(0, 0, 0, 0.62);
}

.city-index-grid {
  column-count: 3;
  column-gap: 16px;
  margin-top: 16px;
}

.city-index-group {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
  align-self: start;
  break-inside: avoid;
  margin: 0 0 16px;
}

.city-index-group[hidden] {
  display: none;
}

.city-index-letter {
  font-size: 18px;
  font-weight: 620;
  color: rgba(0, 0, 0, 0.86);
}

.city-index-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 5px 18px;
}

.city-index-links a {
  display: block;
  color: rgba(0, 0, 0, 0.66);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
}

.city-index-links a:hover {
  color: rgba(0, 0, 0, 0.96);
}

.city-index-links a.city-index-link--missing-folder {
  color: rgba(255, 48, 150, 0.95);
}

.city-index-links a.city-index-link--missing-folder:hover {
  color: rgba(215, 0, 112, 1);
}

.catalog-index-masonry {
  column-count: 3;
  column-gap: 16px;
  margin-top: 16px;
}

.catalog-index-country {
  break-inside: avoid;
  min-width: 0;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.045);
  backdrop-filter: saturate(130%) blur(16px);
  -webkit-backdrop-filter: saturate(130%) blur(16px);
}

.catalog-index-country-links a {
  display: block;
  min-width: 0;
  color: rgba(0, 0, 0, 0.66);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-index-country-links a:hover {
  color: rgba(0, 0, 0, 0.96);
}

.catalog-index-country h3 {
  margin: 0 0 9px;
  color: rgba(0, 0, 0, 0.86);
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: normal;
  font-weight: 620;
  letter-spacing: 0;
}

.catalog-index-country h3 a {
  color: inherit;
  text-decoration: none;
}

.catalog-index-country h3 a:hover {
  color: rgba(0, 0, 0, 0.98);
}

.catalog-index-country-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
}

.catalog-index.is-city-letter-selected .catalog-index-mode[data-index-panel-mode="city"] .city-index-grid {
  column-count: 1;
}

.catalog-index.is-city-letter-selected .catalog-index-mode[data-index-panel-mode="city"] .city-index-group:not([hidden]) {
  --city-letter-column-width: 168px;
  --city-letter-column-gap: 20px;
  width: min(
    100%,
    calc(
      52px +
      (var(--city-letter-columns, 2) * var(--city-letter-column-width)) +
      ((var(--city-letter-columns, 2) - 1) * var(--city-letter-column-gap))
    )
  );
}

.catalog-index.is-city-letter-selected .catalog-index-mode[data-index-panel-mode="city"] .city-index-links {
  grid-template-columns: repeat(var(--city-letter-columns, 2), var(--city-letter-column-width));
  gap: 5px var(--city-letter-column-gap);
}

.catalog-map {
  position: relative;
  min-height: 420px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.catalog-map-svg {
  display: block;
  width: 100%;
  height: min(62vw, 620px);
  min-height: 420px;
}

.catalog-map-country {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(0, 0, 0, 0.096);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.14s ease, filter 0.14s ease;
}

.catalog-map-country:hover {
  fill: rgba(238, 238, 238, 0.8);
  filter: url(#catalog-map-country-inner-shadow);
}

.catalog-map-cta {
  --catalog-map-cta-offset: 12px;
  --catalog-map-cta-scale: 0.9;
  --catalog-map-cta-floating-bottom: 24px;
  position: absolute;
  z-index: 1;
  left: var(--catalog-map-cta-offset);
  bottom: var(--catalog-map-cta-offset);
  width: clamp(300px, 22vw, 320px);
  max-height: 420px;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  color: rgba(0, 0, 0, 0.82);
  font-size: 15px;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 14px 34px rgba(255, 255, 255, 0.16) inset,
    0 10px 24px rgba(0, 0, 0, 0.055);
  backdrop-filter: saturate(130%) blur(18px);
  -webkit-backdrop-filter: saturate(130%) blur(18px);
  opacity: 1;
  overflow: hidden;
  transform: scale(var(--catalog-map-cta-scale));
  transform-origin: left bottom;
  transition:
    max-height 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.22s ease,
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.catalog-map-cta strong,
.catalog-map-cta-description {
  display: block;
}

.catalog-map-cta strong {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 620;
}

.catalog-map-cta-description {
  margin-top: 9px;
  max-height: 110px;
  color: rgba(0, 0, 0, 0.62);
  font-size: inherit;
  line-height: 1.35;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    margin-top 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease,
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.catalog-map-cta-fields {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  max-height: 138px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    margin-top 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease,
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.catalog-map-cta input,
.catalog-map-cta button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  font: inherit;
  line-height: 1;
}

.catalog-map-cta input {
  height: 40px;
  padding: 0 15px;
  color: rgba(0, 0, 0, 0.82);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.055);
}

.catalog-map-cta input::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

.catalog-map-cta button {
  height: 40px;
  margin-top: 11px;
  color: rgba(0, 0, 0, 0.88);
  background: #fff;
  font-weight: 620;
  cursor: pointer;
  transition: margin-top 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.catalog-map-cta input:focus,
.catalog-map-cta button:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-map-cta,
  .catalog-map-cta-description,
  .catalog-map-cta-fields,
  .catalog-map-cta button {
    transition: none;
  }
}

.catalog-map-dot-glow {
  fill: rgba(217, 132, 58, 0.08);
  pointer-events: none;
}

.catalog-map-capital-dot {
  fill: rgba(70, 70, 70, 0.32);
  pointer-events: none;
}

.catalog-map-populated-place-dot {
  fill: rgba(46, 46, 46, 0.34);
  pointer-events: none;
}

.catalog-map-dot {
  fill: rgba(214, 117, 45, 0.7);
  stroke: none;
  cursor: pointer;
  transition: fill 0.15s ease;
}

.catalog-map-active-pulse {
  pointer-events: none;
}

.catalog-map-active-dot {
  fill: #d8436f;
  pointer-events: none;
}

.catalog-map-dot-link[hidden],
.catalog-map-dot-glow[hidden] {
  display: none;
}

.catalog-map-tooltip {
  position: absolute;
  z-index: 2;
  max-width: min(240px, calc(100% - 32px));
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.055);
  backdrop-filter: saturate(130%) blur(16px);
  -webkit-backdrop-filter: saturate(130%) blur(16px);
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: auto;
}

.catalog-map-tooltip a {
  display: block;
  color: rgba(0, 0, 0, 0.86);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 620;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.catalog-map-tooltip span {
  display: block;
  margin-top: 2px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 520;
  text-align: center;
}

.catalog-index-empty {
  color: rgba(0, 0, 0, 0.42);
  font-size: 13px;
  line-height: 1.35;
}

/* Country pages */

.country-map-section {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  box-sizing: border-box;
  width: min(880px, calc(100vw - 48px));
  aspect-ratio: 1.42 / 1;
  padding: 0;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  will-change: left, top, width, opacity;
}

.country-map-inner {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.country-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.country-insight-section {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  box-sizing: border-box;
  width: min(430px, calc(100vw - 48px));
  padding: 2px 0 0 18px;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
  color: rgba(22, 22, 22, 0.88);
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  will-change: left, top, width, opacity;
}

.country-insight-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.country-insight-section h2 {
  margin: 0 0 12px;
  max-width: 18ch;
  font-size: 26px;
  line-height: 1.04;
  font-weight: 610;
  letter-spacing: 0;
}

.country-insight-section p {
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 340;
  color: rgba(0, 0, 0, 0.68);
}

.country-insight-signals {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.country-insight-signals li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.28;
  color: rgba(0, 0, 0, 0.62);
}

.country-insight-signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(214, 111, 42, 0.78);
}

.country-insight-updated {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.38);
}

.country-map-shape {
  fill: url("#country-map-frosted-fill");
  fill-rule: evenodd;
  stroke: rgba(82, 82, 82, 0.48);
  stroke-width: 0.58;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
  filter: url("#country-map-frosted-filter");
}

.country-map-ukraine-flag-effect {
  opacity: 0.62;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.country-map-ukraine-slogan-layer {
  opacity: 0;
  pointer-events: none;
}

.country-map-ukraine-slogan {
  fill: #ffffff;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-anchor: middle;
  dominant-baseline: middle;
  user-select: none;
}

.country-map-ukraine-flag-blue {
  fill: #0057b7;
}

.country-map-ukraine-flag-yellow {
  fill: #ffd700;
}

.country-map-ukraine-hit-layer {
  pointer-events: none;
}

.country-map-ukraine-hit-area {
  fill: #000000;
  fill-rule: evenodd;
  opacity: 0;
  pointer-events: none;
  stroke: none;
}

.country-map-road-layer {
  opacity: 0.56;
  mix-blend-mode: multiply;
}

.country-map-road {
  fill: none;
  stroke: rgba(112, 112, 112, 0.3);
  stroke-width: 0.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.country-map-road-major {
  stroke: rgba(92, 92, 92, 0.42);
  stroke-width: 0.5;
}

.country-map-atlas-city-layer {
  opacity: 0.78;
}

.country-map-atlas-city-marker {
  cursor: default;
  outline: none;
  pointer-events: auto;
}

.country-map-atlas-city-glow {
  fill: rgba(86, 86, 86, 0.1);
  pointer-events: none;
}

.country-map-atlas-city {
  fill: rgba(104, 104, 104, 0.72);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  transition:
    fill 0.15s ease,
    stroke 0.15s ease,
    r 0.15s ease;
}

.country-map-atlas-city-major {
  fill: rgba(90, 90, 90, 0.78);
}

.country-map-atlas-city-capital {
  fill: rgba(76, 76, 76, 0.86);
  stroke: rgba(255, 255, 255, 0.9);
}

.country-map-atlas-city-marker:hover .country-map-atlas-city,
.country-map-atlas-city-marker:focus-visible .country-map-atlas-city {
  fill: rgba(72, 72, 72, 0.92);
  stroke: #fff;
  r: 4.7;
}

.country-map-atlas-city-label {
  fill: rgb(43, 43, 43);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 3.8;
  paint-order: stroke;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 420;
  letter-spacing: 0;
  text-anchor: middle;
  pointer-events: none;
}

.country-map-atlas-tooltip {
  position: fixed;
  z-index: 8;
  max-width: min(260px, calc(100vw - 24px));
  padding: 9px 12px 10px;
  border: 1px solid rgba(92, 92, 92, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11);
  color: rgba(28, 28, 28, 0.88);
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(16px) saturate(1.08);
}

.country-map-city-glow {
  fill: rgba(217, 132, 58, 0.13);
  pointer-events: none;
}

.country-map-city-link {
  cursor: pointer;
  outline: none;
}

.country-map-city-dot {
  fill: rgba(214, 117, 45, 0.88);
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  transition:
    fill 0.15s ease,
    stroke 0.15s ease,
    r 0.15s ease;
}

.country-map-city-link:hover .country-map-city-dot,
.country-map-city-link:focus-visible .country-map-city-dot {
  fill: #d6752d;
  stroke: #fff;
  r: 5.8;
}

@media (max-width: 760px) {
  .catalog-index {
    margin-top: 48px;
  }

  .catalog-index-masonry {
    column-count: 1;
  }

  .city-index-grid {
    column-count: 1;
  }

  .city-index-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .city-index-links {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .catalog-map,
  .catalog-map-svg {
    min-height: 320px;
  }

  .catalog-map-svg {
    height: 72vw;
  }

  .country-map-section {
    width: calc(100vw - 40px);
  }

  .country-map-inner {
    aspect-ratio: 1.2 / 1;
  }

  .country-insight-section {
    padding-left: 14px;
  }

  .country-insight-section h2 {
    max-width: 22ch;
    font-size: 21px;
  }

  .country-insight-section p {
    font-size: 13px;
  }

  .catalog-map-cta {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px;
    transform: none;
  }

}

@media (max-width: 420px) {
  .catalog-index-country-links {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .catalog-index-masonry {
    column-count: 2;
  }

  .city-index-grid {
    column-count: 2;
  }
}

/* ─── Footer ───────────────────────────────────── */

/* Legal and payment policy pages */

body.legal-page {
  color: #111;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

.legal-main {
  min-height: 100vh;
  background: #e1e1e1;
}

.legal-hero {
  min-height: 430px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  background: #111410;
  color: #fff;
}

.legal-hero-inner {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: 190px 0 72px;
  box-sizing: border-box;
}

.legal-eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.legal-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 500;
}

.legal-intro {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

.legal-layout {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: 58px 0 96px;
  display: grid;
  grid-template-columns: minmax(188px, 244px) minmax(0, 780px);
  gap: 64px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 112px;
  padding-top: 8px;
}

.legal-sidebar-title {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.44);
}

.legal-sidebar-links {
  display: grid;
  gap: 7px;
}

.legal-sidebar-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.54);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
}

.legal-sidebar-links a:hover,
.legal-sidebar-links a:focus-visible,
.legal-sidebar-links a[aria-current="page"] {
  color: rgba(0,0,0,0.9);
}

.legal-document {
  box-sizing: border-box;
  padding: 44px 48px 50px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.64);
  box-shadow: 0 20px 70px rgba(0,0,0,0.06);
}

.legal-updated {
  margin-bottom: 30px;
  color: rgba(0,0,0,0.44);
  font-size: 13px;
  line-height: 1.4;
}

.legal-summary {
  display: grid;
  gap: 0;
  margin: 0 0 34px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.legal-summary div {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.legal-summary dt,
.legal-summary dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.legal-summary dt {
  color: rgba(0,0,0,0.48);
}

.legal-summary dd {
  color: rgba(0,0,0,0.82);
  font-weight: 500;
}

.legal-notice {
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  background: rgba(244,244,241,0.72);
}

.legal-notice p {
  margin: 0;
  color: rgba(0,0,0,0.68);
  font-size: 14px;
  line-height: 1.55;
}

.legal-notice p + p {
  margin-top: 10px;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 38px;
}

.legal-card {
  display: grid;
  gap: 10px;
  min-height: 116px;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.62);
  color: rgba(0,0,0,0.82);
  text-decoration: none;
}

.legal-card:hover,
.legal-card:focus-visible {
  border-color: rgba(0,0,0,0.22);
}

.legal-card span {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.legal-card small {
  color: rgba(0,0,0,0.52);
  font-size: 13px;
  line-height: 1.45;
}

.legal-logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
}

.legal-logo-strip span {
  min-width: 132px;
  box-sizing: border-box;
  padding: 13px 18px;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  color: rgba(0,0,0,0.74);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.legal-section {
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.legal-section + .legal-section {
  margin-top: 32px;
}

.legal-section h2 {
  margin: 0 0 16px;
  color: rgba(0,0,0,0.88);
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 600;
}

.legal-section p,
.legal-section li {
  color: rgba(0,0,0,0.68);
  font-size: 16px;
  line-height: 1.65;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .legal-hero-inner,
  .legal-layout {
    width: calc(100% - 40px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 38px;
  }

  .legal-sidebar {
    position: relative;
    top: auto;
    padding: 0;
  }

  .legal-sidebar-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    min-height: 380px;
  }

  .legal-hero-inner {
    padding: 160px 0 48px;
  }

  .legal-hero h1 {
    font-size: 44px;
  }

  .legal-intro {
    font-size: 17px;
  }

  .legal-document {
    padding: 28px 22px 34px;
  }

  .legal-summary div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .legal-card-grid,
  .legal-sidebar-links {
    grid-template-columns: 1fr;
  }

  .legal-logo-strip span {
    width: 100%;
  }
}

.site-footer {
  position: relative;
  width: 100%;
  min-height: 460px;
  box-sizing: border-box;
  background: rgba(244,244,241,0.98);
  color: #111;
  font: 15px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.footer-inner {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: 58px 0 42px;
  min-height: 460px;
  box-sizing: border-box;
}

.footer-mark {
  display: block;
  width: 188px;
  height: auto;
}

.footer-kicker {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(0,0,0,0.78);
}

.footer-meta {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, minmax(132px, 1fr));
  gap: 42px;
  padding: 42px 0 38px;
}

.footer-small {
  display: grid;
  align-content: space-between;
  min-height: 132px;
  color: rgba(0,0,0,0.50);
}

.footer-list {
  display: grid;
  gap: 7px;
  color: rgba(0,0,0,0.48);
  font-size: 14px;
  line-height: 1.25;
}

.footer-list a {
  color: inherit;
  text-decoration: none;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: rgba(0,0,0,0.72);
}

.footer-legacy,
.footer-metrics {
  display: none;
}

.footer-legal {
  display: none;
}

@media (max-width: 760px) {
  .site-footer {
    min-height: 660px;
  }

  .footer-inner {
    width: calc(100% - 36px);
    min-height: 660px;
    padding-top: 36px;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    gap: 32px;
  }

}

/* ─── City viewer ──────────────────────────────────────────────────── */

html,
body {
  height: 100%;
}

.scroll-spacer {
  height: calc(400vh - 460px);
  pointer-events: none;
}

.compare {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #111;
  user-select: none;
  touch-action: none;
  cursor: default;
  --soft: 12%;
  --control-size: 34px;
  --dots-bg: transparent;
}

.image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  user-select: none;
}

.terrain {
  z-index: 1;
}

.city {
  z-index: 2;
}

.detail {
  z-index: 3;
  display: none;
  width: auto;
  height: auto;
  transform: translate(0, 0);
  object-fit: contain;
  will-change: transform;
}

.compare.detail-active {
  cursor: zoom-in;
}

.compare.detail-active .terrain,
.compare.detail-active .city {
  display: none;
}

.compare.detail-active .detail {
  display: block;
}

.dots {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  min-height: var(--control-size);
  box-sizing: border-box;
  background: var(--dots-bg);
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
}

.mode-toggle {
  display: none;
  position: fixed;
  transform: translateX(-50%);
  align-items: stretch;
  width: 146px;
  height: 22px;
  box-sizing: border-box;
  background: rgba(40, 40, 40, 0.72);
  border-radius: 999px;
  overflow: hidden;
  z-index: 5;
}

.mode-option {
  border: 0;
  width: 73px;
  height: 22px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.mode-option span {
  display: block;
  transform: translateY(-0.5px);
}

.mode-option.active {
  background: #fff;
  color: #111;
}

.mode-option:focus {
  outline: none;
}

.details-button {
  position: fixed;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 22px;
  box-sizing: border-box;
  background: rgba(40, 40, 40, 0.72);
  border-radius: 999px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.68);
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.details-button.active {
  background: #fff;
  color: #111;
}

.details-button:disabled {
  opacity: 0.34;
  cursor: default;
}

.details-button:focus {
  outline: none;
}

.details-button span {
  display: block;
  transform: translateY(-0.5px);
}

.product-cta-plate {
  right: 0;
  width: 184px;
  justify-content: center;
  border: 0;
  padding: 0 18px;
  appearance: none;
  -webkit-appearance: none;
  --plate-blur: 48px;
  background: rgba(255, 39, 86, 0.64);
  backdrop-filter: blur(var(--plate-blur)) saturate(0%) brightness(0.9) contrast(1.24);
  -webkit-backdrop-filter: blur(var(--plate-blur)) saturate(0%) brightness(0.9) contrast(1.24);
  color: #fff;
  cursor: pointer;
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
  overflow: hidden;
}

.product-cta-plate:focus {
  outline: none;
}

.product-cta-main,
.product-cta-price {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.24s ease;
  z-index: 2;
}

.product-cta-main {
  transform: translateY(0);
  opacity: 1;
}

.product-cta-price {
  gap: 6px;
  transform: translateY(-105%);
  opacity: 0;
  font-weight: 500;
}

.product-cta-price span {
  font-size: 0.75em;
  line-height: 0.9;
  font-weight: 250;
}

.product-cta-price strong {
  font-size: inherit;
  line-height: 0.9;
  font-weight: 500;
}

.product-cta-plate:hover .product-cta-main,
.product-cta-plate:focus-visible .product-cta-main {
  transform: translateY(105%);
  opacity: 0;
}

.product-cta-plate:hover .product-cta-price,
.product-cta-plate:focus-visible .product-cta-price {
  transform: translateY(0);
  opacity: 1;
}

.empty {
  color: #fff;
  font-size: 20px;
  opacity: 0.9;
}

.side-preview {
  position: fixed;
  top: 0;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  background: #111;
  pointer-events: none;
}

.side-preview.side-prev { left: 0; }

.side-img {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: blur(16px) brightness(0.85) saturate(0) contrast(1.4);
}

.side-preview.side-prev .side-img { right: 0; left: auto; }
.side-preview.side-next .side-img { left: 0; right: auto; }

.side-divider {
  position: fixed;
  top: 0;
  width: 1px;
  background: #000000;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.compare-inner {
  position: absolute;
  inset: 0;
}

@keyframes compareScaleIn {
  from { transform: scale(2); }
  to   { transform: scale(1); }
}

/* footer needs to clear fixed canvas layers on city viewer page */
.site-footer {
  z-index: 10;
}

@media (max-width: 760px) {
  .product-cta-plate {
    right: 18px;
    width: 180px;
    font-size: 15px;
  }
}
