/* Форма заявки — тёмная карточка, кнопка снизу, согласие на всю ширину */

.lead-sec {
  padding-top: 12px;
  padding-bottom: 8px;
  overflow: visible;
}

.lead-sec > .wrap {
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  box-sizing: border-box;
  width: 100%;
}
.lead-sec > .wrap::before {
  display: none !important;
}

.lead-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
  gap: 24px 28px;
  align-items: stretch;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(124, 92, 220, .14), transparent 50%),
    radial-gradient(120% 80% at 100% 0%, rgba(168, 135, 79, .14), transparent 55%),
    linear-gradient(160deg, #171D2C 0%, #0E1422 55%, #121826 100%);
  color: #F4EFE6;
  box-shadow:
    0 28px 60px -28px rgba(8, 12, 22, .55),
    inset 0 0 0 1px rgba(226, 207, 166, .12);
  overflow: visible;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form input[type="url"],
.lead-form textarea,
.lead-form select {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 207, 166, .22);
  background: rgba(8, 12, 22, .45);
  color: #F4EFE6;
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.lead-form textarea {
  min-height: 88px;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(244, 239, 230, .42);
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  border-color: rgba(226, 207, 166, .55);
  background: rgba(8, 12, 22, .62);
  box-shadow: 0 0 0 3px rgba(168, 135, 79, .2);
}

.lead-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(244, 239, 230, .65) 50%),
    linear-gradient(135deg, rgba(244, 239, 230, .65) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
  color-scheme: dark;
}

.lead-form select option {
  color: #121826;
  background: #fff;
}

.lead-span-2 { grid-column: 1 / -1; }

.lead-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, .2);
  background: rgba(255, 255, 255, .06);
  color: rgba(244, 239, 230, .9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}

.lead-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-chip:has(input:checked),
.lead-chip.is-on {
  border-color: rgba(226, 207, 166, .65);
  background: rgba(168, 135, 79, .22);
  color: #fff;
}

@media (hover: hover) {
  .lead-chip:hover {
    border-color: rgba(226, 207, 166, .4);
    transform: translateY(-1px);
  }
}

/* Согласие на всю ширину → кнопка внизу → подсказка */
.lead-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 2px;
}

.lead-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  flex: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 239, 230, .72);
}

.lead-consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1.5px solid rgba(226, 207, 166, .45);
  background: rgba(8, 12, 22, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.lead-consent input:hover {
  border-color: rgba(226, 207, 166, .7);
}
.lead-consent input:checked {
  border-color: #CDB07A;
  background-color: #CDB07A;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.2 8.2l3.1 3.2 6.5-6.8' stroke='%2317120A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 0 0 3px rgba(168, 135, 79, .22);
}
.lead-consent input:focus-visible {
  outline: 2px solid rgba(205, 176, 122, .7);
  outline-offset: 2px;
}

.lead-consent span {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-consent a {
  color: #E2CFA6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-submit {
  width: 100%;
  max-width: none;
  min-height: 52px;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  color: #17120A !important;
  background: linear-gradient(96deg, #E2CFA6 0%, #CDB07A 45%, #A8874F 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 12px 28px -12px rgba(168, 135, 79, .65) !important;
}
.lead-submit:hover {
  filter: brightness(1.06);
  color: #17120A !important;
}

.lead-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: rgba(244, 239, 230, .7);
  min-height: 1.2em;
}
.lead-status.is-ok { color: #B7E0C4; }
.lead-status.is-error { color: #F0B4B4; }

.lead-submit:disabled {
  opacity: .7;
  cursor: wait;
}

.lead-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 4px 0;
  box-sizing: border-box;
  text-align: left;
  align-items: stretch;
  gap: 0;
}

.lead-copy .eyebrow {
  color: #E2CFA6;
  margin: 0 0 4px;
  font-size: 12px;
}

.lead-copy h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 600;
  max-width: none;
  width: 100%;
}

.lead-copy p {
  margin: 0 0 4px;
  color: rgba(244, 239, 230, .72);
  font-size: 13px;
  line-height: 1.4;
  max-width: none;
  width: 100%;
}

.lead-copy p:last-of-type {
  margin-bottom: 0;
}

.lead-decor {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  margin: 28px auto 0;
  padding: 0;
  width: 132%;
  max-width: 640px;
  align-self: flex-start;
  pointer-events: none;
  margin-top: auto;
  margin-left: -36px;
  margin-right: auto;
  padding-top: 12px;
  transform: translateY(36px);
}

.lead-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .4));
  animation: lead-float 5.5s ease-in-out infinite;
}

@keyframes lead-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@media (max-width: 980px) {
  .lead-sec {
    overflow-x: clip;
    padding-bottom: 52px;
  }
  .lead-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 24px 28px;
    overflow: visible;
  }
  /* Текст → форма → фото снизу поверх шейпа */
  .lead-copy {
    display: contents;
  }
  .lead-copy h2,
  .lead-copy .eyebrow {
    order: 1;
  }
  .lead-copy p {
    order: 2;
  }
  .lead-form {
    order: 3;
  }
  .lead-copy h2 { font-size: 22px; margin-bottom: 6px; }
  .lead-copy p { font-size: 13px; margin-bottom: 4px; }
  .lead-decor {
    order: 4;
    width: min(100%, 400px);
    max-width: 400px;
    margin: 8px auto 12px;
    margin-inline: auto;
    padding-top: 0;
    padding-bottom: 8px;
    justify-self: center;
    align-self: center;
    transform: translateY(14px) scale(1.06);
    transform-origin: center bottom;
    z-index: 4;
  }
  .lead-art {
    max-height: 300px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .lead-sec {
    padding-bottom: 60px;
  }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-span-2 { grid-column: auto; }
  .lead-consent {
    font-size: 12.5px;
    padding: 11px 12px;
  }
  .lead-submit { min-height: 50px; }
  .lead-copy h2 { font-size: 20px; }
  .lead-copy p { font-size: 12.5px; }
  .lead-card {
    border-radius: 22px;
    padding: 20px 20px 32px;
    overflow: visible;
  }
  .lead-decor {
    width: min(100%, 320px);
    max-width: 320px;
    margin: 6px auto 14px;
    margin-inline: auto;
    padding-bottom: 10px;
    justify-self: center;
    transform: translate(-10px, 12px) scale(1.08);
    transform-origin: center bottom;
  }
  .lead-art {
    max-height: 260px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-art { animation: none; }
}
