/* ==========================================================================
   KOROTKOV EDITORIAL SPLIT EXIT POPUP (HADAT / LUXURY BEAUTY STYLE)
   ========================================================================== */

.kk-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.kk-exit-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kk-exit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 24, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kk-exit-modal__dialog {
  position: relative;
  z-index: 2;
  width: 94%;
  max-width: 860px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(10, 30, 20, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 46% 54%;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.kk-exit-modal.is-active .kk-exit-modal__dialog {
  transform: translateY(0) scale(1);
}

/* Close Button */
.kk-exit-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 17px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kk-exit-modal__close:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Left Column: Visual Media */
.kk-exit-modal__visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #f1ede6;
  overflow: hidden;
}

.kk-exit-modal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 6s ease;
}

.kk-exit-modal.is-active .kk-exit-modal__visual img {
  transform: scale(1.04);
}

.kk-exit-modal__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 70%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}

/* Right Column: Editorial Content */
.kk-exit-modal__content {
  padding: 44px 44px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

/* Brand Emblem */
.kk-exit-modal__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.kk-exit-modal__logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid #143e32;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #143e32;
  font-family: inherit;
  margin-bottom: 6px;
}

.kk-exit-modal__logo-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #143e32;
  text-transform: uppercase;
}

.kk-exit-modal__logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Headline */
.kk-exit-modal__title {
  font-size: 19.5px;
  line-height: 1.34;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px 0;
}

/* Description */
.kk-exit-modal__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 16px 0;
  max-width: 360px;
}

/* Bonus Badge */
.kk-exit-modal__bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #f0fdf4;
  border: 1px dashed #22c55e;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 22px;
}

/* CTA Button */
.kk-exit-modal__cta {
  width: 100%;
  max-width: 350px;
  height: 50px;
  border-radius: 10px;
  background: #183d31;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(24, 61, 49, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.kk-exit-modal__cta:hover {
  background: #128a38;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 138, 56, 0.4);
}

.kk-exit-modal__cta:active {
  transform: translateY(0);
}

/* Dismiss Link */
.kk-exit-modal__dismiss {
  margin-top: 14px;
  background: none;
  border: none;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  padding: 4px;
}

.kk-exit-modal__dismiss:hover {
  color: #475569;
}

/* ==========================================================================
   MOBILE ADAPTIVE (EDITORIAL COLUMN CARD)
   ========================================================================== */
@media (max-width: 767px) {
  .kk-exit-modal__dialog {
    grid-template-columns: 1fr;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
  }

  .kk-exit-modal__visual {
    height: 190px;
    min-height: auto;
  }

  .kk-exit-modal__visual img {
    object-position: center 30%;
  }

  .kk-exit-modal__content {
    padding: 24px 20px 22px;
  }

  .kk-exit-modal__brand {
    margin-bottom: 14px;
  }

  .kk-exit-modal__logo-mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .kk-exit-modal__logo-title {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .kk-exit-modal__title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .kk-exit-modal__desc {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .kk-exit-modal__bonus-badge {
    margin-bottom: 16px;
    padding: 5px 12px;
    font-size: 11.5px;
  }

  .kk-exit-modal__cta {
    height: 46px;
    font-size: 12px;
    max-width: 100%;
  }
}
