.realty-wb-fluid {
  padding: 0 0 8px;
  background: #fff;
}

.realty-wb-fluid .vd_container {
  width: calc(100% - 64px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.realty-wb-title {
  margin: 0;
  color: #2f3437;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.12;
  transition: margin .2s ease, padding .2s ease, font-size .2s ease, line-height .2s ease;
}

.realty-wb-mobile-object-num {
  display: none;
}

.realty-wb-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 400px 340px;
  grid-auto-rows: auto;
  gap: 28px 28px;
  align-items: start;
}

.realty-detail-tabs__sticky-sentinel {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 0;
  margin: 0;
  padding: 0;
}

.realty-detail-tabs__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  z-index: 2500;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  min-width: 0;
  background: #fff;
  transition: background-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.realty-detail-tabs__heading {
  width: calc(100% - 64px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.realty-detail-tabs__sticky.is-stuck {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 24px rgba(28, 47, 56, .08);
}

.realty-detail-tabs__nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 32px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e4ecef;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.realty-detail-tabs__nav::-webkit-scrollbar {
  display: none;
}

.realty-detail-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d8e5dc;
  border-radius: 8px;
  background: #fff;
  color: #2f3437;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.15;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.realty-detail-tabs__tab:hover,
.realty-detail-tabs__tab:focus {
  border-color: #16863a;
  color: #16863a;
  outline: none;
}

.realty-detail-tabs__tab.is-active {
  border-color: #16863a;
  background: #16863a;
  color: #fff;
  text-decoration: none;
}

.realty-detail-tabs__sticky.is-stuck .realty-wb-title {
  margin-bottom: 4px;
  padding-top: 10px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.realty-detail-tabs__sticky.is-stuck .realty-detail-tabs__nav {
  margin-bottom: 8px;
  padding-top: 6px;
  padding-bottom: 8px;
}

.realty-wb-gallery {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  padding-left: 80px;
  min-width: 0;
}

.realty-wb-thumbs {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  overflow-y: auto;
  scrollbar-width: none;
}

.realty-wb-thumbs::-webkit-scrollbar {
  display: none;
}

.realty-wb-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #f2f5f6;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}

.realty-wb-thumb IMG {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.realty-wb-thumb:hover,
.realty-wb-thumb.is-active {
  border-color: #16863a;
}

.realty-wb-thumb:focus-visible {
  outline: 3px solid rgba(22, 134, 58, .28);
  outline-offset: 2px;
}

.realty-wb-main {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f6f7;
}

.realty-wb-main-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .32s ease;
  will-change: transform;
  color: inherit;
  text-decoration: none;
}

.realty-wb-main-image.is-active {
  z-index: 2;
  pointer-events: auto;
  transform: translateX(0);
}

.realty-wb-main-image.is-no-transition {
  transition: none !important;
}

.realty-wb-main-image.is-before {
  transform: translateX(-100%);
}

.realty-wb-main-image.is-after {
  transform: translateX(100%);
}

.realty-wb-main-image IMG {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.realty-wb-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(23, 36, 40, .18);
  cursor: pointer;
  transform: translateY(-50%);
}

.realty-wb-gallery-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid #30383d;
  border-right: 2px solid #30383d;
}

.realty-wb-gallery-nav--prev {
  left: 14px;
}

.realty-wb-gallery-nav--prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.realty-wb-gallery-nav--next {
  right: 14px;
}

.realty-wb-gallery-nav--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.realty-wb-icons {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.realty-wb-icons IMG {
  display: block;
  max-width: 54px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .36));
}

.realty-wb-info-panel {
  grid-column: 2;
  grid-row: 2;
  width: 400px;
  min-width: 0;
}

.realty-wb-info-panel H2,
.realty-wb-map H2 {
  margin: 0 0 14px;
  color: #2f3437;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.realty-wb-specs {
  margin: 0;
  border-top: 1px solid #e4ecef;
}

.realty-wb-specs DIV {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, auto);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e4ecef;
}

.realty-wb-specs DT {
  color: #7a858b;
  font-size: 15px;
  line-height: 1.25;
}

.realty-wb-specs DD {
  margin: 0;
  color: #2f3437;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.realty-wb-specs__line {
  display: block;
}

.realty-wb-map {
  margin-top: 0;
}

.realty-wb-maps {
  grid-column: 1 / 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.realty-wb-maps--two {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.realty-wb-map__canvas {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f1;
}

#item_ymap.realty-wb-map__canvas,
#item_ymap_cadastral.realty-wb-map__canvas {
  width: 100% !important;
  height: 320px !important;
  border: 0 !important;
}

.realty-wb-map__zoom-control {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(42, 54, 48, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 40, 28, .16);
}

.realty-wb-map__zoom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(42, 54, 48, .12);
  background: #fff;
  color: #263a2f;
  font: 700 18px/1 Arial, sans-serif;
  cursor: pointer;
}

.realty-wb-map__zoom-button:last-child {
  border-bottom: 0;
}

.realty-wb-map__zoom-button:hover {
  background: #f4faf6;
}

.realty-wb-map__point-marker {
  position: relative;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.realty-wb-map__point-marker:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%) rotate(45deg);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 4px;
  background: rgba(232, 83, 58, .9);
  box-shadow: 0 4px 14px rgba(20, 35, 26, .28);
}

.realty-wb-map__point-marker SPAN {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff;
}

/* Изометрический наклон реализован через свойства Yandex Maps API (tilt) */

.realty-wb-buy {
  grid-column: 3;
  grid-row: 2 / 7;
  align-self: stretch;
  width: 340px;
  min-width: 0;
}

.realty-wb-buy-card {
  position: sticky;
  top: var(--realty-detail-buy-top, 176px);
  padding: 22px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 56, 42, .12);
}

.realty-wb-object-num {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  color: #6e7b72;
  font-size: 14px;
  line-height: 1;
}

.realty-wb-object-num EM {
  color: #2f3437;
  font-style: normal;
  font-size: 20px;
}

.realty-wb-buy-meta {
  display: grid;
  gap: 6px;
  margin: -4px 0 16px;
  color: #607068;
  font-size: 15px;
  line-height: 1.25;
}

.realty-wb-buy-meta__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.realty-wb-buy-meta__label {
  color: #6e7b72;
}

.realty-wb-buy-meta__value {
  color: #2f3437;
  font-weight: 700;
}

.realty-wb-price {
  margin-bottom: 22px;
  color: #143f2c;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
}

.realty-wb-price STRIKE {
  display: block;
  margin-bottom: 4px;
  color: #9ca5aa;
  font-size: 18px;
  font-weight: 400;
}

.realty-wb-manager {
  padding: 18px 0;
  border-top: 1px solid #e4ecef;
  border-bottom: 1px solid #e4ecef;
}

.realty-wb-manager__title {
  margin-bottom: 14px;
  color: #688177;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.realty-wb-manager__body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.realty-wb-manager__body IMG {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.realty-wb-manager__body B {
  display: block;
  margin-bottom: 8px;
  color: #263a2f;
  font-size: 20px;
  line-height: 1.1;
}

.realty-wb-manager__line {
  display: block;
  margin-top: 7px;
  color: #244739;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.realty-wb-manager__line--email {
  color: #177a3a;
  font-size: 14px;
  font-weight: 400;
}

.realty-wb-installments {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #16863a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.realty-wb-installments IMG {
  flex: 0 0 auto;
}

.realty-wb-print {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border: 1px solid #16863a;
  border-radius: 8px;
  background: #16863a;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.realty-wb-print:hover {
  background: #0f7530;
  color: #fff;
  text-decoration: none;
}

.realty-wb-print .manager_print_button_icon {
  width: 20px;
  height: 20px;
  background: url('/img/icons/print-green.svg') no-repeat center;
  background-size: contain;
  filter: brightness(0) invert(1);
}

.realty-wb-description-tabs {
  grid-column: 1 / 3;
  grid-row: 4;
  margin: 0;
  padding-top: 30px;
  padding-bottom: 0;
  overflow-anchor: none;
}

.realty-wb-description-tabs__nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e4ecef;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.realty-wb-description-tabs__nav::-webkit-scrollbar {
  display: none;
}

.realty-wb-description-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d8e5dc;
  border-radius: 8px;
  background: #fff;
  color: #2f3437;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.15;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.realty-wb-description-tabs__tab:hover,
.realty-wb-description-tabs__tab:focus {
  border-color: #16863a;
  color: #16863a;
  outline: none;
}

.realty-wb-description-tabs__tab.is-active {
  border-color: #16863a;
  background: #16863a;
  color: #fff;
  text-decoration: none;
}

.realty-wb-description-tabs__panels {
  padding-top: 0;
}

.realty-wb-description-panel {
  scroll-margin-top: 132px;
  color: #30383d;
  font-size: 18px;
  line-height: 1.55;
}

.realty-wb-description-panel + .realty-wb-description-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e4ecef;
}

.realty-wb-description-tabs.is-ready .realty-wb-description-panel + .realty-wb-description-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.realty-wb-description-tabs.is-ready .realty-wb-description-panel[hidden] {
  display: none;
}

.realty-wb-description-panel H2 {
  margin: 0 0 14px;
  color: #2f3437;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.realty-wb-description-panel P {
  margin-top: 0;
}

.realty-wb-cadastral-html__body {
  font-size: 16px;
}

/* Первый H2 внутри исходного текста скрываем: видимый заголовок таба уже стоит выше. */
.realty-wb-description__body > h2:first-child,
.realty-wb-description__body > article > h2:first-child,
.realty-wb-cadastral-html__body > article > h2:first-child,
.realty-wb-cadastral-html__body > h2:first-child {
  display: none;
}

.realty-wb-cadastral-html__sep {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #e4ecef;
}

.realty-wb-cadastral-html__body P {
  margin: 0 0 12px;
}

.realty-wb-cadastral-html__number {
  color: #4f6058;
}

.realty-wb-cadastral-html__body H3 {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.realty-wb-cadastral-html__body UL,
.realty-wb-cadastral-html__body OL {
  margin: 0 0 12px 22px;
}

.realty-wb-sales {
  grid-column: 1 / 3;
  grid-row: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 32px;
  padding: 20px 0 0;
  border-top: 1px solid #e4ecef;
  color: #30383d;
}

.realty-wb-sales__col {
  min-width: 0;
}

.realty-wb-sales__label {
  display: block;
  margin-bottom: 6px;
  color: #6e7b72;
  font-size: 14px;
}

.realty-wb-sales__phone {
  display: inline-block;
  color: #191919;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-decoration: none;
}

.realty-wb-sales P {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

BODY.realty-wb-lightbox-open {
  overflow: hidden;
}

.realty-wb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 22000;
  display: none;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: 32px 76px 32px 32px;
  background: rgba(16, 20, 24, .92);
}

.realty-wb-lightbox.is-open {
  display: grid;
}

.realty-wb-lightbox__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;
}

.realty-wb-lightbox__thumbs::-webkit-scrollbar {
  display: none;
}

.realty-wb-lightbox__thumb {
  flex: 0 0 auto;
  width: 78px;
  height: 104px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #1d2226;
  cursor: pointer;
  overflow: hidden;
}

.realty-wb-lightbox__thumb IMG {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.realty-wb-lightbox__thumb.is-active {
  border-color: #16863a;
}

.realty-wb-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.realty-wb-lightbox__stage IMG {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  border-radius: 8px;
  object-fit: contain;
}

.realty-wb-lightbox__close,
.realty-wb-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #20282d;
  cursor: pointer;
}

.realty-wb-lightbox__close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realty-wb-lightbox__close svg {
  display: block;
  width: 20px;
  height: 20px;
}

.realty-wb-lightbox__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
}

.realty-wb-lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid #20282d;
  border-right: 2px solid #20282d;
}

.realty-wb-lightbox__nav--prev {
  left: 24px;
}

.realty-wb-lightbox__nav--prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.realty-wb-lightbox__nav--next {
  right: 24px;
}

.realty-wb-lightbox__nav--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

@media (max-width: 1320px) {
  .realty-wb-layout {
    grid-template-columns: minmax(520px, 1fr) 380px 320px;
    gap: 22px;
  }

  .realty-wb-info-panel {
    width: 380px;
  }

  .realty-wb-buy {
    width: 320px;
  }

  .realty-wb-buy-card {
    padding: 18px;
  }

  .realty-wb-maps--two {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

@media (max-width: 1180px) {
  .realty-wb-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .realty-detail-tabs__sticky-sentinel,
  .realty-detail-tabs__sticky {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .realty-wb-gallery {
    grid-column: 1;
    grid-row: 2;
  }

  .realty-wb-info-panel {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
  }

  .realty-wb-buy {
    grid-column: 2;
    grid-row: 2 / 8;
  }

  .realty-wb-maps {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: minmax(0, 1fr);
  }

  .realty-wb-maps--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .realty-wb-description-tabs,
  .realty-wb-extra-sections,
  .realty-wb-sales {
    grid-column: 1;
  }

  .realty-wb-description-tabs { grid-row: 5; }
  .realty-wb-extra-sections { grid-row: 6; }
  .realty-wb-sales { grid-row: 7; }

  .realty-wb-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }
}

@media (max-width: 900px) {
  .realty-wb-mobile-object-num {
    display: block;
    flex: 0 0 auto;
    color: #30383d;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
  }

  .realty-wb-fluid .vd_container {
    width: calc(100% - 24px);
  }

  .realty-wb-title {
    margin: 14px 0 0;
    font-size: 32px;
    line-height: 1.12;
  }

  /* Хлебные крошки скрыты на мобильном */
  #crumb,
  .crumbs {
    display: none !important;
  }

  .realty-wb-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .realty-detail-tabs__sticky-sentinel {
    display: none;
  }

  .realty-detail-tabs__sticky {
    order: 1;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2500;
    width: 100vw;
    width: 100dvw;
    margin-right: calc(50% - 50vw);
    margin-right: calc(50% - 50dvw);
    margin-left: calc(50% - 50vw);
    margin-left: calc(50% - 50dvw);
  }

  .realty-detail-tabs__sticky.is-stuck {
    background: #fff;
  }

  .realty-detail-tabs__heading {
    width: calc(100% - 24px);
  }

  .realty-detail-tabs__nav {
    padding: 8px 16px;
  }

  .realty-detail-tabs__sticky.is-stuck .realty-wb-title {
    margin-bottom: 6px;
    padding-top: 6px;
    font-size: 16px;
    line-height: 1.18;
  }

  .realty-detail-tabs__sticky.is-stuck .realty-detail-tabs__nav {
    margin-bottom: 6px;
    padding-top: 5px;
    padding-bottom: 6px;
  }

  .realty-detail-tabs__tab {
    min-height: 38px;
    padding: 0 14px;
    font-size: 16px;
  }

  .realty-wb-gallery       { order: 2; }
  .realty-wb-info-panel    { order: 3; }
  .realty-wb-buy           { order: 4; }
  .realty-wb-maps          { order: 5; }
  .realty-wb-description-tabs { order: 6; }
  .realty-wb-extra-sections   { order: 7; }
  .realty-wb-sales            { order: 8; }

  /* Галерея — на всю ширину viewport, без отступов слева/справа на мобиле (full-bleed) */
  .realty-wb-gallery {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-self: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100vw;
    width: 100dvw;
    max-width: 100vw;
    max-width: 100dvw;
    margin-left: calc(50% - 50vw);
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50vw);
    margin-right: calc(50% - 50dvw);
    overflow: hidden;
  }

  /* Страховка от горизонтального скролла */
  HTML, BODY {
    overflow-x: hidden;
  }

  BODY.page-realty-show {
    width: 100%;
    overflow-x: hidden;
  }

  BODY.page-realty-show .realty-wb-fluid {
    max-width: 100%;
    overflow-x: clip;
  }

  BODY.page-realty-show .realty-wb-layout {
    max-width: 100%;
    overflow: visible;
  }

  /* На детальной странице realty/show на мобиле — скрываем баннер рассрочки сверху,
     чтобы фотографии были сразу под меню (вовлечение) */
  BODY.page-realty-show .installment-line-banner {
    display: none !important;
  }

  .realty-wb-thumbs {
    position: static;
    order: 2;
    flex-direction: row;
    gap: 2px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0px 0px 4px;
    overflow: auto hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x;
  }

  .realty-wb-thumb {
    width: 58px;
    height: 78px;
    border-radius: 7px;
    scroll-snap-align: start;
  }

  .realty-wb-main {
    order: 1;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 3;
    max-height: none;
    border-radius: 0;
    touch-action: pan-y;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .realty-wb-info-panel,
  .realty-wb-maps,
  .realty-wb-buy,
  .realty-wb-description-tabs,
  .realty-wb-extra-sections,
  .realty-wb-sales {
    width: 100%;
    margin-top: 0;
  }

  .realty-wb-maps--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .realty-wb-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2400;
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #dce8df;
    box-shadow: 0 -12px 30px rgba(19, 43, 28, .16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .realty-wb-buy-card {
    position: static;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(132px, auto);
    grid-template-areas:
      "object object price"
      "avatar manager action";
    column-gap: 9px;
    row-gap: 7px;
    max-width: 620px;
    margin: 0 auto;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .realty-wb-buy-card .realty-wb-installments,
  .realty-wb-buy-card .realty-wb-print:not(.village-lot-detail-order),
  .realty-wb-buy-card .village-lot-detail-contact:not(.village-lot-detail-contact_phone),
  .realty-wb-buy-card .realty-wb-manager__title,
  .realty-wb-buy-card .realty-wb-manager__line--email,
  .realty-wb-buy-card .realty-wb-manager__line--phone:not(:first-of-type) {
    display: none;
  }

  .realty-wb-buy-card .realty-wb-object-num {
    grid-area: object;
    align-self: end;
    min-width: 0;
    margin: 0;
    color: #738078;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .realty-wb-buy-card .realty-wb-object-num EM {
    color: #30383d;
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
  }

  .realty-wb-buy-card.has-buy-meta .realty-wb-object-num {
    display: none;
  }

  .realty-wb-buy-card .realty-wb-buy-meta {
    grid-area: object;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-self: end;
    min-width: 0;
    margin: 0;
    color: #68776f;
    font-size: 11px;
    line-height: 1.15;
    overflow: hidden;
  }

  .realty-wb-buy-card .realty-wb-buy-meta__row {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .realty-wb-buy-card .realty-wb-buy-meta__label {
    color: #738078;
  }

  .realty-wb-buy-card .realty-wb-buy-meta__value {
    color: #30383d;
    font-weight: 700;
  }

  .realty-wb-buy-card .realty-wb-price {
    grid-area: price;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 0;
    color: #143f2c;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
  }

  BODY.page-realty-show .realty-wb-buy-card .realty-wb-price {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
  }

  .realty-wb-buy-card .realty-wb-price STRIKE {
    display: block;
    margin: 0 0 3px;
    color: #8b9a91;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
  }

  BODY.page-realty-show .realty-wb-buy-card .realty-wb-price STRIKE {
    margin: 0;
    flex: 0 0 auto;
  }

  .realty-wb-buy-card .village-lot-detail-price-note {
    grid-area: note;
    align-self: start;
    min-width: 0;
    margin: 0;
    color: #68776f;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .realty-wb-buy-card .realty-wb-manager,
  .realty-wb-buy-card .realty-wb-manager__body {
    display: contents;
  }

  .realty-wb-buy-card .realty-wb-manager__body > DIV {
    display: contents;
  }

  .realty-wb-buy-card .realty-wb-manager__body IMG {
    display: block;
    grid-area: avatar;
    align-self: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
  }

  .realty-wb-buy-card .realty-wb-manager__body B {
    display: block;
    grid-area: manager;
    align-self: center;
    min-width: 0;
    margin: 0;
    color: #263a2f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .realty-wb-buy-card .village-lot-detail-order,
  .realty-wb-buy-card .village-lot-detail-contact_phone,
  .realty-wb-buy-card .realty-wb-manager__line--phone:first-of-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0 12px;
    border-radius: 8px;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .realty-wb-buy-card .realty-wb-manager__line--phone:first-of-type {
    grid-area: action;
    background: #16863a;
    color: #fff;
  }

  .realty-wb-buy-card .realty-wb-manager__line--phone:first-of-type A {
    color: inherit;
    text-decoration: none;
  }

  BODY.page-realty-show .realty-wb-buy-card {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 1fr);
    grid-template-areas:
      "object price"
      "print action";
    column-gap: 10px;
    row-gap: 8px;
  }

  BODY.page-realty-show .realty-wb-buy-card .realty-wb-manager,
  BODY.page-realty-show .realty-wb-buy-card .realty-wb-manager__body,
  BODY.page-realty-show .realty-wb-buy-card .realty-wb-manager__body > DIV,
  BODY.page-realty-show .realty-wb-buy-card .realty-wb-manager__body IMG,
  BODY.page-realty-show .realty-wb-buy-card .realty-wb-manager__body B {
    display: none;
  }

  BODY.page-realty-show .realty-wb-buy-card .realty-wb-order.village-lot-detail-order {
    grid-area: action;
  }

  .village-lot-detail-buy-card {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .village-lot-detail-buy-card .realty-wb-object-num,
  .village-lot-detail-buy-card .realty-wb-buy-meta,
  .village-lot-detail-buy-card .village-lot-detail-price-note {
    display: none;
  }

  .village-lot-detail-buy-card .realty-wb-price {
    order: 2;
    flex: 1 1 calc(50% - 5px);
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    font-size: 22px;
    text-align: right;
  }

  .village-lot-detail-buy-card .realty-wb-price STRIKE {
    flex: 0 0 auto;
    margin: 0;
  }

  .village-lot-detail-buy-card .village-lot-detail-contact_phone {
    order: 1;
    display: inline-flex;
    flex: 1 1 calc(50% - 5px);
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2f3437;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .village-lot-detail-buy-card .village-lot-detail-order {
    order: 4;
    flex: 1 1 calc(50% - 5px);
    width: auto;
    margin-left: 0;
    border: 1px solid #16863a;
    background: #16863a;
    color: #fff;
  }

  .village-lot-detail-order__mobile {
    display: inline;
  }

  .village-lot-detail-order__desktop {
    display: none;
  }

  .realty-wb-fluid {
    padding-bottom: 16px;
  }

  BODY.page-realty-show {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  BODY.page-village-lot-detail {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  BODY.page-realty-show .realty-wb-sales {
    padding-bottom: 4px;
    margin-bottom: 0;
  }

  /* Поднимаем плавающие иконки мессенджеров над sticky-баром */
  #messendger_fly {
    bottom: 96px !important;
    z-index: 1001;
  }

  BODY.page-village-lot-detail #messendger_fly {
    bottom: calc(94px + env(safe-area-inset-bottom)) !important;
  }

  BODY.page-realty-show #messendger_fly .social_icons A.max-only {
    margin-top: 0;
  }

  .realty-wb-specs {
    display: block;
  }

  .realty-wb-specs DIV {
    grid-template-columns: minmax(110px, 1fr) minmax(100px, auto);
  }

  .realty-wb-map__canvas,
  #item_ymap.realty-wb-map__canvas,
  #item_ymap_cadastral.realty-wb-map__canvas {
    height: 240px !important;
  }

  .realty-wb-map__canvas--tilted {
    transform: none;
  }

  .realty-wb-description-tabs {
    padding-top: 22px;
    padding-bottom: 8px;
  }

  .realty-wb-description-tabs__nav {
    top: 0px;
    margin-right: 0;
    margin-left: 0;
    padding: 8px 12px;
  }

  .realty-wb-description-tabs__tab {
    min-height: 40px;
    padding: 0 14px;
    font-size: 16px;
  }

  .realty-wb-description-panel {
    scroll-margin-top: 56px;
    font-size: 17px;
  }

  .realty-wb-sales {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .realty-wb-sales__phone {
    font-size: 30px;
  }

  .vd_container.catalog_item_detail > .vd-row,
  .vd_container.catalog_item_detail .contacts_phone .vd-row {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .realty-wb-title {
    font-size: 30px;
  }

  .realty-wb-gallery-nav {
    width: 38px;
    height: 38px;
  }

  .realty-wb-price {
    font-size: 30px;
  }

  .realty-wb-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 118px 12px 16px;
  }

  .realty-wb-lightbox__close {
    top: 55px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: flex !important;
    place-items: center;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  }

  .realty-wb-lightbox__close svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .realty-wb-lightbox__stage {
    order: 1;
  }

  .realty-wb-lightbox__thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .realty-wb-lightbox__thumb {
    flex: 0 0 auto;
    width: 58px;
    height: 78px;
  }

  .realty-wb-lightbox__stage IMG {
    max-height: calc(100vh - 174px);
  }

  .realty-wb-lightbox__nav {
    width: 42px;
    height: 42px;
  }

  .realty-wb-lightbox__nav--prev {
    left: 12px;
  }

  .realty-wb-lightbox__nav--next {
    right: 12px;
  }
}

/* ==== Коммуникации: иконки в строку ==== */
.realty-wb-utilities {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.realty-wb-utilities-section {
  margin-top: 24px;
}
.realty-wb-utilities-section h2 {
  margin: 0 0 14px;
  color: #263a2f;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.realty-wb-utilities-section .realty-wb-utilities {
  margin-top: 0;
}
.realty-wb-utility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 14px/1.2 "Roboto", Arial, sans-serif;
  color: #2f3437;
  position: relative;
}
.realty-wb-utility__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f3f4;
}
.realty-wb-utility__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.realty-wb-utility--electricity.is-on .realty-wb-utility__icon { background: #fff5d6; color: #f0a500; }
.realty-wb-utility--gas.is-on        .realty-wb-utility__icon { background: #ffe5d6; color: #e25822; }
.realty-wb-utility--water.is-on      .realty-wb-utility__icon { background: #d6efff; color: #1e90ff; }
.realty-wb-utility--sewage.is-on     .realty-wb-utility__icon { background: #e3e6ea; color: #5c6770; }
.realty-wb-utility.is-off { color: #9aa0a6; }
.realty-wb-utility.is-off .realty-wb-utility__icon { color: #b0b6bd; background: #f4f5f7; }
.realty-wb-utility.is-off .realty-wb-utility__label { text-decoration: line-through; text-decoration-color: #c8ccd1; text-decoration-thickness: 1.5px; }
.realty-wb-utility.is-off .realty-wb-utility__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 28px;
  height: 2px;
  background: #d0334a;
  transform: translateY(-50%) rotate(-18deg);
  transform-origin: 50% 50%;
  pointer-events: none;
  border-radius: 2px;
}
.realty-wb-utility.is-off .realty-wb-utility__icon { position: relative; overflow: visible; }

@media (max-width: 900px) {
  .realty-wb-utilities { gap: 12px 14px; margin-top: 14px; }
  .realty-wb-utilities-section { margin-top: 20px; }
  .realty-wb-utilities-section h2 { margin-bottom: 12px; font-size: 20px; }
  .realty-wb-utility { font-size: 13px; gap: 6px; }
  .realty-wb-utility__icon { width: 26px; height: 26px; }
  .realty-wb-utility__icon svg { width: 18px; height: 18px; }
}

.realty-wb-extra-sections {
  grid-column: 1 / 3;
  grid-row: 5;
  display: grid;
  gap: 34px;
  min-width: 0;
  margin-top: 34px;
}
.realty-wb-extra-section {
  min-width: 0;
}
.realty-wb-extra-section > .vd_container,
.realty-wb-extra-section .main-info-section > .vd_container {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}
.realty-wb-extra-section .main-info-section,
.realty-wb-extra-section .villages_show_responses {
  margin-top: 0;
}
@media (max-width: 1180px) {
  .realty-wb-extra-sections {
    grid-column: 1;
    grid-row: 6;
  }
  .realty-wb-sales {
    grid-row: 7;
  }
}
@media (max-width: 900px) {
  .realty-wb-extra-sections {
    order: 7;
    width: 100%;
    margin-top: 0;
  }
  .realty-wb-sales {
    order: 8;
  }
}

/* Drag-cursor для свайпа мышью на десктопе */
.realty-wb-main { cursor: grab; user-select: none; -webkit-user-select: none; }
.realty-wb-main.is-dragging { cursor: grabbing; }
.realty-wb-main .realty-wb-main-image { -webkit-user-drag: none; user-select: none; }
.realty-wb-lightbox__stage { cursor: grab; user-select: none; -webkit-user-select: none; }
.realty-wb-lightbox__stage.is-dragging { cursor: grabbing; }
