/* =========================================================================
   Эскимо Плаза — landing styles
   Design system: DESIGN.md ("Mercury / Alpine banking at blue hour")
   Dark onyx canvas, graphite cards, ivory text, a single cobalt accent,
   flat / borderless, pill controls, no shadows, generous rhythm.
   ========================================================================= */

:root {
  --color-onyx-canvas: #171721;
  --color-graphite-card: #1e1e2a;
  --color-graphite-hover: #22222f;
  --color-obsidian-button: #272735;
  --color-slate-border: #70707d;
  --color-mist-border: #e2e3ed;
  --color-ash-text: #c3c3cc;
  --color-ivory-text: #ededf3;
  --color-cobalt: #5266eb;
  --color-cobalt-hover: #6274ef;
  --color-pure-white: #ffffff;

  --hairline: rgba(226, 227, 237, 0.12);
  --hairline-strong: rgba(226, 227, 237, 0.22);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  /* Manrope — geometric grotesque, full Cyrillic. Stands in for DESIGN.md's
     wide-set "Söhne Breit" display voice; the width comes from positive
     letter-spacing on headings, not the face itself. */
  --font-display: "Manrope", var(--font-sans);

  --container: 1200px;
  --radius-card: 12px;
  --radius-pill: 40px;
  --radius-btn: 32px;

  --section-pad: clamp(48px, 5.5vw, 64px);
  --gap-grid: 20px;
  --header-h: 76px;
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-onyx-canvas);
  /* faint film-grain so large flat panels don't look like solid digital
     fills — invisible over the hero/flyover, whose opaque video layers
     sit above the body background anyway */
  background-image: url("../img/noise.37341efb41ed.png");
  background-repeat: repeat;
  color: var(--color-ivory-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection { background: var(--color-cobalt); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- helpers */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: var(--section-pad); }

/* large ghost chapter numeral behind a section's heading — editorial detail,
   purely decorative (aria-hidden via ::before + no assistive-tech text) */
.section[data-section-num] { position: relative; overflow: hidden; }
.section[data-section-num]::before {
  content: attr(data-section-num);
  position: absolute;
  top: clamp(0px, 1vw, 20px);
  right: clamp(-6px, 1.5vw, 32px);
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 18vw, 13rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(237, 237, 243, 0.045);
  pointer-events: none;
  user-select: none;
}

/* soft ambient cobalt glow tucked in a section corner — atmosphere, not a
   light source; kept far below text contrast so it never fights content */
.section--glow { position: relative; }
.section--glow::after {
  content: "";
  position: absolute;
  top: 4%;
  right: -6%;
  width: min(560px, 55%);
  height: min(560px, 55%);
  z-index: 0;
  background: radial-gradient(circle, rgba(82, 102, 235, 0.12), transparent 72%);
  pointer-events: none;
}
.section--location.section--glow::after { top: auto; bottom: 4%; left: -6%; right: auto; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 2.625rem);
  line-height: 1.16;
  letter-spacing: 0.014em;
  font-weight: 500;
  color: var(--color-ivory-text);
  max-width: 20ch;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.section__title--wide { max-width: 26ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ash-text);
  margin: 0 0 20px;
}
.eyebrow--on-media { color: rgba(255, 255, 255, 0.8); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--color-cobalt);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--color-cobalt); color: var(--color-pure-white); }
.btn--primary:hover { background: var(--color-cobalt-hover); }

.btn--ghost {
  border-color: var(--hairline-strong);
  color: var(--color-ivory-text);
}
.btn--ghost:hover {
  border-color: var(--color-ivory-text);
  background: rgba(237, 237, 243, 0.06);
}
.btn--ghost-on-media {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost-on-media:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------------------------------------- scroll chrome */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-cobalt), var(--color-cobalt-hover));
  transition: width 0.12s linear;
}

.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: rgba(23, 23, 33, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-ivory-text);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease,
    background-color 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--color-cobalt); background: rgba(23, 23, 33, 0.9); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease,
    border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(23, 23, 33, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 clamp(20px, 5vw, 40px);
  min-height: var(--header-h);
  /* three columns, the outer two always equal (1fr each) — the nav in the
     middle column is genuinely centered on the header regardless of how
     wide the logo+wordmark on the left is, instead of just centered on the
     leftover space next to it */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ivory-text);
  justify-self: start;
}
.brand__logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--hairline-strong);
}

.site-nav {
  justify-self: center;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__list a {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--color-ivory-text);
  transition: background-color 0.18s ease;
}
.site-nav__list a:hover { background: rgba(237, 237, 243, 0.08); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle__bar {
  width: 18px;
  height: 1.5px;
  background: var(--color-ivory-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.site-nav.is-open .nav-toggle__bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 76px;
  overflow: hidden;
  background: #0f0f16;
}
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 62% 46% at 50% 46%,
      rgba(15, 15, 22, 0.62) 0%,
      rgba(15, 15, 22, 0) 72%
    ),
    linear-gradient(
      180deg,
      rgba(23, 23, 33, 0.62) 0%,
      rgba(23, 23, 33, 0.34) 40%,
      rgba(23, 23, 33, 0.78) 100%
    );
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-inline: clamp(20px, 5vw, 40px);
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.4rem + 6vw, 4.0625rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--color-pure-white);
  margin: 14px 0 0;
}
.hero__lead {
  margin: 20px auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  line-height: 1.55;
  color: rgba(237, 237, 243, 0.92);
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 48px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  animation: scrollCue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero__media-toggle,
.flyover__media-toggle {
  position: absolute;
  right: clamp(16px, 4vw, 32px);
  bottom: 24px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(23, 23, 33, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
}
.hero__media-toggle .icon-play,
.flyover__media-toggle .icon-play { display: none; }
.hero__media-toggle[aria-pressed="false"] .icon-pause,
.flyover__media-toggle[aria-pressed="false"] .icon-pause { display: none; }
.hero__media-toggle[aria-pressed="false"] .icon-play,
.flyover__media-toggle[aria-pressed="false"] .icon-play { display: block; }
.hero__media-toggle svg,
.flyover__media-toggle svg { fill: currentColor; }

/* --------------------------------------------------------------- flyover */
/* Full-bleed drone band between "О здании" and "Что внутри". Not a second
   hero: the copy sits bottom-left, the clip only plays while on screen. */
.flyover {
  position: relative;
  width: 100%;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f0f16;
  border-block: 1px solid var(--hairline);
}
.flyover__poster,
.flyover__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.flyover__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(15, 15, 22, 0.15) 0%,
      rgba(15, 15, 22, 0) 34%,
      rgba(15, 15, 22, 0.62) 78%,
      rgba(15, 15, 22, 0.9) 100%
    ),
    linear-gradient(
      90deg,
      rgba(15, 15, 22, 0.62) 0%,
      rgba(15, 15, 22, 0) 52%
    );
}
.flyover__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(44px, 8vw, 92px);
}
.flyover__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 2.625rem);
  line-height: 1.16;
  letter-spacing: 0.014em;
  font-weight: 500;
  color: var(--color-pure-white);
  max-width: 18ch;
  margin: 0;
}
.flyover__text {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  line-height: 1.55;
  color: rgba(237, 237, 243, 0.9);
}

/* ----------------------------------------------------------------- about */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about__text p {
  color: var(--color-ash-text);
  font-size: 16px;
  line-height: 1.62;
  max-width: 56ch;
}
.about__text p + p { margin-top: 20px; }
.about__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* viewfinder-style corner brackets + a small technical caption — a quieter,
   more "architectural survey" way to frame a photo than a plain border */
.framed { position: relative; padding: 13px; }
.framed::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) top left / 22px 1.5px no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) top left / 1.5px 22px no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) top right / 22px 1.5px no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) top right / 1.5px 22px no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) bottom left / 22px 1.5px no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) bottom left / 1.5px 22px no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) bottom right / 22px 1.5px no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) bottom right / 1.5px 22px no-repeat;
}
.framed__label {
  position: absolute;
  left: 27px;
  bottom: 27px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 22, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(237, 237, 243, 0.88);
  pointer-events: none;
}
.framed__label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cobalt);
  flex-shrink: 0;
}

.stats {
  margin-top: clamp(48px, 8vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--color-graphite-card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ivory-text);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13px; line-height: 1.4; color: var(--color-ash-text); }

/* --------------------------------------------------------------- zonemap */
/* "Что внутри" as one big interactive photo of the building, full-bleed.
   Pins are small text labels (no preview thumbnail); clicking one fades the
   pins out and crossfades the photo straight into that zone's own looping
   video, in the exact same box — no separate modal window, no zoom/pan, so
   there's no visible jump between photo and video. The zone's text sits in
   a small card floating over the video, not a full overlay. */
.zonemap { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.zonemap__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 720;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0f0f16;
}
.zonemap__img,
.zonemap__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zonemap__img {
  transition: opacity 0.3s ease;
}
.zonemap__video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.zonemap.is-active.has-video .zonemap__video { opacity: 1; }
/* skips the crossfade for a swap where both layers already show the same
   frame (video ending on its matching end photo, or reversing back onto it) */
.zonemap__video.no-fade { transition: none; }
.zonemap__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 15, 22, 0.35) 0%, rgba(15, 15, 22, 0) 22%, rgba(15, 15, 22, 0) 70%, rgba(15, 15, 22, 0.6) 100%);
}
.zonemap__pins {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* distance of each column from its edge of the photo */
  --pin-inset: clamp(16px, 2.6%, 40px);
  --pin-icon: 56px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.zonemap.is-active .zonemap__pins { opacity: 0; transform: scale(0.94); pointer-events: none; }
/* barely-there darkening at the two outer edges, under the pin text only —
   keeps the white labels legible over bright sky without any card behind
   them; the building in the middle stays untouched. Fades out with the pins. */
.zonemap__pins::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(10, 10, 16, 0.62) 0%, rgba(10, 10, 16, 0.38) 15%, rgba(10, 10, 16, 0) 32%,
    rgba(10, 10, 16, 0) 72%, rgba(10, 10, 16, 0.38) 86%, rgba(10, 10, 16, 0.62) 100%);
}
/* Two columns hugging the photo's outer edges, clear of the oval facade.
   No card behind a pin: just a thin line-icon circle, the title (+ the
   zone's `meta`, when it has one) and a short accent underline. The right
   column is mirrored (icon on the outside, text right-aligned), so both
   columns "face" the building, and on hover each one leans toward it. */
.zonemap__pin {
  position: absolute;
  top: calc(var(--pin-y) * 1%);
  transform: translateY(-50%);
}
.zonemap__pin--left { left: var(--pin-inset); }
.zonemap__pin--right { right: var(--pin-inset); }
.zonemap__pin-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  /* a little padding (cancelled by the negative margin) widens the hover/
     click area around icon + text without moving them */
  padding: 8px 10px;
  margin: -8px -10px;
  border-radius: var(--radius-card);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.zonemap__pin--right .zonemap__pin-btn { flex-direction: row-reverse; text-align: right; }
.zonemap__pin--left .zonemap__pin-btn:hover,
.zonemap__pin--left .zonemap__pin-btn:focus-visible { transform: translateX(5px); }
.zonemap__pin--right .zonemap__pin-btn:hover,
.zonemap__pin--right .zonemap__pin-btn:focus-visible { transform: translateX(-5px); }

.zonemap__pin-icon {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: var(--pin-icon);
  height: var(--pin-icon);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(12, 12, 20, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: rgba(255, 255, 255, 0.88);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.zonemap__pin-icon svg { width: 44%; height: 44%; }
/* accent dot sitting on the circle's rim at 45° — top-right for the left
   column, top-left for the mirrored right one (always on the building side) */
.zonemap__pin-dot {
  position: absolute;
  top: calc(14.6% - 4.5px);
  right: calc(14.6% - 4.5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, var(--color-cobalt));
  box-shadow: 0 0 0 2px rgba(12, 12, 20, 0.45);
  opacity: 0.85;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}
.zonemap__pin--right .zonemap__pin-dot { right: auto; left: calc(14.6% - 4.5px); }

.zonemap__pin-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 190px;
}
.zonemap__pin--right .zonemap__pin-body { align-items: flex-end; }
.zonemap__pin-text {
  font-family: var(--font-display);
  font-size: clamp(14px, 0.55vw + 10px, 17px);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: color 0.25s ease;
}
.zonemap__pin-meta {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: color 0.25s ease;
}
/* short hairline in the zone's accent colour; grows on hover — toward the
   building in both columns, since the right one is right-aligned */
.zonemap__pin-line {
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 12px;
  background: var(--accent, var(--color-cobalt));
  opacity: 0.7;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.zonemap__pin-btn:hover .zonemap__pin-icon,
.zonemap__pin-btn:focus-visible .zonemap__pin-icon {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 38%, transparent);
}
.zonemap__pin-btn:hover .zonemap__pin-dot,
.zonemap__pin-btn:focus-visible .zonemap__pin-dot {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(12, 12, 20, 0.45), 0 0 10px var(--accent);
}
.zonemap__pin-btn:hover .zonemap__pin-text,
.zonemap__pin-btn:focus-visible .zonemap__pin-text { color: #fff; }
.zonemap__pin-btn:hover .zonemap__pin-meta,
.zonemap__pin-btn:focus-visible .zonemap__pin-meta { color: rgba(255, 255, 255, 0.85); }
.zonemap__pin-btn:hover .zonemap__pin-line,
.zonemap__pin-btn:focus-visible .zonemap__pin-line { width: 68px; opacity: 1; }

/* placeholder pin, added purely so the right column has as many rows as
   the left — not a real zone, so it's inert (no hover/click/focus) and
   dimmed to read as a stand-in rather than a dead link. */
.zonemap__pin--stub .zonemap__pin-btn {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* "back to all zones" pill — hidden until a zone is active */
.zonemap__back {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 22, 0.55);
  border: 1px solid rgba(237, 237, 243, 0.3);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.zonemap.is-active .zonemap__back { opacity: 1; transform: none; pointer-events: auto; }
.zonemap__back:hover { background: rgba(15, 15, 22, 0.8); }

/* zone text card, floating over the video — a little below center so it
   doesn't block the most interesting part of the shot */
.zonemap__info {
  position: absolute;
  left: 50%;
  top: 76%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(560px, 88%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.zonemap.is-active.info-ready .zonemap__info { opacity: 1; pointer-events: auto; }
.zonemap__info-card { display: none; }
.zonemap__info-card:not([hidden]) {
  display: block;
  padding: 22px 26px;
  border-radius: var(--radius-card);
  background: rgba(15, 15, 22, 0.68);
  border: 1px solid rgba(237, 237, 243, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
.zonemap__info-head { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.zonemap__info-meta { font-size: 12px; letter-spacing: 0.03em; color: var(--color-ash-text); }
.zonemap__info-title {
  font-family: var(--font-display);
  margin-top: 6px;
  font-size: clamp(19px, 0.9vw + 15px, 23px);
  font-weight: 500;
  color: var(--color-ivory-text);
}
.zonemap__info-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ash-text);
}

/* compact index of every zone below the photo-map — the narrow-screen
   stand-in for the pins (shares their `data-zonemap-*` attributes and their
   icon circle + accent dot); at wider widths the pins on the photo are the
   nav, so this stays hidden there. Enabled at the ≤760px breakpoint below. */
.zonemap-list {
  display: none;
  margin-top: 16px;
  gap: 8px;
}
.zonemap-list__item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  color: var(--color-ivory-text);
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.zonemap-list__icon { --pin-icon: 38px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.zonemap-list__icon .zonemap__pin-dot { width: 7px; height: 7px; top: calc(14.6% - 3.5px); right: calc(14.6% - 3.5px); }
.zonemap-list__item:hover,
.zonemap-list__item:focus-visible,
.zonemap-list__item.is-current {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--hairline-strong);
}
.zonemap-list__item:hover .zonemap__pin-icon,
.zonemap-list__item:focus-visible .zonemap__pin-icon,
.zonemap-list__item.is-current .zonemap__pin-icon {
  border-color: #fff;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.zonemap-list__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}

/* ------------------------------------------------------------- companies */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.company-grid__item { min-width: 0; }
.company-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-graphite-card);
  border-radius: var(--radius-card);
  border: 1.5px solid rgba(226, 227, 237, 0.32);
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}
a.company-card:hover {
  background: var(--color-graphite-hover);
  border-color: rgba(237, 237, 243, 0.55);
  transform: translateY(-3px);
}
.company-card__shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--color-obsidian-button);
}
.company-card__shot > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.35) brightness(0.6) contrast(1.02);
  transition: filter 0.35s ease, transform 0.5s ease;
}
a.company-card:hover .company-card__shot > img:first-child {
  filter: grayscale(0) brightness(0.82) contrast(1.02);
  transform: scale(1.03);
}
.company-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 28, 0.12) 0%,
    rgba(20, 20, 28, 0.34) 45%,
    rgba(20, 20, 28, 0.9) 100%
  );
}
.company-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(237, 237, 243, 0.9);
  background: rgba(15, 15, 22, 0.45);
  border: 1px solid rgba(237, 237, 243, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.company-card__logo {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 1;
  height: 26px;
  width: auto;
  max-width: 62%;
  object-fit: contain;
  object-position: left bottom;
}
.company-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 237, 243, 0.35);
  background: rgba(15, 15, 22, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(237, 237, 243, 0.85);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
a.company-card:hover .company-card__arrow {
  color: #fff;
  border-color: rgba(237, 237, 243, 0.7);
  background: rgba(15, 15, 22, 0.5);
}
.company-card__body { padding: 15px 18px 17px; }
.company-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ivory-text);
}
.company-card__note {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-ash-text);
}

/* --------------------------------------------------------------- gallery */
/* Mosaic / bento layout instead of a uniform grid: one large lead photo,
   then a mix of smaller tiles — reads as an edited photo story rather than
   a plain thumbnail sheet. Row height is fixed so mixed spans line up. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(130px, 15vw, 210px);
  gap: 14px;
}
.gallery-grid__item { min-width: 0; }
.gallery-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-figure {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.gallery-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
}
.gallery-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 22, 0) 55%, rgba(15, 15, 22, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-figure__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 237, 243, 0.35);
  background: rgba(15, 15, 22, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(237, 237, 243, 0.9);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.gallery-figure:hover img,
.gallery-figure:focus-visible img { transform: scale(1.045); filter: brightness(1.04); }
.gallery-figure:hover::after,
.gallery-figure:focus-visible::after { opacity: 1; }
.gallery-figure:hover .gallery-figure__icon,
.gallery-figure:focus-visible .gallery-figure__icon {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(237, 237, 243, 0.7);
}

/* -------------------------------------------------------------- location */
.section--location { border-top: 1px solid var(--hairline); }
.location__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.location__address {
  margin-top: 4px;
  color: var(--color-ash-text);
  font-size: 15px;
  line-height: 1.5;
  max-width: 30ch;
}
.location__notes {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.location__notes li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ash-text);
  font-size: 15px;
  line-height: 1.5;
}
.location__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-graphite-card);
  color: var(--color-cobalt);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-ivory-text);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}
.link-arrow:hover { border-color: var(--color-ivory-text); }
.location__coords {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: rgba(195, 195, 204, 0.55);
}
.map-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-graphite-card);
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* pull the bright Yandex tiles into the dark system */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.82) brightness(0.95);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px 24px;
}
.site-footer__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ivory-text);
}
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__nav a { font-size: 14px; color: var(--color-ash-text); }
.site-footer__nav a:hover { color: var(--color-ivory-text); }
.site-footer__meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-ash-text);
  text-align: right;
}
.site-footer__meta a { color: var(--color-ash-text); }
.site-footer__meta a:hover { color: var(--color-ivory-text); }

.disclaimer {
  max-width: 64ch;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 227, 237, 0.08);
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: rgba(195, 195, 204, 0.7);
  text-align: center;
}

/* ------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  margin-inline: auto;
  transition: opacity 0.18s ease;
}
.lightbox__stage figcaption {
  font-size: 13px;
  color: var(--color-ash-text);
  text-align: center;
}
.lightbox__counter {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(237, 237, 243, 0.7);
  font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(23, 23, 33, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox__btn--close { top: 18px; right: 18px; }
.lightbox__btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* --------------------------------------------------------- breakpoints */
/* tablet: same two columns, just smaller — tighter icon, title and
   spacing; the `meta` line goes first, then the underline is shortened */
@media (max-width: 1100px) {
  .zonemap__pins { --pin-icon: 46px; }
  .zonemap__pin-btn { gap: 12px; }
  .zonemap__pin-body { max-width: 160px; }
  .zonemap__pin-meta { font-size: 12px; }
  .zonemap__pin-line { margin-top: 9px; width: 40px; }
  .zonemap__pin-btn:hover .zonemap__pin-line,
  .zonemap__pin-btn:focus-visible .zonemap__pin-line { width: 56px; }
}
@media (max-width: 960px) {
  .zonemap__pins { --pin-icon: 40px; }
  .zonemap__pin-btn { gap: 10px; }
  .zonemap__pin-body { max-width: 128px; }
  .zonemap__pin-text { font-size: 13px; }
  .zonemap__pin-meta { display: none; }
  .zonemap__pin-line { margin-top: 7px; width: 28px; }
  .zonemap__pin-btn:hover .zonemap__pin-line,
  .zonemap__pin-btn:focus-visible .zonemap__pin-line { width: 40px; }
}
/* phone / small tablet: two columns over a photo this small would cover
   the building, so the pins leave the photo entirely and the compact
   two-column zone list under it takes over (titles wrap, never elide). */
@media (max-width: 760px) {
  .zonemap__pins { display: none; }
  .zonemap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* a half-width phone cell can't fit "Низкотемпературные" on one line (and
   browsers don't reliably hyphenate Russian), so one row per zone here */
@media (max-width: 480px) {
  .zonemap-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .zonemap-list__item { padding: 8px 12px 8px 8px; }
  .zonemap-list__icon { --pin-icon: 34px; }
}
@media (max-width: 640px) {
  /* below the frame instead of overlaid on it — on a phone-width frame the
     card would otherwise sit right on top of (and hide) the zone's finished
     photo, which is the whole thing it's there to show off */
  .zonemap__info {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    transform: none;
    margin-top: 0;
  }
  .zonemap.is-active .zonemap__info { margin-top: 12px; }
  .zonemap__info-card:not([hidden]) {
    padding: 10px 14px;
    background: rgba(15, 15, 22, 0.46);
  }
  .zonemap__info-head { gap: 6px; }
  .zonemap__info-title { margin-top: 3px; font-size: 14px; }
  .zonemap__info-text { margin-top: 5px; font-size: 11.5px; line-height: 1.4; }
  /* Once the frame is squeezed to the container's 16:9 box it's too short to
     safely host both this pill and the text card without them colliding for
     the longest zone copy — and a `backdrop-filter` card isn't reliably
     clipped by the frame's `overflow:hidden` in every browser, so an
     oversized card can visibly escape it rather than just get cropped. Take
     the back control out of the photo entirely on narrow screens: a small
     static bar above the frame, always clear of the card no matter how much
     text a zone has. */
  .zonemap__back {
    position: static;
    display: none;
    margin: 0 0 8px;
    min-height: 32px;
    padding: 0 14px 0 10px;
    font-size: 13px;
  }
  .zonemap.is-active .zonemap__back { display: inline-flex; }
}

@media (max-width: 900px) {
  .about__grid,
  .location__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* below the breakpoint the middle "nav" column is just the hamburger
     button, and a centered grid would strand it in the middle of the bar —
     back to a plain two-part flex bar: logo left, toggle right */
  .site-header__inner { display: flex; }
  .site-nav {
    justify-self: unset;
    margin-left: auto;
  }
  .site-nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(23, 23, 33, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 8px clamp(20px, 5vw, 40px) 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.is-open .site-nav__list {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav__list a {
    padding: 14px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
  }
  .site-nav__list li:last-child a { border-bottom: 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__meta { text-align: left; }
}

@media (max-width: 620px) {
  .flyover { min-height: 82svh; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid__item:first-child { grid-column: span 1; grid-row: span 1; }
}

/* -------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__video,
  .flyover__video { display: none; }
  .hero__scroll span { animation: none; opacity: 0.7; transform: scaleY(1); }
  a.company-card:hover { transform: none; }
  a.company-card:hover .company-card__shot > img:first-child,
  .gallery-figure:hover img { transform: none; }
  .zonemap__pin-btn:hover,
  .zonemap__pin-btn:focus-visible { transform: none !important; }
}
