/* August 2026 / task 8: extra sections for single wx1 product. */
.wx1-single-product .mr-product-extra{
  margin:34px 0 0;
  padding:30px 0 0;
  border-top:1px solid #e6edf3;
}
.wx1-single-product .mr-product-extra__head{margin:0 0 20px}
.wx1-single-product .mr-product-extra__eyebrow{
  display:block;
  margin:0 0 5px;
  color:#1683c3;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.wx1-single-product .mr-product-extra__head h2{
  margin:0;
  color:#25313b;
  font-size:27px;
  line-height:1.2;
}
.wx1-single-product .mr-product-extra__intro{
  max-width:720px;
  margin-top:10px;
  color:#637381;
  font-size:15px;
  line-height:1.6;
}
.wx1-single-product .mr-product-extra__intro p:last-child{margin-bottom:0}

.wx1-single-product .mr-product-certificates{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.wx1-single-product .mr-product-certificate{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:16px;
  align-items:center;
  min-height:150px;
  padding:14px;
  border:1px solid #e2ebf2;
  border-radius:14px;
  background:#fff;
  color:#25313b;
  text-decoration:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.wx1-single-product .mr-product-certificate:hover{
  border-color:#b9d8e9;
  box-shadow:0 12px 28px rgba(21,92,134,.09);
  transform:translateY(-2px);
  color:#1683c3;
  text-decoration:none;
}
.wx1-single-product .mr-product-certificate__media{
  display:flex;
  align-items:center;
  justify-content:center;
  height:120px;
  overflow:hidden;
  border-radius:8px;
  background:#f4f7f9;
}
.wx1-single-product .mr-product-certificate__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.wx1-single-product .mr-product-certificate__title{
  font-size:15px;
  line-height:1.45;
  font-weight:700;
}

.wx1-single-product .mr-product-objects{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.wx1-single-product .mr-product-object{
  overflow:hidden;
  border:1px solid #e2ebf2;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 22px rgba(21,72,103,.05);
}
.wx1-single-product .mr-product-object__image{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#eef4f7;
}
.wx1-single-product .mr-product-object__image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.wx1-single-product .mr-product-object:hover .mr-product-object__image img{transform:scale(1.025)}
.wx1-single-product .mr-product-object__placeholder{display:block;width:100%;height:100%;background:#eef4f7}
.wx1-single-product .mr-product-object__body{padding:14px 15px 16px}
.wx1-single-product .mr-product-object__body h3, .wx1-single-product .mr-product-object__body .h3{margin:0;font-size:16px;line-height:1.35}
.wx1-single-product .mr-product-object__body a{color:#24313b;text-decoration:none}
.wx1-single-product .mr-product-object__body a:hover{color:#1683c3}

/* Карта использует тот же JS и SVG, что новый лендинг, но стили изолированы страницей товара. */
.wx1-single-product .mr-product-map{position:relative;min-width:0;width:100%}
.wx1-single-product .modres-rf-map{min-width:0}
.wx1-single-product .modres-rf-map__canvas{position:relative;min-height:270px}
.wx1-single-product .modres-rf-map__canvas svg{display:block;width:100%;height:auto;overflow:visible}
.wx1-single-product .modres-rf-map__canvas svg path[data-code]{
  fill:#d7e8f2!important;
  opacity:1!important;
  stroke:#fff!important;
  stroke-width:1!important;
  stroke-linejoin:round!important;
  cursor:default;
  transition:fill .18s ease,filter .18s ease,opacity .18s ease;
}
.wx1-single-product .modres-rf-map__canvas svg path[data-code]:hover,
.wx1-single-product .modres-rf-map__canvas svg path[data-code].is-hovered{fill:#c4dfef!important}
.wx1-single-product .modres-rf-map__canvas svg path[data-code].is-available{fill:#22b8aa!important;cursor:pointer}
.wx1-single-product .modres-rf-map__canvas svg path[data-code].is-available:hover,
.wx1-single-product .modres-rf-map__canvas svg path[data-code].is-available.is-hovered,
.wx1-single-product .modres-rf-map__canvas svg path[data-code].is-available.is-selected{fill:#127cc0!important;filter:brightness(1.05)}
.wx1-single-product .modres-rf-map__dot{fill:#fff;stroke:#0877bd;stroke-width:2.2;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(6,74,116,.24))}
.wx1-single-product .modres-rf-map__caption{min-height:38px;margin:12px 0 0;color:#637381;font-size:12px;line-height:1.45}
.wx1-single-product .modres-map__tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.wx1-single-product .modres-map__tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:7px 12px;
  border:1px solid #d5e6f2;
  border-radius:999px;
  background:#fff;
  color:#60717f;
  font:inherit;
  font-size:12px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
}
.wx1-single-product .modres-map__tab b{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:0 8px;
  border-radius:999px;
  background:#f0f6fa;
  color:inherit;
  font-size:10px;
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.wx1-single-product .modres-map__tab:hover,
.wx1-single-product .modres-map__tab[aria-selected="true"]{color:#0f5f96;border-color:#bddced;background:#f4fbff}
.wx1-single-product .modres-map__tab--delivery[aria-selected="true"]{color:#0d6f93;border-color:rgba(34,184,170,.34);background:rgba(34,184,170,.1)}
.wx1-single-product .modres-map__tab--production[aria-selected="true"]{color:#0f5f96;border-color:rgba(18,124,192,.32);background:rgba(18,124,192,.1)}
.wx1-single-product .modres-map__tab--installation[aria-selected="true"]{color:#9a5a00;border-color:rgba(245,158,11,.34);background:rgba(245,158,11,.13)}
.wx1-single-product .modres-rf-map[data-current-layer="delivery"] svg path[data-code].is-available{fill:#22b8aa!important}
.wx1-single-product .modres-rf-map[data-current-layer="delivery"] svg path[data-code].is-available:hover,
.wx1-single-product .modres-rf-map[data-current-layer="delivery"] svg path[data-code].is-available.is-hovered,
.wx1-single-product .modres-rf-map[data-current-layer="delivery"] svg path[data-code].is-available.is-selected{fill:#127cc0!important}
.wx1-single-product .modres-rf-map[data-current-layer="production"] svg path[data-code].is-available{fill:#127cc0!important}
.wx1-single-product .modres-rf-map[data-current-layer="production"] svg path[data-code].is-available:hover,
.wx1-single-product .modres-rf-map[data-current-layer="production"] svg path[data-code].is-available.is-hovered,
.wx1-single-product .modres-rf-map[data-current-layer="production"] svg path[data-code].is-available.is-selected{fill:#084f87!important}
.wx1-single-product .modres-rf-map[data-current-layer="installation"] svg path[data-code].is-available{fill:#f59e0b!important}
.wx1-single-product .modres-rf-map[data-current-layer="installation"] svg path[data-code].is-available:hover,
.wx1-single-product .modres-rf-map[data-current-layer="installation"] svg path[data-code].is-available.is-hovered,
.wx1-single-product .modres-rf-map[data-current-layer="installation"] svg path[data-code].is-available.is-selected{fill:#d97706!important}
.wx1-single-product .modres-rf-map[data-current-layer="production"] .modres-rf-map__dot{stroke:#0f5f96}
.wx1-single-product .modres-rf-map[data-current-layer="installation"] .modres-rf-map__dot{stroke:#d97706}
.wx1-single-product .modres-map__regions{margin-top:14px;padding-top:12px;border-top:1px solid #e2edf5}
.wx1-single-product .modres-map__regions summary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  padding:7px 13px;
  border-radius:999px;
  color:#0f5f96;
  background:#e9f6f7;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}
.wx1-single-product .modres-map__regions summary::-webkit-details-marker{display:none}
.wx1-single-product .modres-map__regions summary::after{content:"";width:7px;height:7px;margin-left:2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.wx1-single-product .modres-map__regions[open] summary::after{transform:rotate(225deg) translateY(-1px)}
.wx1-single-product .modres-map__regions summary b{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:22px;padding:0 8px;border-radius:999px;color:#fff;background:#22b8aa;font-size:11px;line-height:1}
.wx1-single-product .modres-map__chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding:0 0 2px}
.wx1-single-product .modres-map__chips[hidden]{display:none!important}
.wx1-single-product .modres-map__chips span{display:inline-flex;align-items:center;min-height:26px;padding:4px 10px;border-radius:999px;color:#0f5f96;background:#e9f6f7;font-size:11px;line-height:1.2;font-weight:700}
.wx1-single-product .modres-map__chips--delivery span.is-active{color:#fff;background:#127cc0}
.wx1-single-product .modres-map__chips--production span.is-active{color:#fff;background:#0f5f96}
.wx1-single-product .modres-map__chips--installation span.is-active{color:#fff;background:#d97706}

@media (max-width:767px){
  .wx1-single-product .mr-product-extra{margin-top:28px;padding-top:24px}
  .wx1-single-product .mr-product-extra__head h2{font-size:23px}
  .wx1-single-product .mr-product-certificates{grid-template-columns:1fr}
  .wx1-single-product .mr-product-certificate{grid-template-columns:92px minmax(0,1fr);min-height:120px}
  .wx1-single-product .mr-product-certificate__media{height:94px}
  .wx1-single-product .mr-product-objects{grid-template-columns:1fr}
  .wx1-single-product .modres-rf-map__canvas{min-height:180px}
  .wx1-single-product .modres-map__tab{width:100%;justify-content:space-between}
}

/* ========================================================================== */
/* P13 v2: WX1 captions below image + self-contained lightbox.                */
/* The caption is a separate white block under the image, never an overlay.   */
/* ========================================================================== */
.wx1-single-product .wx1-product-image-caption{
  width:100%;
  margin:8px 0 0;
  padding:0 2px;
  color:#4b5563;
  font-size:14px;
  line-height:1.45;
  text-align:left;
  background:transparent;
}
.wx1-single-product .wx1-product-image-caption p{margin:0 0 6px}
.wx1-single-product .wx1-product-image-caption p:last-child{margin-bottom:0}

html.wx1-lightbox-open{overflow:hidden}
.wx1-lightbox-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  background:rgba(0,0,0,.82);
}
.wx1-lightbox-modal{
  position:fixed;
  inset:0;
  z-index:100001;
  align-items:center;
  justify-content:center;
  padding:24px 72px;
  overflow:auto;
  pointer-events:none;
}
.wx1-lightbox-modal__dialog{
  position:relative;
  display:flex;
  flex-direction:column;
  width:max-content;
  max-width:min(94vw,1600px);
  max-height:calc(100vh - 48px);
  background:#fff;
  box-shadow:0 14px 48px rgba(0,0,0,.38);
  pointer-events:auto;
}
.wx1-lightbox-modal__media{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:0;
  background:#fff;
}
.wx1-lightbox-modal__img{
  display:block;
  max-width:min(94vw,1600px);
  max-height:calc(100vh - 150px);
  width:auto;
  height:auto;
  object-fit:contain;
}
.wx1-lightbox-modal__caption{
  flex:0 0 auto;
  width:100%;
  box-sizing:border-box;
  padding:12px 16px 14px;
  border-top:1px solid #e5e7eb;
  background:#fff;
  color:#28313d;
  font-size:14px;
  line-height:1.45;
  text-align:left;
}
.wx1-lightbox-modal__caption[hidden]{display:none!important}
.wx1-lightbox-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  z-index:4;
  width:42px;
  height:42px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#1f2937;
  font-size:23px;
  line-height:42px;
  text-align:center;
  cursor:pointer;
  box-shadow:0 3px 16px rgba(0,0,0,.22);
}
.wx1-lightbox-modal__nav{
  position:absolute;
  top:50%;
  z-index:3;
  transform:translateY(-50%);
  width:46px;
  height:58px;
  padding:0;
  border:0;
  border-radius:4px;
  background:rgba(20,25,30,.58);
  color:#fff;
  font-size:40px;
  line-height:52px;
  text-align:center;
  cursor:pointer;
}
.wx1-lightbox-modal__nav--prev{left:-58px}
.wx1-lightbox-modal__nav--next{right:-58px}
.wx1-lightbox-modal__nav[hidden]{display:none!important}

@media (max-width:767px){
  .wx1-single-product .wx1-product-image-caption{font-size:13px;margin-top:6px}
  .wx1-lightbox-modal{padding:12px 10px}
  .wx1-lightbox-modal__dialog{max-width:96vw;max-height:calc(100vh - 24px)}
  .wx1-lightbox-modal__img{max-width:96vw;max-height:calc(100vh - 135px)}
  .wx1-lightbox-modal__caption{padding:10px 12px 12px;font-size:13px}
  .wx1-lightbox-modal__close{top:8px;right:8px;width:38px;height:38px;line-height:38px}
  .wx1-lightbox-modal__nav{top:auto;bottom:8px;width:40px;height:40px;line-height:35px;font-size:32px;background:rgba(20,25,30,.66)}
  .wx1-lightbox-modal__nav--prev{left:8px}
  .wx1-lightbox-modal__nav--next{right:8px}
}
