/* ============================ EXIT-INTENT NUDGE ============================
 * Вспливаючий банер із офером Telegram при спробі покинути сайт.
 * Ідіома показу/приховування — як у .share-modal (article.css): .open + body.locked.
 */
.mkv-nudge{
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.mkv-nudge.open{ display: flex; }

.mkv-nudge-scrim{
  position: fixed; inset: 0; z-index: 0;
  background: rgba(14,14,15,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  cursor: pointer;
  animation: mkvNudgeFade .2s ease both;
}

.mkv-nudge-card{
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg, 22px);
  padding: 30px 26px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(14,14,15,.32);
  animation: mkvNudgePop .22s cubic-bezier(.2,.8,.3,1) both;
}
body[data-theme="dark"] .mkv-nudge-card{ background: var(--paper-2); }

.mkv-nudge-close{
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.mkv-nudge-close:hover{ background: var(--paper-3); color: var(--ink); }

.mkv-nudge-ico{
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--tg) 14%, transparent);
  color: var(--tg);
}
.mkv-nudge-ico svg{ width: 30px; height: 30px; }

.mkv-nudge-eyebrow{
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tg); margin-bottom: 6px;
}
.mkv-nudge-title{
  font-family: 'Unbounded', system-ui, sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -.01em;
  margin: 0 0 8px; color: var(--ink);
}
.mkv-nudge-sub{
  font-size: 15px; line-height: 1.5; color: var(--muted);
  margin: 0 0 20px;
}

.mkv-nudge-cta{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px 18px;
  background: var(--tg); color: #fff;
  border-radius: 12px; border: 0;
  font-size: 16px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: filter .15s, transform .05s;
}
.mkv-nudge-cta:hover{ filter: brightness(1.06); }
.mkv-nudge-cta:active{ transform: translateY(1px); }
.mkv-nudge-cta svg{ flex: 0 0 auto; }

.mkv-nudge-dismiss{
  display: block; width: 100%; margin-top: 10px;
  background: transparent; border: 0;
  color: var(--muted-2); font-size: 13px; cursor: pointer;
  padding: 6px;
}
.mkv-nudge-dismiss:hover{ color: var(--ink); text-decoration: underline; }

@keyframes mkvNudgeFade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes mkvNudgePop{ from{ opacity: 0; transform: translateY(12px) scale(.98); } to{ opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce){
  .mkv-nudge-scrim, .mkv-nudge-card{ animation: none; }
}

@media (max-width: 480px){
  .mkv-nudge{ align-items: flex-end; padding: 0; }
  .mkv-nudge-card{
    max-width: none; border-radius: 22px 22px 0 0;
    padding: 26px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  @keyframes mkvNudgePop{ from{ opacity: 0; transform: translateY(100%); } to{ opacity: 1; transform: translateY(0); } }
}
