* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #a8cfb3;
}
body {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  overscroll-behavior-x: none;
}
.page-wrap {
  position: relative;
  width: 100%;
  max-width: 4082px;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}
.site-svg { display: block; width: 100%; max-width: 100%; height: auto; }

/* Координаты заданы в процентах от исходного SVG 4082×8817 */
.top-logo {
  position: absolute;
  left: 4.1%;
  top: 1.18%;
  width: 17.0%;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.lead-form { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
.field, .form-button, .hotspot { position: absolute; pointer-events: auto; }
.field {
  width: 32.6%;
  height: 1.36%;
  left: 9.30%;
  border: 1px solid rgba(83, 108, 73, 0.12);
  outline: none;
  background: rgba(246, 243, 234, 0.98);
  border-radius: 999px;
  padding: 0 2.6%;
  color: #222;
  font-size: clamp(12px, 1.05vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}
.field::placeholder {
  color: #8b877d;
  opacity: 1;
}
.field-name { top: 91.48%; }
.field-email { top: 93.10%; }
.field-phone { top: 94.72%; }
.form-button {
  left: 9.30%;
  top: 96.43%;
  width: 32.65%;
  height: 1.38%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.hotspot { z-index: 20; display: block; background: rgba(255,255,255,0); }
.mail-link  { left: 55.0%; top: 92.45%; width: 22.0%; height: 1.35%; }
.phone-link { left: 55.0%; top: 94.05%; width: 18.0%; height: 1.35%; }
.vk-link    { left: 55.6%; top: 96.70%; width: 5.9%;  height: 2.65%; border-radius: 50%; }
.tg-link    { left: 63.0%; top: 96.70%; width: 5.9%;  height: 2.65%; border-radius: 50%; }
.wa-link    { left: 70.2%; top: 96.70%; width: 5.9%;  height: 2.65%; border-radius: 50%; }

@media (max-width: 700px) {
  .field { font-size: 11px; padding-left: 12px; padding-right: 12px; }
}


/* Всплывающие описания преимуществ */
.advantage-tooltips {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  line-height: normal;
}
.advantage-hotspot {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: help;
  pointer-events: auto;
  border-radius: 18px;
}
.advantage-hotspot:focus-visible {
  outline: 3px solid rgba(70, 120, 67, .7);
  outline-offset: 4px;
}
.adv-eco     { left: 11.7%; top: 52.35%; width: 11.6%; height: 7.75%; }
.adv-fast    { left: 28.0%; top: 52.35%; width: 11.6%; height: 7.75%; }
.adv-economy { left: 44.2%; top: 52.35%; width: 11.6%; height: 7.75%; }
.adv-heat    { left: 60.5%; top: 52.35%; width: 11.6%; height: 7.75%; }
.adv-beauty  { left: 76.7%; top: 52.35%; width: 11.6%; height: 7.75%; }

.tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1.1vw);
  width: min(39vw, 680px);
  max-width: 680px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(250, 247, 235, .98);
  border: 2px solid rgba(70, 120, 67, .30);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(31, 55, 35, .22);
  padding: clamp(14px, 1.15vw, 28px) clamp(16px, 1.4vw, 34px);
  color: #111;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, .92vw, 28px);
  line-height: 1.35;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
  white-space: normal;
}
.tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 24px;
  height: 24px;
  background: rgba(250, 247, 235, .98);
  border-right: 2px solid rgba(70, 120, 67, .30);
  border-bottom: 2px solid rgba(70, 120, 67, .30);
  transform: translateX(-50%) rotate(45deg);
}
.tooltip strong {
  display: block;
  margin: 0 0 .55em;
  font-size: 1.17em;
  line-height: 1.15;
  font-weight: 800;
}
.tooltip span {
  display: block;
  margin: .48em 0 0;
}
.advantage-hotspot:hover .tooltip,
.advantage-hotspot:focus-visible .tooltip,
.advantage-hotspot:focus .tooltip,
.advantage-hotspot.is-open .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.adv-eco .tooltip { left: 0; transform: translateX(0) translateY(8px); }
.adv-eco .tooltip::after { left: 18%; }
.adv-eco:hover .tooltip,
.adv-eco:focus-visible .tooltip,
.adv-eco:focus .tooltip,
.adv-eco.is-open .tooltip { transform: translateX(0) translateY(0); }
.adv-beauty .tooltip { left: auto; right: 0; transform: translateX(0) translateY(8px); }
.adv-beauty .tooltip::after { left: auto; right: 18%; }
.adv-beauty:hover .tooltip,
.adv-beauty:focus-visible .tooltip,
.adv-beauty:focus .tooltip,
.adv-beauty.is-open .tooltip { transform: translateX(0) translateY(0); }

@media (max-width: 700px) {
  .tooltip {
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: calc(100vw - 28px);
    max-width: 380px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: translate(-50%, -46%);
    font-size: 12px;
    padding: 13px 14px;
    border-radius: 16px;
  }
  .tooltip::after { display: none; }
  .adv-eco .tooltip,
  .adv-fast .tooltip,
  .adv-economy .tooltip,
  .adv-heat .tooltip,
  .adv-beauty .tooltip {
    left: 50%;
    right: auto;
    transform: translate(-50%, -46%);
  }
  .advantage-hotspot:hover .tooltip,
  .advantage-hotspot:focus-visible .tooltip,
  .advantage-hotspot:focus .tooltip,
  .advantage-hotspot.is-open .tooltip,
  .adv-eco:hover .tooltip,
  .adv-eco:focus-visible .tooltip,
  .adv-eco:focus .tooltip,
  .adv-eco.is-open .tooltip,
  .adv-beauty:hover .tooltip,
  .adv-beauty:focus-visible .tooltip,
  .adv-beauty:focus .tooltip,
  .adv-beauty.is-open .tooltip {
    transform: translate(-50%, -50%);
  }
}


/* Ровные фотографии проектов поверх пустых областей карточек.
   Позиции заданы в процентах от основного SVG, изображения не закрывают текст. */
.project-photo-layer{
  position:absolute;
  inset:0;
  z-index:8;
  pointer-events:none;
  line-height:0;
}
.project-photo{
  position:absolute;
  display:block;
  object-fit:cover;
  border-radius:clamp(18px, 2.9vw, 90px) clamp(18px, 2.9vw, 90px) 0 0;
}
.project-photo-1{ left:7.82%;  top:69.23%; width:25.75%; height:7.35%; }
.project-photo-2{ left:36.87%; top:69.23%; width:25.75%; height:7.35%; }
.project-photo-3{ left:65.93%; top:69.23%; width:25.75%; height:7.35%; }

.project-info-layer{
  position:absolute;
  inset:0;
  z-index:10;
  pointer-events:none;
  line-height:normal;
  font-family:Arial, Helvetica, sans-serif;
  color:#111;
}
.project-copy{
  position:absolute;
  top:76.60%;
  width:22.2%;
  height:5.08%;
  padding:.56% .72%;
  background:#fffefa;
  font-size:clamp(4px, 1.18vw, 46px);
  line-height:1.43;
  overflow:hidden;
}
.project-copy strong{
  display:block;
  margin:0 0 .36em;
  font-size:1.06em;
  line-height:1.1;
  font-weight:800;
}
.project-copy span{
  display:block;
}
.project-copy-65{ left:9.18%; }
.project-copy-100{ left:38.23%; }
.project-copy-130{ left:67.29%; }


/* Полностью кликабельные зоны кнопок "Смотреть планировки" */
.plan-hotspot{
  position:absolute;
  z-index:60;
  display:block;
  border:0;
  padding:0;
  margin:0;
  background:rgba(255,255,255,0);
  cursor:pointer;
  border-radius:999px;
  pointer-events:auto;
}

/* Координаты совпадают с зелёными кнопками в SVG */
.plan-hotspot-65{
  left:9.91%;
  top:81.80%;
  width:21.26%;
  height:1.35%;
}
.plan-hotspot-100{
  left:39.33%;
  top:81.80%;
  width:21.34%;
  height:1.35%;
}
.plan-hotspot-130{
  left:68.83%;
  top:81.76%;
  width:21.26%;
  height:1.32%;
}

.plan-modal[aria-hidden="true"]{
  display:none;
}
.plan-modal[aria-hidden="false"]{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.72);
}
.plan-modal img{
  max-width:min(94vw, 1200px);
  max-height:88vh;
  background:#fff;
  border-radius:16px;
  box-shadow:0 22px 70px rgba(0,0,0,.35);
}
.plan-modal-close{
  position:fixed;
  top:18px;
  right:22px;
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:34px;
  line-height:1;
  cursor:pointer;
}

.field:focus {
  border-color: rgba(82, 123, 71, 0.35);
  box-shadow: 0 0 0 3px rgba(98, 140, 84, 0.12), inset 0 0 0 1px rgba(255,255,255,0.45);
}
