:root {
  --bg: #f7f3e8;
  --bg-soft: #fffdf8;
  --paper: #fffefb;
  --ink: #1a1a1a;
  --ink-soft: #4d4d4d;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.32);
  --line: rgba(26, 26, 26, 0.14);
  --line-strong: rgba(26, 26, 26, 0.35);
  --font-heading: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.2, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

.ambient-texture {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 175, 55, 0.07), transparent 33%),
    radial-gradient(circle at 87% 74%, rgba(0, 0, 0, 0.04), transparent 38%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5) 0,
      rgba(255, 255, 255, 0.5) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(160deg, var(--bg-soft), var(--bg));
}

.floating-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 64px);
  mix-blend-mode: normal;
}

.menu-toggle {
  position: relative;
  width: 112px;
  height: 112px;
  border: 0;
  background: transparent url('/client/assets/menu-kremlin.png') center 56% / 170% no-repeat;
  color: #ffca45;
  display: inline-block;
  cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.36));
  transition: transform 0.35s var(--ease), filter 0.35s ease;
  animation: menu-hint 2.8s ease-in-out infinite;
}

.menu-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: #ffca45;
  transform: translateX(-50%);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  display: block;
}

.menu-toggle span:first-child {
  bottom: 14px;
}

.menu-toggle span:last-child {
  bottom: 7px;
}

@keyframes menu-hint {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.36));
  }
  50% {
    transform: translateY(-1px) scale(1.015);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  }
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-link,
.chapter-index {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(360px, 90vw);
  background: linear-gradient(150deg, #ffffff, #f3ecdc);
  border-right: 1px solid var(--line);
  z-index: 45;
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}

.side-menu.open {
  transform: translateX(0);
}

.menu-close {
  align-self: flex-end;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.side-nav {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-nav a {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.18;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: #8e6a0f;
  border-color: var(--gold-soft);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 40;
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.16) 20%, rgba(12, 12, 12, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: clamp(88px, 11vh, 130px) clamp(22px, 6vw, 100px) clamp(50px, 8vh, 90px);
  color: #fff;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #ffca45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.hero-content h1,
.section-intro h2,
.story-copy h2,
.location-copy h2,
.facts-intro h2,
.cta-band h3,
.lead-modal-card h3 {
  margin: 22px 0;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 0.96;
}

.hero-content h1 {
  font-size: clamp(44px, 8vw, 110px);
}

.lead {
  max-width: 600px;
  margin: 0;
  font-size: clamp(16px, 1.65vw, 23px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.8);
  padding-bottom: 6px;
  color: #ffdb7c;
}

.text-link::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.cta-button {
  border: 1px solid rgba(255, 226, 147, 0.8);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  border-color: #ffd77b;
}

.cta-button.small {
  color: #6c520d;
  border-color: rgba(212, 175, 55, 0.55);
  background: transparent;
}

.cta-button-presentation {
  border-color: rgba(255, 224, 132, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.chapters-section {
  padding: clamp(56px, 7vw, 108px) clamp(18px, 6vw, 120px) clamp(58px, 6vw, 86px);
}

.section-intro {
  max-width: 900px;
  margin-bottom: clamp(28px, 3.2vw, 42px);
}

.section-intro h2 {
  font-size: clamp(38px, 7vw, 84px);
  color: var(--ink);
}

.chapters-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 38vw);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.chapter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.chapter-item {
  border-bottom: 1px solid var(--line);
}

.chapter-link {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  padding: clamp(14px, 1.7vw, 22px) 4px;
  transition: color 0.35s ease, padding-left 0.35s ease;
}

.chapter-link:hover {
  color: #000;
  padding-left: 14px;
}

.chapter-link:hover .chapter-no,
.chapter-link.active .chapter-no {
  color: #8e6a0f;
}

.chapter-no {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.08;
}

.chapter-subtitle {
  display: block;
  margin-top: 10px;
  font-size: clamp(14px, 1.25vw, 18px);
  color: var(--ink-soft);
  max-width: 680px;
}

.hover-preview {
  position: sticky;
  top: 110px;
  min-height: min(58vh, 520px);
  opacity: 0;
  transition: opacity 0.45s ease;
  display: grid;
  align-content: end;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.7), rgba(245, 235, 210, 0.75));
  border: 1px solid rgba(26, 26, 26, 0.12);
  overflow: hidden;
}

.hover-preview.active {
  opacity: 1;
}

.hover-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.45);
  border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.hover-preview-media {
  position: absolute;
  inset: 0;
}

.hover-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hover-preview-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.08), rgba(24, 24, 24, 0.74));
}

.hover-preview-meta {
  position: relative;
  z-index: 2;
  padding: 18px;
  color: #fff;
}

.hover-preview-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 223, 130, 0.94);
}

.hover-preview-meta p {
  margin: 10px 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 50px);
}

.hover-preview-meta span:last-child {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.cta-band {
  margin: 0 auto;
  width: min(1240px, calc(100% - 32px));
  border: 0;
  padding: clamp(16px, 2vw, 28px) 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-band h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  max-width: 760px;
}

.cta-band .cta-button {
  color: #6c520d;
  border-color: rgba(212, 175, 55, 0.6);
  background: transparent;
}

.cta-band-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.footer-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
}

.footer-note {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
}

.footer-contacts li {
  display: grid;
  gap: 4px;
}

.footer-contacts span:first-child {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-contacts a,
.footer-contacts span:last-child {
  font-size: 14px;
  line-height: 1.3;
}

.property-root {
  width: 100%;
}

.property-section {
  position: relative;
  min-height: auto;
  overflow: hidden;
}

.property-hero {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  background: #121212;
  color: #fff;
}

.property-hero .hero-media {
  filter: saturate(0.88);
}

.property-meta {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
}

.story-section,
.facts-section {
  display: grid;
  place-items: center;
  padding: clamp(58px, 7vw, 100px) clamp(24px, 7vw, 140px);
  background: var(--bg);
}

.story-grid {
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 52px);
}

.location-section {
  display: block;
  min-height: auto;
  padding: clamp(58px, 7vw, 100px) 0 0;
  background: var(--bg);
}

.location-copy {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.story-copy h2,
.location-copy h2,
.facts-intro h2 {
  margin-top: 8px;
  font-size: clamp(38px, 6vw, 82px);
}

.story-copy p,
.location-copy p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.story-divider {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
}

.story-divider p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.2;
  color: #8b6b14;
}

.location-map {
  width: 100vw;
  margin: clamp(18px, 2.4vw, 34px) calc(50% - 50vw) 0;
}

.property-map {
  width: 100%;
  height: clamp(300px, 48vh, 520px);
}

.property-map.leaflet-container {
  background: #efe8d6;
}

.property-map .leaflet-tile-pane {
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}

.property-map .leaflet-labelTiles-pane {
  mix-blend-mode: normal;
  opacity: 0.98;
}

.kremlin-marker-icon {
  background: transparent;
  border: 0;
}

.kremlin-marker-glyph {
  position: relative;
  display: block;
  width: 48px;
  height: 62px;
  background: transparent url('/client/assets/menu-kremlin.png') center 56% / 186% no-repeat;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
  transform-origin: 50% 100%;
  animation: kremlin-marker-breathe 2.8s ease-in-out infinite;
}

.kremlin-marker-glyph::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.85);
  transform: translateX(-50%);
}

@keyframes kremlin-marker-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
  }
}

.facts-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: block;
}

.facts-intro {
  position: relative;
}

.facts-note {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: clamp(14px, 1.08vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.facts-manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(4px, 0.7vw, 10px);
  margin-top: clamp(12px, 1.4vw, 20px);
}

.fact-row {
  position: relative;
  min-height: clamp(104px, 11vh, 142px);
  padding: clamp(12px, 1.4vw, 18px) 0;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  align-items: end;
}

.fact-row:last-child {
  border-bottom: 1px solid rgba(26, 26, 26, 0.14);
}

.fact-row::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  background: radial-gradient(circle at 22% 52%, rgba(212, 175, 55, 0.09), transparent 56%);
  pointer-events: none;
}

.fact-row.is-right::after {
  background: radial-gradient(circle at 22% 52%, rgba(212, 175, 55, 0.09), transparent 56%);
}

.fact-row.is-right {
  grid-template-columns: 50px minmax(0, 1fr);
}

.fact-row.is-right .fact-line-no {
  order: 0;
  text-align: left;
}

.fact-row.is-right .fact-content {
  order: 0;
  justify-self: start;
  text-align: left;
}

.fact-line-no {
  position: relative;
  z-index: 1;
  padding-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
}

.fact-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.fact-line-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fact-line-value {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.1vw, 54px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

@media (min-width: 1101px) {
  .facts-manifesto {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 18px);
  }

  .fact-row,
  .fact-row.is-right {
    min-height: 128px;
    padding: 10px 0;
    grid-template-columns: 40px 1fr;
    border-bottom: 1px solid rgba(26, 26, 26, 0.14);
  }

  .fact-row:last-child {
    border-bottom: 1px solid rgba(26, 26, 26, 0.14);
  }

  .fact-content {
    max-width: none;
  }

  .fact-line-value {
    font-size: clamp(25px, 1.8vw, 34px);
    line-height: 1.02;
  }
}

.views-intro {
  padding: clamp(46px, 5vw, 74px) clamp(24px, 8vw, 140px) 12px;
}

.views-intro h3 {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 500;
}

.gallery-panel {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
}

.gallery-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.18), rgba(16, 16, 16, 0.52));
  z-index: 1;
}

.gallery-media {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}

.gallery-caption {
  position: relative;
  z-index: 2;
  width: min(700px, 86%);
  color: #fff;
  text-align: center;
}

.gallery-caption p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 226, 147, 0.93);
}

.gallery-caption h4 {
  margin: 18px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 74px);
  line-height: 1;
  font-weight: 500;
}

.split-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-image {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.split-image .gallery-media {
  inset: -8%;
}

.chapter-nav {
  position: fixed;
  inset: auto 0 30px;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  pointer-events: none;
}

.chapter-arrow {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.83);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  pointer-events: auto;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.chapter-arrow:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.chapter-arrow.disabled {
  opacity: 0.28;
  pointer-events: none;
}

.section-indicators {
  position: fixed;
  top: 50%;
  right: clamp(10px, 2.2vw, 30px);
  transform: translateY(-50%);
  z-index: 24;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-indicators button {
  width: 2px;
  height: 28px;
  border: 0;
  padding: 0;
  background: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease;
}

.section-indicators button.active {
  background: var(--gold);
  transform: scaleY(1.3);
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: clamp(18px, 2.8vw, 40px);
  display: none;
  align-items: center;
  justify-content: center;
}

.lead-modal.open {
  display: flex;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 19, 30, 0.62);
  backdrop-filter: blur(8px);
}

.lead-modal-card {
  --lead-booklet-cover-image: url('https://picsum.photos/seed/maison-booklet-cover/900/1200');
  position: relative;
  width: min(1220px, calc(100vw - 96px));
  height: min(80vh, 740px);
  max-height: calc(100vh - 64px);
  margin: 0;
  overflow: visible;
  color: #f4efe5;
  background: #030b10;
  border: 1px solid rgba(173, 186, 194, 0.3);
  box-shadow: 0 36px 72px rgba(3, 9, 18, 0.48);
}

.lead-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  background: #e8e8e7;
  font-size: 52px;
  font-weight: 300;
  line-height: 0.9;
  color: #0a1218;
  cursor: pointer;
  transform: translate(50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.lead-modal-close:hover {
  transform: translate(50%, -50%) scale(1.03);
  background: #f2f2f1;
}

.lead-modal-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.98fr) minmax(340px, 1fr);
  height: 100%;
  overflow: hidden;
}

.lead-modal-main {
  padding: clamp(34px, 3.4vw, 44px) clamp(36px, 3.8vw, 50px) clamp(44px, 4.2vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.lead-modal-eyebrow {
  color: rgba(226, 211, 177, 0.9);
  letter-spacing: 0.2em;
}

.lead-modal-card h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.15vw, 38px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lead-modal-intro {
  margin: 0;
  max-width: 470px;
  font-size: clamp(14px, 0.96vw, 16px);
  line-height: 1.3;
  color: rgba(238, 241, 245, 0.82);
}

.lead-modal-form {
  display: grid;
  gap: 20px;
  margin-top: 10px;
  margin-left: clamp(12px, 1.2vw, 20px);
  width: 100%;
  max-width: 360px;
}

.lead-modal-form label {
  display: block;
  width: 100%;
}

.lead-modal-form input,
.lead-modal-form select,
.lead-modal-form textarea {
  width: 100%;
  border: 1px solid rgba(176, 190, 198, 0.3);
  background: rgba(4, 18, 29, 0.5);
  padding: 16px 16px;
  min-height: 52px;
  font: inherit;
  font-size: clamp(13px, 0.82vw, 15px);
  color: #f2f5f8;
  outline: none;
  transition: border-color 0.28s ease, background 0.28s ease;
}

.lead-modal-form input::placeholder,
.lead-modal-form textarea::placeholder {
  color: rgba(208, 217, 224, 0.64);
}

.lead-modal-form input:focus,
.lead-modal-form select:focus,
.lead-modal-form textarea:focus {
  border-color: rgba(224, 190, 125, 0.76);
  background: rgba(6, 20, 30, 0.72);
}

.lead-modal-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(230, 205, 155, 0.86) 50%),
    linear-gradient(135deg, rgba(230, 205, 155, 0.86) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lead-modal-form select option {
  background: #07131b;
  color: #f0ece3;
}

.inquiry-submit {
  margin-top: 2px;
  width: 100%;
  border: 0;
  background: #c6a77d;
  color: #faf4e7;
  padding: 17px 16px;
  min-height: 52px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.inquiry-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.form-note {
  margin: 0;
  min-height: 0;
  font-size: 10px;
  color: rgba(212, 221, 228, 0.82);
}

.lead-modal-meta {
  margin: 0;
  max-width: 420px;
  font-size: clamp(14px, 0.96vw, 16px);
  line-height: 1.3;
  color: rgba(185, 197, 206, 0.74);
}

.lead-modal-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-left: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: clamp(34px, 3.4vw, 46px);
}

.lead-modal-visual::before {
  content: none;
}

.lead-modal-visual::after {
  content: none;
}

.lead-modal-booklet {
  position: relative;
  z-index: 2;
  pointer-events: none;
  width: clamp(272px, 29vw, 388px);
  aspect-ratio: 0.665;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.94);
  transform-origin: 50% 62%;
  will-change: transform, opacity;
  transition: transform 0.95s var(--ease), opacity 0.7s ease;
}

.lead-modal.open .lead-modal-booklet {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.lead-modal-booklet-sheet {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: #0b1015;
  box-shadow: 0 10px 22px rgba(4, 10, 16, 0.16);
  overflow: hidden;
  transform: rotate(-14deg);
  will-change: transform;
}

.lead-modal.open .lead-modal-booklet-sheet {
  animation: booklet-drift 7.4s ease-in-out 0.65s infinite;
}

.lead-modal-booklet-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.lead-modal-booklet-sheet::after {
  content: '';
  position: absolute;
  top: -24%;
  bottom: -24%;
  left: -60%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 0%, rgba(255, 255, 255, 0.2) 46%, transparent 100%);
  opacity: 0;
}

.lead-modal.open .lead-modal-booklet-sheet::after {
  animation: booklet-glint 7.2s ease-in-out 1.4s infinite;
}

.lead-modal-booklet-cover {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  bottom: 0;
  overflow: hidden;
  border-radius: 0;
  background: #08131c;
  box-shadow: none;
}

.lead-modal-booklet-cover-image {
  width: 100%;
  height: 100%;
  display: block;
  background-image: var(--lead-booklet-cover-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.06);
}

.lead-modal-booklet-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 20, 0.04), rgba(6, 13, 20, 0.46)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 34%);
  mix-blend-mode: soft-light;
}

.lead-modal-booklet-title {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 14%;
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.38vw, 24px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ceb082;
  text-align: center;
  text-shadow: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lead-modal-booklet-subtitle {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 29%;
  font-size: clamp(6px, 0.44vw, 7px);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(206, 176, 130, 0.62);
  text-align: center;
}

.lead-modal-disclaimer {
  margin: auto 0 0;
  max-width: 420px;
  padding-top: 10px;
  padding-bottom: clamp(8px, 0.9vw, 14px);
  font-size: 11px;
  line-height: 1.34;
  color: rgba(188, 198, 206, 0.76);
}

.lead-modal-disclaimer a {
  color: rgba(215, 186, 130, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(215, 186, 130, 0.42);
  text-underline-offset: 2px;
}

.lead-modal-disclaimer a:hover {
  color: #f2d493;
}

.hp-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(100%);
  white-space: nowrap;
}

.lead-modal-download-meta,
.lead-modal-security-note {
  margin: 0;
  max-width: 420px;
}

.lead-modal-download-meta {
  color: rgba(187, 198, 205, 0.5);
  font-size: 11px;
  line-height: 1.2;
}

.lead-modal-security-note {
  color: rgba(187, 198, 205, 0.46);
  font-size: 11px;
  line-height: 1.3;
}

@keyframes booklet-drift {
  0%,
  100% {
    transform: rotate(-14deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-11deg) translate3d(0, -11px, 0);
  }
}

@keyframes booklet-glint {
  0%,
  100% {
    transform: translateX(-12%) rotate(8deg);
    opacity: 0;
  }
  14% {
    opacity: 0.22;
  }
  45% {
    transform: translateX(288%) rotate(8deg);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.inline-loading {
  padding: 120px 22px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.error-message {
  color: #692525;
  background: #fff2f2;
  border: 1px solid rgba(105, 37, 37, 0.2);
  margin: 120px auto;
  max-width: 640px;
  padding: 20px;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .lead-modal {
    padding: 14px;
  }

  .lead-modal-card {
    width: calc(100vw - 28px);
    height: auto;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .lead-modal-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .lead-modal-close {
    top: 10px;
    right: 10px;
    transform: none;
  }

  .lead-modal-main {
    padding: clamp(28px, 4vw, 38px) clamp(20px, 3.8vw, 34px) clamp(28px, 4vw, 38px);
    overflow: visible;
  }

  .lead-modal-form {
    margin-left: clamp(6px, 1vw, 12px);
    max-width: 420px;
  }

  .lead-modal-card h3 {
    font-size: clamp(34px, 6.2vw, 56px);
  }

  .lead-modal-intro {
    font-size: clamp(17px, 2.5vw, 22px);
  }

  .lead-modal-meta {
    font-size: clamp(17px, 2.5vw, 22px);
    line-height: 1.36;
  }

  .lead-modal-visual {
    min-height: 320px;
    border-top: 0;
  }

  .lead-modal-booklet {
    width: clamp(236px, 34vw, 318px);
  }

  .lead-modal-booklet-title {
    font-size: clamp(16px, 2vw, 22px);
  }

  .lead-modal-booklet-subtitle {
    top: 29%;
    font-size: clamp(7px, 0.8vw, 9px);
  }

  .chapters-layout {
    grid-template-columns: 1fr;
  }

  .hover-preview {
    position: relative;
    top: 0;
    min-height: 300px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .facts-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .facts-manifesto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-intro {
    position: relative;
    top: auto;
  }

  .facts-note {
    max-width: none;
  }

  .location-section {
    padding-top: clamp(52px, 8vw, 80px);
  }

  .story-divider {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }

  .split-panel {
    grid-template-columns: 1fr;
  }

  .split-image {
    min-height: 50vh;
  }

  .property-map {
    height: 50vh;
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .lead-modal {
    padding: 8px;
  }

  .lead-modal-card {
    width: calc(100vw - 12px);
    height: auto;
    max-height: calc(100vh - 12px);
    overflow: auto;
  }

  .lead-modal-close {
    top: 10px;
    right: 10px;
    width: 52px;
    height: 52px;
    font-size: 44px;
    transform: none;
  }

  .lead-modal-main {
    gap: 14px;
    padding: 22px 14px;
    overflow: visible;
  }

  .lead-modal-card h3 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .lead-modal-intro {
    font-size: 16px;
    line-height: 1.36;
  }

  .lead-modal-form {
    margin-left: 0;
    gap: 14px;
  }

  .lead-modal-form input,
  .lead-modal-form select,
  .lead-modal-form textarea {
    font-size: 16px;
    padding: 13px 12px;
    min-height: 52px;
  }

  .inquiry-submit {
    padding: 14px 12px;
    min-height: 52px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .lead-modal-meta {
    font-size: 16px;
    line-height: 1.36;
  }

  .lead-modal-visual {
    min-height: 220px;
  }

  .lead-modal-booklet {
    width: min(54vw, 214px);
  }

  .lead-modal-booklet-title {
    left: 14%;
    right: 14%;
    top: 13%;
    font-size: clamp(11px, 2.4vw, 16px);
  }

  .lead-modal-booklet-subtitle {
    top: 29%;
    font-size: 6px;
    letter-spacing: 0.14em;
  }

  .lead-modal-download-meta,
  .lead-modal-security-note {
    font-size: 10px;
  }

  .lead-modal-disclaimer {
    font-size: 10px;
    line-height: 1.32;
  }

  .floating-header {
    padding: 16px 14px;
  }

  .menu-toggle {
    width: 62px;
    height: 62px;
    background-size: 165%;
    background-position: center 56%;
  }

  .menu-toggle span {
    width: 28px;
  }

  .menu-toggle span:first-child {
    bottom: 9px;
  }

  .menu-toggle span:last-child {
    bottom: 4px;
  }

  .brand-mark {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .admin-link,
  .chapter-index {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .hero-content {
    padding: 88px 16px 46px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .cta-button {
    width: 100%;
  }

  .chapters-section,
  .story-section,
  .facts-section,
  .views-intro {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chapter-link {
    grid-template-columns: 44px 1fr;
  }

  .cta-band-actions {
    width: 100%;
  }

  .cta-band-actions .cta-button {
    width: 100%;
  }

  .chapter-title {
    font-size: clamp(24px, 9vw, 36px);
  }

  .fact-row,
  .fact-row.is-right {
    min-height: 120px;
    grid-template-columns: 40px 1fr;
  }

  .fact-row.is-right .fact-line-no {
    order: 0;
    text-align: left;
  }

  .fact-row.is-right .fact-content {
    order: 0;
    justify-self: start;
    text-align: left;
  }

  .fact-line-value {
    font-size: clamp(26px, 6.2vw, 42px);
  }

  .footer-contacts {
    grid-template-columns: 1fr;
  }

  .chapter-nav {
    bottom: 16px;
    padding: 0 14px;
  }

  .chapter-arrow {
    width: 50px;
    height: 50px;
  }

  .section-indicators {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle {
    animation: none;
  }
}
