@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oswald-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oswald-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/oswald-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/oswald-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/oswald-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/oswald-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD;
}

:root {
  --ground: #F5F3EC;
  --surface: #FFFFFF;
  --surface-alt: #EAE7DD;
  --ink: #111B2B;
  --ink-2: #445064;
  --ink-3: #5E6A7E;
  --line: #D6D2C5;
  --line-strong: #B8B2A2;

  --cobalt: #1E3C9A;
  --cobalt-deep: #122354;
  --cobalt-soft: #E8EEFC;

  --ember: #E8520A;
  --ember-hover: #D24705;
  --ember-text: #BE4004;
  --ember-soft: #FCECE4;

  --pine: #196B44;
  --pine-soft: #E5F4EC;

  --warn-bg: #FFF5E6;
  --warn-border: #E8C58E;
  --warn-text: #7A4B08;

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Golos Text', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r-frame: 12px;
  --r-inner: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--ground);
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.56;
  caret-color: var(--ember);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cobalt); color: #FFFFFF; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--cobalt-deep);
  color: #FFFFFF;
  border-radius: var(--r-inner);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.container {
  width: min(calc(100% - 48px), 1360px);
  margin-inline: auto;
}

/* ==================== ШАПКА ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 236, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; }
.brand-text strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.2vw, 18px);
  margin-left: auto;
}
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.site-nav a:hover { color: var(--cobalt); }
.site-nav a.is-active {
  color: var(--cobalt);
  font-weight: 600;
  border-bottom-color: var(--ember);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  flex-shrink: 0;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16.5px;
  white-space: nowrap;
}
.header-phone svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ember);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-phone:hover { color: var(--cobalt); }

.btn-max {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.btn-max img { width: 100%; height: 100%; display: block; }
.btn-max:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.max-badge-ic {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  display: block;
}
.footer-link-btn .max-badge-ic { width: 16px; height: 16px; border-radius: 4px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  flex-shrink: 0;
}
.menu-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  fill: none;
}

/* ==================== КНОПКИ И ОБЩИЕ КОМПОНЕНТЫ ==================== */
.btn-ember,
.btn-cobalt,
.btn-outline,
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-inner);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-ember {
  background: var(--ember);
  color: #FFFFFF;
  border: 0;
}
.btn-ember:hover { background: var(--ember-hover); }
.btn-ember:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-cobalt {
  background: var(--cobalt);
  color: #FFFFFF;
  border: 0;
}
.btn-cobalt:hover { background: var(--cobalt-deep); }

.btn-outline {
  background: var(--surface);
  color: var(--cobalt);
  border: 1px solid var(--cobalt);
}
.btn-outline:hover { background: var(--cobalt); color: #FFFFFF; }

.btn-ghost-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cobalt);
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.inline-link:hover { color: var(--ember-text); }

/* ==================== ПЕРВЫЙ ЭКРАН ГЛАВНОЙ: ЖИВОЙ КАМПУС ==================== */
.campus-hero {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: end;
  margin-bottom: 16px;
}
.hero-headline h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 6px;
  max-width: 62ch;
  font-size: 14.5px;
  color: var(--ink-2);
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(134px, 1fr));
  gap: 8px;
}
.scenario-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.scenario-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--ember);
  transform-origin: left center;
  transform: scaleX(0);
}
.scenario-tabs.is-auto .scenario-tab[aria-selected="true"]::after {
  animation: tabProgress var(--tab-dur, 5000ms) linear forwards;
}
@keyframes tabProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.scenario-tab svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scenario-tab strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.scenario-tab small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.scenario-tab:hover { border-color: var(--cobalt); }
.scenario-tab[aria-selected="true"] {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
  color: #FFFFFF;
}
.scenario-tab[aria-selected="true"] svg { stroke: #FF945E; }
.scenario-tab[aria-selected="true"] small { color: rgba(255, 255, 255, 0.74); }

.campus-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(350px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.map-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-canvas-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.map-viewport {
  position: relative;
  flex: 1;
  min-height: 486px;
  background: radial-gradient(ellipse at 50% 42%, #F4EFE6 0%, #E7E0D2 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: pan-y;
}
.map-viewport.is-dragging { cursor: grabbing; }

/* 2.5D стол-подставка с наклоном и наездом камеры */
.maquette-rig {
  position: relative;
  width: 99%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.72s var(--ease);
}
.maquette-rig.is-free { transition: transform 0.08s linear; }

.maquette-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 398;
  background: #E7DFD2;
  transform-style: preserve-3d;
  border-radius: 6px;
  box-shadow: 0 28px 54px -26px rgba(38, 28, 16, 0.42);
}

.maq-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.maq-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.65s ease;
}
.map-viewport.is-winter .maq-winter { opacity: 1; }

/* Живой дымок из трубы бани (виден зимой) */
.banya-smoke {
  position: absolute;
  left: 42.1%;
  top: 31.2%;
  width: 24px;
  height: 44px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.6s ease;
}
.map-viewport.is-winter .banya-smoke { opacity: 1; }
.banya-smoke span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(2px);
  animation: smokeRise 4.2s ease-out infinite;
}
.banya-smoke span:nth-child(2) { animation-delay: 1.4s; width: 12px; height: 12px; margin-left: -6px; }
.banya-smoke span:nth-child(3) { animation-delay: 2.8s; width: 9px; height: 9px; margin-left: -4.5px; }
@keyframes smokeRise {
  0% { transform: translate(0, 0) scale(0.55); opacity: 0; }
  18% { opacity: 0.72; }
  75% { opacity: 0.28; }
  100% { transform: translate(11px, -38px) scale(2.1); opacity: 0; }
}

/* Мягкий студийный блик, следующий за курсором */
.maq-sheen {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%), rgba(255, 252, 240, 0.24), transparent 72%);
  transition: opacity 0.35s ease;
}
.map-viewport:hover .maq-sheen { opacity: 1; }

/* Мягкая виньетка фокуса при наезде на выбранное здание */
.maq-focus-veil {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(circle 130px at var(--fx, 50%) var(--fy, 50%), transparent 30%, rgba(17, 27, 43, 0.32) 100%);
  transition: opacity 0.45s ease;
}
.map-viewport.is-zoomed .maq-focus-veil { opacity: 1; }

/* Лёгкий зимний снег поверх зимнего макета */
.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.map-viewport.is-winter .snow-canvas { opacity: 1; }

/* Подпись живого маршрута сценария в правом нижнем углу макета */
.route-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  max-width: calc(100% - 414px);
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(17, 27, 43, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(244, 248, 255, 0.94);
  font-size: 11.5px;
  line-height: 1.3;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.map-viewport.is-zoomed .route-caption { opacity: 0; }
@media (max-width: 1180px) { .route-caption { display: none; } }

/* Панель управления макетом (ракурс + сезон + сброс) */
.map-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.hud-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(17, 27, 43, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}
.hud-btn {
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.hud-btn:hover { color: #FFFFFF; }
.hud-btn[aria-pressed="true"] {
  background: #FFFFFF;
  color: var(--ink);
}
.hud-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.hud-hint {
  padding: 5px 10px;
  background: rgba(17, 27, 43, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  pointer-events: none;
}
.hud-reset {
  padding: 6px 11px;
  background: rgba(17, 27, 43, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, background 0.15s ease;
}
.map-viewport.is-zoomed .hud-reset {
  opacity: 1;
  pointer-events: auto;
}
.hud-reset:hover { background: var(--cobalt); border-color: #FFFFFF; }

.map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  transform: translateZ(6px);
}
.map-routes path {
  fill: none;
  stroke: #E8520A;
  stroke-width: 0.44;
  stroke-dasharray: 1.25 0.95;
  stroke-linecap: round;
  opacity: 0.94;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.9));
  animation: routeFlow 14s linear infinite;
}
@keyframes routeFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -22; }
}

.map-pins {
  position: absolute;
  inset: 0;
  z-index: 5;
  transform-style: preserve-3d;
  transform: translateZ(20px);
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(calc(1 / var(--pin-scale, 1)));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 6px;
  background: rgba(17, 27, 43, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(17, 27, 43, 0.55);
  transition: transform 0.25s var(--ease), background 0.18s ease, opacity 0.18s ease;
}
.pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A9B8D6;
  flex-shrink: 0;
}
.pin.is-dim { opacity: 0.66; }
.pin.is-dim:hover { opacity: 1; }
.pin.is-highlight {
  background: var(--cobalt-deep);
  border-color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}
.pin.is-highlight .pin-dot {
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(232, 82, 10, 0.38);
}
.pin.is-active {
  background: var(--ember);
  border-color: #FFFFFF;
  transform: translate(-50%, -50%) scale(calc(1.06 / var(--pin-scale, 1)));
  z-index: 6;
  opacity: 1;
}
.pin.is-active .pin-dot { background: #FFFFFF; box-shadow: none; }
.pin:hover { z-index: 7; transform: translate(-50%, -50%) scale(calc(1.06 / var(--pin-scale, 1))); }

.map-inspector {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  width: min(378px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid rgba(17, 27, 43, 0.14);
  border-radius: var(--r-inner);
  box-shadow: 0 14px 32px -12px rgba(10, 16, 28, 0.45);
  overflow: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.map-inspector.is-closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.insp-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
}
.insp-close svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.3; fill: none; }
.insp-close:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.insp-media {
  position: relative;
  background: #141E30;
  overflow: hidden;
  min-height: 112px;
}
.insp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.insp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 27, 43, 0.78);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.insp-nav:hover { background: var(--ember); }
.insp-prev { left: 5px; }
.insp-next { right: 5px; }
.insp-counter {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  background: rgba(17, 27, 43, 0.82);
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.insp-zoom {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}
.insp-zoom:hover { background: var(--cobalt); color: #FFFFFF; }
.insp-season-tag {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ember);
  line-height: 1.2;
}
.insp-caption { display: none; }

/* Лайтбокс реальных фото внутри помещений */
.modal-dialog.is-lightbox {
  width: min(100%, 880px);
  padding: 20px 22px 22px;
}
.lb-stage {
  position: relative;
  margin-top: 14px;
  border-radius: var(--r-inner);
  overflow: hidden;
  background: #101828;
  aspect-ratio: 16 / 10;
}
.lb-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(17, 27, 43, 0.8);
  color: #FFFFFF;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lb-arrow:hover { background: var(--ember); border-color: var(--ember); }
.lb-arrow.prev { left: 12px; }
.lb-arrow.next { right: 12px; }
.lb-thumbs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.lb-thumb {
  padding: 0;
  width: 78px;
  height: 52px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-alt);
  opacity: 0.68;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb.is-active { border-color: var(--ember); opacity: 1; }
.lb-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.lb-cap { font-size: 14px; color: var(--ink-2); }

.insp-body {
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.insp-head { padding-right: 24px; }
.insp-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.12;
}
.insp-body p {
  font-size: 12px;
  line-height: 1.38;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insp-foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.insp-foot .inline-link { font-size: 12px; }
.insp-action {
  padding: 4px 9px;
  background: var(--cobalt);
  color: #FFFFFF;
  border: 0;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.insp-action:hover { background: var(--cobalt-deep); }

.map-bar {
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.map-legend strong { color: var(--ink); font-weight: 600; }

.map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  scrollbar-width: none;
}
.map-chips::-webkit-scrollbar { display: none; }
.map-chips button {
  padding: 4px 10px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.map-chips button:hover { border-color: var(--cobalt); color: var(--ink); }
.map-chips button.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #FFFFFF;
}

/* КОМАНДНАЯ ПАНЕЛЬ ПЕРВОГО ЭКРАНА */
.command-panel {
  background: var(--cobalt-deep);
  color: #FFFFFF;
  border-radius: var(--r-frame);
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.command-panel::before {
  content: '';
  position: absolute;
  right: -36px;
  top: -36px;
  width: 190px;
  height: 190px;
  background: url('img/pearl-sign.png') center/contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.055;
  pointer-events: none;
}
.cmd-pane {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
  height: 100%;
}
.cmd-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(25px, 2.1vw, 33px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.cmd-head p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.48;
  color: rgba(235, 241, 255, 0.84);
}

.ny-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ny-opt {
  padding: 8px 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-inner);
  color: #FFFFFF;
}
.ny-opt span { display: block; font-size: 11px; color: rgba(235, 241, 255, 0.78); }
.ny-opt strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 500; margin-top: 2px; }
.ny-opt:hover { background: rgba(255, 255, 255, 0.14); }
.ny-opt.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--ink);
}
.ny-opt.is-active span { color: var(--ink-2); }
.ny-opt.is-active strong { color: var(--cobalt); }

.ny-preview {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-inner);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ny-thumb {
  height: 128px;
  overflow: hidden;
  background: #0D193C;
}
.ny-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
}
.ny-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ny-info h3 { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ny-info p { font-size: 12.5px; line-height: 1.46; color: rgba(235, 241, 255, 0.84); }
.ny-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.ny-price-row strong { font-family: var(--display); font-size: 27px; font-weight: 500; color: #FFAD80; line-height: 1; }
.ny-price-row span { font-size: 12px; color: rgba(235, 241, 255, 0.72); }

.cmd-photo-card {
  border-radius: var(--r-inner);
  overflow: hidden;
  height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.cmd-photo-card img { width: 100%; height: 100%; object-fit: cover; }

.cmd-proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cmd-proof li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(235, 241, 255, 0.88);
}
.cmd-proof li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

.cmd-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

/* ==================== ВНУТРЕННИЕ СТРАНИЦЫ И СЕКЦИИ ==================== */
.page-hero {
  background: var(--cobalt-deep);
  color: #FFFFFF;
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: 4%;
  top: -30px;
  width: 240px;
  height: 240px;
  background: url('img/pearl-sign.png') center/contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.05;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
}
.page-hero-inner.is-single { grid-template-columns: 1fr; }
.crumb {
  font-size: 13px;
  color: rgba(235, 241, 255, 0.72);
  margin-bottom: 12px;
}
.crumb a { text-decoration: underline; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-hero p {
  margin-top: 12px;
  max-width: 58ch;
  font-size: 15.5px;
  color: rgba(235, 241, 255, 0.86);
}
.page-hero-photo {
  border-radius: var(--r-frame);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  aspect-ratio: 16 / 10;
}
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

.price-pill-dark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-inner);
}
.price-pill-dark strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  color: #FFAD80;
  line-height: 1;
}
.price-pill-dark span { font-size: 13.5px; color: rgba(235, 241, 255, 0.86); }

.section {
  padding: clamp(46px, 5.5vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}
.section.is-white { background: var(--surface); }
.section.is-cobalt { background: var(--cobalt-deep); color: #FFFFFF; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  margin-bottom: 26px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-head p {
  margin-top: 7px;
  max-width: 62ch;
  font-size: 15px;
  color: var(--ink-2);
}
.section.is-cobalt .section-head p { color: rgba(235, 241, 255, 0.8); }

/* Сетки направлений и карточек */
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.pathway-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease, transform 0.2s var(--ease);
}
.pathway-card.is-wide { grid-column: span 3; }
.pathway-card:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.pathway-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}
.pathway-card.is-wide .pathway-media { aspect-ratio: 16 / 9; }
.pathway-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.pathway-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pathway-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.14;
}
.pathway-body p { font-size: 14px; color: var(--ink-2); }
.pathway-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.winter-card,
.info-card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.section:not(.is-white) .winter-card,
.section:not(.is-white) .info-card { background: var(--surface); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.card-media.is-poster img { object-position: center 42%; transform: scale(1.06); }
.card-media.is-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cobalt-soft);
  color: var(--cobalt);
}
.card-media.is-icon-box svg {
  width: 44px;
  height: 44px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  background: rgba(17, 27, 43, 0.86);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.status-pill.is-plan { background: #7A4B08; }
.status-pill.is-ready { background: var(--pine); }

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.card-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.15;
}
.card-body p { font-size: 14px; color: var(--ink-2); }
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-price strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1;
}
.card-price span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* Фотогалерея реальных снимков */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.photo-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-tile {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  overflow: hidden;
}
.photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-tile figcaption {
  padding: 10px 13px;
  font-size: 13px;
  color: var(--ink-2);
}

/* Двухколоночный разворот */
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}
.split-photo {
  border-radius: var(--r-frame);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Табличные факты и детали */
.ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.ledger-item {
  padding: 20px 22px;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.ledger-item h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  color: var(--cobalt-deep);
}
.ledger-item p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* Инфо-плашка и предупреждения */
.notice-box {
  padding: 16px 20px;
  background: var(--cobalt-soft);
  border: 1px solid #C2D1F4;
  border-radius: var(--r-inner);
  font-size: 14px;
  color: var(--ink);
}
.notice-box.is-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

/* Вкладки фильтров */
.tabbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tab-btn {
  min-height: 40px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-inner);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.tab-btn:hover { border-color: var(--cobalt); color: var(--ink); }
.tab-btn.is-active {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
  color: #FFFFFF;
}

/* Конструктор-бриф события (БЕЗ авторасчёта цены) */
.brief-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  padding: 26px 28px;
  display: grid;
  gap: 20px;
}
.brief-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-inner);
  color: var(--ink);
  font-size: 15px;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--cobalt); outline: 2px solid var(--ember); outline-offset: 0; }

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.check-item input { width: 17px; height: 17px; accent-color: var(--ember); flex-shrink: 0; }

/* Конверсионная полоса в конце разделов */
.conversion-strip {
  background: var(--cobalt-deep);
  color: #FFFFFF;
  padding: 40px 0;
}
.conversion-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.conversion-inner h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 36px);
  text-transform: uppercase;
}
.conversion-inner p {
  margin-top: 6px;
  max-width: 56ch;
  font-size: 14.5px;
  color: rgba(235, 241, 255, 0.84);
}

/* Карта Яндекса и FAQ */
.map-embed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 24px;
  align-items: stretch;
}
.yandex-frame {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  background: var(--surface-alt);
}
.map-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-info-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
}
.map-info-card .phone-big {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--cobalt);
}

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  position: relative;
  font-size: 15px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  color: var(--cobalt);
  transition: transform 0.18s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ==================== ПОДВАЛ ==================== */
.site-footer {
  background: var(--surface-alt);
  padding: 42px 0 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}
.footer-address {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.footer-col h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-links-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
  font-size: 14px;
}
.footer-links-2col a:hover { color: var(--cobalt); text-decoration: underline; }
.footer-phone {
  display: inline-block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  color: var(--cobalt-deep);
  margin-bottom: 10px;
}
.footer-channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 14px;
}
.footer-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-link-btn.is-accent { color: var(--ember-text); }
.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ==================== ПОСТОЯННАЯ ПАНЕЛЬ БЫСТРОЙ СВЯЗИ ==================== */
.floating-lead {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  z-index: 55;
  width: min(calc(100% - 28px), 860px);
  background: var(--cobalt-deep);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-frame);
  padding: 10px 14px;
  box-shadow: 0 20px 44px -14px rgba(10, 16, 28, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.28s var(--ease), opacity 0.24s ease;
}
.floating-lead.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.floating-lead-copy strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.floating-lead-copy span { display: block; font-size: 12px; color: rgba(235, 241, 255, 0.76); }
.floating-lead-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lead-call,
.lead-max,
.lead-ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-inner);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.lead-call {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}
.lead-call svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.lead-call:hover { background: rgba(255, 255, 255, 0.2); }
.lead-max {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.lead-max img { width: 100%; height: 100%; display: block; }
.lead-max:hover { transform: translateY(-1px); filter: brightness(1.06); }
.lead-ask {
  background: var(--ember);
  border: 0;
  color: #FFFFFF;
}
.lead-ask:hover { background: var(--ember-hover); }

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-shade {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 38, 0.62);
  backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  padding: 26px 26px 24px;
  box-shadow: 0 28px 64px -20px rgba(10, 16, 28, 0.6);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.modal-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.modal-close:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.modal-dialog h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.1;
  padding-right: 38px;
  text-transform: uppercase;
}
.modal-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.modal-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.consent input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ember); }
.form-error { font-size: 12px; font-weight: 600; color: #B42318; }
.formnote { font-size: 13px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ==================== АДАПТИВ ==================== */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-inner);
    box-shadow: 0 18px 36px -14px rgba(17, 27, 43, 0.25);
  }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }

  .hero-top { grid-template-columns: 1fr; }
  .campus-stage { grid-template-columns: 1fr; }
  .map-viewport { min-height: 430px; }
  .page-hero-inner,
  .split-band,
  .map-embed-grid { grid-template-columns: 1fr; }
  .pathways-grid { grid-template-columns: 1fr 1fr; }
  .pathway-card,
  .pathway-card.is-wide { grid-column: auto; }
  .cards-3,
  .ledger,
  .photo-grid,
  .photo-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; gap: 8px; }
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { display: none; }
  .header-actions { gap: 6px; }
  .header-phone { font-size: 13.5px; gap: 4px; }
  .header-phone svg { width: 13px; height: 13px; }
  .btn-max { width: 34px; height: 34px; padding: 0; border-radius: 8.5px; }
  .menu-toggle { width: 36px; height: 36px; }

  .campus-hero { padding: 14px 0 24px; }
  .scenario-tabs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .scenario-tab { padding: 9px 10px; gap: 7px; }
  .scenario-tab strong { font-size: 12.5px; }

  .map-viewport { min-height: 0; aspect-ratio: 16 / 10; padding-top: 26px; }
  .map-hud { top: 8px; left: 8px; right: 8px; }
  .hud-hint { display: none; }
  .hud-btn, .hud-reset { padding: 4px 8px; font-size: 11px; }
  .pin { padding: 5px; gap: 0; }
  .pin-label { display: none !important; }
  .pin.is-active {
    padding: 6px;
    box-shadow: 0 0 0 4px rgba(232, 82, 10, 0.38), 0 6px 16px rgba(10, 16, 28, 0.6);
  }
  .map-inspector {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 126px minmax(0, 1fr);
    min-height: 126px;
  }
  .map-inspector.is-closed { display: none; }
  .map-bar { padding: 10px 12px; gap: 8px; }
  .map-legend { font-size: 12px; gap: 4px 12px; }
  .map-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }
  .map-chips button { flex-shrink: 0; }

  .command-panel { padding: 18px 16px; }
  .pathways-grid,
  .cards-3,
  .cards-2,
  .ledger,
  .photo-grid,
  .photo-grid.cols-4,
  .brief-fields,
  .footer-grid { grid-template-columns: 1fr; }

  .floating-lead {
    bottom: 10px;
    padding: 8px 10px;
    justify-content: center;
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
  }
  .floating-lead-copy { display: none; }
  .floating-lead-actions { width: 100%; }
  .lead-call, .lead-ask { flex: 1; padding: 0 10px; font-size: 13px; }
  .lead-max { width: 40px; height: 40px; padding: 0; }
  .site-footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.consent a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--cobalt); }
