/*.main {
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 5.25rem 3rem 12.5rem 3rem;
}*/

.main {
  /* max-width: 1440px; */
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  /*gap: 1.5rem;*/
  gap: 0.1rem;
  padding: 0.875rem 3rem 6.25rem 3rem;
}

@media (max-width: 480px) {
    .main {
        display: flow;
        gap: 3rem;
        padding: 2rem 1rem 4rem 1rem;
    }
}
/*.contacts {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}*/
.contacts {
  /*max-width: 1440px;*/
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 6.25rem;
  /*padding: 5.25rem 3rem 12.5rem 3rem;*/
}

.contacts__title {
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.contacts__list {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}

.contacts__list-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /*width: 50%;*/
  width: 35rem;
  height: 20.938rem;
  background-color: #f1ebe6;
  padding: 2rem;
  border: none;
  border-radius: 8px;
}

.list-item__content-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-item__content-block span {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: #667085;
}

.list-item__content-block p a{
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #121011;
}

.list-item__content-block p a:hover{
  color: #e64410;
}

.list-item__content-block address {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: #000000;
  font-style: normal;
}

/* Адаптив  */

@media (min-width: 2120px) {
  .main {
    max-width: 1920px;
  }
}

@media (min-width: 1439px) and (max-width: 1700px) {
  .main {
    padding: 5.25rem 5rem 12.5rem 5rem;
  }
}

@media (max-width: 640px) {
  /*.main {
    padding: 3rem 1rem 6.25rem 1rem;
  }*/

  .contacts__title {
    font-size: 3.125rem;
  }

  .contacts__list {
    flex-direction: column;
  }

  .contacts__list-item {
    /*width: 100%;*/
    width: 40rem;
    height: auto;
  }
}











/* Модальное окно заявки  */

.application-modal {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(13, 20, 33, 0.5);
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s ease;
}

.application-modal--open {
  visibility: visible;
  opacity: 1;
}

.application-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 26.875rem;
  background-color: #f2ebe6;
  padding: 1.5rem;
}

.application-modal-close-button {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 1rem;
  right: 1rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.5rem;
  background: none;
  border: none;
}

.application-modal-close-button:hover {
  opacity: 0.6;
}

.application-modal-content-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.application-modal-content-header h3,
h4 {
  font-weight: 400;
  color: #121011;
}

.application-modal-content-header h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.application-modal-content-header h4 {
  font-size: 1rem;
  line-height: 1.2;
}

.application-modal-content-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.application-modal__text-fields {
  /*display: flex;
  flex-direction: column;
  gap: 0.5rem;*/
}

.application-modal__text-fields input {
  background: transparent;
  border: none;
  border-bottom: 1.33px solid #87898f;
  outline: none;
  width: 100%;
  padding: 1.75rem 0 0.75rem 0.25rem;
  font-size: 1rem;
  color: #121011;
  letter-spacing: -0.02em;
  /*max-width: 27.917rem;*/
  transition: all 0.2s ease;
}

.application-modal__text-fields input:hover {
  border-bottom-color: #101828;
}

.application-modal__text-fields input::placeholder {
  color: #667085;
}

.application-modal__text-fields input:focus {
  border-bottom-color: #101828;
}

.application-modal__dropzone {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.application-modal__dropzone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 9.125rem;
  border: 1px dashed #1210114d;
  border-radius: 4px;
}

.application-modal__dropzone-wrapper-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: 15rem;
  text-align: center;
      padding: 12px 0px 12px 0px;
}

.application-modal__dropzone-wrapper-text p {
  color: #101828;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.application-modal__dropzone-wrapper-text span {
  color: #87898f;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.application-modal__dropzone-wrapper-text button {
  color: #475467;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-decoration: underline;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.application-modal__dropzone-wrapper-text button:hover {
  color: #121011;
}

.application-modal__dropzone-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.25rem;
  border: 1px dashed #1210114d;
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

.application-modal__upload-label {
  color: #475467;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-decoration: underline;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.application-modal__upload-label:hover {
  color: #121011;
}

.application-modal__file-input {
  display: none;
}

.dropzone-file__info {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.625rem;
}

.dropzone-file__info-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropzone-file__info-title span {
  color: #555555;
  font-size: 0.75rem;
}

.dropzone-file__delete-button {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-file__delete-button:hover {
  opacity: 0.8;
}

.application-modal__policy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #1a1f2e;
}

.policy-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: black;
}

.policy-text {
  color: #121011;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  flex: 1;
}

.policy-text-link {
  text-decoration: underline;
  color: #121011;
  transition: all 0.2s ease;
}

.policy-text-link:hover {
  color: #e64410;
}

.policy-submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 3.375rem;
  background-color: #252324;
  text-align: center;
  color: white;
  font-weight: 300;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.policy-submit-button:hover {
  background-color: #000000;
}

input[type="submit"]:disabled, button:disabled, button:disabled:hover {
    background-color: #bdbdbd;
    color: #fff;
    border: 1px solid transparent;
}


/* === ПЕРЕСТАНОВКА: ФОРМА СЛЕВА, КОНТАКТЫ СПРАВА === */
.contacts__list {
  align-items: stretch; /* блоки растягиваются по высоте контейнера */
  gap: 1.5rem;
}

/* Форма занимает больше места (можно поменять на 1fr / 1fr для равных) */
.contacts__list-item--form {
  flex: 1.3; 
  background-color: #f2ebe6;
  height: auto;
  padding: 1.5rem;
}

.contacts__list-item:last-child {
  flex: 1; /* контакты чуть уже */
  background-color: #f1ebe6;
  height: auto;
}

/* === ВНУТРИ ФОРМЫ: ПОЛЯ СЛЕВА, ДРОПЗОН СПРАВА === */
.form-body-row {
  /*display: flex;*/
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  width: 100%;
}

.application-modal__text-fields,
.application-modal__dropzone {
  /*flex: 1;
  min-width: 0;*/ /* предотвращает вылезание за границы */
  /*width: 100%;*/
}

/* Переопределяем ширину модалки и полей для встроенной формы */
.application-modal-content--inline {
  width: 100% !important;
  background: transparent;
  padding: 0;
  gap: 0;
}

.contacts__list-item--form .application-modal__text-fields input {
  /*max-width: 100% !important;*/
}

/* Дропзон подгоняем под высоту соседних полей */
.contacts__list-item--form .application-modal__dropzone-wrapper {
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Кнопка на всю ширину */
.contacts__list-item--form .policy-submit-button {
  width: 100%;
  max-height: none;
}

/* === АДАПТИВ === */
@media (max-width: 1024px) {
  .contacts__list {
    flex-direction: column; /* на планшетах и мобильных блоки друг под другом */
  }
  .contacts__list-item--form,
  .contacts__list-item:last-child {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
  }
  
  /* На узких экранах поля и дропзон тоже встают в колонку */
  .form-body-row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .contacts__list-item--form {
    padding: 1.25rem;
  }
  .application-modal__dropzone-wrapper {
    min-height: 8rem;
  }
}



/* === Блок загрузки файла (вертикальный) === */
.application-modal__file-block {
  display: flex;
  flex-direction: column; /* Ставим кнопку и список вертикально */
  /*align-items: flex-start;*/
  gap: 0.25rem;
  /*margin-top: 0.5rem;*/
}

/* Кнопка (стили как у остальных полей) */
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
      padding: 1.75rem 0 0.70rem 0.2rem;
  border-bottom: 1.33px solid #87898f;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #667085;
  background: transparent;
  transition: all 0.2s ease;
}

.file-upload-btn img {
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.file-upload-btn:hover {
  color: #121011;
  border-bottom-color: #121011;
}
.file-upload-btn:hover img { opacity: 1; }

.file-upload-input { display: none; }

/* Список выбранных файлов */
.file-upload-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.25rem; /* Выравнивание по левому краю кнопки */
  font-size: 0.75rem;
  color: #667085;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.file-upload-info.has-files { color: #121011; }

.file-upload-placeholder { font-style: italic; }
.file-upload-name { display: block; }

/* Адаптив */
@media (max-width: 640px) {
  .application-modal__file-block { gap: 0.5rem; }
  .file-upload-info { max-width: 100%; }
}