/* Нативо — попап «Бесплатное пробное», нижняя панель на телефоне, оффер на первом экране (03.12.2026). */

.trial-modal-lock { overflow: hidden; }

.trial-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.trial-modal.is-open { display: flex; }

.trial-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 58, 131, 0.52);
  backdrop-filter: blur(10px);
}

.trial-modal__dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #dce8f5;
  border-radius: 16px;
  background: #fff;
  color: #142033;
  box-shadow: 0 26px 80px -34px rgba(7, 89, 200, 0.56);
  animation: trial-in 180ms ease;
}
@keyframes trial-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.trial-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f4f9ff;
  color: #475569;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.trial-modal__body { padding: 26px 24px 22px; }

.trial-modal__eyebrow {
  margin: 0 44px 8px 0;
  color: #0759c8;
  font-size: 14px;
  font-weight: 800;
}

.trial-modal__title {
  margin: 0 36px 0 0;
  font-family: Nunito, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.12;
}

.trial-modal__points {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 15px;
}
.trial-modal__points li::before {
  content: '✓';
  margin-right: 8px;
  color: #6aa416;
  font-weight: 900;
}

.trial-modal__form { display: grid; gap: 12px; }

.trial-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.trial-modal__chips-label {
  width: 100%;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.trial-modal__chips label { cursor: pointer; }
.trial-modal__chips input { position: absolute; opacity: 0; pointer-events: none; }
.trial-modal__chips label span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #dce8f5;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  background: #fff;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.trial-modal__chips input:checked + span {
  border-color: #0759c8;
  background: #0759c8;
  color: #fff;
}
.trial-modal__chips input:focus-visible + span { outline: 2px solid #18a0e8; outline-offset: 2px; }

.trial-modal__field { display: grid; gap: 6px; }
.trial-modal__label { font-size: 13px; font-weight: 700; color: #475569; }
.trial-modal__input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfdcec;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: #142033;
  background: #fff;
}
.trial-modal__input:focus { outline: none; border-color: #0759c8; box-shadow: 0 0 0 3px rgba(7, 89, 200, 0.14); }
.trial-modal__input.is-invalid { border-color: #dc2626; }
.trial-modal__error { min-height: 0; color: #dc2626; font-size: 13px; }
.trial-modal__error:empty { display: none; }

.trial-modal__submit {
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: #9bd928;
  color: #142033;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 40px -18px rgba(7, 89, 200, 0.4);
  transition: transform 120ms, filter 120ms;
}
.trial-modal__submit:hover { filter: brightness(1.04); transform: translateY(-1px); }
.trial-modal__submit:disabled { opacity: 0.7; cursor: wait; transform: none; }

.trial-modal__status { margin: 0; font-size: 14px; display: none; }
.trial-modal__status.is-visible { display: block; }
.trial-modal__status.is-error { color: #dc2626; }

.trial-modal__consent { margin: 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.trial-modal__consent a { color: #0759c8; }

.trial-modal__success { display: grid; gap: 12px; text-align: center; padding: 12px 0 0; }
.trial-modal__success .trial-modal__title { margin: 0; }
.trial-modal__success-icon {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d8f66d;
  color: #083a83;
  font-size: 28px;
  font-weight: 900;
}
.trial-modal__copy { margin: 0; color: #475569; font-size: 15px; line-height: 1.55; }

/* Нижняя панель на телефоне */
.trial-sticky { display: none; }
@media (max-width: 767px) {
  .trial-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: block;
    padding: 10px 76px calc(10px + env(safe-area-inset-bottom)) 12px;
    background: none;
    transform: translateY(110%);
    transition: transform 200ms ease;
    pointer-events: none;
  }
  .trial-sticky.is-visible { transform: none; pointer-events: auto; }
  .trial-modal-lock .trial-sticky { transform: translateY(110%); }
  .trial-sticky__btn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: #9bd928;
    color: #142033;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 10px 28px -8px rgba(7, 89, 200, 0.6);
  }
}

/* Оффер под кнопкой на первом экране */
.trial-offer {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
}
.trial-offer li::before { content: '✓'; margin-right: 7px; color: #d8f66d; font-weight: 900; }
@media (max-width: 767px) {
  .trial-offer { flex-direction: column; gap: 6px; font-size: 14px; }
}

.trial-legal { font-size: 13px; opacity: 0.85; }
.trial-legal a { color: inherit; text-decoration: underline; }
