/* ==========================================================================
   lk-notice.css — всплывающее окно «покупка ски-пассов в личном кабинете»
   Старый сайт euroasia.su. Фирменные токены взяты с самого сайта:
   синий #0093DD, тёмный #2D2D2D, зелёный CTA #95C12B, Inter, радиус 15px/100px.
   Все селекторы с префиксом .lk-notice — с другими стилями сайта не конфликтуют.
   ========================================================================== */

.lk-notice {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* выше виджета чата и прочих плавающих кнопок */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lk-notice[hidden] { display: none; }

.lk-notice__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 29, 35, .55);
  backdrop-filter: blur(2px);
  animation: lk-fade .18s ease-out;
}

.lk-notice__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  padding: 40px 40px 32px;
  border: 2px solid #0093DD;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 60, 100, .28);
  animation: lk-pop .22s cubic-bezier(.2, .9, .3, 1.2);
  overflow: hidden;
}
.lk-notice__card:focus { outline: none; }

/* фирменная градиентная линия, как в карточках тарифов */
.lk-notice__card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0093DD 20.2%, #335378 77.22%);
}

.lk-notice__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f5f8;
  color: #335378;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease;
}
.lk-notice__close:hover { background: #e3ebf2; }

.lk-notice__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(0, 147, 221, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0093DD;
}
.lk-notice__icon svg { width: 30px; height: 30px; display: block; }

.lk-notice__title {
  margin: 0 0 14px;
  color: #0093DD;
  font-family: Inter, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.lk-notice__text {
  margin: 0 0 12px;
  color: #2D2D2D;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.2px;
}

.lk-notice__text:last-of-type { margin-bottom: 24px; }

.lk-notice__url {
  color: #0093DD;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lk-notice__url:hover { text-decoration: underline; }

.lk-notice__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  border-radius: 100px;
  background: #95C12B;
  color: #fff !important;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.4px;
  text-decoration: none !important;
  transition: background .15s ease, transform .1s ease;
}
.lk-notice__btn:hover { background: #86b022; }
.lk-notice__btn:active { transform: translateY(1px); }
/* программный фокус не должен рисовать синюю рамку — только клавиатурный */
.lk-notice__btn:focus { outline: none; }
.lk-notice__btn:focus-visible { outline: 2px solid #335378; outline-offset: 3px; }

.lk-notice__later {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  border: 0;
  background: none;
  color: #7a8794;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.lk-notice__later:hover { color: #335378; text-decoration: underline; }

/* блокировка прокрутки страницы, пока окно открыто */
body.lk-notice-open { overflow: hidden; }

@keyframes lk-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes lk-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97) }
  to   { opacity: 1; transform: none }
}

@media screen and (max-width: 480px) {
  .lk-notice { padding: 12px; align-items: flex-end; }
  .lk-notice__card { padding: 32px 22px 22px; }
  .lk-notice__title { font-size: 21px; }
  .lk-notice__text { font-size: 15px; }
  .lk-notice__icon { width: 48px; height: 48px; margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-notice__overlay, .lk-notice__card { animation: none; }
}
