/*
 * Общие стили модалки заявки, видео-слота и появления.
 * Страница задаёт токены: --lk-accent, --lk-accent-ink (текст на акценте),
 * --lk-surface (фон карточки), --lk-text, --lk-muted, --lk-border, --lk-radius.
 */
.lk-lock { overflow: hidden; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].lk-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

#lead-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 20, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
#lead-modal[hidden] { display: none; }
.lk-dialog {
  position: relative;
  width: 100%; max-width: 460px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--lk-surface, #fff); color: var(--lk-text, #111);
  border-radius: var(--lk-radius, 20px);
  padding: 28px 24px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.lk-close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--lk-muted, #666);
}

.lk-form { display: grid; gap: 12px; }
.lk-form[hidden], [data-lead-success][hidden], .lk-error[hidden] { display: none !important; }
.lk-form label { display: grid; gap: 6px; font-size: 14px; color: var(--lk-muted, #555); }
.lk-form input:not([type=checkbox]), .lk-form select, .lk-form textarea {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: 16px; color: var(--lk-text, #111);
  background: transparent;
  border: 1.5px solid var(--lk-border, #d9d9e3); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .15s;
}
.lk-form input:focus, .lk-form select:focus, .lk-form textarea:focus { border-color: var(--lk-accent, #6C63FF); }
.lk-form .lk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .lk-form .lk-row { grid-template-columns: 1fr; } }
.lk-consent { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-size: 12.5px !important; line-height: 1.45; }
.lk-consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--lk-accent, #6C63FF); }
.lk-consent a { color: inherit; text-decoration: underline; }
.lk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lk-submit {
  font: inherit; font-weight: 700; font-size: 16px;
  background: var(--lk-accent, #6C63FF); color: var(--lk-accent-ink, #fff);
  border: 0; border-radius: 12px; padding: 15px 18px; cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.lk-submit:hover { transform: translateY(-1px); }
.lk-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.lk-error { color: #c62828; font-size: 14px; margin: 0; }
.lk-success { text-align: center; padding: 12px 0; }
.lk-success strong { display: block; font-size: 20px; margin-bottom: 6px; }

.lk-video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--lk-radius, 20px); overflow: hidden; cursor: pointer;
  background: #111;
}
.lk-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--lk-accent, #6C63FF); color: var(--lk-accent-ink, #fff);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .2s;
}
.lk-video:hover .lk-video-play { transform: translate(-50%, -50%) scale(1.07); }
.lk-video-play svg { width: 32px; height: 32px; margin-left: 4px; }
.lk-video-note {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(0,0,0,.7); color: #fff; font-size: 14px;
  padding: 10px 12px; border-radius: 10px; text-align: center;
}

/* Плашка «Видео · N сек · скоро» поверх постера — видна, пока ролика нет */
.lk-video .video-badge { position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(255,255,255,.92);
  color: #111; font: 600 13px/1 system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }

/* Уведомление о cookie (152-ФЗ): над липкой CTA на мобиле */
.lk-cookie { position: fixed; z-index: 90; left: 16px; bottom: 16px; max-width: 380px;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.96); color: #1E1B4B; font: 13px/1.4 system-ui, sans-serif;
  box-shadow: 0 8px 30px rgba(24,20,69,.18); border: 1px solid #E8E6F0; }
.lk-cookie p { margin: 0; }
.lk-cookie a { color: inherit; text-decoration: underline; }
.lk-cookie button { flex: 0 0 auto; border: 0; cursor: pointer; font: 600 13px system-ui, sans-serif;
  padding: 8px 14px; border-radius: 999px; background: var(--lk-accent, #6C63FF); color: var(--lk-accent-ink, #fff); }
@media (max-width: 640px) { .lk-cookie { left: 12px; right: 12px; bottom: 88px; max-width: none; } }

/* шаг 2: вопросы после заявки */
.lk-step2 { margin-top: 18px; text-align: left; border-top: 1px solid rgba(0,0,0,.08); padding-top: 16px; }
.lk-step2-lead { font-size: 14px; color: var(--lk-muted, #555); margin: 0 0 4px; }
.lk-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lk-chips legend { font-size: 14px; color: var(--lk-muted, #555); margin-bottom: 6px; padding: 0; width: 100%; }
.lk-form .lk-chips label { display: inline-flex; gap: 0; cursor: pointer; }
.lk-form .lk-chips input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.lk-chips span { padding: 7px 12px; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; font-size: 14px; color: inherit; background: #fff; }
.lk-chips input:checked + span { border-color: var(--lk-accent, #6C63FF); background: var(--lk-accent, #6C63FF); color: var(--lk-accent-ink, #fff); }
.lk-chips input:focus-visible + span { outline: 2px solid var(--lk-accent, #6C63FF); outline-offset: 2px; }
.lk-step2-done { margin-top: 14px; font-weight: 600; }
