/* Hyper · Lead modal — окно заявки. Единый язык с .brief-mini / .btn */

.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: leadFade .25s ease both;
}
@keyframes leadFade { from { opacity: 0; } to { opacity: 1; } }

.lead-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 42px 44px 34px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: leadRise .35s cubic-bezier(.2,.7,.2,1) both;
}
.lead-modal::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
}
@keyframes leadRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lead-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 22px; line-height: 1;
  cursor: none;
  transition: border-color .25s, color .25s, background .25s;
}
.lead-close:hover { border-color: var(--red); color: var(--ink); background: rgba(var(--red-glow), 0.12); }

/* head */
.lead-head { margin-bottom: 26px; display: flex; flex-direction: column; gap: 12px; }
.lead-stamp {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  padding: 5px 10px;
  border: 1px solid rgba(var(--red-glow), 0.5);
}
.lead-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lead-title .muted { color: var(--ink-2); font-weight: 300; }

/* fields */
.lead-field { margin-bottom: 20px; }
.lead-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.lead-field input,
.lead-select-wrap select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 10px 0 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color .25s;
}
.lead-field input::placeholder { color: var(--ink-3); }
.lead-field input:focus,
.lead-select-wrap select:focus { border-bottom-color: var(--red); }

/* select */
.lead-select-wrap { position: relative; }
.lead-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
  cursor: none;
  border-radius: 0;
}
.lead-select-wrap select option {
  background: var(--bg-2);
  color: var(--ink);
}
.lead-select-arrow {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 12px;
  pointer-events: none;
}

/* checkbox */
.lead-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 26px;
  cursor: none;
  user-select: none;
}
.lead-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.lead-check-box {
  flex: none;
  width: 20px; height: 20px;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.lead-check-box::after {
  content: '✓';
  font-size: 13px;
  color: #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.lead-check input:checked + .lead-check-box {
  background: var(--red);
  border-color: var(--red);
}
.lead-check input:checked + .lead-check-box::after { opacity: 1; transform: scale(1); }
.lead-check input:focus-visible + .lead-check-box { border-color: var(--red); }
.lead-check-text { font-family: var(--sans); font-size: 15px; color: var(--ink); }

/* submit */
.lead-submit {
  width: 100%;
  justify-content: center;
  padding: 17px 28px;
  font-size: 13px;
}
.lead-submit:disabled { opacity: .6; }

.lead-error {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--red-2);
  text-align: center;
}
.lead-error a { color: var(--ink); text-decoration: underline; }

.lead-note {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
  text-wrap: pretty;
}

/* success state */
.lead-done {
  text-align: center;
  padding: 26px 6px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lead-done-mark {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(var(--red-glow), 0.16);
  animation: leadPop .4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes leadPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lead-done-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lead-done-sub {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 320px;
}

@media (max-width: 560px) {
  .lead-overlay { padding: 14px; align-items: flex-end; }
  .lead-modal { padding: 34px 24px 26px; max-width: none; }
  .lead-close { top: 10px; right: 10px; }
}
