/* =====================================================================
   KURGAN-HUNT — уведомление о персональных данных (C2)
   ===================================================================== */
.kh-cookie {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-cookie);
  width: min(380px, calc(100vw - 40px));
  perspective: 900px;
  pointer-events: none;
}
.kh-cookie__inner {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(18, 148, 102, .2), transparent 60%),
    linear-gradient(160deg, rgba(10, 29, 22, .96), rgba(4, 13, 9, .97));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(239, 205, 115, .12);
  color: var(--text-2);
  transform-origin: 50% 100%;
  transform: rotateX(90deg) translateY(20px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.5, 0, .75, 0), opacity .4s ease;
}
.kh-cookie__inner::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 1px;
  background: var(--grad-gold-line);
}
.kh-cookie.is-in { pointer-events: auto; }
.kh-cookie.is-in .kh-cookie__inner {
  transform: none;
  opacity: 1;
  transition: transform 1s var(--ease-back), opacity .5s ease;
}
.kh-cookie.is-out .kh-cookie__inner { transform: rotateX(-75deg) translateY(30px); transform-origin: 50% 0; opacity: 0; }

.kh-cookie__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kh-cookie__badge {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(239, 205, 115, .2), rgba(18, 148, 102, .15));
  box-shadow: 0 0 0 1px var(--line-strong);
  color: var(--gold-300);
}
.kh-cookie__badge .kh-icon { width: 19px; height: 19px; }
.kh-cookie__title {
  margin: 0;
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold-100);
}
.kh-cookie__text { font-size: .8rem; line-height: 1.6; color: var(--text-2); }
.kh-cookie__link {
  display: inline;
  padding: 0;
  font: inherit;
  color: var(--gold-300);
  text-align: left;
  border-bottom: 1px solid rgba(239, 205, 115, .4);
  transition: color .3s, border-color .3s;
}
.kh-cookie__link:hover, .kh-cookie__link:focus-visible { color: var(--gold-100); border-color: var(--gold-100); }
.kh-cookie__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.kh-cookie__ok { min-width: 150px; }

@media (max-width: 767px) {
  .kh-cookie {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  .kh-cookie__inner { padding: 14px 16px 14px; }
  .kh-cookie__head { margin-bottom: 8px; gap: 10px; }
  .kh-cookie__badge { width: 32px; height: 32px; }
  .kh-cookie__title { font-size: 1.15rem; }
  .kh-cookie__text { font-size: .74rem; line-height: 1.5; }
  .kh-cookie__actions { margin-top: 12px; }
  .kh-cookie__ok { width: 100%; --btn-h: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .kh-cookie__inner, .kh-cookie.is-in .kh-cookie__inner { transition: opacity .2s; transform: none; }
}

/* под полноэкранным меню — скрыть */
.kh-cookie.is-under-menu { opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
