.st-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  padding: 12px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.56);
}

.st-lead-modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.st-lead-modal-is-open {
  overflow: hidden;
}

.st-lead-modal__backdrop {
  position: fixed;
  inset: 0;
  cursor: pointer;
}

.st-lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 620px);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.st-lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 50%;
  place-items: center;
  background: #ffffff;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.st-lead-form {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 4vw, 30px);
}

.st-lead-form__head {
  padding-right: 38px;
}

.st-lead-form__eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.st-lead-form__title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.08;
}

.st-lead-form__text,
.st-lead-form__privacy {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.st-lead-form__notice {
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
}

.st-lead-form__field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.st-lead-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.st-lead-form__field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.st-lead-form label {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.st-lead-form input[type="text"],
.st-lead-form input[type="tel"],
.st-lead-form input[type="url"] {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
}

.st-lead-form input[type="text"],
.st-lead-form input[type="tel"],
.st-lead-form input[type="url"] {
  min-height: 48px;
  padding: 0 14px;
}

.st-lead-form input:focus,
.st-lead-modal__close:focus-visible,
.st-lead-form__submit:focus-visible,
.st-lead-form__method:has(input:focus-visible) {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
  border-color: #2563eb;
}

.st-lead-form input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.st-lead-form__captcha[aria-invalid="true"] {
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.st-lead-form__contact-method {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.st-lead-form__contact-method legend {
  margin: 0;
  padding: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.st-lead-form__method-options {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  gap: 0;
  padding: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #f8fafc;
}

.st-lead-form__method-options::before {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: 14px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
  content: "";
  transform: translateX(0);
  transition: transform 210ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-lead-form[data-contact-method="telegram"] .st-lead-form__method-options::before {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transform: translateX(100%);
}

.st-lead-form__method {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 1;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease;
}

.st-lead-form__method > span:not(.st-lead-form__method-icon) {
  display: inline-flex;
  min-height: 1em;
  align-items: center;
  font-size: 14px;
  line-height: 1;
}

.st-lead-form__method input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.st-lead-form__method-icon {
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  place-items: center;
  color: currentColor;
}

.st-lead-form__method-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.st-lead-form__method:has(input:checked) {
  color: #ffffff;
}

.st-lead-form__contact-input--switching {
  opacity: 0.58;
  transition: opacity 180ms ease;
}

.st-lead-form__captcha {
  min-height: 100px;
}

.st-lead-form__checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.st-lead-form__checkbox input {
  position: relative;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.st-lead-form__checkbox input::after {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) scale(0.75);
  transition: opacity 160ms ease, transform 180ms ease;
}

.st-lead-form__checkbox input:checked {
  border-color: #21a038;
  background: #21a038;
  box-shadow: 0 0 0 5px rgba(33, 160, 56, 0.14);
}

.st-lead-form__checkbox input:checked::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.st-lead-form__checkbox input:focus-visible {
  outline: 3px solid rgba(33, 160, 56, 0.22);
  outline-offset: 2px;
}

.st-lead-form a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.st-lead-form__status {
  min-height: 22px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.st-lead-form__status[data-state="success"] {
  color: #047857;
}

.st-lead-form__status[data-state="error"] {
  color: #b91c1c;
}

.st-lead-form__submit-wrap {
  position: relative;
  display: grid;
}

.st-lead-form__submit-wrap:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 3px;
  border-radius: 16px;
}

.st-lead-form__submit-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 3;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: pre-line;
}

.st-lead-form__submit-tooltip::after {
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: inherit;
  content: "";
  transform: rotate(45deg);
}

.st-lead-form__submit-tooltip[hidden] {
  display: none;
}

.st-lead-form__submit-wrap:hover .st-lead-form__submit-tooltip,
.st-lead-form__submit-wrap:focus .st-lead-form__submit-tooltip,
.st-lead-form__submit-wrap[data-tooltip-visible="true"] .st-lead-form__submit-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.st-lead-form__submit {
  position: relative;
  display: inline-flex;
  gap: 12px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #e2e8f0;
  color: #475569;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: not-allowed;
  overflow: hidden;
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease, opacity 240ms ease;
}

.st-lead-form__submit:disabled {
  pointer-events: none;
}

.st-lead-form__submit-text,
.st-lead-form__submit-lock {
  position: relative;
  z-index: 1;
}

.st-lead-form__submit-lock {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  opacity: 0.92;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.st-lead-form__submit-lock-body {
  fill: none;
  opacity: 1;
}

.st-lead-form__submit-lock-shackle {
  transform-origin: 8px 10px;
  transition: transform 260ms ease, opacity 220ms ease;
}

.st-lead-form__submit-spinner {
  opacity: 0;
  stroke-dasharray: 38;
  stroke-dashoffset: 12;
  transform-origin: 12px 12px;
}

.st-lead-form[data-state="ready"] .st-lead-form__submit {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.st-lead-form[data-state="ready"] .st-lead-form__submit:hover,
.st-lead-form[data-state="ready"] .st-lead-form__submit:focus-visible {
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.3);
}

.st-lead-form[data-state="ready"] .st-lead-form__submit-lock-shackle {
  opacity: 0.85;
  transform: translate(2px, -3px) rotate(22deg);
}

.st-lead-form[data-state="sending"] .st-lead-form__submit {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  cursor: wait;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.2);
}

.st-lead-form[data-state="sending"] .st-lead-form__submit-lock {
  animation: st-lead-spin 780ms linear infinite;
}

.st-lead-form[data-state="sending"] .st-lead-form__submit-lock-body,
.st-lead-form[data-state="sending"] .st-lead-form__submit-lock-shackle {
  opacity: 0;
}

.st-lead-form[data-state="sending"] .st-lead-form__submit-spinner {
  opacity: 1;
}

@keyframes st-lead-spin {
  to {
    transform: rotate(360deg);
  }
}

html.st-theme-dark .st-lead-modal {
  background: rgba(0, 0, 0, 0.62);
}

html.st-theme-dark .st-lead-modal__dialog {
  border-color: var(--st-dark-border-strong, rgba(184, 194, 215, 0.22));
  background: var(--st-dark-card, #1c212d);
  color: var(--st-dark-text, #d6dbe5);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

html.st-theme-dark .st-lead-modal__close {
  border-color: var(--st-dark-border, rgba(184, 194, 215, 0.14));
  background: var(--st-dark-card-raised, #242b3a);
  color: var(--st-dark-text-strong, #f4f7fb);
}

html.st-theme-dark .st-lead-form__eyebrow,
html.st-theme-dark .st-lead-form a {
  color: var(--st-dark-primary, #6ea8ff);
}

html.st-theme-dark .st-lead-form__title,
html.st-theme-dark .st-lead-form label,
html.st-theme-dark .st-lead-form__contact-method legend {
  color: var(--st-dark-text-strong, #f4f7fb);
}

html.st-theme-dark .st-lead-form__text,
html.st-theme-dark .st-lead-form__privacy,
html.st-theme-dark .st-lead-form__status,
html.st-theme-dark .st-lead-form__checkbox {
  color: var(--st-dark-text, #d6dbe5);
}

html.st-theme-dark .st-lead-form input[type="text"],
html.st-theme-dark .st-lead-form input[type="tel"],
html.st-theme-dark .st-lead-form input[type="url"] {
  border-color: var(--st-dark-border, rgba(184, 194, 215, 0.14));
  background: var(--st-dark-bg-soft, #171c27);
  color: var(--st-dark-text-strong, #f4f7fb);
}

html.st-theme-dark .st-lead-form__method-options {
  border-color: var(--st-dark-border, rgba(184, 194, 215, 0.14));
  background: var(--st-dark-bg-soft, #171c27);
}

html.st-theme-dark .st-lead-form__method {
  color: var(--st-dark-text, #d6dbe5);
}

html.st-theme-dark .st-lead-form__method:has(input:checked) {
  color: #ffffff;
}

html.st-theme-dark .st-lead-form__submit-tooltip {
  border-color: var(--st-dark-border-strong, rgba(184, 194, 215, 0.22));
  background: var(--st-dark-card-raised, #242b3a);
  color: var(--st-dark-text-strong, #f4f7fb);
  box-shadow: var(--st-dark-shadow-card, 0 18px 52px rgba(0, 0, 0, 0.22));
}

html.st-theme-dark .st-lead-form__submit {
  background: var(--st-dark-card-raised, #242b3a);
  color: var(--st-dark-muted, #a8b0bf);
}

html.st-theme-dark .st-lead-form[data-state="ready"] .st-lead-form__submit,
html.st-theme-dark .st-lead-form[data-state="sending"] .st-lead-form__submit {
  color: #ffffff;
}

html.st-theme-dark .st-lead-form[data-state="sending"] .st-lead-form__submit {
  background: linear-gradient(135deg, var(--st-dark-primary, #6ea8ff), var(--st-dark-accent, #9b7cff));
}

@media (prefers-reduced-motion: reduce) {
  .st-lead-form__method,
  .st-lead-form__contact-input--switching,
  .st-lead-form__method-options::before,
  .st-lead-form__submit,
  .st-lead-form__submit-tooltip,
  .st-lead-form__submit-lock-shackle,
  .st-lead-form__checkbox input,
  .st-lead-form__checkbox input::after {
    transition: none;
  }

  .st-lead-form[data-state="sending"] .st-lead-form__submit-lock {
    animation: none;
  }

}

@media (max-height: 760px) and (min-width: 561px) {
  .st-lead-form {
    gap: 10px;
    padding: 22px 26px;
  }

  .st-lead-form__eyebrow {
    margin-bottom: 4px;
  }

  .st-lead-form__title {
    margin-bottom: 6px;
    font-size: 26px;
  }

  .st-lead-form__text,
  .st-lead-form__privacy {
    line-height: 1.45;
  }

  .st-lead-form__method-options {
    min-height: 52px;
  }

  .st-lead-form__method {
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .st-lead-modal {
    padding: 8px;
    align-items: end;
  }

  .st-lead-modal__dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 20px);
    border-radius: 22px 22px 16px 16px;
  }

  .st-lead-form {
    padding: 22px 18px;
  }

  .st-lead-form__grid {
    grid-template-columns: 1fr;
  }

  .st-lead-form__method {
    flex: 1;
    justify-content: center;
  }
}

.stellshi-lead-cta {
  position: relative;
  box-sizing: border-box;
  margin: 34px 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(124, 58, 237, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.stellshi-lead-cta .st-article-cta__label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stellshi-lead-cta .st-article-cta__title {
  max-width: 640px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.stellshi-lead-cta .st-article-cta__text {
  max-width: 640px;
  margin: 14px 0 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.stellshi-lead-cta .st-article-cta__button {
  display: inline-flex;
  margin-top: 20px;
  padding: 13px 18px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.stellshi-lead-cta .st-article-cta__button:hover,
.stellshi-lead-cta .st-article-cta__button:focus-visible {
  color: #ffffff !important;
}

html.st-theme-dark .stellshi-lead-cta {
  border-color: var(--st-dark-border-strong, rgba(184, 194, 215, 0.22));
  background:
    radial-gradient(circle at 92% 18%, rgba(155, 124, 255, 0.14), transparent 34%),
    linear-gradient(135deg, var(--st-dark-card, #1c212d) 0%, var(--st-dark-card-raised, #242b3a) 100%);
  box-shadow: var(--st-dark-shadow-card, 0 18px 52px rgba(0, 0, 0, 0.22));
}

html.st-theme-dark .stellshi-lead-cta .st-article-cta__title {
  color: var(--st-dark-text-strong, #f4f7fb);
}

html.st-theme-dark .stellshi-lead-cta .st-article-cta__text {
  color: var(--st-dark-text, #d6dbe5);
}

html.st-theme-dark .stellshi-lead-cta .st-article-cta__label {
  color: var(--st-dark-primary, #6ea8ff);
}

@media (max-width: 640px) {
  .stellshi-lead-cta {
    margin: 28px 0;
    padding: 20px;
    border-radius: 20px;
  }

  .stellshi-lead-cta .st-article-cta__button {
    width: 100%;
  }
}
