/* ===== Мой Алматы — стили =====
   Палитра: ледник (глубокий сине-зелёный), снег, апорт (яблочно-красный, как линия метро),
   степь (золото), ель. Цвета меняются здесь, в :root. */

:root {
  --glacier: #0E3B4F;
  --glacier-2: #155A73;
  --snow: #F4F7F9;
  --aport: #C8102E;
  --steppe: #E2A33B;
  --spruce: #2E5E4E;
  --ink: #102029;

  --bg: var(--snow);
  --surface: #FFFFFF;
  --text: var(--ink);
  --muted: #55666F;
  --line: #D6E0E5;
  --accent: var(--aport);
  --on-accent: #fff;

  --m-walk: #7C8B93;
  --m-metro: #C8102E;
  --m-bus: #2E7D5B;
  --m-cablecar: #D08A12;
  --m-taxi: #1F6F8B;
  --m-tour: #1F6F8B;

  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 68px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1820;
    --surface: #10242E;
    --text: #E7EEF1;
    --muted: #93A6AF;
    --line: #20394500;
    --line: #23404C;
    --m-walk: #9AA8AF;
    --m-metro: #F0384F;
    --m-bus: #4CB585;
    --m-cablecar: #F0AE3C;
    --m-taxi: #4BA6C4;
    --m-tour: #4BA6C4;
  }
}

.lang-ar { --f-display: 'Noto Kufi Arabic', system-ui, sans-serif; --f-body: 'Noto Kufi Arabic', system-ui, sans-serif; }
.lang-zh { --f-display: 'Unbounded', 'Noto Sans SC', sans-serif; --f-body: 'Onest', 'Noto Sans SC', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; text-wrap: balance; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--steppe); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; top: 8px; left: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ----- кнопки ----- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-small { padding: .55em 1em; font-size: .92rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #A60D26; }
.btn-snow { background: var(--snow); color: var(--glacier); }
.btn-snow:hover { background: #fff; }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ----- шапка ----- */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.is-home .top { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; color: var(--snow); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .3s, color .3s; }
.is-home .top.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--text); border-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50% 50% 46% 46%;
  background: var(--aport);
  clip-path: polygon(0 100%, 30% 38%, 45% 58%, 66% 18%, 100% 100%);
  border-radius: 0;
}
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: .45em .9em; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav a[aria-current="page"] { background: color-mix(in srgb, currentColor 14%, transparent); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: .45em .7em; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px rgba(8, 30, 40, .45);
}
.lang li a { display: block; padding: .5em .8em; border-radius: var(--r-sm); text-decoration: none; }
.lang li a:hover { background: color-mix(in srgb, var(--glacier) 10%, transparent); }
.lang li a[aria-current="true"] { font-weight: 700; color: var(--accent); }

.tabbar { display: none; }
@media (max-width: 760px) {
  .top { gap: 10px; }
  .top .nav { display: none; }
  .tabbar {
    display: flex; justify-content: space-around; gap: 4px;
    position: fixed; z-index: 60;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); box-shadow: 0 12px 30px -14px rgba(8, 30, 40, .5);
  }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; padding: .6em .5em; border-radius: 999px; font-weight: 500; font-size: .95rem; }
  .tabbar a[aria-current="page"] { background: color-mix(in srgb, var(--glacier) 14%, transparent); }
  .top-actions { margin-inline-start: auto; }
  .brand { font-size: .95rem; }
  .hero-ribbon { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) { .top .btn-small { display: none; } }
@media (prefers-color-scheme: dark) { .map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6); } }

/* ----- главный экран ----- */
.hero {
  position: relative; min-height: 100svh; color: var(--snow);
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  background: var(--glacier);
}
.hero-media { position: absolute; inset: 0; }
.hero-media .art, .hero-media { width: 100%; height: 100%; object-fit: cover; }
.hero-media .art { animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 100%; }
@keyframes rise { from { transform: scale(1.08) translateY(3%); opacity: .6; } to { transform: none; opacity: 1; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 42, .35) 0%, rgba(8, 30, 42, 0) 30%, rgba(8, 30, 42, .25) 55%, rgba(8, 30, 42, .92) 100%); }
.hero-content, .hero-ribbon, .place-hero-text { min-width: 0; }
.hero-content { position: relative; align-self: end; padding-top: calc(var(--head-h) + 40px); }
.hero h1 {
  font-size: clamp(2.6rem, 13vw, 11rem);
  line-height: .88; letter-spacing: -0.035em; margin-bottom: .22em;
  text-shadow: 0 2px 30px rgba(8, 30, 42, .25);
}
.lang-ar .hero h1, .lang-zh .hero h1 { line-height: 1.2; font-size: clamp(2.8rem, 8vw, 6.5rem); }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 34em; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-ribbon { position: relative; padding-top: 44px; padding-bottom: 36px; }
.ribbon-label { font-size: .92rem; opacity: .8; margin-bottom: 14px; }

/* лента-маршрут в стиле схемы метро */
.ribbon { list-style: none; margin: 0; padding: 0 0 6px; display: flex; overflow-x: auto; scrollbar-width: none; }
.ribbon::-webkit-scrollbar { display: none; }
.rib-seg { flex: 1 0 150px; display: grid; grid-template-rows: auto 18px auto; position: relative; }
.rib-stop { font-weight: 600; font-size: .92rem; padding-inline-end: 12px; padding-bottom: 8px; white-space: nowrap; }
.rib-line { position: relative; height: 8px; margin-top: 5px; border-radius: 999px; background: var(--seg); transform-origin: left center; animation: draw .7s cubic-bezier(.5, 0, .2, 1) both; animation-delay: calc(.6s + var(--i) * .35s); }
[dir="rtl"] .rib-line { transform-origin: right center; }
.rib-line::before { content: ''; position: absolute; inset-inline-start: -2px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; border-radius: 50%; background: var(--snow); border: 4px solid var(--glacier); }
.rib-mode { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; padding-top: 10px; opacity: .92; white-space: nowrap; padding-inline-end: 12px; }
.rib-end { flex: 0 0 auto; display: grid; grid-template-rows: auto 18px auto; }
.rib-dot { position: relative; height: 8px; margin-top: 5px; }
.rib-dot::before { content: ''; position: absolute; inset-inline-start: -4px; top: 50%; width: 26px; height: 26px; translate: 0 -50%; border-radius: 50%; background: var(--aport); border: 5px solid var(--snow); animation: pop .4s both; animation-delay: calc(.6s + var(--i) * .35s); }
.hero .m-walk { --seg: repeating-linear-gradient(90deg, #DDE7EC 0 8px, transparent 8px 14px); }
.m-metro { --seg: var(--m-metro); } .m-bus { --seg: var(--m-bus); } .m-cablecar { --seg: var(--m-cablecar); } .m-taxi, .m-tour { --seg: var(--m-taxi); }
.m-walk { --seg: repeating-linear-gradient(90deg, var(--m-walk) 0 8px, transparent 8px 14px); }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }

/* ----- секции ----- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.page-top { padding-top: clamp(32px, 6vw, 64px); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* ----- карточки мест (сетка разного размера) ----- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 28px 22px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none; }
.card-art { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.card-art .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-art .art { transform: scale(1.045); }
.card-body h3 { font-size: 1.2rem; margin-bottom: .35em; }
.card-body p { color: var(--muted); margin-bottom: .7em; font-size: .98rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 500; padding: .25em .65em .25em .5em; border-radius: 999px; color: var(--chip, var(--muted)); background: color-mix(in srgb, var(--chip, var(--muted)) 12%, transparent); }
.chip.m-metro { --chip: var(--m-metro); } .chip.m-bus { --chip: var(--m-bus); } .chip.m-cablecar { --chip: var(--m-cablecar); } .chip.m-taxi, .chip.m-tour { --chip: var(--m-taxi); }

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .card-lead { grid-column: span 2; grid-row: span 2; position: relative; color: var(--snow); }
  .card-lead .card-art { aspect-ratio: auto; height: 100%; min-height: 520px; border-radius: var(--r-lg); }
  .card-lead .card-body { position: absolute; inset: auto 0 0 0; padding: 32px; background: linear-gradient(0deg, rgba(8, 30, 42, .85), rgba(8, 30, 42, 0)); border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .card-lead h3 { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; }
  .card-lead p, .card-lead .time { color: var(--snow); }
  .card-lead .chip { color: var(--snow); background: rgba(255, 255, 255, .16); }
}

@media (min-width: 900px) {
  .card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 32px; }
  .card-wide .card-art { flex: 0 0 50%; aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
  .card-wide h3 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
  .card-wide .card-body p { font-size: 1.08rem; }
}
.next-place .card-wide { flex-direction: column; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { border: 1.5px solid var(--line); background: transparent; padding: .5em 1.05em; border-radius: 999px; cursor: pointer; font-weight: 500; }
.filter[aria-pressed="true"] { background: var(--glacier); border-color: var(--glacier); color: var(--snow); }

/* ----- карта ----- */
.section-map { background: color-mix(in srgb, var(--glacier) 7%, var(--bg)); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.6fr; } }
.map { height: 440px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); isolation: isolate; }
.place-route .map { height: 300px; border-radius: var(--r-md); margin: 18px 0; }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); }
.leaflet-popup-content { margin: 14px 16px; font-size: .95rem; line-height: 1.45; }
.leaflet-popup-content img { width: 220px; height: 140px; object-fit: cover; border-radius: var(--r-sm); margin-top: 8px; }
.leaflet-popup-content a { color: var(--accent); font-weight: 600; }
.pin { display: grid; place-items: center; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(8, 30, 42, .35); }
.pin-home { background: var(--glacier); width: 34px !important; height: 34px !important; color: #fff; }
.pin-place { background: var(--aport); }
.pin-stop { background: #fff; border: 4px solid var(--glacier); box-shadow: none; }
.map-tip { font-weight: 600; }

.map-page { display: grid; grid-template-columns: 360px 1fr; height: calc(100svh - var(--head-h)); }
.map-side { padding: 28px var(--gutter); overflow-y: auto; border-inline-end: 1px solid var(--line); }
.map-side h1 { font-size: 1.8rem; }
.map-list { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.map-item { display: flex; justify-content: space-between; gap: 12px; text-align: start; border: 1.5px solid transparent; background: var(--surface); padding: .75em 1em; border-radius: var(--r-sm); cursor: pointer; }
.map-item:hover { border-color: var(--line); }
.map-item[aria-pressed="true"] { border-color: var(--aport); }
.map-item .time { white-space: nowrap; color: var(--muted); font-weight: 500; }
.map-big { height: 100%; border-radius: 0; }
@media (max-width: 860px) {
  .map-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
  .map-side { border: 0; padding-bottom: 12px; }
  .map-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .map-item { flex: none; }
  .map-big { height: 70svh; }
}

/* ----- бронирование ----- */
.book { display: grid; gap: 18px; }
@media (min-width: 700px) { .book { grid-template-columns: repeat(3, 1fr); } .book-direct { grid-column: 1 / -1; } }
.book article { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.book article p { flex: 1; }
.book-direct { background: var(--glacier); color: var(--snow); }
.book-direct .price { flex: 0; font-size: 1.05rem; margin-bottom: .6em; }
.book-direct .price strong { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; display: inline-block; margin-inline: .1em; }
.price-per, .price-from { opacity: .8; }
.book-platform { border: 1.5px solid var(--line); background: var(--surface); }
.book h3 { font-size: 1.25rem; font-weight: 700; }
.book-platform .btn { white-space: nowrap; }
.legal { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px 22px; border-radius: var(--r-md); background: color-mix(in srgb, var(--steppe) 16%, transparent); }
.legal .ico { width: 26px; height: 26px; color: var(--spruce); margin-top: 2px; }
.legal p { margin: .2em 0 0; color: var(--muted); }

/* ----- страница места ----- */
.place-hero { position: relative; min-height: 64svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; color: var(--snow); overflow: hidden; background: var(--glacier); }
.place-art, .place-art .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 42, 0) 35%, rgba(8, 30, 42, .9)); }
.place-hero-text { position: relative; z-index: 1; padding-bottom: 40px; padding-top: 80px; }
.place-hero h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); letter-spacing: -0.03em; }
.place-hero .time { color: var(--snow); }
.place-hero .chip { color: var(--snow); background: rgba(255, 255, 255, .16); }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 500; opacity: .9; margin-bottom: 18px; }
[dir="rtl"] .back .ico, [dir="rtl"] .lb-prev .ico, [dir="rtl"] .lb-next .ico { transform: scaleX(-1); }
.place-layout { display: grid; gap: 48px; padding-block: 56px; }
@media (min-width: 960px) { .place-layout { grid-template-columns: 1fr 420px; } .place-route { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; } }
.prose { font-size: 1.15rem; max-width: 38em; }
.tip { border-inline-start: 4px solid var(--steppe); padding: 6px 0 6px 18px; margin: 28px 0; }
.place-route { background: var(--surface); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); }
.place-route h2 { font-size: 1.4rem; }
.route-total { margin: 18px 0 4px; }
.navapps { display: flex; flex-wrap: wrap; gap: 8px; }
.next-place { padding-top: 0; max-width: 560px; margin-inline: auto; }

/* вертикальный маршрут */
.route { list-style: none; margin: 18px 0 0; padding: 0; }
.route-stop { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.route-stop .dot { width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--glacier); background: var(--surface); margin-top: 1px; }
.route-stop.is-end .dot { border-color: var(--aport); background: var(--aport); box-shadow: inset 0 0 0 3px var(--surface); }
.route-stop p { margin: .2em 0 0; color: var(--muted); font-size: .92rem; }
.route-stop img { margin-top: 10px; border-radius: var(--r-sm); width: 100%; max-height: 180px; object-fit: cover; }
.route-seg { display: grid; grid-template-columns: 22px 1fr; gap: 14px; min-height: 58px; }
.route-seg .bar { width: 8px; justify-self: center; border-radius: 999px; background: var(--seg); margin-block: 3px; }
.route-seg.m-walk .bar { background: repeating-linear-gradient(180deg, var(--m-walk) 0 7px, transparent 7px 12px); }
.seg-label { align-self: center; display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); }
.seg-time { margin-inline-start: auto; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* галерея и видео */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 36px; }
.g-item { padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.videos { display: grid; gap: 14px; }
.yt { position: relative; padding: 0; border: 0; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--aport); color: #fff; display: grid; place-items: center; }
.yt-play .ico { width: 34px; height: 34px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 14, 20, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-sm); }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 16px; top: 50%; }
.lb-next { inset-inline-end: 16px; top: 50%; }

/* ----- квартира ----- */
.apt-head { display: grid; gap: 32px; align-items: center; margin-bottom: 40px; }
@media (min-width: 900px) { .apt-head { grid-template-columns: 1fr 1.2fr; } }
.apt-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.apt-art .art { width: 100%; height: 100%; }
.apt-hero { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; }
.apt-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-note { position: absolute; inset-inline-start: 16px; bottom: 16px; background: rgba(8, 30, 42, .7); color: #fff; padding: .35em .8em; border-radius: 999px; font-size: .85rem; }
.features { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.features li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.features .ico { color: var(--spruce); }
.page-top > h2 { font-size: 1.6rem; margin-top: 8px; }
.page-top .book { margin-bottom: 0; }
.page-top .legal { margin-bottom: 48px; }

/* ----- подвал ----- */
.contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.contacts a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.foot { background: var(--glacier); color: var(--snow); padding-block: 56px; margin-top: 40px; }
.foot-inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .muted { color: #A9C2CD; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.foot-h { font-weight: 600; margin-bottom: .8em; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; }
.foot-langs a { text-decoration: none; opacity: .85; }
.foot-langs a:hover { opacity: 1; text-decoration: underline; }
.chooser { display: grid; place-items: center; min-height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ----- базовые стили карты Leaflet (страховка, если стили с CDN не загрузились) ----- */
.leaflet-container { overflow: hidden; position: relative; -webkit-tap-highlight-color: transparent; outline-offset: 1px; }
.leaflet-pane, .leaflet-control-container { direction: ltr; }
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container,
.leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container img, .leaflet-container svg:not(.ico) { max-width: none !important; max-height: none !important; }
.leaflet-container img.leaflet-tile { width: 256px; height: 256px; }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow { user-select: none; -webkit-user-select: none; }
.leaflet-tile { visibility: hidden; } .leaflet-tile-loaded { visibility: inherit; }
.leaflet-pane { z-index: 400; } .leaflet-tile-pane { z-index: 200; } .leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; } .leaflet-marker-pane { z-index: 600; } .leaflet-tooltip-pane { z-index: 650; } .leaflet-popup-pane { z-index: 700; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.leaflet-interactive { cursor: pointer; }
.leaflet-pane > svg path { pointer-events: none; } .leaflet-pane > svg path.leaflet-interactive { pointer-events: auto; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-right { right: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; } .leaflet-bottom .leaflet-control { margin-bottom: 0; }
.leaflet-left .leaflet-control { margin-left: 10px; } .leaflet-right .leaflet-control { margin-right: 0; }
.leaflet-bar { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(8, 30, 42, .25); }
.leaflet-bar a { display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; text-decoration: none; background: #fff; color: #102029; font: 700 18px/34px system-ui, sans-serif; border-bottom: 1px solid #DCE4E8; }
.leaflet-bar a:last-child { border-bottom: 0; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .8); color: #333; font-size: 11px; padding: 0 6px; margin: 0; }
.leaflet-control-attribution a { color: #0E3B4F; }
.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper { padding: 1px; text-align: start; background: #fff; color: #102029; box-shadow: 0 8px 24px rgba(8, 30, 42, .3); }
.leaflet-popup-tip-container { width: 40px; height: 20px; position: absolute; left: 50%; margin-top: -1px; margin-left: -20px; overflow: hidden; pointer-events: none; }
.leaflet-popup-tip { width: 17px; height: 17px; padding: 1px; margin: -10px auto 0; transform: rotate(45deg); background: #fff; }
.leaflet-container a.leaflet-popup-close-button { position: absolute; top: 2px; right: 4px; width: 24px; height: 24px; font: 18px/24px system-ui, sans-serif; color: #6B7B83; text-decoration: none; text-align: center; }
.leaflet-tooltip { position: absolute; padding: 4px 8px; background: #fff; color: #102029; border-radius: 6px; white-space: nowrap; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: .85rem; }
.leaflet-tooltip-top { margin-top: -6px; } .leaflet-tooltip-bottom { margin-top: 6px; }
.leaflet-tooltip-left { margin-left: -6px; } .leaflet-tooltip-right { margin-left: 6px; }

/* ----- мозаика фото и видео места ----- */
.mosaic-section { padding-top: 0; padding-bottom: 40px; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mo-item { position: relative; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--glacier); max-width: 100%; }
.mo-item img, .mo-item video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mo-item:hover img, .mo-item:hover video { transform: scale(1.03); }
.mo-tall { aspect-ratio: 9 / 16; }
.mo-wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.mo-badge { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 30, 42, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mo-badge .ico { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mo-wide { aspect-ratio: 16 / 10; }
}
.lightbox video { max-width: 92vw; max-height: 86vh; border-radius: var(--r-sm); background: #000; }

/* ----- переход к соседнему месту внизу страницы места ----- */
.place-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 8px 56px; }
.place-nav a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pn-all { color: var(--muted); font-weight: 500; }
.pn-all:hover { color: var(--text); }
.pn-next { flex-direction: column; align-items: flex-end !important; gap: 2px !important; text-align: end; margin-inline-start: auto; }
.pn-label { font-size: .85rem; color: var(--muted); }
.pn-name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.pn-next:hover .pn-name { color: var(--accent); }
[dir="rtl"] .place-nav .ico { transform: scaleX(-1); }

/* ----- подписи к фото и видео ----- */
.mo-cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 44px 16px 14px; text-align: start;
  color: #fff; font-size: .92rem; font-weight: 500; line-height: 1.35;
  background: linear-gradient(0deg, rgba(8, 30, 42, .82) 0%, rgba(8, 30, 42, .45) 55%, rgba(8, 30, 42, 0) 100%);
  pointer-events: none;
}
.mo-cap > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 3px solid #fff; background: var(--aport); }
.mo-wide .mo-cap { font-size: 1.02rem; padding: 64px 22px 18px; }
.is-video .mo-badge { bottom: auto; top: 12px; }
.lb-cap {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  max-width: min(680px, 88vw); margin: 0; padding: 10px 16px;
  background: rgba(8, 30, 42, .72); color: #fff; border-radius: 12px; text-align: center; font-size: .98rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lb-cap[hidden] { display: none; }
@media (max-width: 760px) {
  .mo-tall .mo-cap { font-size: .82rem; padding: 36px 10px 10px; gap: 7px; }
  .mo-tall .mo-dot { width: 10px; height: 10px; border-width: 2px; }
}
[hidden] { display: none !important; }
.lightbox img, .lightbox video { max-height: 78vh; }

/* ----- флаги в переключателе языков ----- */
.flag { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16, 32, 41, .14); overflow: hidden; }
.lang li a { display: flex; align-items: center; gap: 10px; }

/* ----- формы плиток мозаики ----- */
.mosaic { grid-auto-flow: dense; }
.mo-tall { aspect-ratio: 3 / 5; }
.mo-portrait { grid-column: span 2; aspect-ratio: 6 / 5; }
.mo-land { grid-column: span 2; aspect-ratio: 6 / 5; }
.mo-wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (min-width: 761px) { .mo-portrait { aspect-ratio: 6 / 5; } }
@media (max-width: 760px) {
  .mo-land, .mo-portrait { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .mo-portrait { aspect-ratio: 4 / 5; }
}
.lb-cap { white-space: pre-line; }

/* подразделы места (например, Кольсай и Каинды) */
.sub-place { padding-top: 8px; }
.sub-head { display: flex; align-items: center; gap: 12px; }
.sub-head .mo-dot { width: 18px; height: 18px; margin: 0; border: 4px solid var(--glacier); background: var(--aport); }
.sub-head h2 { margin: 0; }
.sub-text { max-width: 44em; color: var(--muted); font-size: 1.08rem; margin: 14px 0 24px; }

/* ----- страница «О городе» ----- */
.city-hero { min-height: 70svh; }
.city-hero h1 { font-size: clamp(3rem, 10vw, 8rem); letter-spacing: -0.035em; }
.city-layout { display: grid; gap: 40px; padding-block: 56px 24px; }
@media (min-width: 960px) { .city-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.city-intro p { margin-bottom: 1.1em; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; }
.facts h2 { font-size: 1.35rem; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts dt { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.facts dt::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--glacier); background: var(--surface); flex: none; }
.facts dd { margin: 4px 0 0 18px; color: var(--muted); }
[dir="rtl"] .facts dd { margin: 4px 18px 0 0; }
.city-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 64px; }
.mo-portrait { aspect-ratio: 4 / 5; }
@media (min-width: 761px) { .mo-portrait { aspect-ratio: 4 / 5; } .mosaic-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mosaic-3 .mo-item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; } }

/* ----- черновик: пометка фото, которые нужно заменить ----- */
.needs-replace { outline: 4px dashed #FFD400; outline-offset: -4px; }
.replace-tag {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3;
  background: #FFD400; color: #111; font: 700 .78rem/1.2 system-ui, sans-serif;
  padding: 5px 9px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); pointer-events: none;
}
.place-art .replace-hero { position: absolute; top: calc(var(--head-h) + 12px); inset-inline-end: 16px; inset-inline-start: auto; font-size: .95rem; padding: 8px 12px; outline: 3px dashed #111; }

/* последний ряд карточек мест: две карточки по половине ширины */
@media (min-width: 900px) {
  .card-half { grid-column: span 2; }
  .card-half .card-art { aspect-ratio: 2 / 1; }
}

/* Значки платформ бронирования: нейтральные иконки в фирменных тонах */
.book-platform { position: relative; overflow: hidden; }
.book-platform::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--bp, var(--accent)); }
.bp-booking { --bp: #1F4FA8; --bp-soft: #E6EEFB; }
.bp-airbnb { --bp: #E8505B; --bp-soft: #FDEBEC; }
.bp-sutochno { --bp: #E07B1A; --bp-soft: #FDF0E2; }
.book-platform h3 { display: flex; align-items: center; gap: 12px; }
.bp-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bp-soft); color: var(--bp); }
.bp-ico .ico { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bp-booking { --bp: #7FA6F0; --bp-soft: rgba(127,166,240,.16); } :root:not([data-theme="light"]) .bp-airbnb { --bp: #FF8A92; --bp-soft: rgba(255,138,146,.16); } :root:not([data-theme="light"]) .bp-sutochno { --bp: #F5A65B; --bp-soft: rgba(245,166,91,.16); } }
[dir="rtl"] .book-platform h3 { flex-direction: row; }

/* Маршрут под фото, ссылка на него в шапке места */
.place-layout-single { grid-template-columns: minmax(0, 1fr) !important; padding-bottom: 8px; }
.place-layout-single .place-main { max-width: 760px; }
.place-route-sec { padding-block: 40px 8px; scroll-margin-top: calc(var(--head-h) + 12px); }
.place-route-sec .place-route { position: static; }
@media (min-width: 960px) {
  .place-route-sec .place-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 40px; align-items: start; }
  .place-route-sec .place-route > * { grid-column: 1; }
  .place-route-sec .place-route > .map { grid-column: 2; grid-row: 1 / span 6; height: 100%; min-height: 380px; margin: 0; }
}
.route-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.route-link .ico { width: 18px; height: 18px; }
.route-link:hover { opacity: .85; }
/* Контакты в тёмной карточке бронирования */
.book-contacts .contacts { gap: 14px; margin-top: 6px; }
.book-contacts .contacts a { color: var(--snow); font-size: 1.1rem; }
.book-contacts .contacts .ico { width: 22px; height: 22px; }

/* Полоса маршрутов в шапке главной: места сменяют друг друга */
.hero-ribbon[data-rotate] { display: grid; }
.ribbon-slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.ribbon-slide.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.ribbon-label strong { font-weight: 700; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ribbon-slide { transition: none; } }

.c-num { opacity: .75; margin-inline-start: 2px; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.c-num::before { content: '·'; margin-inline-end: 6px; }

/* ----- мировые рекорды ----- */
.medal { display: inline-block; width: 22px; height: 26px; flex: none; line-height: 0; }
.medal svg { width: 100%; height: 100%; overflow: visible; }
.medal .m-ribbon { fill: #C8102E; }
.medal text { font: 700 15px/1 var(--f-display, sans-serif); }
.medal-1 .m-disc { fill: #E9B949; } .medal-1 .m-ring { fill: none; stroke: #FFF1B8; stroke-width: 1.6; } .medal-1 text { fill: #6B4A08; }
.medal-2 .m-disc { fill: #C3CCD5; } .medal-2 .m-ring { fill: none; stroke: #F4F7FA; stroke-width: 1.6; } .medal-2 text { fill: #3D4A57; }
.medal-3 .m-disc { fill: #D59A6A; } .medal-3 .m-ring { fill: none; stroke: #F6DCC4; stroke-width: 1.6; } .medal-3 text { fill: #5A3214; }
.medal-big { width: 56px; height: 67px; }
.card-art { position: relative; }
.rec-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 7px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #3A2A05; background: linear-gradient(135deg, #FFF3C4, #F2CD5C); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.rec-badge.rec-2 { color: #26313C; background: linear-gradient(135deg, #FFFFFF, #CBD3DB); }
[dir="rtl"] .rec-badge { left: auto; right: 12px; padding: 5px 7px 5px 12px; }
.filter-rec { display: inline-flex; align-items: center; gap: 6px; }
.filter-rec .medal { width: 16px; height: 19px; }
.rec-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #3A2A05; background: linear-gradient(135deg, #FFF3C4, #F2CD5C); }
.rec-2 .rec-pill { color: #26313C; background: linear-gradient(135deg, #FFFFFF, #CBD3DB); }
.rec-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .rec-grid { grid-template-columns: repeat(3, 1fr); } }
.rec-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border-radius: var(--r-lg); text-decoration: none; color: var(--snow); background: radial-gradient(120% 90% at 100% 0%, rgba(242,205,92,.28), transparent 60%), var(--glacier); overflow: hidden; transition: transform .2s ease; }
.rec-card.rec-2 { background: radial-gradient(120% 90% at 100% 0%, rgba(203,211,219,.32), transparent 60%), var(--glacier); }
.rec-card:hover { transform: translateY(-3px); }
.rec-title { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.25; }
.rec-place { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; opacity: .85; font-weight: 600; }
.rec-place .ico { width: 18px; height: 18px; }
.record-sec { padding-block: 8px 24px; scroll-margin-top: calc(var(--head-h) + 12px); }
.record { display: flex; gap: 22px; align-items: flex-start; padding: 28px; border-radius: var(--r-lg); border: 1.5px solid #EBCB6A; background: linear-gradient(135deg, #FFF8DE, #FFFFFF 60%); }
.record.rec-2 { border-color: #C9D2DB; background: linear-gradient(135deg, #F1F4F7, #FFFFFF 60%); }
.record-body { min-width: 0; }
.record h2 { margin: 10px 0 8px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.record p { margin: 0 0 12px; }
.rec-facts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.rec-facts li { display: flex; gap: 10px; align-items: flex-start; }
.rec-facts .ico { width: 20px; height: 20px; flex: none; color: #B88A12; margin-top: 2px; }
.rec-2 .rec-facts .ico { color: #6E7D8C; }
.rec-src { font-size: .88rem; color: var(--muted); }
@media (max-width: 560px) { .record { flex-direction: column; padding: 22px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .record { background: linear-gradient(135deg, rgba(242,205,92,.12), transparent 60%), var(--surface); border-color: rgba(235,203,106,.5); } :root:not([data-theme="light"]) .record.rec-2 { background: linear-gradient(135deg, rgba(203,211,219,.12), transparent 60%), var(--surface); border-color: rgba(201,210,219,.45); } }

.btn-gold { color: #3A2A05; background: linear-gradient(135deg, #FFF3C4, #F2CD5C); border-color: transparent; gap: 8px; }
.btn-gold:hover { filter: brightness(1.04); }
.btn-gold .medal { width: 18px; height: 22px; }
.rec-section { scroll-margin-top: var(--head-h); }

.apt-hero { position: relative; }
.apt-hero .mo-cap { text-align: start; }

/* большая плитка 2×2 (для галерей с нечётным числом вертикальных кадров) */
.mo-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .mo-big { grid-row: auto; aspect-ratio: 4 / 5; } }
.site-link { margin: 14px 0 0; }
.mo-big video, .mo-big img { position: absolute; inset: 0; }
@media (max-width: 760px) { .mo-big video, .mo-big img { position: static; } }

/* ----- локации: места рядом, которые удобно посмотреть за один день ----- */
.loc-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--loc, var(--glacier)); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .8rem; flex: none; }
.loc-num-big { width: 52px; height: 52px; font-size: 1.35rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--loc) 16%, transparent); }
.loc-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--loc, var(--muted)); font-weight: 600; font-size: .9rem; }
.loc-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--loc); text-decoration: none; }
.loc-go .ico { width: 16px; height: 16px; }
[dir="rtl"] .loc-go .ico { transform: scaleX(-1); }

.loc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.loc-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.loc-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--loc); }
.loc-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(8, 30, 40, .45); }
.loc-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.loc-thumbs { display: flex; padding-inline-start: 8px; margin-bottom: 4px; }
.loc-thumb { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; margin-inline-start: -10px; border: 3px solid var(--surface); background: var(--line); box-shadow: 0 4px 12px -6px rgba(8, 30, 40, .4); }
.loc-thumb .art, .loc-stop-art .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-chain { margin: 0; color: var(--muted); line-height: 1.55; }
.loc-arrow { color: var(--loc); font-weight: 700; margin: 0 2px; }
[dir="rtl"] .loc-arrow { display: inline-block; transform: scaleX(-1); }
.loc-card .loc-go { margin-top: auto; padding-top: 6px; }
.loc-all { margin: 22px 0 0; }

.loc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; }
.loc-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; }
.loc-jump a:hover { border-color: var(--loc); }
.loc-block { padding: 30px clamp(18px, 3vw, 36px) 34px; margin-bottom: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--loc); scroll-margin-top: calc(var(--head-h) + 16px); }
.loc-head { display: flex; align-items: center; gap: 18px; }
.loc-head h2 { margin: 2px 0 0; }
.loc-text { max-width: 46em; font-size: 1.08rem; margin: 18px 0 10px; }
.loc-from { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0 0 22px; }
.loc-from .ico { width: 18px; height: 18px; color: var(--loc); }
.loc-path { display: flex; align-items: stretch; gap: 0; }
.loc-stop { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); max-width: 380px; }
.loc-stop-art { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.loc-stop:hover .loc-stop-art .art { transform: scale(1.04); }
.loc-stop-art .art { transition: transform .5s; }
.loc-stop-n { position: absolute; top: 10px; inset-inline-start: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--loc); color: #fff; font-weight: 700; font-family: var(--f-display); font-size: .85rem; }
.loc-stop strong { font-size: 1.05rem; margin-top: 4px; }
.loc-stop-sum { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.loc-hop { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 8px 70px; text-align: center; font-size: .85rem; color: var(--muted); position: relative; }
.loc-hop::before { content: ''; position: absolute; top: 34%; left: 10px; right: 10px; border-top: 3px dotted var(--loc); }
.loc-hop-ico { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--loc); color: var(--loc); margin-bottom: 4px; }
.loc-hop-ico .ico { width: 20px; height: 20px; }
.loc-hop-t { font-weight: 600; color: var(--text); }
.loc-hop > span:not(.loc-hop-ico) { position: relative; z-index: 1; background: var(--surface); padding: 0 4px; }
@media (max-width: 760px) {
  .loc-path { flex-direction: column; }
  .loc-stop { max-width: none; }
  .loc-hop { flex: none; flex-direction: row; justify-content: flex-start; padding: 12px 0 12px 14px; gap: 10px; }
  [dir="rtl"] .loc-hop { padding: 12px 14px 12px 0; }
  .loc-hop::before { top: 0; bottom: 0; left: 33px; right: auto; border-top: 0; border-left: 3px dotted var(--loc); }
  [dir="rtl"] .loc-hop::before { left: auto; right: 33px; border-left: 0; border-right: 3px dotted var(--loc); }
  .loc-hop-ico { margin: 0; }
  .loc-head { gap: 14px; }
  .loc-num-big { width: 44px; height: 44px; font-size: 1.15rem; }
}

.loc-note { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0 8px; padding: 18px 20px; border-radius: var(--r-md); background: color-mix(in srgb, var(--loc) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--loc) 28%, var(--line)); }
.loc-note strong { display: block; font-size: 1.08rem; margin: 2px 0 4px; }
.loc-note p { margin: 0 0 6px; }
.loc-note p a { color: var(--text); font-weight: 600; }

/* в нижнем меню телефона теперь 5 пунктов */
@media (max-width: 760px) { .tabbar a { font-size: .8rem; padding: .6em .25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.btn-loc { gap: 8px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-loc:hover { background: rgba(255, 255, 255, .26); }
.btn-loc .ico { width: 18px; height: 18px; }
@media (max-width: 760px) { .hero-cta { gap: 8px; margin-top: 20px; } .hero-cta .btn { font-size: .95rem; padding: .65em 1.1em; } }

/* ----- Welcome Book ----- */
.glyph { width: 22px; height: 22px; flex: none; }
.btn-wb { gap: 8px; color: #fff; background: linear-gradient(135deg, #2B8FB0, #1F6F8B); border-color: transparent; }
.btn-wb:hover { filter: brightness(1.06); }
.btn-wb .glyph { width: 19px; height: 19px; }
.wb-apt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 22px; }

.wb-hero { position: relative; overflow: hidden; padding: calc(var(--head-h) + 44px) 0 40px; background: radial-gradient(120% 90% at 85% 0%, #D7ECF4 0%, transparent 60%), radial-gradient(90% 80% at 0% 100%, #FBE6CF 0%, transparent 60%), var(--bg); }
.wb-hero::after { content: ''; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 340px; height: 340px; border-radius: 50%; border: 36px solid color-mix(in srgb, #2B8FB0 10%, transparent); pointer-events: none; }
.wb-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #1F6F8B; font-weight: 600; }
.wb-hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.wb-sub { max-width: 40em; font-size: 1.12rem; color: var(--muted); margin: 0 0 26px; }
.wb-quick { position: relative; z-index: 1; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
@media (max-width: 760px) { .wb-quick { grid-template-columns: 1fr 1fr; gap: 8px; } .wb-q { padding: 10px 12px; gap: 8px; } .wb-q .glyph { width: 32px; height: 32px; padding: 7px; } .wb-q strong { font-size: .9rem; } }
.wb-q { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 26px -20px rgba(8, 30, 40, .45); }
.wb-q .glyph { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #E3F1F6; color: #1F6F8B; }
.wb-q span { display: flex; flex-direction: column; line-height: 1.25; }
.wb-q small { color: var(--muted); font-size: .82rem; }
.wb-q strong { font-size: 1rem; }

.wb-jump { display: flex; gap: 8px; overflow-x: auto; padding-block: 18px 6px; scrollbar-width: none; }
.wb-jump::-webkit-scrollbar { display: none; }
.wb-jump a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap; }
.wb-jump a .glyph { width: 17px; height: 17px; color: #1F6F8B; }

.wb-grid { display: grid; gap: 16px; padding-block: 18px 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; }
.wb-card { padding: 22px 24px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
.wb-contacts, .wb-safety { grid-column: 1 / -1; }
.wb-h { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 0 0 14px; }
.wb-h .glyph { width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: #E3F1F6; color: #1F6F8B; }
.wb-h-big { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.wb-accent { background: #FFF3F1; border-color: #F3C9C2; }
.wb-accent .wb-h .glyph { background: #FBD9D4; color: var(--aport); }
.wb-rows { margin: 0; display: grid; gap: 0; }
.wb-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); }
.wb-rows div:first-child { border-top: 0; }
.wb-rows dt { color: var(--muted); }
.wb-rows dd { margin: 0; font-weight: 600; text-align: end; white-space: nowrap; }
.wb-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wb-list li { position: relative; padding-inline-start: 22px; }
.wb-list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid #2B8FB0; }
.wb-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.wb-steps li { counter-increment: s; position: relative; padding-inline-start: 40px; min-height: 28px; }
.wb-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1F6F8B; color: #fff; font-weight: 700; font-size: .85rem; font-family: var(--f-display); }

.wb-people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.wb-person { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px; border-radius: var(--r-md); background: #F3F8FA; }
.wb-ava .glyph { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: var(--surface); color: #1F6F8B; }
.wb-person strong { display: block; font-size: 1.1rem; }
.wb-num { color: var(--text); text-decoration: none; font-weight: 500; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.wb-act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .88rem; color: #fff; }
.wb-act .ico, .wb-act .glyph { width: 17px; height: 17px; }
.wb-act.wa { background: #25A55F; }
.wb-act.tg { background: #2A9FD8; }
.wb-act.call { background: var(--glacier); }
.wb-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; color: var(--muted); }
.wb-note .glyph { color: #1F6F8B; margin-top: 2px; }

.wb-safety { background: linear-gradient(135deg, #FFF6F4, var(--surface)); }
.wb-safety .wb-h .glyph { background: #FBD9D4; color: var(--aport); }
.wb-sos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 10px; }
.wb-sos a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid #F3C9C2; text-decoration: none; color: var(--text); }
.wb-sos strong { font-family: var(--f-display); font-size: 1.7rem; color: var(--aport); line-height: 1.1; }
.wb-sos span { font-size: .9rem; color: var(--muted); }

.wb-map-sec { padding-bottom: 36px; scroll-margin-top: calc(var(--head-h) + 16px); }
.wb-map-wrap { display: grid; gap: 16px; }
@media (min-width: 960px) { .wb-map-wrap { grid-template-columns: 1fr 340px; align-items: start; } }
.wb-map { height: 480px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #E6EEF1; z-index: 0; }
@media (max-width: 760px) { .wb-map { height: 380px; } }
.wb-legend { display: grid; gap: 14px; }
.wb-leg-group { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--c); }
.wb-leg-cat { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; color: var(--c); }
.wb-leg-cat .glyph { width: 20px; height: 20px; }
.wb-leg-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 6px 0; border: 0; border-top: 1px dashed var(--line); background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.wb-leg-item:hover span { color: var(--c); }
.wb-leg-item small { color: var(--muted); white-space: nowrap; }
.wb-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(8, 30, 42, .35); }
.wb-pin .glyph { width: 17px; height: 17px; }
.wb-pin-home span { width: 40px; height: 40px; margin: -3px; box-shadow: 0 0 0 6px rgba(14, 59, 79, .2), 0 4px 12px rgba(8, 30, 42, .35); }
.wb-pop-h { color: #55666F; }

.wb-qr-sec { display: flex; gap: 24px; align-items: center; padding-bottom: 56px; }
.wb-qr { flex: none; width: 170px; padding: 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-align: center; }
.wb-qr svg { width: 100%; height: auto; display: block; }
.wb-qr-url { margin: 6px 0 0; font-size: .72rem; color: #55666F; word-break: break-all; }
@media (max-width: 760px) { .wb-qr-sec { display: none; } }
@media print {
  .top, .tabbar, .foot, .wb-jump, .wb-map-sec { display: none !important; }
  .wb-hero { padding-top: 20px; }
  .wb-card { break-inside: avoid; }
}

/* ----- первый экран главной: фото и белые значки ----- */
img.hero-photo { object-fit: cover; object-position: 60% 50%; animation: none; }
.hero:has(.hero-photo) .hero-shade { background: linear-gradient(90deg, rgba(8, 30, 42, .55) 0%, rgba(8, 30, 42, .15) 55%, rgba(8, 30, 42, 0) 75%), linear-gradient(180deg, rgba(8, 30, 42, .35) 0%, rgba(8, 30, 42, 0) 28%, rgba(8, 30, 42, .2) 55%, rgba(8, 30, 42, .9) 100%); }
[dir="rtl"] .hero:has(.hero-photo) .hero-shade { background: linear-gradient(270deg, rgba(8, 30, 42, .55) 0%, rgba(8, 30, 42, .15) 55%, rgba(8, 30, 42, 0) 75%), linear-gradient(180deg, rgba(8, 30, 42, .35) 0%, rgba(8, 30, 42, 0) 28%, rgba(8, 30, 42, .2) 55%, rgba(8, 30, 42, .9) 100%); }
.hero:has(.hero-photo) h1, .hero:has(.hero-photo) .hero-sub { text-shadow: 0 2px 18px rgba(8, 30, 42, .45); }
.hero-icons { display: flex; flex-wrap: wrap; gap: 10px 6px; margin: 30px 0 0; }
.hi { width: 128px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 12px; border-radius: 18px; color: #fff; text-decoration: none; text-align: center; font-weight: 500; font-size: .95rem; line-height: 1.25; text-shadow: 0 1px 10px rgba(8, 30, 42, .6); transition: background .25s, transform .25s; }
.hi .hg { width: 52px; height: 52px; filter: drop-shadow(0 2px 8px rgba(8, 30, 42, .45)); transition: transform .25s; }
.hi:hover, .hi:focus-visible { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.hi:hover .hg { transform: scale(1.08); }
.hi-book .hg { color: #FFD45C; }
.hi-book span { color: #FFE9A8; font-weight: 600; }
@media (max-width: 760px) {
  .hero-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 18px; }
  .hi { width: auto; font-size: .8rem; padding: 8px 2px; gap: 6px; }
  .hi .hg { width: 40px; height: 40px; }
}

/* ----- бренд «Almaty by Vadim»: рукописный шрифт Kaushan Script + горы ----- */
:root { --f-brand: 'Kaushan Script', 'Segoe Script', cursive; }
.brand-logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font-family: var(--f-brand); font-weight: 400; font-size: 1.45rem; letter-spacing: 0; white-space: nowrap; }
.logo-mtn { display: block; color: inherit; }
.logo-mtn-sm { width: 46px; height: auto; margin: 0 0 -3px; }
.brand { gap: 0; }
.brand .brand-mark, .foot-brand .brand-mark { display: none; }
.foot-brand .brand-name { font-size: 1.8rem; }
.foot-brand .logo-mtn-sm { width: 58px; }

.hero-logo { display: inline-flex; flex-direction: column; align-items: flex-start; margin: 0; font-family: var(--f-brand) !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1 !important; }
.hero-logo .logo-text { font-size: clamp(3rem, 9.5vw, 7.6rem); text-shadow: 0 4px 30px rgba(8, 30, 42, .45); white-space: nowrap; padding-inline-end: .1em; }
.hero-logo .logo-mtn { width: 38%; height: auto; margin: 0 0 -.04em 17%; filter: drop-shadow(0 3px 14px rgba(8, 30, 42, .4)); }
.lang-ar .hero h1.hero-logo, .lang-zh .hero h1.hero-logo { font-size: inherit; line-height: 1; }
[dir="rtl"] .hero-logo { direction: ltr; align-self: flex-end; }
.hero-slogan { margin: 14px 0 8px; font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.25; text-shadow: 0 2px 16px rgba(8, 30, 42, .5); }
.hero-slogan::after { content: ''; display: block; width: min(320px, 60%); height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, #F2C14E, rgba(242, 193, 78, 0)); }
[dir="rtl"] .hero-slogan::after { background: linear-gradient(270deg, #F2C14E, rgba(242, 193, 78, 0)); }
/* на главной большой логотип уже есть в первом экране — маленький в шапке скрываем */
.is-home .top .brand { visibility: hidden; }

/* ----- полезная информация внизу страницы места ----- */
.place-info { margin-bottom: 28px; padding: 24px clamp(18px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-inline-start: 6px solid #2B8FB0; }
.pi-h { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin: 0 0 12px; }
.pi-h .glyph { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #E3F1F6; color: #1F6F8B; }
.place-info p { margin: 0 0 12px; max-width: 52em; }
.pi-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 52em; }
.pi-list li { position: relative; padding-inline-start: 22px; }
.pi-list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid #2B8FB0; }
.pi-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0 !important; }
.pi-links .btn { gap: 8px; }
.pi-links .glyph { width: 17px; height: 17px; }

/* карта, открытая с диска: вместо подложки — спокойный фон и пояснение */
.map-local { background: repeating-linear-gradient(45deg, #EEF3F5 0 14px, #E6EDF0 14px 28px) !important; }
.map-local-note { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 28px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .94); color: #102029; font-size: .9rem; box-shadow: 0 6px 18px -10px rgba(8, 30, 40, .45); text-align: center; }

/* кнопка «Начало» внизу страницы места */
.pn-top { display: inline-flex; align-items: center; gap: 6px; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.pn-top:hover { border-color: currentColor; }
.pn-top .ico { width: 18px; height: 18px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.place-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.place-nav .pn-all { justify-self: start; }
.place-nav .pn-top { justify-self: center; }
.place-nav .pn-next { justify-self: end; }
@media (max-width: 520px) { .place-nav { grid-template-columns: 1fr 1fr; row-gap: 14px; } .place-nav .pn-top { justify-self: end; } .place-nav .pn-next { grid-column: 1 / -1; } }
