.figs-plan-widget {
  --plan-ink: #23405a;
  --plan-paper: #f6f1ea;
  --plan-line: #e1d8c9;
  --plan-muted: rgba(35, 64, 90, 0.72);
  --plan-free: #496a53;
  --plan-reserved: #b08a4b;
  --plan-sold: #9c4f2f;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  color: var(--plan-ink);
}

.figs-exact-plan-widget-section {
  padding: clamp(150px, 12vw, 190px) clamp(20px, 4vw, 64px) clamp(38px, 3vw, 56px);
  background: #f6f1ea;
  box-sizing: border-box;
}

.figs-exact-plan-widget-section .figs-plan-widget {
  max-width: 1520px;
  margin: 0 auto;
}

.figs-plan-process {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 112px);
  max-width: 1520px;
  margin: clamp(58px, 8vw, 118px) auto 0;
  padding-top: clamp(30px, 4vw, 58px);
  border-top: 1px solid var(--plan-line);
}

.figs-plan-process__intro p,
.figs-plan-process__steps span {
  margin: 0 0 14px;
  color: #a65f37;
  font-family: var(--t-text-font, Arial, sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.figs-plan-process__intro h2,
.figs-plan-process__steps h3 {
  margin: 0;
  color: #23405a !important;
  font-family: var(--t-heading-font, Georgia, serif) !important;
  font-weight: 400 !important;
}

.figs-plan-process__intro h2 {
  max-width: 360px;
  font-size: clamp(40px, 4.1vw, 66px) !important;
  line-height: .98 !important;
}

.figs-plan-process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.figs-plan-process__steps article {
  min-height: 188px;
  padding: 22px 20px;
  background: rgba(255, 250, 243, .62);
  border: 1px solid var(--plan-line);
  box-sizing: border-box;
}

.figs-plan-process__steps span { display: block; }
.figs-plan-process__steps h3 { font-size: 28px !important; line-height: 1.05 !important; }
.figs-plan-process__steps p { margin: 14px 0 0; color: rgba(35, 64, 90, .74) !important; font-family: var(--t-text-font, Arial, sans-serif) !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.55 !important; }

.figs-genplan-mobile-nav {
  display: none;
}

.figs-exact-plan-widget-section__head {
  max-width: 1520px;
  margin: 0 auto clamp(34px, 5vw, 64px);
  color: #23405a;
}

.figs-exact-plan-widget-section__head p {
  margin: 0 0 14px;
  color: #a65f37;
  font-family: var(--t-text-font, Arial, sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.figs-exact-plan-widget-section__head h1 {
  max-width: 780px;
  margin: 0;
  color: #23405a;
  font-family: var(--t-heading-font, Georgia, serif);
  font-size: clamp(68px, 8vw, 132px);
  font-weight: 400;
  line-height: 0.92;
}

.figs-exact-plan-widget-section__head span {
  display: block;
  max-width: 620px;
  margin-top: 28px;
  color: rgba(35, 64, 90, 0.78);
  font-family: var(--t-text-font, Arial, sans-serif);
  font-size: 20px;
  line-height: 1.55;
}

.figs-plan-widget__map {
  position: relative;
  overflow: visible;
  aspect-ratio: 1920 / 1309;
  background: var(--plan-paper);
}

.figs-plan-widget__map-scroll {
  min-width: 0;
}

.figs-plan-widget__image,
.figs-plan-widget__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.figs-plan-widget__image {
  object-fit: contain;
}

.figs-plan-widget__svg {
  z-index: 2;
  overflow: visible;
}

.figs-plan-widget__marker {
  cursor: pointer;
  color: var(--plan-free);
}

.figs-plan-widget__marker[data-status="reserved"] {
  color: var(--plan-reserved);
}

.figs-plan-widget__marker[data-status="sold"] {
  color: var(--plan-sold);
}

.figs-plan-widget__marker circle:not(.figs-plan-widget__hitarea) {
  fill: currentColor;
  stroke: var(--plan-paper);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 5px 10px rgba(15, 38, 61, 0.24));
}

.figs-plan-widget__marker.is-active circle:not(.figs-plan-widget__hitarea),
.figs-plan-widget__marker:focus-visible circle:not(.figs-plan-widget__hitarea) {
  stroke-width: 2.2;
}

.figs-plan-widget__hitarea {
  fill: transparent;
  stroke: transparent;
  filter: none;
  pointer-events: all;
}

.figs-plan-widget__label {
  pointer-events: none;
  fill: #fffaf3;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  opacity: 0;
}

.figs-plan-widget__marker.is-active .figs-plan-widget__label,
.figs-plan-widget__marker:hover .figs-plan-widget__label {
  opacity: 1;
}

.figs-plan-widget__popup {
  position: absolute;
  z-index: 5;
  width: min(360px, 90vw);
  color: var(--plan-ink);
  background: #fffaf3;
  border: 1px solid rgba(35, 64, 90, 0.14);
  box-shadow: 0 26px 60px rgba(15, 38, 61, 0.22);
  transform: translate(-50%, calc(-100% - 20px));
}

.figs-plan-widget__popup[hidden] {
  display: none;
}

.figs-plan-widget__popup[data-align-x="left"] {
  transform: translate(-18px, calc(-100% - 20px));
}

.figs-plan-widget__popup[data-align-x="right"] {
  transform: translate(calc(-100% + 18px), calc(-100% - 20px));
}

.figs-plan-widget__popup[data-align-y="below"] {
  transform: translate(-50%, 20px);
}

.figs-plan-widget__popup[data-align-x="left"][data-align-y="below"] {
  transform: translate(-18px, 20px);
}

.figs-plan-widget__popup[data-align-x="right"][data-align-y="below"] {
  transform: translate(calc(-100% + 18px), 20px);
}

.figs-plan-widget__popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: var(--plan-ink);
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid rgba(35, 64, 90, 0.16);
  border-radius: 999px;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.figs-plan-widget__popup-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.figs-plan-widget__popup-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.figs-plan-widget__eyebrow {
  margin: 0;
  color: #9c4f2f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.figs-plan-widget__popup-title,
.figs-plan-widget__side-title {
  margin: 0;
  font-family: "FigsForum", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.98;
}

.figs-plan-widget__popup-title {
  font-size: clamp(34px, 3vw, 48px);
}

.figs-plan-widget__side-title {
  font-size: clamp(48px, 5vw, 76px);
}

.figs-plan-widget__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.figs-plan-widget__facts div {
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--plan-line);
}

.figs-plan-widget__facts dt {
  margin-bottom: 6px;
  color: var(--plan-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.figs-plan-widget__facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.figs-plan-widget__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  color: #fffaf3 !important;
  background: var(--plan-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.figs-plan-widget__button:visited,
.figs-plan-widget__button:hover,
.figs-plan-widget__button:focus {
  color: #fffaf3 !important;
}

.figs-plan-widget__button[hidden] {
  display: none !important;
}

.figs-plan-widget__side {
  padding: clamp(26px, 3.2vw, 40px);
  background: #fffaf3;
  border: 1px solid var(--plan-line);
}

.figs-plan-widget__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 24px 0;
  color: var(--plan-muted);
  font-size: 13px;
}

.figs-plan-widget__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.figs-plan-widget__legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.figs-plan-widget__legend-free {
  color: var(--plan-free);
}

.figs-plan-widget__legend-reserved {
  color: var(--plan-reserved);
}

.figs-plan-widget__legend-sold {
  color: var(--plan-sold);
}

.figs-plan-widget__selection {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--plan-line);
}

.figs-plan-widget__note {
  margin: 18px 0 0;
  color: var(--plan-muted);
  font-size: 12px;
  line-height: 1.5;
}

.figs-plan-widget__error {
  padding: 22px;
  color: var(--plan-ink);
  background: #fffaf3;
  border: 1px solid var(--plan-line);
}

@media (max-width: 980px) {
  .figs-plan-widget {
    grid-template-columns: 1fr;
  }

  .figs-plan-process {
    grid-template-columns: 1fr;
  }

  .figs-plan-widget__side {
    order: -1;
  }
}

@media (max-width: 1024px) {
  body.figs-genplan-page {
    background: #f6f1ea;
    overflow-x: hidden;
    position: static !important;
    top: auto !important;
    width: auto !important;
  }

  body.figs-genplan-page > header,
  body.figs-genplan-page [id="t-header"],
  body.figs-genplan-page #annexx-wrap-preloader,
  body.figs-genplan-page #annexx-prepreloader,
  body.figs-genplan-page #rec2445268811,
  body.figs-genplan-page #allrecords > .r:not(.figs-exact-plan-widget-section) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.figs-genplan-page #allrecords {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .figs-exact-plan-widget-section {
    padding: 0 32px 76px;
    overflow: hidden;
  }

  .figs-genplan-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    margin: 0 -32px 52px;
    padding: 0 32px;
    background: #f6f1ea;
    border-bottom: 1px solid rgba(35, 64, 90, 0.08);
    box-sizing: border-box;
  }

  .figs-genplan-mobile-nav__brand {
    color: #23405a !important;
    text-decoration: none !important;
  }

  .figs-genplan-mobile-nav__brand .figs-mobile-logo {
    display: block;
    width: 150px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(21%) sepia(26%) saturate(1397%) hue-rotate(164deg) brightness(93%) contrast(92%);
  }

  .figs-genplan-mobile-nav__brand strong {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #23405a;
    font-family: var(--t-heading-font, Georgia, serif);
    font-weight: 400;
  }

  .figs-genplan-mobile-nav__brand b {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .figs-genplan-mobile-nav__brand i {
    display: block;
    width: 1px;
    height: 26px;
    background: rgba(35, 64, 90, 0.22);
  }

  .figs-genplan-mobile-nav__brand small {
    color: rgba(35, 64, 90, 0.5);
    font-family: var(--t-text-font, Arial, sans-serif);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
  }

  .figs-genplan-mobile-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    color: #fffaf3 !important;
    background: #23405a;
    font-family: var(--t-text-font, Arial, sans-serif);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  body.figs-genplan-page {
    background: #f6f1ea;
    overflow-x: hidden;
    position: static !important;
    top: auto !important;
    width: auto !important;
  }

  body.figs-genplan-page > header,
  body.figs-genplan-page [id="t-header"],
  body.figs-genplan-page #annexx-wrap-preloader,
  body.figs-genplan-page #annexx-prepreloader,
  body.figs-genplan-page #rec2445268811,
  body.figs-genplan-page #allrecords > .r:not(.figs-exact-plan-widget-section) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.figs-genplan-page #allrecords {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .figs-exact-plan-widget-section {
    padding: 24px 14px 52px;
    overflow: hidden;
  }

  .figs-genplan-mobile-nav {
    min-height: 56px;
    margin: -24px -14px 28px;
    padding: 0 14px;
  }

  .figs-genplan-mobile-nav__brand b {
    font-size: 18px;
  }

  .figs-genplan-mobile-nav__brand i {
    height: 22px;
  }

  .figs-genplan-mobile-nav__brand small {
    font-size: 8px;
  }

  .figs-genplan-mobile-nav__button {
    min-height: 34px;
    padding: 0 13px;
    font-size: 8px;
  }

  .figs-exact-plan-widget-section__head {
    margin-bottom: 22px;
  }

  .figs-exact-plan-widget-section__head p {
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .figs-exact-plan-widget-section__head h1 {
    max-width: 330px;
    font-size: 58px;
    line-height: 0.96;
  }

  .figs-exact-plan-widget-section__head span {
    max-width: 330px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.6;
  }

  .figs-plan-widget {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: visible;
  }

  .figs-plan-widget__side {
    order: 2;
    padding: 20px;
  }

  .figs-plan-widget__side-title {
    font-size: 42px;
    line-height: 1;
  }

  .figs-plan-widget__legend {
    gap: 8px 12px;
    margin: 18px 0;
    font-size: 12px;
  }

  .figs-plan-widget__selection {
    gap: 12px;
    padding: 16px;
  }

  .figs-plan-widget__selection .figs-plan-widget__popup-title {
    font-size: 36px;
  }

  .figs-plan-widget__facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .figs-plan-widget__facts div {
    min-height: 58px;
    padding: 10px;
  }

  .figs-plan-widget__facts dd {
    font-size: 13px;
  }

  .figs-plan-widget__button {
    min-height: 50px;
    font-size: 11px;
    color: #fffaf3 !important;
  }

  .figs-plan-widget__map {
    order: 1;
    width: 860px;
    max-width: none;
    overflow: visible;
    touch-action: pan-x pan-y;
  }

  .figs-plan-process {
    margin-top: 48px;
    padding-top: 28px;
  }

  .figs-plan-process__steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .figs-plan-process__steps article {
    min-height: 0;
    padding: 18px 16px;
  }

  .figs-plan-widget__map-scroll {
    order: 1;
    width: calc(100vw - 28px);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .figs-plan-widget::before {
    content: "Проведите по карте, чтобы посмотреть всю территорию";
    order: 0;
    display: block;
    padding: 10px 12px;
    color: rgba(35, 64, 90, 0.74);
    background: #fffaf3;
    border: 1px solid var(--plan-line);
    font-size: 11px;
    line-height: 1.45;
  }

  .figs-plan-widget__marker circle:not(.figs-plan-widget__hitarea) {
    stroke-width: 1.3;
    filter: drop-shadow(0 4px 8px rgba(15, 38, 61, 0.26));
  }

  .figs-plan-widget__label {
    display: none;
  }

  .figs-plan-widget__popup {
    position: fixed;
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px;
    z-index: 10001;
    width: auto;
    max-height: min(74vh, 560px);
    overflow: auto;
    transform: none !important;
    box-shadow: 0 18px 54px rgba(15, 38, 61, 0.32);
  }

  .figs-plan-widget__popup-image {
    height: 130px;
  }

  .figs-plan-widget__popup-body {
    gap: 12px;
    padding: 18px;
  }

  .figs-plan-widget__popup-title {
    font-size: 38px;
  }

  .figs-plan-widget__popup-close {
    top: 10px;
    right: 10px;
  }
}
