/* =============================================
   ОБЩИЕ КОМПОНЕНТЫ И ТИПОГРАФИКА
   ============================================= */

.title-1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 64px;
  line-height: 70px;
  letter-spacing: -0.015em;
}
.title-2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 44px;
  line-height: 50px;
  letter-spacing: -0.01em;
}
.title-3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0em;
}

.text-l {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0em;
}
.text {
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  letter-spacing: 0em;
}
.text-s {
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0em;
}

.text-button {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0em;
}

.text-caption {
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: 0em;
}

@media (max-width: 1080px) {
  .title-1 {
font-weight: 600;
font-size: 34px;
line-height: 38px;
letter-spacing: -0.01em;

  }
  .title-2 {
font-weight: 600;
font-size: 28px;
line-height: 34px;
letter-spacing: -0.05em;

  }
  .title-3 {
font-weight: 600;
font-size: 20px;
line-height: 26px;

  }

  .text-l {
font-weight: 400;
font-size: 16px;
line-height: 24px;

  }
  .text {
font-weight: 400;
font-size: 15px;
line-height: 23px;

  }
  .text-s {
font-weight: 400;
font-size: 14px;
line-height: 20px;

  }

  .text-button {
font-weight: 500;
font-size: 15px;
line-height: 20px;

  }

  .text-caption {
font-weight: 500;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.04em;

  }
}

.btn {
  color: var(--white);
  background: var(--corporate-blue);
box-shadow: 0px 8px 20px 0px #12345A00;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
font-weight: 500;
font-size: 16px;
line-height: 20px;
letter-spacing: 0em;
cursor: pointer;
height: 56px;
}

.btn:hover {
  opacity: 0.8;
}

.btn--secondary {
  color: var(--graphite);
  border: 1px solid var(--corporate-blue);
  background-color: var(--white);
}

.section-badge {
  display: inline-block;
  color: var(--corporate-blue);
  text-transform: uppercase;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .section-badge { margin-bottom: 20px; }
}

/* =============================================
   ФОРМА ЗАЯВКИ
   ============================================= */

.form-lead { display: flex; flex-direction: column; gap: 16px; }

.input-wrapper { display: flex; flex-direction: column; gap: 8px; position: relative; }
.input-wrapper .text-s { color: var(--graphite); 
font-size: 16px; }

.input-text,
.input-select {
  width: 100%;
  height: 50px;
  padding: 14px 20px;
  border: 1px solid var(--deep-navy);
  background: var(--warm-ivory);
  color: var(--deep-navy);
  box-shadow: 0px 1px 1px 0px #00000040;
}

textarea.input-text { height: auto; min-height:80px; resize: vertical; }

.input-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2312345A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.input-text--error { border-color: #C0392B; }
.input-error-message { font-size: 13px; line-height: 18px; color: #C0392B; }

.checkbox {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.checkbox__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkbox__box {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--deep-navy);
  position: relative;
}
.checkbox__box::after {
  content: '';
  position: absolute;
      left: 11px;
    top: 3px;
    width: 10px;
    height: 19px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input:checked + .checkbox__box {
  background: var(--corporate-blue);
}

.checkbox--error .checkbox__box { background: var(--white); border: 1px solid #C0392B; }
.checkbox--error .checkbox__box::after { border-color: transparent; }

.form-lead__submit { width: 100%; height: 52px; transition: background-color 0.2s ease, opacity 0.2s ease; }
.form-lead__submit.is-loading { opacity: 0.7; pointer-events: none; }
.form-lead__submit.is-sent { background: #2E8B57; opacity: 1; pointer-events: none; }
.form__error { color: #C0392B; font-size: 14px; margin-top: 4px; }

/* =============================================
   МОДАЛКА ЗАЯВКИ
   ============================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 52, 90, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.modal.open { opacity: 1; visibility: visible; }

.modal__inner {
  width: 100%;
  max-width: 590px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--soft-sand);
  border-radius: 24px;
  padding: 40px 70px;
  position: relative;
}

.modal__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal__title { position: relative; padding-bottom: 10px; }
.modal__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 2px;
  background: var(--soft-sand);
}

.modal__close { position: absolute; width: 44px; height: 44px; flex-shrink: 0; top: 26px; right: 48px; cursor: pointer; z-index: 2; }


@media (max-width: 768px) {
  .modal__inner { padding: 20px;}

  .modal__close {
    right: 20px;
    top: 20px;
  }
}