/* Форма заявки на главной akrumio.com (public/site-lead.js, 18.09.2026): окно поверх
   страницы в духе кабинета — те же цвета и скругления, что у чата (.sc-*). */
.lf-overlay { position: fixed; inset: 0; z-index: 96; background: rgba(11, 18, 32, 0.4); display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: lf-fade 0.18s ease; }
@keyframes lf-fade { from { opacity: 0; } to { opacity: 1; } }
.lf-card { position: relative; width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 26px 22px max(22px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px -10px rgba(16, 24, 40, 0.35); animation: lf-up 0.24s cubic-bezier(0.2, 0.8, 0.3, 1); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #1d1d1f; text-align: left; }
@keyframes lf-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
  .lf-overlay { align-items: center; padding: 24px; }
  .lf-card { border-radius: 28px; }
}
.lf-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(15, 23, 42, 0.06); color: #62697a; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lf-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 36px 6px 0; }
.lf-sub { color: #6e6e73; font-size: 0.98rem; line-height: 1.4; margin: 0 0 18px; }
.lf-label { display: block; font-size: 0.85rem; font-weight: 600; color: #6e6e73; margin: 12px 0 6px; }
/* 16px, не меньше: иначе Safari на iPhone увеличивает страницу при фокусе */
.lf-input { display: block; width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid rgba(15, 23, 42, 0.12); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: #1d1d1f; outline: none; margin-top: 6px; }
.lf-input:focus { border-color: #2f6bff; box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15); }
.lf-input::placeholder { color: #9aa1b0; }
.lf-grades { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-grade { min-width: 52px; height: 42px; padding: 0 14px; border-radius: 99px; border: 1.5px solid rgba(15, 23, 42, 0.12); background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: #1d1d1f; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lf-grade-on { border-color: #2f6bff; background: rgba(47, 107, 255, 0.1); color: #2f6bff; }
.lf-hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.lf-error { margin: 12px 0 0; color: #c92a2a; font-size: 0.9rem; line-height: 1.4; }
.lf-submit { display: block; width: 100%; height: 52px; margin-top: 18px; border: none; border-radius: 16px; background: linear-gradient(180deg, #5a8bff, #2f6bff); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 0 #1f4fd0, 0 10px 20px -8px rgba(16, 24, 40, 0.25); -webkit-tap-highlight-color: transparent; }
.lf-submit:disabled { opacity: 0.6; cursor: default; }
.lf-submit:not(:disabled):active { transform: translateY(4px); box-shadow: none; }
.lf-note { margin: 12px 0 0; font-size: 0.85rem; color: #6e6e73; text-align: center; line-height: 1.4; }
.lf-note a { color: #6e6e73; text-decoration: underline; }
.lf-done { text-align: center; padding: 8px 0 4px; }
.lf-done .lf-title { margin-right: 0; }
.lf-done-mark { width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 50%; background: #e6f4ec; color: #1f8a4f; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lf-overlay[hidden], .lf-error[hidden], .lf-form[hidden], .lf-done[hidden] { display: none; }
/* кнопка «Оставить заявку» на самой странице — как основная кнопка главной */
.lead-btn { display: inline-block; margin-top: 28px; padding: 13px 24px; border-radius: 99px; background: var(--blue, #0066cc); color: #fff; font-size: 1rem; font-weight: 500; cursor: pointer; border: none; font-family: inherit; }
/* форма прямо в первом экране (рекламная метка) */
.lf-inline { background: #fff; border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px -12px rgba(16, 24, 40, 0.25); border: 1px solid rgba(0, 0, 0, 0.06); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #1d1d1f; }
.lf-inline .lf-label:first-child { margin-top: 0; }
.lf-inline .lf-submit { margin-top: 16px; }
.lf-inline .lf-done { padding: 10px 0 4px; }
.lf-inline[hidden] { display: none; }
/* на телефоне вся форма с кнопкой — в первом экране без прокрутки */
.lf-inline { padding: 14px 16px 14px; }
.lf-inline .lf-label { margin-top: 10px; }
.lf-inline .lf-input { height: 44px; }
.lf-inline .lf-grades { flex-wrap: nowrap; }
.lf-inline .lf-grade { flex: 1 1 0; min-width: 0; padding: 0 6px; height: 40px; }
.lf-inline .lf-submit { margin-top: 14px; height: 50px; }
.lf-inline .lf-note { margin-top: 10px; }
