/* Shared review dialog. Attachments use the existing license/document overlay. */
body .popup-fade-otziv { z-index: 2147483647; background: rgba(20, 37, 66, .55); backdrop-filter: blur(8px); }
body .popup-fade-otziv .popup {
  display: block; width: min(1040px, calc(100% - 40px)); max-width: 1040px;
  height: fit-content; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  padding: 0; border-radius: 28px; background: #fff; overflow: hidden;
  color: #283c64; font-family: "Geologica", sans-serif;
  box-shadow: 0 24px 80px rgba(20, 37, 66, .2); overscroll-behavior: contain;
}
body .popup-fade-otziv .popup .box {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  position: static; gap: 36px; margin: 0; padding: 54px 40px 40px;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  border: 0; border-radius: 0; background: white; backdrop-filter: none;
}
body .popup-fade-otziv.has-attachment .popup .box { grid-template-columns: minmax(0, 1fr) 280px; }
body .popup-fade-otziv .popup .box .left { width: auto; min-width: 0; }
body .popup-fade-otziv .popup .box .left .name {
  margin: 0 0 10px; color: #283c64; font-size: 28px; line-height: 1.2;
  font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere;
}
body .popup-fade-otziv .popup .box .left .job { margin: 0 0 16px; color: #747c82; font-size: 15px; line-height: 1.5; letter-spacing: 0; }
body .popup-fade-otziv .popup .box .left .star { margin: 0 0 24px; }
body .popup-fade-otziv .popup .box .left .text { color: #283c64; font-size: 16px; line-height: 1.65; letter-spacing: 0; overflow-wrap: anywhere; }
body .popup-fade-otziv .popup .box .left .text p { margin: 0 0 16px; }
body .popup-fade-otziv .popup .box .left .text > :last-child { margin-bottom: 0; }
body .popup-fade-otziv .popup .box .right { display: none; width: auto; height: auto; min-width: 0; }
body .popup-fade-otziv.has-attachment .popup .box .right { display: block; }
body .popup-fade-otziv .ecoips-review-document {
  display: flex; flex-direction: column; gap: 18px; width: 100%; padding: 20px;
  border: 1px solid #d5e5ef; border-radius: 20px; background: #dff1fc;
  color: #283c64; font: inherit; font-size: 13px; line-height: 1.5;
  text-align: center; cursor: zoom-in; transition: border-color .2s, background .2s;
}
body .popup-fade-otziv .ecoips-review-document:hover { border-color: #0099ff; background: #cdeaff; }
body .popup-fade-otziv .popup .box .right .ecoips-review-document img { display: block; width: 100%; height: 320px; object-fit: contain; }
body .popup-fade-otziv .popup .popup-close {
  display: flex; align-items: center; justify-content: center; position: absolute;
  top: 14px; right: 14px; left: auto; width: 36px; height: 36px; margin: 0;
  border-radius: 50%; background: #edf5fa; transform: none; z-index: 1;
}
body .popup-fade-otziv .popup .popup-close svg { width: 14px; height: 14px; }
body .popup-fade-otziv .popup .popup-close:hover { background: #dff1fc; }
body .popup-fade-otziv :is(button, a):focus-visible { outline: 2px solid #0099ff; outline-offset: 3px; }
/* Only raise the shared document overlay while a review stays open underneath. */
body .popup-fade-lic.is-over-review { z-index: 2147483647; background: rgba(15, 27, 46, .85); backdrop-filter: blur(4px); }
body .popup-fade-lic.is-over-review .popup {
  display: flex; width: min(1000px, calc(100% - 32px)); max-width: 1000px;
  height: fit-content; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 48px 20px 20px; border-radius: 20px; background: white;
  overflow: auto; overscroll-behavior: contain;
}
body .popup-fade-lic.is-over-review .popup > .img { width: 100%; }
body .popup-fade-lic.is-over-review #img img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; margin: auto; }
body .popup-fade-lic.is-over-review #name { width: 100%; max-width: none; letter-spacing: 0; margin: 14px 0 0; color: #283c64; font: 14px/1.5 "Geologica", sans-serif; text-align: center; }
body .popup-fade-lic.is-over-review .popup .popup-close { position: absolute; left: auto; right: 16px; top: 16px; transform: none; }
@media(max-width: 767px) {
  body .popup-fade-otziv .popup { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 24px; }
  body .popup-fade-otziv.has-attachment .popup .box { grid-template-columns: minmax(0, 1fr); }
  body .popup-fade-otziv .popup .box { padding: 60px 24px 24px; gap: 28px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  body .popup-fade-otziv .popup .box .left .name { font-size: 24px; }
  body .popup-fade-otziv .popup .box .left .text { font-size: 15px; }
  body .popup-fade-otziv .popup .box .right .ecoips-review-document img { height: 280px; }
}

/* Shared home/company form feedback and spam trap. */
form[data-ecoips-consultation] .ecoips-consultation-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form[data-ecoips-consultation] .ecoips-consultation-status { margin: 16px 0 0; color: #283c64; font: 14px/1.5 "Geologica", sans-serif; }
form[data-ecoips-consultation] .ecoips-consultation-status:empty { display: none; }
form[data-ecoips-consultation] .ecoips-consultation-status[data-state="success"] { padding: 12px 14px; border: 1px solid #237c60; border-radius: 10px; background: #edf9f4; color: #1f6b54; }
form[data-ecoips-consultation] .ecoips-consultation-status[data-state="error"] { color: #a42f39; }
form[data-ecoips-consultation] button:disabled { opacity: .6; cursor: wait; }

/* Многостраничный документ: страницы идут друг под другом */
.popup-fade-lic #img img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
.popup-fade-lic #img img + img { margin-top: 16px; }
