/* ────────────────────────────────────────────────────────────
   SKS popup — оффер «Семейная ипотека 5%»
   Стилизуется поверх /mr-style/style.css (использует --green, --r-lg и т.д.)
   ──────────────────────────────────────────────────────────── */
.sks-pop {
  position: fixed; inset: 0; z-index: 99999;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(15, 15, 20, .55);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
  font-family: var(--font-body, "TildaSans", -apple-system, sans-serif);
}
.sks-pop.is-open { display: flex; opacity: 1; }

.sks-pop__card {
  width: 100%;
  max-width: 880px;
  background: #fff;
  border-radius: var(--r-lg, 24px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  transform: translateY(20px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.sks-pop.is-open .sks-pop__card { transform: translateY(0); }

.sks-pop__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: grid; place-items: center;
  cursor: pointer; color: #1A1A1A;
  transition: background .2s, transform .2s;
}
.sks-pop__close:hover { background: #fff; transform: rotate(90deg); }
.sks-pop__close svg { width: 18px; height: 18px; }

.sks-pop__left {
  position: relative;
  background: var(--dark, #0F0F14);
  min-height: 360px;
  overflow: hidden;
}
.sks-pop__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85;
}
.sks-pop__left::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,15,20,.5) 0%, rgba(15,15,20,0) 60%);
}
.sks-pop__txt {
  position: relative; z-index: 2;
  padding: 36px 32px;
  color: #fff;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  height: 100%; min-height: 360px;
}
.sks-pop__chip {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  margin-bottom: 16px;
}
.sks-pop__chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green, #25BD43);
  box-shadow: 0 0 0 4px rgba(37,189,67,.25);
}
.sks-pop__h {
  font-family: var(--font-display, "Cy Grotesk Grand", Georgia, serif);
  font-weight: 500; font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1; letter-spacing: -.01em;
  margin: 0 0 14px;
}
.sks-pop__h .ital { font-style: italic; font-weight: 600; }
.sks-pop__sub {
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,.82); margin: 0 0 18px;
}
.sks-pop__perks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.sks-pop__perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.92);
}
.sks-pop__perks svg {
  width: 16px; height: 16px;
  color: var(--green, #25BD43); flex: 0 0 16px;
}

.sks-pop__right {
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center;
}
.sks-pop__right h3 {
  font-family: var(--font-display, "Cy Grotesk Grand", Georgia, serif);
  font-weight: 500; font-size: 22px; line-height: 1.15;
  color: #1A1A1A; margin: 0 0 4px;
}
.sks-pop__right p {
  font-size: 13px; color: #6B7869; margin: 0 0 6px; line-height: 1.5;
}

.sks-pop__field { display: flex; flex-direction: column; gap: 4px; }
.sks-pop__field label {
  font-size: 11px; color: #8A8E97;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 500;
}
.sks-pop__field input[type=text],
.sks-pop__field input[type=tel] {
  padding: 13px 16px;
  border: 1.5px solid #E5E5E5;
  border-radius: 14px;
  font-family: inherit; font-size: 16px;
  background: #fff; color: #1A1A1A;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sks-pop__field input:focus {
  border-color: var(--green, #25BD43);
  box-shadow: 0 0 0 4px rgba(37,189,67,.12);
}
.sks-pop__field.is-error input { border-color: #D94343; }
.sks-pop__err {
  font-size: 12px; color: #D94343;
  display: none;
}
.sks-pop__field.is-error .sks-pop__err { display: block; }

.sks-pop__captcha { min-height: 78px; margin-top: 4px; }

.sks-pop__hp {
  position: absolute !important; left: -9999px !important;
  opacity: 0 !important; pointer-events: none;
}

.sks-pop__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--green, #25BD43); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  width: 100%;
}
.sks-pop__btn:hover:not(:disabled) {
  background: var(--green-dark, #1AA336);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37,189,67,.32);
}
.sks-pop__btn:disabled { background: #B5B8C0; cursor: not-allowed; }
.sks-pop__btn svg { width: 16px; height: 16px; }

.sks-pop__small {
  font-size: 11px; color: #8A8E97; line-height: 1.5;
}
.sks-pop__small a { color: var(--green-dark, #1AA336); text-decoration: underline; }

/* Success state */
.sks-pop__success { display: none; text-align: center; padding: 20px 8px; }
.sks-pop.is-success .sks-pop__form { display: none; }
.sks-pop.is-success .sks-pop__success { display: block; }
.sks-pop__success-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--green-soft, #E1F4E5);
  color: var(--green, #25BD43);
  display: inline-grid; place-items: center; margin: 0 auto 16px;
}
.sks-pop__success-icon svg { width: 36px; height: 36px; }
.sks-pop__success h3 {
  font-family: var(--font-display, "Cy Grotesk Grand", Georgia, serif);
  font-weight: 500; font-size: 24px; margin: 0 0 8px; color: #1A1A1A;
}
.sks-pop__success p { font-size: 14px; color: #6B7869; margin: 0; line-height: 1.55; }

/* Toast for errors */
.sks-pop-toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #1A1A1A; color: #fff;
  padding: 13px 22px; border-radius: 14px;
  font-family: inherit; font-size: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100000; max-width: calc(100% - 32px);
  text-align: center;
}
.sks-pop-toast.is-on {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* Mobile */
@media (max-width: 720px) {
  .sks-pop { padding: 0; align-items: flex-end; }
  .sks-pop__card {
    grid-template-columns: 1fr;
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 92svh;
    overflow-y: auto;
  }
  .sks-pop__left { display: none; }
  .sks-pop__right { padding: 28px 22px 22px; }
  .sks-pop__close { top: 10px; right: 10px; }
}
