/* Zorge 9 REA-extracted reveal & layout refinements for BLACK ATLAS A2 template */

/* Accepted permanent accent palette: Garnet (rich #c75350 for bars/controls, brighter #f0807d for crisp small text on dark) */
:root {
  --beige: #c75350;
  --lbeige: #f0807d;
  --beige85: #c75350d9;
  --beige70: #c75350b3;
  --beige2: #d86562;
}

/* Readable desktop font clamps per DESIGN.md (prevents 1366x768 text from shrinking below 12.5px/16px while keeping 1920x1080 identical) */
@media (min-width: 768px) {
  body {
    --t-s: clamp(12.5px, var(--fs-3), 15px);
    --t-m: clamp(16px, var(--fs-5), 21px);
    --t-l: clamp(24px, var(--fs-6), 34px);
  }
  .a2 section.ins .kk,
  .a2 .lm.lm-model .kk,
  .a2 .rz-h .kk,
  .a2 .rz-dev .kk {
    font-size: clamp(13px, 0.85rem, 14px) !important;
    color: var(--lbeige, var(--beige)) !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  }
}

/* Header nav hover: crisp pure white text + accent bottom hairline so it stays 100% readable over any hero photo (including Garnet) */
@media (hover: hover) and (pointer: fine) {
  .hd nav a:hover {
    color: #ffffff;
    box-shadow: inset 0 -2px var(--lbeige, var(--beige));
  }
  .hd .ic:hover {
    color: var(--lbeige, var(--beige));
  }
}

/* Readable form field labels in #zayavka (overrides a2.css --fs-1 = 7.1px on 1366x768; leaves consent checkbox small) */
.a2 #zayavka.fin .zv-in > span {
  font-size: clamp(12.5px, 0.8rem, 14px);
  color: var(--w75);
}
.a2 #zayavka.fin .zv-in input,
.a2 #zayavka.fin .zv-in select {
  height: clamp(42px, 3rem, 48px);
}

/* Prevent FOUT bold font flash before document.fonts.ready */
@media (prefers-reduced-motion: no-preference) {
  html.zr-boot .hd,
  html.zr-boot .hero .crumbs,
  html.zr-boot .hero .info {
    opacity: 0;
  }
}

html.zorge-reveal-on .rv .w > span,
html.zorge-reveal-on .rv.in .w > span {
  transform: none;
  transition: none;
}

html.zorge-reveal-on .rv-f,
html.zorge-reveal-on .rv-f:not(.in) {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Hero breadcrumbs links */
.crumbs a {
  color: inherit;
  transition: color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover {
    color: var(--beige);
  }
}

/* Smooth cinematic zoom-out on the first hero screen */
@keyframes heroZoomOut {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .ph {
    overflow: hidden;
  }

  .hero .ph img {
    transform-origin: 50% 52%;
    animation: heroZoomOut 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    will-change: transform;
  }

  html.zorge-reveal-on .hd[data-zr="wait"] {
    opacity: 0.001;
    transform: translateY(-14px);
  }

  html.zorge-reveal-on [data-zr="wait"] {
    opacity: 0.001;
  }

  html.zorge-reveal-on [data-zr-kind="media"][data-zr="wait"] {
    opacity: 1;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }

  html.zorge-reveal-on [data-zr-kind="media"] {
    will-change: clip-path;
    background-color: var(--black);
  }

  .a2 #stroyka .st-cd {
    background-color: var(--black);
  }
}

.rv .w,
.rv .w > span,
.zr-word {
  text-indent: 0;
}

.zr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
  text-indent: 0;
}

.zr-word.zr-open {
  overflow: visible;
}

.zr-word > span {
  display: inline-block;
  text-indent: 0;
  will-change: transform, opacity;
}

/* Hero H1 container clips the bottom-to-top rise of "Татум" cleanly — pure white + animated vertical accent bar on the left */
@keyframes heroBarDraw {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.hero .nm {
  position: relative;
  overflow: hidden;
  padding-bottom: 0.08em;
  padding-left: clamp(0.9rem, 1.6vw, 1.65rem);
  color: #ffffff !important;
  -webkit-text-stroke: 0.02em #ffffff !important;
}
.hero .nm::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.06em;
  bottom: 0.14em;
  width: 3px;
  background: var(--beige);
  transform-origin: bottom;
  animation: heroBarDraw 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero .nm .zn {
  display: inline-block;
}

/* Eliminate all subpixel white hairline gaps under sections (especially under #expert / .hx) */
html,
body,
#scroll-root,
#intro-scene,
#final-scene {
  background-color: #000 !important;
}
.a2 section {
  box-shadow: 0 2px 0 #000;
}

/* Keep crisp 1px borders without creating conflicting compositor layers that shimmer under Locomotive scroll */
.a2 .b,
.a2 .hd .call,
.a2 #about .tab,
.a2 #zapis .b,
.a2 #faq .b {
  will-change: auto;
  -webkit-font-smoothing: antialiased;
}

/* Gold/beige accent ONLY on #about passport labels (bottom), keep top tabs white/muted as original */
.a2 #about .pp dt {
  color: var(--beige);
}

/* ===== Zorge 9 Editorial Statements: TWO DISTINCT COMPOSITIONS ===== */

/* 1. First statement (.ins-indent — exact same clean "Красная строка" geometry as accepted #zapis v1):
      Specificity beats a2.css:277 (.a2 .ins:has(+ #about)) so bottom padding stays clean and balanced. */
.a2 section.ins.ins-indent,
.a2 section.ins.ins-indent:has(+ #about) {
  display: block;
  min-height: 0;
  padding: clamp(6rem, 15svh, 11rem) var(--m) clamp(5rem, 12svh, 9rem);
  background: var(--black);
}

/* Compensate #genplan's own 3.75rem top padding so "Застройщик · FORMA" sits visually dead-center between #expert and #genplan */
.a2 section.ins.ins-indent.ins-dev {
  padding-top: clamp(7.5rem, 17svh, 12rem);
  padding-bottom: clamp(3.5rem, 8.5svh, 6.5rem);
}

/* ===== Zorge 9 Floating Text Over Photo (native Locomotive data-scroll-speed, zero jitter) ===== */
.a2 section.ins.ins-float {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.a2 section.ins.ins-float .ins-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: #0d0e10;
  pointer-events: none;
}

.a2 section.ins.ins-float .ins-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.42) 68%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.a2 section.ins.ins-float .ins-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a2 section.ins.ins-float .ins-copy {
  position: relative;
  z-index: 2;
}

.a2 section.ins.ins-float h2 {
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.72);
}

/* Variant A (Statement 1): headline ABOVE, official photo BELOW on the right */
@media (min-width: 768px) {
  /* Variant A (Statement 1): spacious breathing room, photo tucked behind text, #about cleanly below */
  .a2 section.ins.ins-float-bottom,
  .a2 section.ins.ins-float-bottom:has(+ #about) {
    padding-top: clamp(3.5rem, 8svh, 6rem);
    padding-bottom: clamp(1.5rem, 3.5svh, 2.75rem);
  }
  .a2 section.ins.ins-float-bottom .ins-copy {
    position: relative;
    z-index: 2;
  }
  .a2 section.ins.ins-float-bottom .ins-photo {
    width: clamp(28rem, 52vw, 54rem);
    aspect-ratio: 4 / 3;
    margin-left: auto;
    margin-top: clamp(-8rem, -12svh, -4.5rem);
    pointer-events: auto;
  }
  .a2 section.ins.ins-float-bottom .ins-photo img {
    filter: brightness(1.1);
  }

  /* Format switcher inside #pres-intro (3 distinct layout variants for the opening block) */
  .a2 #pres-intro .pres-sw {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-bottom: clamp(1.5rem, 3svh, 2.25rem);
  }
  .a2 #pres-intro .pres-sw button {
    padding: 0.38rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--w50);
    font: 400 0.75rem/1 var(--text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  }
  .a2 #pres-intro .pres-sw button[aria-pressed="true"] {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
  }

  /* Format 2 (.pres-v2): exact live layout of accepted #zapis — tall portrait photo LEFT + floating text overlapping right edge */
  .a2 #pres-intro.pres-v2 .pres-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }
  .a2 #pres-intro.pres-v2 .ins-photo {
    grid-area: 1 / 1;
    width: clamp(18rem, 32vw, 33rem);
    aspect-ratio: 3 / 4;
    margin: 0;
    justify-self: start;
  }
  .a2 #pres-intro.pres-v2 .ins-photo::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.72) 100%);
  }
  .a2 #pres-intro.pres-v2 .ins-copy {
    grid-area: 1 / 1;
    padding-left: clamp(5rem, 16vw, 17rem);
  }
  .a2 #pres-intro.pres-v2 .kk {
    text-align: left;
    padding-left: clamp(3rem, 22vw, 22rem);
  }
  .a2 #pres-intro.pres-v2 .ins-sign {
    left: 1.25rem;
    right: auto;
    bottom: 1.15rem;
  }
  .a2 #pres-intro.pres-v2 .ins-dots {
    right: 1rem;
    left: auto;
  }

  /* Format 3 (.pres-v3): Zorge 9 asymmetric diptych — vertical frame LEFT + landscape frame RIGHT lower + headline floating across center */
  .a2 #pres-intro.pres-v3 .pres-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .a2 #pres-intro.pres-v3 .ins-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 3;
    margin-bottom: clamp(-5rem, -8svh, -2.5rem);
  }
  .a2 #pres-intro.pres-v3 .ins-photo {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0;
  }
  .a2 #pres-intro.pres-v3 .ins-photo-b {
    display: block;
    grid-column: 2;
    grid-row: 2;
    position: relative;
    margin: clamp(4rem, 10svh, 8rem) 0 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0d0e10;
  }
  .a2 #pres-intro.pres-v3 .ins-photo-b img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.08);
  }
  .a2 #pres-intro:not(.pres-v3) .ins-photo-b {
    display: none;
  }
  .a2 section.ins.ins-float-bottom .ins-sign {
    position: absolute;
    z-index: 4;
    right: 1.25rem;
    bottom: 1.15rem;
    margin: 0;
    font: 500 0.75rem/1 var(--wide);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
    pointer-events: none;
  }
  .a2 section.ins.ins-float .ins-photo {
    pointer-events: auto;
  }
  .a2 section.ins.ins-float .ins-dots {
    position: absolute;
    z-index: 5;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }
  .a2 section.ins.ins-float .ins-dots button {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }
  .a2 section.ins.ins-float .ins-dots button[aria-selected="true"] {
    background: var(--beige);
    border-color: var(--beige);
    transform: scale(1.2);
  }
  .a2 #about {
    padding-top: calc(var(--actual-header, var(--header-size)) + 0.25rem);
    padding-bottom: clamp(1rem, 2svh, 1.5rem);
  }

  /* Variant C (Statement 2 - Developer FORMA): spacious vertical photo on the right, clean transition into #genplan */
  .a2 section.ins.ins-float-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding-top: clamp(4.5rem, 10svh, 7rem);
    padding-bottom: clamp(1rem, 2svh, 1.75rem);
  }
  .a2 section.ins.ins-float-right .ins-photo {
    grid-area: 1 / 1;
    width: clamp(18rem, 33vw, 34rem);
    aspect-ratio: 4 / 5;
    justify-self: end;
  }
  .a2 section.ins.ins-float-right .ins-copy {
    grid-area: 1 / 1;
    width: 100%;
    padding-right: clamp(4rem, 12vw, 13rem);
  }
  .a2 section.ins.ins-float-right .kk {
    display: block;
    text-align: left;
    padding-left: clamp(3rem, 22vw, 22rem);
  }
  /* Remove a2.css 14vh top margin on #genplan so it sits right below FORMA with minimal gap */
  .a2 #genplan.gp {
    margin-top: 0;
    padding-top: clamp(1rem, 2svh, 1.5rem);
  }

  /* Variant B (Statement 3 - "Окружение · Юго-запад"): spacious Zorge 9 framing + soft seamless edge dissolve into #000 */
  .a2 section.ins.ins-float-left {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding-top: clamp(5.5rem, 12svh, 9rem);
    padding-bottom: clamp(5.5rem, 12svh, 9rem);
  }
  .a2 section.ins.ins-float-left .ins-photo {
    grid-area: 1 / 1;
    width: clamp(19rem, 35vw, 36rem);
    aspect-ratio: 4 / 5;
    justify-self: start;
    background: #000;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 72%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 72%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
    mask-composite: intersect;
  }
  .a2 section.ins.ins-float-left .ins-photo::after {
    display: none;
  }
  .a2 section.ins.ins-float-left .ins-photo img {
    filter: none;
  }
  .a2 section.ins.ins-float-left .ins-sign-tl {
    position: absolute;
    z-index: 4;
    top: 1.25rem;
    left: 1.5rem;
    margin: 0;
    font: 500 0.75rem/1 var(--wide);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
    pointer-events: none;
  }
  .a2 section.ins.ins-float-left .ins-copy {
    grid-area: 1 / 1;
    width: 100%;
    padding-left: clamp(5rem, 15vw, 16rem);
    padding-right: clamp(2rem, 6vw, 6rem);
  }
  .a2 section.ins.ins-float-left .kk {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: clamp(3rem, 22vw, 22rem);
  }
  .a2 section.ins.ins-float-left:not(.hero) h2:not(.st-v h2) {
    max-width: min(100%, 44ch);
    margin-left: 0;
    text-indent: clamp(3rem, 22vw, 22rem);
    text-align: left;
  }
}

@media (max-width: 767px) {
  .a2 section.ins.ins-float .ins-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ===== #zapis & #usloviya (.lm.lm-model): Model photo + floating BLACK ATLAS text over edge ===== */
.a2 .lm.lm-model {
  overflow: visible;
}

.a2 .lm.lm-model .lm-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.a2 .lm.lm-model .lm-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: #0d0e10;
}

.a2 .lm.lm-model .lm-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.35) 65%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.a2 .lm.lm-model.lm-model-right .lm-photo::after {
  display: block;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 18%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0) 68%);
}

.a2 .lm.lm-model .lm-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.a2 .lm.lm-model .lm-sign {
  position: absolute;
  z-index: 4;
  bottom: 1.15rem;
  left: 1.25rem;
  margin: 0;
  font: 500 0.75rem/1 var(--wide);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.a2 .lm.lm-model.lm-model-right .lm-sign {
  left: auto;
  right: 1.25rem;
}

.a2 .lm.lm-model .lm-dots {
  position: absolute;
  z-index: 5;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.a2 .lm.lm-model.lm-model-right .lm-dots {
  right: auto;
  left: 1rem;
}

.a2 .lm.lm-model .lm-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.a2 .lm.lm-model .lm-dots button[aria-selected="true"] {
  background: var(--beige);
  border-color: var(--beige);
  transform: scale(1.2);
}

.a2 .lm.lm-model .lm-body {
  position: relative;
  z-index: 2;
}

.a2 .lm.lm-model h2.lm-indent-t {
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.78);
}

@media (min-width: 768px) {
  .a2 .lm.lm-model .lm-photo {
    grid-area: 1 / 1;
    width: clamp(18rem, 32vw, 33rem);
    aspect-ratio: 3 / 4;
    justify-self: start;
  }
  .a2 .lm.lm-model .lm-body {
    grid-area: 1 / 1;
    padding-left: clamp(5rem, 16vw, 17rem);
  }
  /* Align gold kicker exactly above the first indented letter (matches h2 text-indent) */
  .a2 .lm.lm-model .kk {
    text-align: left;
    padding-left: clamp(3rem, 22vw, 22rem);
  }
  /* Mirrored right-photo variant (#usloviya): Zorge 9 balanced margins — kicker aligned pixel-exact to first letter "П", symmetric right air, clean moderate overlap on photo */
  .a2 .lm.lm-model.lm-model-right .lm-photo {
    justify-self: end;
  }
  .a2 .lm.lm-model.lm-model-right .lm-body {
    padding-left: 0;
    padding-right: clamp(3rem, 11vw, 13rem);
  }
  .a2 #usloviya.lm.lm-model.lm-model-right .kk {
    padding-left: clamp(3rem, 16vw, 18rem);
  }
  .a2 #usloviya.lm.lm-model.lm-model-right .lm-v-z1 h2.lm-indent-t {
    text-indent: clamp(3rem, 16vw, 18rem);
    max-width: min(100%, 42ch);
  }
  .a2 .lm.lm-model.lm-model-right .lm-foot {
    padding-left: 0;
    margin-top: clamp(2rem, 4svh, 3rem);
  }
}

@media (max-width: 767px) {
  .a2 .lm.lm-model .lm-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 1.5rem;
  }
}

/* ===== Zorge 9 Floating Square VIEW + 45° Arrow Cursor (native mouse stays visible) ===== */
.zorge-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 96px;
  height: 96px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font: 500 0.6875rem/1 var(--wide);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
  will-change: transform, opacity;
}

.zorge-cursor span {
  align-self: flex-start;
}

.zorge-cursor svg {
  align-self: flex-end;
  width: 16px;
  height: 16px;
}

/* #mesta ("Места рядом"): accepted chaotic Zorge 9 layout + unified bold Atlas place titles */
.a2 #mesta .mr-i figure {
  flex: none;
  height: calc((100% - 4.25rem) * var(--h));
}
.a2 #mesta .mr-i h3 {
  margin-top: 0.85rem;
  font: var(--dw) clamp(14px, 0.95rem, 16px)/1.1 var(--wide);
  letter-spacing: 0.08em;
  color: var(--lbeige, var(--beige));
}
.a2 #mesta .mr-i p {
  margin-top: 0.4rem;
  font: var(--dw) clamp(15px, 1.05vw, 19px)/1.25 var(--wide);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

/* Chaotic staggered vertical heights in Zorge 9 style; <=4 cards stay static across viewport width without side-scroll */
@media (min-width: 768px) {
  .a2 #mesta.mr-zorge .hx-tr {
    column-gap: clamp(2rem, 3.5vw, 3.5rem);
  }
  .a2 #mesta.mr-few .hx-in {
    position: relative;
    top: auto;
  }
  .a2 #mesta.mr-few .hx-tr {
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    transform: none !important;
  }
  .a2 #mesta.mr-few .mr-i {
    flex: 1 1 0;
    width: auto !important;
    max-width: 30vw;
  }
  .a2 #mesta.mr-zorge .mr-i:nth-child(4n + 1) {
    justify-content: flex-start;
  }
  .a2 #mesta.mr-zorge .mr-i:nth-child(4n + 2) {
    justify-content: flex-end;
    padding-bottom: 1.5rem;
  }
  .a2 #mesta.mr-zorge .mr-i:nth-child(4n + 3) {
    justify-content: center;
  }
  .a2 #mesta.mr-zorge .mr-i:nth-child(4n + 4) {
    justify-content: flex-start;
    padding-top: clamp(2rem, 6svh, 4.5rem);
  }
}

.zorge-cursor.is-on {
  opacity: 1;
}

.zorge-cursor svg {
  width: 16px;
  height: 16px;
}

/* #loc ("Расположение" with map): always fits 100% of the viewport below the fixed header on desktop and adapts on resize */
@media (min-width: 768px) {
  .a2 #loc.bk {
    height: calc(100svh - var(--actual-header, var(--header-size)));
    min-height: 30rem;
    max-height: calc(100svh - var(--actual-header, var(--header-size)));
    padding: clamp(1.5rem, 3svh, 2.5rem) var(--m) clamp(1.5rem, 3svh, 2.5rem);
  }
  .a2 #loc .lc-g {
    margin-top: clamp(1.1rem, 2.2svh, 1.75rem);
  }
}

.a2 section.ins.ins-indent .kk {
  margin-bottom: clamp(1.25rem, 3svh, 2.25rem);
  font-family: var(--text);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beige);
}

.a2 section.ins.ins-indent:not(.hero) h2:not(.st-v h2) {
  font-family: Deco, Atlas, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  text-indent: clamp(3rem, 22vw, 22rem);
  max-width: min(100%, 44ch);
  text-wrap: pretty;
  color: var(--white);
}

.a2 section.ins.ins-indent .ins-foot {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: clamp(2.5rem, 6svh, 4.5rem);
}

.a2 section.ins.ins-indent .ins-anchor {
  font-family: var(--wide);
  font-weight: var(--dw);
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--w75);
}

/* 2. Second statement (.ins-mirror — like Zorge 9 screenshot 3):
      Mirrored diagonal: compact light copy top-left (3-4 lines), generous black air,
      large right-aligned display headline bottom-right right above the next section. */
.a2 section.ins.ins-mirror {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-content: space-between;
  min-height: clamp(28rem, 62svh, 44rem);
  padding: clamp(5rem, 11svh, 8.5rem) var(--m) clamp(2rem, 4svh, 3.5rem);
  row-gap: clamp(4rem, 12svh, 9rem);
}

.a2 section.ins.ins-mirror .ins-r {
  grid-column: 1 / 6;
  grid-row: 1;
  margin: 0;
  justify-self: start;
  max-width: 38ch;
}

.a2 section.ins.ins-mirror .kk {
  margin-bottom: 0.75rem;
  font-family: var(--text);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beige);
}

.a2 section.ins.ins-mirror .ins-r .s {
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw, 1.05rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--w75);
}

.a2 section.ins.ins-mirror:not(.hero) h2:not(.st-v h2) {
  grid-column: 6 / 13;
  grid-row: 2;
  justify-self: end;
  text-align: right;
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.8vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-transform: none;
  max-width: 15ch;
  text-wrap: balance;
  color: var(--white);
}

/* ===== #zapis & #usloviya: Accepted Variant 1 "Красная строка" (clean black air, no white divider lines) ===== */
.a2 :is(#zapis, #usloviya).lm {
  display: block;
  min-height: 0;
  height: auto;
  margin: clamp(3rem, 7svh, 5rem) 0;
  padding: clamp(3rem, 7svh, 5rem) var(--m);
  background: var(--black);
  border: none;
}

#zapis .lm-sw {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: clamp(1.75rem, 4svh, 3rem);
}

#zapis .lm-sw button {
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--w50);
  font: 400 0.75rem/1.2 var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#zapis .lm-sw button[aria-pressed="true"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

:is(#zapis, #usloviya) .kk {
  margin-bottom: 1rem;
  font-family: var(--text);
  font-weight: 500;
  font-size: clamp(13px, 0.85rem, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lbeige, var(--beige));
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

:is(#zapis, #usloviya) .lm-p {
  max-width: 36ch;
  font-family: var(--text);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.55;
  color: var(--w75);
}

/* Variant 1: Deep first-line text-indent — same native Deco font as all .ins statements */
.a2 :is(#zapis, #usloviya) .lm-v-z1 h2.lm-indent-t {
  font-family: Deco, Atlas, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  text-indent: clamp(3rem, 22vw, 22rem);
  max-width: min(100%, 44ch);
  color: var(--white);
}

:is(#zapis, #usloviya) .lm-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(2rem, 5svh, 3.5rem);
}
#usloviya .lm-foot {
  justify-content: flex-start;
}

/* Larger, clearer two-tier typography inside #dlya-zhitelej ("Всё нужное — внутри дома") */
.a2 #dlya-zhitelej .rz-tx {
  width: clamp(19rem, 23vw, 25rem);
}

.a2 #dlya-zhitelej .rz-tx h3 {
  font-family: var(--wide);
  font-weight: var(--dw);
  font-size: clamp(1.65rem, 2.2vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.a2 #dlya-zhitelej .rz-T .rz-tx {
  width: auto;
}

.a2 #dlya-zhitelej .rz-T .rz-tx h3 {
  font-family: var(--wide);
  font-weight: var(--dw);
  font-size: clamp(1.45rem, 1.85vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.a2 #dlya-zhitelej .rz-S .rz-tx {
  width: clamp(22rem, 26vw, 29rem);
}

.a2 #dlya-zhitelej .rz-S .rz-tx h3 {
  font-size: clamp(1.95rem, 2.6vw, 2.85rem);
  line-height: 1.05;
}

.a2 #dlya-zhitelej .rz-tx p {
  margin-top: 0.9rem;
  font-size: var(--t-m);
  line-height: 1.5;
  color: var(--w75);
}

/* Variant 2: Asymmetric Zorge 9 diptych (left photo higher, right photo lower, breathing space) */
#zapis .lm-dip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

#zapis .lm-dip figure {
  margin: 0;
  overflow: hidden;
  background: #111;
}

#zapis .lm-dip figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#zapis .lm-dip-a {
  aspect-ratio: 3 / 4;
  position: relative;
}

#zapis .lm-dip-a figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--wide);
  font-size: var(--t-s);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

#zapis .lm-dip-c {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-block: 1rem;
}

.a2 #zapis .lm-dip-c h2 {
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(1.65rem, 2.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: none;
}

#zapis .lm-dip-b {
  aspect-ratio: 4 / 5;
  margin-top: clamp(3rem, 9svh, 7rem);
}

/* Variant 3: Mirrored diagonal */
#zapis .lm-mir {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  row-gap: clamp(3rem, 8svh, 6rem);
}

#zapis .lm-mir-l {
  grid-column: 1 / 6;
  grid-row: 1;
}

#zapis .lm-mir-r {
  grid-column: 6 / 13;
  grid-row: 2;
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.a2 #zapis .lm-mir-r h2 {
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--beige);
}

@media (max-width: 767px) {
  .a2 section.ins.ins-indent,
  .a2 section.ins.ins-mirror {
    min-height: 0;
    padding: 3.5rem var(--m);
  }
  .a2 section.ins.ins-indent:not(.hero) h2:not(.st-v h2),
  .a2 :is(#zapis, #usloviya) .lm-v-z1 h2.lm-indent-t {
    text-indent: 0;
  }
  .a2 section.ins.ins-mirror,
  #zapis .lm-dip,
  #zapis .lm-mir {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
  .a2 section.ins.ins-mirror .ins-r,
  .a2 section.ins.ins-mirror:not(.hero) h2:not(.st-v h2),
  #zapis .lm-mir-l,
  #zapis .lm-mir-r {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
    align-items: flex-start;
  }
  #zapis .lm-dip-b {
    margin-top: 0;
  }
}

/* #expert slides in from the right at the end of #dlya-zhitelej horizontal rail */
.rz[data-expert-slide] .hx-tr {
  padding-right: 0;
}

.rz[data-expert-slide] .rz-l::after {
  display: none;
}

.a2 .rz[data-expert-slide] #expert {
  flex: 0 0 100vw;
  width: 100vw;
  height: calc(100svh - var(--hh));
  min-height: 0;
  align-self: flex-start;
  margin: calc(-1 * var(--py)) 0 0;
  box-sizing: border-box;
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .a2 .rz[data-expert-slide] #expert {
    flex: none;
    width: auto;
    height: auto;
    margin: 2rem 0 0;
  }
}

/* Similar projects: pure B&W crisp class square, DECO heart; sits sticky inside #final-scene so #zayavka glides smoothly OVER it */
#similar {
  position: relative;
  z-index: 1;
  height: calc(100svh - var(--hh, 5rem));
  min-height: 35rem;
  max-height: 100svh;
  padding-top: clamp(1.75rem, 3.5svh, 2.75rem);
  padding-bottom: clamp(1.25rem, 2.5svh, 2rem);
  margin-bottom: 0;
}

#similar .sm-tr {
  margin-top: clamp(1.1rem, 2.2svh, 1.5rem);
  gap: 1.25rem;
}

#similar .sm-cd {
  flex: 0 0 calc((100% - 2.5rem) / 3.22);
  min-width: 18.5rem;
  display: flex;
  flex-direction: column;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  overflow: hidden;
}

#similar .sm-ph {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

#similar .sm-ph-link {
  display: block;
  width: 100%;
  height: 100%;
}

#similar .sm-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--th);
}

@media (hover: hover) and (pointer: fine) {
  #similar .sm-cd:hover .sm-ph img {
    transform: scale(1.04);
  }
}

#similar .sm-class {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.38em 0.75em;
  background: #000;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  color: #fff;
  font: 500 0.8125rem/1.15 var(--text);
}

#similar .sm-tools {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

#similar .sm-tool {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #000;
  border: 0;
  outline: 0;
  box-shadow: none;
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#similar .sm-tool:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

#similar .sm-tool svg {
  width: 1.05rem;
  height: 1.05rem;
}

#similar .sm-tool[aria-pressed="true"] {
  --fav-fill: #fff;
  background: #000;
  color: #fff;
}

#similar .sm-tool:hover {
  background: #fff;
  color: #000;
}

#similar .sm-tool[aria-pressed="true"]:hover {
  --fav-fill: #000;
}

#similar .sm-on {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(8, 8, 9, 0.86));
  pointer-events: none;
}

#similar .sm-n {
  display: block;
  margin: 0;
  font: var(--dw) clamp(1.25rem, 1.55vw, 1.75rem)/1.12 var(--wide);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}

#similar .sm-k {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--t-s);
  color: var(--w75);
}

#similar .sm-body {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1rem;
}

#similar .sm-ad {
  margin: 0;
  font-size: var(--t-s);
  color: var(--w50);
}

#similar .sm-metro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--t-s);
  color: var(--w75);
}

#similar .sm-mst {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#similar .sm-mico {
  flex: none;
  width: 1rem;
  height: 0.8rem;
  color: var(--beige);
}

#similar .sm-mw {
  flex: none;
  color: var(--w50);
  white-space: nowrap;
}

#similar .sm-price {
  margin: 0.15rem 0 0.25rem;
  font-size: var(--t-s);
  color: var(--w75);
}

#similar .sm-price strong {
  font: var(--dw) clamp(1.1rem, 1.4vw, 1.5rem)/1.1 var(--wide);
  letter-spacing: -0.01em;
  color: var(--white);
  margin-left: 0.25rem;
}

#similar .sm-pill {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0 0 1rem;
  min-height: 2.75rem;
  border: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  font: var(--dw) var(--t-s)/1 var(--wide);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: border-color 0.25s var(--th), background-color 0.25s var(--th), color 0.25s var(--th);
}

#similar .sm-pill > span:first-child {
  display: flex;
  align-items: center;
}

#similar .sm-pill .sm-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: auto;
  border-radius: 0;
  border-left: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  transition: background-color 0.25s var(--th), color 0.25s var(--th), border-color 0.25s var(--th);
}

#similar .sm-pill .sm-go svg {
  width: 0.95rem;
  height: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  #similar .sm-cd:hover .sm-pill,
  #similar .sm-pill:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
  }
  #similar .sm-cd:hover .sm-pill .sm-go,
  #similar .sm-pill:hover .sm-go {
    background: var(--white);
    border-left-color: rgba(0, 0, 0, 0.15);
    color: var(--black);
  }
}

@media (max-width: 767px) {
  #similar {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  #similar .sm-cd {
    flex: 0 0 min(80vw, 330px);
    min-width: 0;
  }
  #similar .sm-ph {
    aspect-ratio: 4 / 3;
    flex: none;
  }
}

/* Final #zayavka scene: #similar stays sticky via native Locomotive data-scroll-sticky while #zayavka glides OVER it + giant title glides left -> right */
#final-scene {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  margin-top: clamp(5rem, 14vh, 10rem);
}

#final-scene #similar {
  margin-top: 0;
}

#final-scene #zayavka {
  position: relative;
  z-index: 5;
  margin-top: 0;
  background: var(--black);
  border-top: none;
  outline: none;
  box-shadow: 0 -32px 80px rgba(0, 0, 0, 0.92);
}

/* Subtle gold vertical accent bar on the left of "Оставьте заявку" heading */
.a2 #zayavka .fin-f h2 {
  padding-left: 1.25rem;
  border-left: 3px solid var(--beige);
}

#zayavka .fin-zn,
#zayavka .fin-l {
  border: none;
  outline: none;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  #zayavka .fin-zn {
    transform: translate3d(var(--title-x, -42vw), 0, 0);
  }
}

/* Compact Footer: 4 columns top row, "По районам" row 2 under "По классу" in 3 tight columns */
#podval.ft {
  padding: clamp(2rem, 3.5vw, 3rem) var(--m) 1.5rem;
}

#podval .ft-c h3 {
  margin-bottom: 0.65rem;
}

#podval .ft-c li + li {
  margin-top: 0.38rem;
}

#podval .ft-c a {
  line-height: 1.3;
}

#podval .ft-low {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

@media (min-width: 1024px) {
  #podval .ft-top {
    grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
    gap: 3rem;
  }

  #podval .ft-c {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    align-items: start;
  }

  #podval .ft-c > div:last-child {
    grid-column: 2 / -1;
    margin-top: 0.25rem;
  }

  #podval .ft-c > div:last-child ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    gap: 0.35rem 2rem;
  }

  #podval .ft-c > div:last-child li + li {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.zr-boot .hd,
  html.zr-boot .hero .crumbs,
  html.zr-boot .hero .info {
    opacity: 1 !important;
  }

  .hero .ph img,
  .hero .nm::before {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  html.zorge-reveal-on [data-zr] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }

  #final-scene > :first-child,
  #zayavka .fin-zn {
    transform: none !important;
  }
}

/* ===== #similar: 4 preview variants for «Бизнес» badge + Like/Compare icons ===== */
#similar .sm-style-sw {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  flex-wrap: wrap;
}
#similar .sm-style-sw button {
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: 400 0.72rem/1 var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
#similar .sm-style-sw button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
#similar .sm-style-sw button[aria-pressed="true"] {
  border-color: var(--beige);
  background: rgba(196, 178, 153, 0.14);
  color: var(--beige);
}

/* Clean white wall sign position for pick-2.jpg (replaces old gold wall text cleanly) */
#pres-intro .ins-photo.sign-wall .ins-sign {
  left: 56%;
  right: auto;
  top: 25.5%;
  bottom: auto;
  transform: translateX(-50%);
  font: 300 clamp(0.95rem, 1.45vw, 1.35rem)/1 var(--wide);
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

/* #forma-intro slides smoothly UP over the end of #dlya-zhitelej («Закрытый паркинг»), followed by #expert */
.a2 #forma-intro {
  position: relative;
  z-index: 3;
  background: #000;
}
.a2 #expert {
  position: relative;
  z-index: 3;
  margin-top: 0 !important;
  background: #000;
  will-change: transform;
}
/* Crisp unmasked portrait with signature subtle warm 35mm film haze matching editorial shots */
.a2 #expert .xpd {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
}
.a2 #expert .xpd img {
  filter: contrast(0.93) brightness(0.95) saturate(0.9);
}
.a2 #expert .xpd::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(215, 195, 165, 0.04) 0%, rgba(10, 9, 8, 0.22) 100%);
  pointer-events: none;
}
/* Accepted clean #expert: pure white H2 + pure white name with animated vertical accent bar on the left */
.a2 #expert.ex-clean .ex-head {
  position: relative;
  border-left: 0;
  padding-left: 1.25rem;
}
.a2 #expert.ex-clean .ex-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 2px;
  background: var(--beige);
  transform-origin: 50% 100%;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, opacity 0.55s ease 0.12s;
}
.a2 #expert.ex-clean.ex-in .ex-head::before {
  transform: scaleY(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .a2 #expert.ex-clean .ex-head::before {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}
.a2 #expert.ex-clean h2#ex-t {
  color: #ffffff;
}
.a2 #expert.ex-clean .xa {
  margin-top: 0.85rem;
  padding: 0;
  border: 0 !important;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}
.a2 #expert.ex-clean .xa b,
.a2 #expert.ex-clean .xa b span {
  font: 600 clamp(20px, 1.65vw, 25px)/1.25 var(--text) !important;
  color: #ffffff !important;
}
.a2 #expert.ex-clean .txw {
  margin-top: 1.5rem;
}
.a2 #expert.ex-clean .tx h3 {
  font: 500 var(--t-s)/1.25 var(--wide) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 1.75rem 0 0.75rem !important;
}

/* ===== #pres-intro: accepted Variant 1 (3:4 portrait LEFT + floating asymmetric text RIGHT) ===== */
.a2 #pres-intro .pres-exp-sw {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: clamp(1.25rem, 2.5svh, 2rem);
}
.a2 #pres-intro .pres-exp-sw button {
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font: 400 0.72rem/1 var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.a2 #pres-intro .pres-exp-sw button[aria-pressed="true"] {
  border-color: var(--beige);
  background: rgba(196, 178, 153, 0.16);
  color: var(--beige);
}
.a2 #pres-intro .ins-photo img {
  filter: brightness(1.16) contrast(1.04);
}
@media (min-width: 768px) {
  /* Exp 1: Like #zapis («Закрытый просмотр») — tall 3:4 portrait LEFT + floating asymmetric text overlapping right edge */
  .a2 #pres-intro.pres-exp-1 .pres-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }
  .a2 #pres-intro.pres-exp-1 .ins-photo {
    grid-area: 1 / 1;
    width: clamp(20rem, 33vw, 35rem);
    aspect-ratio: 3 / 4;
    margin: 0;
    justify-self: start;
  }
  .a2 #pres-intro.pres-exp-1 .ins-photo img {
    object-position: center;
  }
  .a2 #pres-intro.pres-exp-1 .ins-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.62) 78%, #000 100%);
    pointer-events: none;
  }
  .a2 #pres-intro.pres-exp-1 .ins-copy {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    padding-left: clamp(6rem, 18vw, 19rem);
  }
  .a2 #pres-intro.pres-exp-1 .kk {
    text-align: left;
    padding-left: clamp(3rem, 22vw, 22rem);
  }
  .a2 #pres-intro.pres-exp-1 .ins-sign {
    left: 1.25rem;
    right: auto;
    bottom: 1.15rem;
  }

  /* Exp 2: Wide Cinema 16:9 — expansive horizontal frame right-bottom + airy asymmetric text top-left */
  .a2 #pres-intro.pres-exp-2 .pres-stage {
    display: block;
  }
  .a2 #pres-intro.pres-exp-2 .ins-copy {
    position: relative;
    z-index: 2;
    max-width: 68vw;
    padding-left: 0;
  }
  .a2 #pres-intro.pres-exp-2 .ins-photo {
    width: clamp(34rem, 62vw, 66rem);
    aspect-ratio: 16 / 9;
    margin-left: auto;
    margin-top: clamp(-6.5rem, -9svh, -3.5rem);
  }
  .a2 #pres-intro.pres-exp-2 .ins-photo img {
    object-position: 55% 28%;
  }

  /* Exp 3: Like FORMA — tall 4:5 vertical frame RIGHT + centered editorial text LEFT with deep breathing margins */
  .a2 #pres-intro.pres-exp-3 .pres-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: center;
  }
  .a2 #pres-intro.pres-exp-3 .ins-copy {
    padding-left: 0;
    padding-right: clamp(1rem, 2vw, 2.5rem);
  }
  .a2 #pres-intro.pres-exp-3 .ins-copy h2 {
    text-indent: 0;
  }
  .a2 #pres-intro.pres-exp-3 .kk {
    text-align: left;
    padding-left: 0;
  }
  .a2 #pres-intro.pres-exp-3 .ins-photo {
    width: 100%;
    max-width: 36rem;
    aspect-ratio: 4 / 5;
    margin: 0 0 0 auto;
  }
  .a2 #pres-intro.pres-exp-3 .ins-photo img {
    object-position: 60% 24%;
  }
}

/* Header brand: solid prominent BLACK ATLAS in clean pyramid over АГЕНТСТВО НЕДВИЖИМОСТИ + crisp bright header icons */
.hd .brand {
  gap: 0.38rem !important;
}
.hd .brand b {
  font: 500 clamp(17px, 1.25vw, 22px)/1 var(--wide) !important;
  letter-spacing: 0.16em !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
}
.hd .brand small {
  font: 400 clamp(9.5px, 0.65vw, 11.5px)/1 var(--text) !important;
  letter-spacing: 0.24em !important;
  color: rgba(255, 255, 255, 0.84) !important;
  text-transform: uppercase !important;
}
.hd .ic {
  width: clamp(28px, 1.9rem, 34px);
  height: clamp(28px, 1.9rem, 34px);
  color: #ffffff;
  opacity: 0.96;
}
.hd .ic svg {
  width: clamp(20px, 1.38rem, 24px);
  height: clamp(20px, 1.38rem, 24px);
}

/* Prevent 1px left-edge subpixel jitter on horizontal rail card photos (#dlya-zhitelej, #mesta) */
.a2 .hx figure {
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Tighter gap between #genplan and #plans (cut in half as requested) */
.a2 #genplan {
  padding-bottom: 0.5rem;
}
.a2 #plans {
  margin-top: clamp(2rem, 5vh, 4rem) !important;
}

/* ===== #about: Variant 1 — «Чистый Zorge 9» (borderless tabs, 1 large hero photo + 01 / N bar, airy text & passport) ===== */
.a2 #about.ab-zorge .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1.5rem, 2.8vw, 2.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0;
  margin-top: clamp(1rem, 2svh, 1.75rem);
}
.a2 #about.ab-zorge .tab {
  position: relative;
  height: auto;
  padding: 0.7rem 0 0.85rem;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.48);
  font: 400 var(--t-s)/1 var(--wide);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.a2 #about.ab-zorge .tab:hover {
  color: rgba(255, 255, 255, 0.88);
}
.a2 #about.ab-zorge .tab[aria-selected="true"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--beige);
}
.a2 #about.ab-zorge .tab[aria-selected="true"]::after {
  display: none;
}
.a2 #about.ab-zorge .txw.fade-b {
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
}
.a2 #about.ab-zorge .txw.end {
  -webkit-mask-image: none;
  mask-image: none;
}
.a2 #about.ab-zorge .grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  margin-top: clamp(1.75rem, 3.5svh, 2.75rem);
}
.a2 #about.ab-zorge .lf {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.a2 #about.ab-zorge .mos.n1 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.a2 #about.ab-zorge .mos.n1 .fo {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
}
.a2 #about.ab-zorge .ab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.a2 #about.ab-zorge .ab-cnt {
  font: 400 var(--t-s)/1 var(--wide);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}
.a2 #about.ab-zorge .ab-cnt b {
  font-weight: 400;
  color: var(--beige);
}
.a2 #about.ab-zorge .ab-ars {
  display: flex;
  gap: 0.45rem;
}
.a2 #about.ab-zorge .ab-ar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.a2 #about.ab-zorge .ab-ar:hover {
  border-color: var(--beige);
  color: var(--beige);
}
.a2 #about.ab-zorge .ab-ar svg {
  width: 0.95rem;
  height: 0.95rem;
}
.a2 #about.ab-zorge .txt p {
  font-size: var(--t-m);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.72);
}
.a2 #about.ab-zorge .txt p:first-child {
  color: #fff;
}
.a2 #about.ab-zorge .txt p + p {
  margin-top: 1.05em;
}
.a2 #about.ab-zorge .pp {
  margin-top: clamp(0.85rem, 1.8svh, 1.35rem);
  padding-top: 0;
  border-top: 0 !important;
}
.a2 #about.ab-zorge .pp div:nth-last-child(-n+4) {
  border-bottom: 0 !important;
}
.a2 #about.ab-zorge .pp dt {
  font: 400 clamp(12px, 0.75rem, 13px)/1.2 var(--wide);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}
.a2 #about.ab-zorge .pp dd {
  margin-top: 0.4rem;
  font-size: var(--t-m);
  color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 767px) {
  .a2 #about.ab-zorge .ab-bar {
    display: none;
  }
  .a2 #about.ab-zorge .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

#dlya-zhitelej .hx-in,
#zayavka,
#zayavka .fin-zn,
#zayavka .fin-im,
#zayavka .fin-f {
  will-change: transform, opacity;
}

/* Variant 1: Frosted Glass Architectural Squares (unified sharp geometry) */
#similar.sm-v1 .sm-class {
  padding: 0.48em 0.85em;
  background: rgba(10, 10, 12, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  font: 500 0.6875rem/1 var(--wide);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
#similar.sm-v1 .sm-tools {
  gap: 0.35rem;
}
#similar.sm-v1 .sm-tool {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0;
  background: rgba(10, 10, 12, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}
#similar.sm-v1 .sm-tool:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: #fff;
  color: #000;
}
#similar.sm-v1 .sm-tool[aria-pressed="true"] {
  border-color: var(--beige);
  background: rgba(10, 10, 12, 0.72);
  color: var(--beige);
  --fav-fill: var(--beige);
}

/* Variant 2: Unified Frosted Pills (paired glass dock for Like + Compare) */
#similar.sm-v2 .sm-class {
  padding: 0.46em 0.95em;
  background: rgba(12, 12, 14, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font: 500 0.72rem/1.1 var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
#similar.sm-v2 .sm-tools {
  gap: 0;
  background: rgba(12, 12, 14, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.12rem;
}
#similar.sm-v2 .sm-tool {
  width: 2.05rem;
  height: 1.95rem;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
}
#similar.sm-v2 .sm-tool + .sm-tool::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
#similar.sm-v2 .sm-tool:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
#similar.sm-v2 .sm-tool[aria-pressed="true"] {
  background: transparent;
  color: var(--beige);
  --fav-fill: var(--beige);
}

/* Variant 3: Editorial Minimal (no boxes — crisp white typography & icons over clean top vignette) */
#similar.sm-v3 .sm-ph::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0 0 58% 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 55%, transparent 100%);
  pointer-events: none;
}
#similar.sm-v3 .sm-class {
  top: 1rem;
  left: 1rem;
  padding: 0 0 0 0.55rem;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--beige);
  font: 500 clamp(12px, 0.8rem, 13.5px)/1 var(--wide);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
/* Compact centered scrollbar under #similar instead of full-width bar */
#similar .sm-bar {
  width: clamp(8rem, 15vw, 13rem);
  margin: 1.5rem auto 0;
}
#similar.sm-v3 .sm-tools {
  top: 0.65rem;
  right: 0.75rem;
  gap: 0.35rem;
}
#similar.sm-v3 .sm-tool {
  width: clamp(32px, 2.3rem, 38px);
  height: clamp(32px, 2.3rem, 38px);
  border-radius: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.75));
}
#similar.sm-v3 .sm-tool svg {
  width: clamp(19px, 1.35rem, 22px);
  height: clamp(19px, 1.35rem, 22px);
}
#similar.sm-v3 .sm-tool:hover {
  background: transparent;
  color: var(--beige);
  transform: scale(1.1);
}
#similar.sm-v3 .sm-tool[aria-pressed="true"] {
  background: transparent;
  color: var(--beige);
  --fav-fill: var(--beige);
}

/* Variant 4: BLACK ATLAS Gold Hairline (matches slider arrows & gold accent) */
#similar.sm-v4 .sm-class {
  padding: 0.45em 0.82em;
  background: rgba(8, 8, 9, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 178, 153, 0.42);
  border-radius: 0;
  font: 500 0.6875rem/1 var(--wide);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--beige);
  gap: 0.45em;
}
#similar.sm-v4 .sm-class::before {
  content: '';
  width: 0.32rem;
  height: 0.32rem;
  background: var(--beige);
  flex: none;
}
#similar.sm-v4 .sm-tools {
  gap: 0.35rem;
}
#similar.sm-v4 .sm-tool {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0;
  background: rgba(8, 8, 9, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 178, 153, 0.42);
  color: rgba(255, 255, 255, 0.9);
}
#similar.sm-v4 .sm-tool:hover {
  border-color: var(--beige);
  background: var(--beige);
  color: #000;
}
#similar.sm-v4 .sm-tool[aria-pressed="true"] {
  border-color: var(--beige);
  background: rgba(8, 8, 9, 0.88);
  color: var(--beige);
  --fav-fill: var(--beige);
}

/* ===== Compact Strip for #stroyka (Variant 1 approved; #faq and #similar remain full spacious rhythm) ===== */
@media (min-width: 768px) {
  .a2 #stroyka.st.bk {
    height: auto;
    min-height: 0;
    margin-top: clamp(3rem, 7svh, 5rem);
    padding: clamp(2.5rem, 5svh, 3.75rem) var(--m) 1.5rem;
  }
  .a2 #stroyka .bh {
    padding-bottom: 0.9rem;
  }
  .a2 #stroyka .st-f {
    margin-top: 0.85rem;
  }
  .a2 #stroyka .st-f button {
    padding: 0.65rem 0;
  }
  .a2 #stroyka .st-tr {
    flex: none;
    margin-top: 1.15rem;
  }
  .a2 #stroyka .st-tr li {
    aspect-ratio: 16 / 10;
  }
}

/* ===== #plans header: quiet contour CTA «Условия покупки и ипотека» right next to prices (zero extra screen) ===== */
.a2 #plans .plhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.a2 #plans .pl-buy {
  height: 2.75rem;
  padding: 0 1.4rem;
  border-color: rgba(255, 255, 255, 0.35);
  font-size: var(--t-s);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .a2 #plans .pl-buy:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
  }
}

/* ===== #reviews: Отдельный компактный блок «Отзывы о Татуме» сразу под «Вопросами» ===== */
.a2 #reviews.rev.bk {
  height: auto;
  min-height: 0;
  margin-top: clamp(2.5rem, 6svh, 4.5rem);
  padding: clamp(2rem, 4.5svh, 3.5rem) var(--m);
}
.a2 #reviews .rv-g {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: 2rem;
}
.a2 #reviews .rv-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.a2 #reviews .rv-tag {
  font: 500 var(--t-s)/1 var(--wide);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lbeige, var(--beige));
}
.a2 #reviews .rv-l {
  max-width: 26rem;
  font-size: var(--t-m);
  line-height: 1.55;
  color: var(--w75);
}
.a2 #reviews .rv-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--g33);
  padding-top: 1.5rem;
}
.a2 #reviews .rv-col h3 {
  font: 500 var(--t-s)/1 var(--wide);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lbeige, var(--beige));
  margin-bottom: 1.15rem;
}
.a2 #reviews .rv-cons h3 {
  color: rgba(255, 255, 255, 0.58);
}
.a2 #reviews .rv-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.a2 #reviews .rv-col li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--t-m);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.a2 #reviews .rv-col li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lbeige, var(--beige));
  font-weight: 500;
}
.a2 #reviews .rv-cons li {
  color: var(--w75);
}
.a2 #reviews .rv-cons li::before {
  content: '—';
  color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 900px) {
  .a2 #reviews .rv-g,
  .a2 #reviews .rv-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
/* ===== #env-intro (.ins-text-only): Pure editorial text right-aligned/indented above #loc (no photo, scales to 500 ZHKs) ===== */
.a2 section.ins.ins-text-only {
  display: block;
  min-height: 0;
  padding: clamp(4.5rem, 10svh, 7.5rem) var(--m) clamp(3.5rem, 8svh, 6rem);
  background: var(--black);
}
@media (min-width: 768px) {
  .a2 section.ins.ins-text-only .ins-copy {
    margin-left: auto;
    max-width: min(100%, 64vw);
  }
  .a2 section.ins.ins-text-only .kk {
    display: block;
    text-align: left;
    padding-left: clamp(3rem, 14vw, 14rem);
  }
  .a2 section.ins.ins-text-only h2 {
    max-width: min(100%, 42ch);
    text-indent: clamp(3rem, 14vw, 14rem);
    text-align: left;
  }
}

/* ===== #expert style switcher + Variant 2 «Строгий Zorge 9» (.ex-strict: minimal gold, monochrome luxury) ===== */
.a2 #expert .ex-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.a2 #expert:not(.ex-strict) .ex-kk {
  display: none;
}
.a2 #expert:not(.ex-strict) .ex-top {
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}
.a2 #expert .ex-style-sw,
.a2 #docs .dc-sw {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.a2 #expert .ex-style-sw button,
.a2 #docs .dc-sw button {
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font: 400 0.7rem/1 var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.a2 #expert .ex-style-sw button:hover,
.a2 #docs .dc-sw button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.a2 #expert .ex-style-sw button[aria-pressed="true"],
.a2 #docs .dc-sw button[aria-pressed="true"] {
  border-color: var(--beige);
  background: rgba(206, 177, 132, 0.14);
  color: var(--beige);
}
.a2 #expert.ex-strict .ex-kk {
  display: block;
  margin-bottom: 0;
  font: 500 0.75rem/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beige);
}
.a2 #expert.ex-strict h2#ex-t {
  display: none;
}
.a2 #expert.ex-strict .q {
  display: none;
}
.a2 #expert.ex-strict .xa {
  margin-top: 0.25rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--g33);
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}
.a2 #expert.ex-strict .xa b,
.a2 #expert.ex-strict .xa b span {
  font: 400 clamp(2rem, 3.2vw, 3.4rem)/1.05 Deco, Atlas, Arial, sans-serif !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  letter-spacing: 0.01em !important;
}
.a2 #expert.ex-strict .xa > span {
  font-size: var(--t-s);
  color: var(--w50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.a2 #expert.ex-strict .txw {
  margin-top: 1.5rem;
}
.a2 #expert.ex-strict .tx h3 {
  font: 500 var(--t-s)/1.2 var(--wide) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 2rem 0 0.85rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--g33);
}

/* ===== #docs: Документы проекта — единый заголовок --h2 + 2 варианта (Колонки | Реестр) ===== */
.a2 #docs.docs.bk {
  height: auto;
  min-height: 0;
  margin-top: clamp(2rem, 5svh, 3.75rem) !important;
  padding: clamp(2rem, 4.5svh, 3.5rem) var(--m);
}
.a2 #docs .bh {
  border-bottom: 1px solid var(--g33);
  padding-bottom: 1.25rem;
}
.a2 #docs h2#docs-t {
  color: var(--white);
}
.a2 #docs .dc-v2-g {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: 2rem;
}
.a2 #docs .dc-v2-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.a2 #docs .dc-v2-side .rv-tag {
  font: 500 var(--t-s)/1 var(--wide);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige);
}
.a2 #docs .dc-v2-side .rv-l {
  max-width: 24rem;
  font-size: var(--t-m);
  line-height: 1.55;
  color: var(--w75);
}
.a2 #docs .dc-v2-list {
  border-top: 1px solid var(--g33);
}
.a2 #docs .dc-v2-list li {
  border-bottom: 1px solid var(--g33);
}
.a2 #docs .dc-v2-list .dc-cd {
  padding: 1.25rem 0;
}
.a2 #docs .dc-v2-list .dc-ic {
  width: 3rem;
  height: 3.75rem;
}

/* Footer accordion button: inert on desktop, collapsible + / — on mobile (as in DECO) */
.ft-c h3 button.ft-tg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
@media (min-width: 768px) {
  .ft-c h3 button.ft-tg {
    pointer-events: none;
    cursor: default;
  }
  .ft-c h3 button.ft-tg i {
    display: none;
  }
}

/* ===== Zorge 9 Mobile Polish (360px / 390px / 430px iPhone 16 Pro Max): zero overflow, zero overlap, DECO mobile patterns ===== */
@media (max-width: 767px) {
  html, body, #scroll-root {
    overflow-x: clip !important;
    max-width: 100vw;
  }
  /* #about: remove 100svh height crush so text NEVER collides with passport */
  .a2 #about.ab {
    height: auto !important;
    min-height: 0 !important;
    padding: 2.25rem var(--m) 2rem !important;
  }
  .a2 #about .grid {
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-top: 1.25rem !important;
  }
  .a2 #about .rt {
    flex: none !important;
  }
  .a2 #about .txw {
    flex: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    max-height: 7.8rem;
  }
  .a2 #about.open .txw {
    max-height: none !important;
    overflow: visible !important;
  }
  .a2 #about .pp {
    margin-top: 1.75rem !important;
  }
  /* #plans: never clip on mobile */
  .a2 #plans.pl {
    height: auto !important;
    min-height: 0 !important;
  }
  .a2 section.ins.ins-indent,
  .a2 section.ins.ins-indent:has(+ #about),
  .a2 section.ins.ins-text-only {
    padding: 3.25rem var(--m) 2.5rem !important;
  }
  .a2 section.ins.ins-float .ins-copy,
  .a2 section.ins.ins-text-only .ins-copy,
  .a2 .lm.lm-model .lm-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  .a2 section.ins.ins-float .kk,
  .a2 section.ins.ins-text-only .kk,
  .a2 .lm.lm-model .kk {
    padding-left: 0 !important;
    text-align: left !important;
    margin-bottom: 0.85rem;
  }
  .a2 section.ins.ins-float h2,
  .a2 section.ins.ins-text-only h2,
  .a2 :is(#zapis, #usloviya) .lm-v-z1 h2.lm-indent-t {
    text-indent: 0 !important;
    max-width: 100% !important;
    font-size: clamp(1.45rem, 6.4vw, 2rem) !important;
    line-height: 1.18 !important;
  }
  .a2 :is(#zapis, #usloviya).lm {
    margin: 2rem 0 !important;
    padding: 2.5rem var(--m) !important;
  }
  .a2 .lm.lm-model .lm-stage {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .a2 .lm.lm-model .lm-photo {
    order: 2;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0 !important;
  }
  .a2 .lm.lm-model .lm-body {
    order: 1;
  }
  .a2 :is(#zapis, #usloviya) .lm-foot {
    justify-content: stretch !important;
    margin-top: 1.5rem !important;
  }
  .a2 :is(#zapis, #usloviya) .lm-foot .b {
    width: 100%;
  }
  /* #docs: horizontal swipe strip on mobile */
  .a2 #docs .dc-gr {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--m));
    padding: 0 var(--m);
    border-bottom: 1px solid var(--g33);
  }
  .a2 #docs .dc-gr::-webkit-scrollbar {
    display: none;
  }
  .a2 #docs .dc-gr li {
    flex: 0 0 82% !important;
    scroll-snap-align: start;
    border-top: 0 !important;
    border-left: 0 !important;
  }
  .a2 #docs .dc-cd {
    padding: 1.25rem 0 !important;
  }
  /* #faq on mobile: bring "Задать свой вопрос" snugly right below the last question */
  .a2 #faq .fq-g {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-top: 1.25rem !important;
  }
  .a2 #faq .fq-ac {
    order: 1;
  }
  .a2 #faq .fq-s {
    order: 2;
    margin-top: 0 !important;
    padding-top: 0.25rem !important;
    gap: 1rem !important;
  }
  /* Mobile typography & clean vertical rhythm (no clipped kickers, no huge black gaps between sections) */
  .a2 .kk {
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 11px !important;
    letter-spacing: 0.09em !important;
    line-height: 1.4 !important;
    padding-left: 0 !important;
    max-width: 100% !important;
  }
  .a2 #dlya-zhitelej {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 1.25rem !important;
    margin-bottom: 0 !important;
  }
  .a2 #expert {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 1.75rem !important;
    padding-bottom: 1.5rem !important;
    overflow: visible !important;
  }
  .a2 #expert:not(.open) .txw {
    max-height: 11rem !important;
    overflow: hidden !important;
    overscroll-behavior: auto !important;
    -webkit-mask-image: linear-gradient(#000 68%, transparent) !important;
    mask-image: linear-gradient(#000 68%, transparent) !important;
  }
  .a2 #expert.open .txw {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .a2 #expert .rd {
    display: inline-flex !important;
    color: var(--lbeige, var(--beige)) !important;
  }
  .a2 #reviews,
  .a2 #faq,
  .a2 #docs,
  .a2 #similar,
  .a2 #final-scene {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .a2 #reviews,
  .a2 #faq,
  .a2 #docs,
  .a2 #similar {
    padding-top: 1.5rem !important;
    padding-bottom: 1.25rem !important;
  }
  .a2 #faq .fq-s {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  /* #zayavka on mobile: pure clean form only (no photo, no sliding ТАТУМ animation, 100% interactive) */
  .a2 #final-scene > :first-child {
    position: relative !important;
    transform: none !important;
  }
  .a2 #zayavka.fin {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 2rem !important;
    padding: 2.75rem var(--m) 2.5rem !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .a2 #zayavka .fin-im,
  .a2 #zayavka .fin-zn {
    display: none !important;
  }
  .a2 #zayavka .fin-f {
    padding: 0 !important;
    max-width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  /* #podval on mobile: collapsed accordions with + / — (as in DECO) */
  .ft-top {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .ft-c {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    border-top: 1px solid var(--g33);
  }
  .ft-c > div {
    border-bottom: 1px solid var(--g33);
  }
  .ft-c h3 {
    margin: 0 !important;
  }
  .ft-c h3 button.ft-tg {
    padding: 1.15rem 0;
    color: #fff;
  }
  .ft-c h3 button.ft-tg i {
    position: relative;
    flex: none;
    width: 0.85rem;
    height: 0.85rem;
  }
  .ft-c h3 button.ft-tg i::before,
  .ft-c h3 button.ft-tg i::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: currentColor;
    transition: transform 0.25s ease;
  }
  .ft-c h3 button.ft-tg i::after {
    transform: rotate(90deg);
  }
  .ft-c > div.open h3 button.ft-tg i::after {
    transform: none;
  }
  .ft-c > div ul {
    display: none;
    padding-bottom: 1.15rem;
  }
  .ft-c > div.open ul {
    display: block;
  }
}

/* ===== Final horizontal slide inside #dlya-zhitelej: «Застройщик · FORMA» gliding in right-to-left ===== */
.a2 #dlya-zhitelej .rz-dev {
  flex: none;
  width: calc(100vw - 2 * var(--m));
  height: var(--H);
  display: flex;
  align-items: center;
  padding-left: clamp(2rem, 4vw, 4rem);
}
.a2 #dlya-zhitelej .rz-dev-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 100%;
}
.a2 #dlya-zhitelej .rz-dev-copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  padding-right: clamp(4rem, 12vw, 13rem);
}
.a2 #dlya-zhitelej .rz-dev-copy .kk {
  display: block;
  margin-bottom: 1.25rem;
  padding-left: clamp(3rem, 18vw, 18rem);
}
.a2 #dlya-zhitelej .rz-dev-copy h2 {
  font-family: Deco, Atlas, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  text-indent: clamp(3rem, 18vw, 18rem);
  max-width: min(100%, 44ch);
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.72);
}
.a2 #dlya-zhitelej .rz-dev-ph {
  grid-area: 1 / 1;
  justify-self: end;
  height: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  contain: paint;
  background: #0d0e10;
}
.a2 #dlya-zhitelej .rz-dev-ph img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin-left: 0;
  object-fit: cover;
  object-position: center;
  will-change: auto;
  transform: none !important;
}
.a2 #dlya-zhitelej .rz-dev-ph::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .a2 #dlya-zhitelej .hx-in {
    padding-bottom: 1rem !important;
  }
  .a2 #dlya-zhitelej .rz-dev {
    width: 100%;
    height: auto;
    padding: 2.25rem var(--m) 0;
  }
  .a2 #dlya-zhitelej .rz-dev-in {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .a2 #dlya-zhitelej .rz-dev-copy {
    padding-right: 0;
  }
  .a2 #dlya-zhitelej .rz-dev-copy .kk {
    padding-left: 0;
  }
  .a2 #dlya-zhitelej .rz-dev-copy h2 {
    text-indent: 0;
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  }
  .a2 #dlya-zhitelej .rz-dev-ph {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Clearer, higher-contrast kickers across all palettes (fixes dim "ДЛЯ ЖИТЕЛЕЙ") */
.a2 .kk {
  color: var(--lbeige, var(--beige));
  font-weight: 500;
}

.a2 #docs .dc-gr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  border-bottom: 0;
}
.a2 #docs .dc-gr.dc-scroll {
  display: flex;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.a2 #docs .dc-gr.dc-scroll::-webkit-scrollbar {
  display: none;
}
.a2 #docs .dc-gr.dc-scroll li {
  flex: 0 0 calc((100% - 5rem) / 3);
  scroll-snap-align: start;
}
.a2 #docs .dc-gr li {
  border-left: 0;
}
.a2 #docs .dc-cd {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 2rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.22s ease;
}
.a2 #docs .dc-ic {
  width: 3.5rem;
  height: 4.4rem;
  flex: none;
  object-fit: contain;
  background: transparent;
  filter: grayscale(1) brightness(1.06) contrast(1.06);
  opacity: 0.96;
}
.a2 #docs .dc-tx {
  flex: 1;
  min-width: 0;
}
.a2 #docs .dc-cd h3 {
  font: 500 calc(var(--t-m) * 1.12)/1.3 var(--text);
  color: #fff;
  transition: color 0.22s ease;
}
.a2 #docs .dc-cd p {
  margin-top: 0.45rem;
  font-size: var(--t-s);
  color: var(--w50);
}
.a2 #docs .dc-ar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--w75);
  transition: color 0.22s ease, transform 0.22s ease;
}
.a2 #docs .dc-ar svg {
  width: 1.25rem;
  height: 1.25rem;
}
@media (hover: hover) and (pointer: fine) {
  .a2 #docs .dc-cd:hover h3,
  .a2 #docs .dc-cd:hover .dc-ar {
    color: var(--beige);
  }
  .a2 #docs .dc-cd:hover .dc-ar {
    transform: translate(2px, -2px);
  }
}
@media (max-width: 960px) {
  .a2 #docs .dc-gr {
    grid-template-columns: 1fr;
  }
  .a2 #docs .dc-gr li {
    border-left: 0;
    border-top: 1px solid var(--g33);
  }
  .a2 #docs .dc-gr li:first-child {
    border-top: 0;
  }
  .a2 #docs .dc-cd {
    padding: 1.25rem 0;
  }
}

/* Soft Zorge 9 reveal for #genplan: gentle SVG fade/scale + staggered corpus .gtag badges */
@media (prefers-reduced-motion: no-preference) {
  #genplan .gfig.gp-wait .gframe svg {
    opacity: 0;
    transform: scale(0.97);
  }
  #genplan .gfig .gframe svg {
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  #genplan .gfig.gp-wait .gtag {
    opacity: 0;
    transform: translateY(8px);
  }
  #genplan .gfig.gp-in .gtag {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) calc(0.28s + var(--gi, 0) * 70ms),
                transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) calc(0.28s + var(--gi, 0) * 70ms),
                background-color 0.14s ease-out;
  }
}

/* Mobile UX fixes (v3t120): top-left BLACK ATLAS badge, 1-card scroll-snap, hide developer photo, compact #loc */
@media (max-width: 767px) {
  .a2 .lm.lm-model .lm-sign,
  .a2 .lm.lm-model.lm-model-right .lm-sign,
  .a2 #pres-intro .ins-sign {
    top: 0.85rem;
    bottom: auto;
    left: 0.85rem;
    right: auto;
  }
  .a2 #dlya-zhitelej .rz-dev-ph {
    display: none !important;
  }
  .a2 #about .swp .trk,
  .a2 #dlya-zhitelej .rz-l,
  .a2 #mesta .hx-tr,
  .a2 #stroyka .st-tr,
  .a2 #similar .sm-tr {
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  .a2 #about .swp .fo,
  .a2 #dlya-zhitelej .rz-i,
  .a2 #mesta .mr-i,
  .a2 #stroyka .st-tr > li,
  .a2 #similar .sm-cd {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .a2 #loc.bk {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 1.5rem;
  }
  .a2 #loc .lc-g,
  .a2 #loc .lc-p {
    flex: none;
    height: auto;
  }
}
