/* ===================================================================
   Попап с промокодом.

   .popup / .popup-wrapper / .close-bg / .popup-content / .popup-close / .popup-title / .popup .btn
   — реальные классы темы tachki.pro (та же оболочка, на которой держатся #popup-call,
   #popup-reservation и другие попапы сайта). Если эти классы уже стилизованы глобально
   (подключены app.css / style_v_1.2.css) — этот кусок дублировать не нужно, оставить только блок
   "содержимое попапа" ниже. Если верстаешь отдельно/без темы сайта — оставляй всё как есть.
   =================================================================== */

.popup {
  opacity: 0;
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 100; /* на реальном сайте z-index:5 — подними под свою шапку, если она выше по z-index */
  width: 100%;
  height: 100vh;
  transition: opacity 0.3s;
}
.popup.active {
  pointer-events: auto;
  opacity: 1;
}
.popup-wrapper {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr;
}
.popup-wrapper .close-bg {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
}
.popup-content {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  max-width: 637px;
  background-color: #fff;
  border-radius: 10px;
  padding: 50px 35px 45px;
}
@media (max-width: 959px) {
  .popup-content {
    max-width: 296px;
  }
}
#popup-promo .popup-content {
  max-width: 420px;
} /* сузили под компактное содержимое, как #popup-stock у себя (max-width:500px) */
.popup-title {
  text-align: center;
}
.popup-title h5 {
  line-height: 20px;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #101010;
}
.popup-close {
  z-index: 2;
  cursor: pointer;
  height: 27px;
  width: 27px;
  position: absolute;
  top: 13px;
  left: 100%;
  display: flex;
  background: hsla(0, 0%, 100%, 0.3);
  border-radius: 0 5px 5px 0;
  transition: 0.3s;
  border: 0;
  padding: 0;
}
@media (max-width: 639px) {
  .popup-close {
    right: 0;
    left: auto;
    border-radius: 5px;
  }
}
.popup-close svg {
  fill: hsla(0, 0%, 39.2%, 0.3);
  transition: 0.3s;
  margin: auto;
}
@media (min-width: 960px) {
  .popup-close:hover {
    background: #000;
  }
  .popup-close:hover svg {
    fill: #fff;
  }
}
.popup .btn {
  width: 100%;
  margin-top: 30px;
}

/* ===================================================================
   Содержимое попапа — своё, такого попапа на реальном сайте нет.
   Используемые переменные (--light, --line, --txt, --txt-mute, --accent) —
   общие токены лендинга, см. основной CSS-файл проекта.
   =================================================================== */
.promo-gift {
  font-size: 44px;
  margin-bottom: 6px;
  text-align: center;
}
.promo-lead {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--txt-mute);
  text-align: center;
}
.promo-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--light);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.promo-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #101010;
}
.promo-copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}
.promo-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.promo-steps {
  text-align: left;
  background: var(--light);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--txt-mute);
  line-height: 1.7;
}
.promo-steps ul {
  list-style: disc;
  margin-left: 20px;
}
.promo-steps b {
  color: #101010;
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
@media (max-width: 639px) {
  #popup-promo .popup-close {
    left: auto;
    border-radius: 5px;
    top: 2%;
    right: 2%;
    left: unset;
  }
}
