/* PopUp — 522:7581: 1100×405, радиус 20, тени 0 12 28 rgba(0,0,0,.55)
   и 0 0 20 rgba(241,223,173,.38), внутренняя обводка rgba(215,193,127,.34) */
.pop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.pop[hidden] { display: none; }
.pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 23, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.pop__box {
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(1100px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-xl);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55),
              0 0 20px rgba(241, 223, 173, 0.38),
              inset 0 0 0 3px rgba(215, 193, 127, 0.34);
}

.pop__form {
  flex: 1 1 550px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 45px 35px;
}
.pop__title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--paper);
}

.pop__quote {
  margin-top: -8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--gold);
}
.pop__quote[hidden] { display: none; }

.pop__field { display: block; }
.pop__field input {
  width: 100%;
  height: 43px;
  padding: 0 18px;                       /* 19 минус 1px обводки внутрь */
  border: 1px solid var(--paper);
  border-radius: 10px;
  background: rgba(255, 246, 240, 0.3);
  box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: 1px;
  color: var(--paper);
}
.pop__field input::placeholder { color: rgba(255, 246, 240, 0.4); }

.pop__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-height: 43px;
  cursor: pointer;
}
.pop__consent input { position: absolute; opacity: 0; pointer-events: none; }
.pop__box-mark { flex: 0 0 23px; width: 23px; height: 23px; opacity: 0.35; transition: opacity 240ms var(--ease, ease); }
.pop__consent input:checked + .pop__box-mark { opacity: 1; }
.pop__consent input:focus-visible + .pop__box-mark { outline: 2px solid var(--gold); outline-offset: 3px; }
.pop__consent-text {
  width: min(373px, 100%);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1px;
  color: rgba(255, 246, 240, 0.4);
}

.pop__submit {
  height: 43px;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--gold-grad);
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: 1px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 240ms var(--ease, ease), box-shadow 240ms var(--ease, ease);
}
.pop__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(184, 138, 52, 0.35); }
.pop__submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.pop__note { font-size: 14px; line-height: 1.3; color: var(--gold); }
/* пустая подсказка не занимает места: в макете этой строки нет, карточка 405px */
.pop__note:empty { display: none; }
.pop__note--error { color: #ef4444; }

.pop__media {
  position: relative;
  flex: 1 1 550px;
  overflow: hidden;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
}
/* в макете блок с фото отражён (rotate 180 + scaleY -1), что даёт зеркало по горизонтали */
.pop__media img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

.pop__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
}
.pop__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 20px;
  margin: -10px 0 0 -1px;
  background: var(--ink);
  border-radius: 2px;
}
.pop__close span:first-child { transform: rotate(45deg); }
.pop__close span:last-child { transform: rotate(-45deg); }

@media (max-width: 599px) {
  .pop__title { font-size: 22px; }
  .pop__field input, .pop__submit { font-size: 16px; }
}

@media (max-width: 899px) {
  .pop__box { flex-direction: column-reverse; }
  .pop__media { flex: 0 0 auto; height: clamp(160px, 32vw, 240px); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .pop__form { padding: 28px 22px 32px; }
}
