/* anchor from why-us CTA */
#lead-form,
.lead-form-section {
  scroll-margin-top: 96px;
}

/* ========== Lead form (сквозной блок подбора тура) ========== */

.lead-form-section {
  padding: 40px 0 56px;
}

.lead-form-section__inner.trv-container {
  box-sizing: border-box;
}

.lead-form {
  width: 100%;
}

.lead-form__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(29, 29, 27, 0.08);
}

.lead-form__media {
  position: relative;
  min-height: 420px;
  background: #1d1d1b;
}

.lead-form__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-form__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: inline-block;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border-radius: 6px;
  background: #fecc0f;
  color: #1d1d1b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.lead-form__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  box-sizing: border-box;
}

.lead-form__eyebrow {
  margin: 0 0 8px;
  color: #e73039;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.lead-form__title {
  margin: 0 0 12px;
  color: #1d1d1b;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.lead-form__intro {
  margin: 0 0 22px;
  color: #4e5459;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.lead-form__error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fdecee;
  color: #e73039;
  font-size: 14px;
  line-height: 1.35;
}

.lead-form__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-form__field {
  display: block;
  margin: 0;
}

.lead-form__field input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1b;
  font-size: 15px;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.15s ease;
}

.lead-form__field input::placeholder {
  color: #9aa0a6;
}

.lead-form__field input:focus {
  border-color: #c8ccd0;
}

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

.lead-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.lead-form__chip {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

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

.lead-form__chip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f5;
  color: #4e5459;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.lead-form__chip input:checked + span {
  background: #fecc0f;
  color: #1d1d1b;
  font-weight: 700;
}

.lead-form__chip input:focus-visible + span {
  outline: 2px solid #e73039;
  outline-offset: 2px;
}

.lead-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #fecc0f;
  color: #1d1d1b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.lead-form__submit:hover {
  filter: brightness(0.97);
}

.lead-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  filter: none;
}

.lead-form__success {
  margin-top: 8px;
  padding: 20px 18px;
  border-radius: 8px;
  background: #f3faf4;
  border: 1px solid #cfe8d3;
}

.lead-form__success-title {
  margin: 0 0 8px;
  color: #1d1d1b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.lead-form__success-text {
  margin: 0;
  color: #4e5459;
  font-size: 15px;
  line-height: 1.45;
}

.lead-form-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.lead-form-popup.is-open {
  display: flex;
}

.lead-form-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, 0.45);
}

.lead-form-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.lead-form-popup__dialog--ok {
  border-top: 4px solid #fecc0f;
}

.lead-form-popup__dialog--err {
  border-top: 4px solid #e73039;
}

.lead-form-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lead-form-popup__title {
  margin: 0 0 10px;
  color: #1d1d1b;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.lead-form-popup__text {
  margin: 0 0 20px;
  color: #4e5459;
  font-size: 15px;
  line-height: 1.45;
}

.lead-form-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #fecc0f;
  color: #1d1d1b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.lead-form-popup__dialog--err .lead-form-popup__btn {
  background: #e73039;
  color: #fff;
}

.lead-form__note {
  margin: 4px 0 0;
  color: #9aa0a6;
  font-size: 12px;
  line-height: 1.4;
}

.lead-form__note a {
  color: #e73039;
  text-decoration: underline;
}

.lead-form__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media screen and (max-width: 991px) {
  .lead-form-section {
    padding: 28px 0 40px;
  }

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

  .lead-form__media {
    min-height: 240px;
  }

  .lead-form__body {
    padding: 28px 24px;
  }

  .lead-form__title {
    font-size: 24px;
  }
}

@media screen and (max-width: 575px) {
  .lead-form__row {
    grid-template-columns: 1fr;
  }

  .lead-form__body {
    padding: 24px 18px;
  }

  .lead-form__title {
    font-size: 22px;
  }

  .lead-form__media {
    min-height: 200px;
  }
}

/* Keep form in normal document flow under page content */
.lead-form-section,
#lead-form {
  clear: both !important;
  float: none !important;
  width: 100% !important;
  display: block !important;
  position: relative;
}
