/* ================================================================
   КЛАСТЕР 73 · одностраничный лендинг · v1 · 2026-04-24
   ================================================================ */

/* Все якорные секции учитывают высоту sticky-nav (~80px) при scroll-to-anchor.
   Иначе после клика «Выбрать помещение» #map скроллится так, что заголовок
   секции прячется под фиксированной шапкой. */
section[id], footer[id] { scroll-margin-top: 90px; }
/* Map has no heading on top — iframe should sit flush under sticky nav,
   no paper-coloured gap from the previous (residents) section. */
#map { scroll-margin-top: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--page-pad); }
.container--wide { max-width: var(--container-wide); }

.eyebrow {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand-teal-dark); margin-bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.eyebrow--light { color: rgba(255,255,255,.62); }

.section-title {
  font-family: var(--font-serif); font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1; letter-spacing: -.01em;
  margin-bottom: var(--s-5);
}
.section-title em { font-style: italic; color: var(--brand-teal-dark); }

/* Buttons =================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--r-cta);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  letter-spacing: .01em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-snap),
              background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary   { background: var(--brand-teal); color: var(--ink); }
.btn--primary:hover { background: var(--brand-teal-bright); }
.btn--ghost     { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--ink       { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--brand-teal); color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--ink); border: 1.5px solid rgba(10,31,29,.18); }
.btn--ghost-light:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--lg        { padding: 22px 36px; font-size: 17px; }
.btn--md        { padding: 12px 24px; font-size: 14px; }

/* Sticky nav =============================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
/* В футере sticky-nav скрывается, чтобы лого nav и лого футера не дублировались */
.nav--hidden { transform: translateY(-100%); pointer-events: none; }
.nav.is-scrolled {
  background: rgba(247,245,240,.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav.is-scrolled .nav__logo,
.nav.is-scrolled .nav__menu a,
.nav.is-scrolled .nav__phone { color: var(--ink); }
.nav.is-scrolled .nav__menu a { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); transition: color var(--t-med); }
.nav__logo-img {
  height: 42px;
  width: auto;
  display: block;
  /* SVG чёрный → белым на тёмном hero, обратно к чёрному при scroll */
  filter: brightness(0) invert(1);
  transition: filter var(--t-med) var(--ease-out);
}
.nav.is-scrolled .nav__logo-img { filter: none; }
/* Footer logo */
.footer__brand-logo img { max-height: 56px; width: auto; }
.nav__menu { display: flex; gap: var(--s-6); }
.nav__menu a {
  font-size: 17px; color: inherit; opacity: .85;
  transition: opacity var(--t-fast);
}
.nav__menu a:hover { opacity: 1; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone { font-family: var(--font-mono); font-size: 13px; color: inherit; font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) { .nav__menu { display: none; } }
@media (max-width: 640px) {
  /* На смартфонах телефон убран — он дублируется кнопкой в hero и в футере.
     Раз место освободилось — делаем логотип крупнее для узнаваемости. */
  .nav { padding: 12px 0; }
  .nav__phone { display: none; }
  .nav__logo-img { height: 50px; }
  .nav .btn--primary { padding: 10px 16px; font-size: 13px; min-height: 40px; }
  .nav .btn--primary svg { display: none; }
}

/* Hero ===================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end; padding-bottom: var(--s-9);
  overflow: hidden; background: var(--ink);
}
@supports not (height: 100svh) {
  .hero { min-height: 100vh; }
}
@media (max-width: 640px) {
  /* Фиксированная высота — чтоб следующий блок точно не подглядывал. */
  .hero { height: 100svh; min-height: 100svh; padding-bottom: 24px; padding-top: 84px; }
  .hero__title { font-size: clamp(34px, 10vw, 54px); line-height: 1; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .22em; margin-bottom: 14px; font-weight: 500; }
  .hero__eyebrow::before { width: 20px; }
  .hero__subtitle { font-size: 15px; margin-bottom: 22px; line-height: 1.5; }
  /* CTA стак в колонку, full-width — типовой mobile-pattern главного экрана */
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta .btn { width: 100%; padding: 14px 18px; font-size: 15px; justify-content: center; }
  .hero__cta .btn--lg { padding: 15px 18px; font-size: 15px; }
  .hero__scroll { display: none !important; } /* на мобиле scroll-hint съедает место */
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg video, .hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,29,.55) 0%, rgba(10,31,29,.45) 40%, rgba(10,31,29,.80) 100%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; width: 100%; color: var(--white); }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--brand-teal-bright); margin-bottom: var(--s-5);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero__eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--brand-teal-bright);
}
.hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(48px, 8.5vw, 120px); line-height: .95; letter-spacing: -.02em;
  margin-bottom: var(--s-5); max-width: 18ch;
}
.hero__title em {
  font-style: italic; color: var(--brand-teal-bright);
}
.hero__subtitle {
  font-size: clamp(16px, 1.8vw, 20px); color: rgba(255,255,255,.82);
  max-width: 56ch; line-height: 1.5; margin-bottom: var(--s-6);
}
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: var(--s-6); left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em;
}
.hero__scroll-line {
  width: 1px; height: 28px; background: rgba(255,255,255,.4);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Numbers strip ============================================ */
.numbers {
  background: var(--ink); color: var(--white); padding: var(--s-8) 0;
}
.numbers__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
}
.numbers__item { text-align: left; padding: 0 var(--s-3); border-left: 1px solid rgba(255,255,255,.08); }
.numbers__item:first-child { border-left: 0; padding-left: 0; }
.numbers__value {
  font-family: var(--font-serif); font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1; letter-spacing: -.02em; color: var(--brand-teal-bright);
}
.numbers__label {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.6); margin-top: var(--s-3);
}
@media (max-width:800px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .numbers__item { border-left: 0; padding-left: 0; }
}

/* Section general ========================================== */
.section { padding: var(--s-8) 0; }
.section--paper { background: var(--paper); }
.section--paper-dim { background: var(--paper-dim); }
.section--ink { background: var(--ink); color: var(--white); }
.section__head { max-width: 640px; margin-bottom: var(--s-6); }
/* --center раньше центрировал, теперь оставлен для обратной совместимости — NO-OP. */
.section__head--center { text-align: left; margin-left: 0; margin-right: auto; }
.section__desc { font-size: 17px; color: var(--text-muted); line-height: 1.6; }
.section--ink .section__desc { color: rgba(255,255,255,.72); }
@media (max-width: 640px) {
  /* На мобиле сжимаем: блоки идут плотнее, отступы левее */
  .section { padding: var(--s-6) 0; }
  .section__head { margin-bottom: var(--s-4); }
  .section-title { font-size: clamp(28px, 7.5vw, 40px); }
  .section__desc { font-size: 15px; }
}

/* Gallery 2.0 — masonry с chips-фильтрами и lightbox =========== */
.gallery2 { background: var(--paper); padding: var(--s-8) 0 var(--s-9); position: relative; }
.gallery2 .section__head { margin-bottom: var(--s-5); padding: 0 var(--page-pad); max-width: 740px; }

/* Chips */
.gallery2__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 var(--page-pad); margin-bottom: var(--s-6);
}
.gallery2__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(10,31,29,.05);
  border: 1px solid rgba(10,31,29,.12);
  color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.gallery2__chip:hover {
  background: rgba(10,31,29,.10);
  border-color: rgba(10,31,29,.22);
}
.gallery2__chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.gallery2__chip.is-active .gallery2__chip-count { color: rgba(255,255,255,.55); }
.gallery2__chip-count {
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(10,31,29,.45);
  font-weight: 400;
}

/* Masonry — CSS columns. Произвольные аспекты ложатся естественно. */
.gallery2__masonry {
  padding: 0 var(--page-pad);
  column-gap: 6px;
  column-count: 2;
}
@media (min-width: 760px)  { .gallery2__masonry { column-count: 3; column-gap: 8px; } }
@media (min-width: 1280px) { .gallery2__masonry { column-count: 4; column-gap: 10px; } }

.gallery2__item {
  display: block;
  width: 100%;
  margin: 0 0 6px 0;
  padding: 0;
  border: 0;
  background: rgba(10,31,29,.06);
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;            /* не разрезает плитку между колонками */
  position: relative;
  transition: transform var(--t-fast) var(--ease-snap);
}
@media (min-width: 760px) { .gallery2__item { margin-bottom: 8px; } }
@media (min-width: 1280px) { .gallery2__item { margin-bottom: 10px; } }
.gallery2__item:hover { transform: translateY(-2px); }
.gallery2__item img {
  width: 100%; height: auto;
  display: block;
  transition: transform var(--t-med) var(--ease-out);
}
.gallery2__item:hover img { transform: scale(1.03); }

/* Caption — подпись категории, появляется на hover (desktop) или всегда (mobile) */
.gallery2__item-caption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 10px; border-radius: 4px;
  background: rgba(10,31,29,.78);
  color: var(--white);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gallery2__item:hover .gallery2__item-caption,
.gallery2__item:focus-visible .gallery2__item-caption { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) {
  /* На тач-устройствах hover отсутствует — показываем подпись всегда, тоньше */
  .gallery2__item-caption { opacity: .9; transform: none; font-size: 10px; padding: 4px 8px; }
}

/* Скрываем плитки не из выбранной категории */
.gallery2__masonry.is-filtered .gallery2__item:not(.is-active) { display: none; }
/* На «Все» (без активного фильтра) показываем только overview-плитки —
   первые N свежих фото каждой категории, чтобы галерея не превратилась
   в бесконечную ленту при росте архива. */
.gallery2__masonry:not(.is-filtered) .gallery2__item:not([data-overview="1"]) { display: none; }

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,16,15,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage {
  margin: 0; max-width: 92vw; max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lightbox__img {
  max-width: 100%; max-height: 80vh;
  display: block; object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__caption {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em; text-transform: uppercase;
}
.lightbox__cat { color: var(--brand-teal-bright); font-weight: 600; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-snap);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(255,255,255,.20);
  transform: scale(1.05);
}
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 640px) {
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox__nav   { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__stage { max-width: 96vw; }
  .lightbox__img   { max-height: 72vh; }
  .lightbox__caption { font-size: 11px; padding: 0 12px; text-align: center; flex-direction: column; gap: 4px; }
}

/* prefers-reduced-motion — без transitions */
@media (prefers-reduced-motion: reduce) {
  .gallery2__item, .gallery2__item img,
  .gallery2__chip, .lightbox, .lightbox__close, .lightbox__nav { transition: none !important; }
  .gallery2__item:hover { transform: none; }
  .gallery2__item:hover img { transform: none; }
}


/* Video presentation ======================================= */
.video-block { padding: var(--s-8) 0; }
@media (max-width: 640px) { .video-block { padding: var(--s-6) 0; } }
.video-block .container--wide { margin-top: var(--s-5); }
.video-block__frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  max-width: 1360px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-lg);
}
.video-block__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--ink);
}
@media (max-width: 640px) {
  .video-block__frame { border-radius: var(--r-md); }
}
.video-block__iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-block__cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--white);
  background-size: cover; background-position: center;
  transition: opacity var(--t-med) var(--ease-out);
}
.video-block__cover::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,29,.35), rgba(10,31,29,.65));
}
.video-block__play {
  position: relative; width: 80px; height: 80px; border-radius: 50%;
  background: var(--brand-teal); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-med) var(--ease-snap), background var(--t-fast);
  box-shadow: 0 10px 30px rgba(13,200,177,.4);
}
.video-block__play:hover { transform: scale(1.08); }
.video-block__play::after {
  content: ''; width: 0; height: 0;
  border-left: 20px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

/* Residents ================================================ */
.residents__marquee {
  overflow: hidden; padding: var(--s-6) 0; position: relative;
  /* Reserve marquee height before async fetch fills it — prevents layout-shift
     that breaks first-click anchor scroll to #map (lands on end of reviews). */
  min-height: calc(54px + var(--s-6) * 2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Disable browser scroll-anchoring during smooth scrolls — when a lazy image
   above completes loading mid-animation, default `overflow-anchor: auto`
   would shift scrollY to keep the anchor visible, manifesting as a sudden
   "bounce back up" after clicking a #anchor link. */
html { overflow-anchor: none; }
.residents__marquee-track {
  display: flex; gap: var(--s-8); animation: marquee 50s linear infinite;
  width: max-content;
}
.residents__logo {
  height: 54px; width: auto; object-fit: contain; opacity: .72;
  transition: opacity var(--t-fast); filter: grayscale(.1);
}
.residents__logo:hover { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Live map embed =========================================== */
/* Секция без padding/background — карта занимает ровно один экран. */
.map-block { background: transparent; padding: 0; margin: 0; }
.map-block__full {
  position: relative; width: 100%;
  height: min(1080px, 100vh); height: min(1080px, 100dvh);
  background: #141A23; overflow: hidden;
}
@media (max-width: 760px) {
  /* На мобиле оставляем часть экрана видимой снизу, чтобы было понятно —
     можно продолжить скролл дальше по лендингу. */
  .map-block__full { height: 78dvh; min-height: 580px; max-height: 900px; }
}
.map-block__iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  background: #141A23;
}

/* Final CTA ================================================ */
.cta-final {
  background: var(--paper); padding: var(--s-8) 0;
  position: relative; overflow: hidden;
}
@media (max-width: 640px) { .cta-final { padding: var(--s-6) 0; } }
.cta-final__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
  margin-bottom: var(--s-8);
}
.cta-final__step { position: relative; padding: var(--s-5) 0; }
.cta-final__step-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--brand-teal-dark); margin-bottom: var(--s-3);
}
.cta-final__step-text {
  font-family: var(--font-serif); font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05; color: var(--ink);
}
.cta-final__slogan {
  font-family: var(--font-serif); font-size: clamp(40px, 6vw, 80px);
  line-height: 1; letter-spacing: -.02em;
  text-align: center; margin: var(--s-8) 0 var(--s-7);
}
.cta-final__slogan em { font-style: italic; color: var(--brand-teal-dark); }
.cta-final__buttons { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }
@media (max-width:700px) { .cta-final__steps { grid-template-columns: 1fr; gap: var(--s-4); } }

/* Footer =================================================== */
.footer { background: var(--ink); color: var(--text-on-dark); padding: var(--s-9) 0 var(--s-6); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7);
  padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--s-4); }
.footer__brand-logo { display: flex; align-items: center; gap: 10px; }
.footer__brand-desc { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.55; max-width: 36ch; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.footer__social a:hover { background: var(--brand-teal); color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__col-title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: rgba(255,255,255,.5); margin-bottom: var(--s-4);
}
.footer__links a {
  display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,.8);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--brand-teal-bright); }
.footer__bottom {
  padding-top: var(--s-5); display: flex; justify-content: space-between;
  color: rgba(255,255,255,.45); font-size: 12px; flex-wrap: wrap; gap: var(--s-3);
}
.footer__bottom-links { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer__bottom-links a { color: inherit; transition: color var(--t-fast); }
.footer__bottom-links a:hover { color: var(--brand-teal-bright); }

/* Route-sheet: выбор приложения карт при клике по адресу */
.route-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9990;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.route-scrim.is-open { opacity: 1; pointer-events: auto; }
.route-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: #0F172A; color: #fff;
  border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.22,.61,.36,1);
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto;
}
.route-sheet.is-open { transform: translateY(0); }
.route-sheet__handle {
  width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25);
  margin: 0 auto 12px;
}
.route-sheet__title {
  font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; line-height: 1.1;
  margin: 0 0 6px; font-weight: 400;
}
.route-sheet__addr {
  font-size: 13px; color: rgba(255,255,255,.62); margin: 0 0 18px;
}
.route-sheet__opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.route-opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.06); color: #fff !important;
  font-weight: 600; font-size: 15px; text-decoration: none !important;
  transition: background .12s;
  border: 1px solid rgba(255,255,255,.08);
}
.route-opt:active, .route-opt:hover {
  background: rgba(28,230,190,.12); border-color: rgba(28,230,190,.3);
}
.route-opt span { color: #1CE6BE; font-size: 18px; }
.route-sheet__cancel {
  width: 100%; padding: 14px; border-radius: 14px; border: 0;
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.65);
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.route-sheet__cancel:active { background: rgba(255,255,255,.08); }
@media (min-width: 760px) {
  .route-sheet { bottom: 24px; left: 24px; right: auto; border-radius: 20px; max-width: 380px; }
  .route-scrim.is-open ~ .route-sheet { margin-bottom: 0; }
}
@media (max-width:900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
@media (max-width:600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Reveal animation (js-driven) ============================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }


/* Footer logo SVG — invert до белого (footer на тёмном фоне) */
.footer__brand-logo-img { filter: brightness(0) invert(1); }
