
@media (max-width: 1437px) {
    .form__field {
        max-width: 47%;
    }
    .form__fields-list {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .form__field-long {
        max-width: 100%;
    }
}
@media (max-width: 1118px) {
    .form__field {
        max-width: 100%;
    }
}
@media (max-width: 1000px) {
  .online {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .online__left {
    margin: 0 0 40px 0;
  }
  .online__title {
    font-size: 32px;
  }
  .online__text {
    font-size: 20px;
  }
  .online__steps {
    margin: 0 auto 50px;
  }
  .steps__wrapper {
    padding: 25px 0 25px 0;
  }
  .step__img {
    width: 80px;
  }
  .step__title {
    font-size: 20px;
  }
  .step__subtitle {
    font-size: 15px;
  }
  .step__item:after {
    top: 40%;
    scale: 0.8;
  }
  .calculation-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .calculation__title {
    font-size: 32px;
  }
  .calculation__item {
    font-size: 20px;
  }
  .calculator {
    max-width: 500px;
  }

  .form-calc__result {
    font-size: 16px;
  }
  .terms__item {
    font-size: 14px;
  }
}
@media (max-width: 950px) {
    .form__field-photos {
        width: 100%;
        margin: 0 16px 34px;
    }
    .form__photo-fields {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .form__photo-field {
        margin-bottom: 20px;
        max-width: 44%;
    }
}
@media (max-width: 767px) {
  .online {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .online__left {
  }
  .online__right {
    height: 252px;
    background-position: bottom center;
  }
  .online__steps {
    margin: 0 auto 50px;
    max-width: 500px;
  }
  .steps__wrapper {
    padding: 16px 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 53px;
  }
  .step__item {
    padding: 0 12px;
    max-width: 298px;
  }
  .step__item_three {
    width: 100%;
  }
  .step__item:after {
    scale: 0.635;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-80%) rotate(90deg);
    transform: translateX(-80%) rotate(90deg);
  }
  .step__img {
    width: 52px;
  }
  .calculator {
    max-width: 300px;
  }
  .calculation__item {
    font-size: 16px;
  }
  .form-calc__select {
    font-size: 14px;
  }
  .form-calc__message {
    font-size: 14px;
  }
  .form-calc__message svg {
    width: 17px;
    height: 16px;
  }
  .online__terms {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .terms__left {
    padding: 30px 0 0 16px;
  }
  .footer__row_second {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .footer__column {
    width: 100%;
  }
}
@media (max-width: 665px) {
  .line_zaims__items {
    overflow-x: scroll;
  }
}
@media (max-width: 425px) {
  .online {
    gap: 0;
  }
  .online__title {
    font-size: 20px;
  }
  .online__text {
    margin: 8px 0 0 0;
    font-size: 16px;
  }
  .btn {
    max-height: 39px;
    max-width: 151px;
    padding: 10px 20px;
    font-weight: 400;
    font-size: 13px;
    white-space: nowrap;
  }
  .online__phone {
    margin: 24px 10px 0 0;
  }
  .online__request {
    margin: 12px 0 0 0;
  }
  .online__steps {
    max-width: 238px;
  }
  .step__title {
    font-size: 13px;
  }
  .step__subtitle {
    max-width: 152px;
    font-size: 13px;
    line-height: 121.2%;
  }
  /* .calculation-wrapper {
    padding: 0 0 15px 0;
  }
  .calculation__left {
    padding: 0 15px;
  } */
  .calculation__item {
    font-size: 14px;
  }
  .calculator {
    max-width: 400px;
    width: 100%;
  }
  .terms__left {
    padding: 30px 0 40px 16px;
  }
  .terms__list {
    max-width: 245px;
  }
  .terms__item {
    padding: 0 0 0 39px;
    font-size: 13px;
  }
  .form-agent__input,
  .form-agent__select {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .phone__link {
    font-size: 16px;
  }
  .phone__icon {
    width: 25px;
    height: 25px;
  }
  .tarifs__message {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .form-agent__select {
    font-size: 14px;
  }
  .form-agent__select option {
    font-size: 14px;
  }
  .custom-select {
    font-size: 14px;
  }
}
/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
  .form__section {
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  
  .form__field {
    max-width: 100%;
    margin: 0 0 25px 0;
  }
  
  .form__fields-list {
    margin: 0;
  }
  
  .form__photo-field {
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .form__photo-fields {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  
  .kred_produkt__item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  
  .colom_first__name,
  .colom_second__nam,
  .colom_third__nam,
  .colom_fourth__nam,
  .colom_five__nam,
  .colom_sixth__nam,
  .colom_seventh__nam {
    margin-bottom: 15px;
    width: 100%;
  }
  
  .new-line {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  
  .one-line {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }
  
  .card-new-date {
    margin-bottom: 10px;
  }
  
  .form__section-title {
    font-size: 20px;
  }
  
  .form__label-inner {
    font-size: 15px;
  }
  
  #submit-application-btn {
    max-width: 100%;
    font-size: 18px;
    padding: 15px;
    margin: 20px auto 40px;
  }
}

/* Планшеты (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .form__field {
    max-width: 45%;
    margin: 0 2% 25px;
  }
  
  .form__photo-field {
    max-width: 48%;
  }
  
  .kred_produkt__item {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .new-line {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .new-line .form__field {
    max-width: 48%;
    margin: 0 1% 25px;
  }
  
  .form__section-title {
    font-size: 22px;
  }
}

/* Небольшие десктопы (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .form__field {
    max-width: 30%;
    margin: 0 1.5% 25px;
  }
  
  .form__photo-field {
    max-width: 32%;
  }
  
  .kred_produkt__item {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
  .form__section {
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  
  .form__input-inner {
    height: 40px;
    font-size: 14px;
  }
  
  .input__file-button {
    height: 50px;
  }
  
  .form__label-inner {
    font-size: 15px;
  }
  
  .form__section-title {
    font-size: 20px;
    padding-bottom: 10px;
  }
}

/* Особые стили для очень маленьких экранов */
@media (max-width: 400px) {
  .form__section-title {
    font-size: 18px;
  }
  
  .form__label-inner {
    font-size: 14px;
  }
  
  .input__file-button {
    font-size: 1rem;
    height: 50px;
  }
  
  .input__file-icon-wrapper {
    height: 50px;
    width: 50px;
  }
  
  #submit-application-btn {
    font-size: 16px;
    padding: 12px;
  }
}

/* Адаптация для элементов формы на узких экранах */
@media (max-width: 575px) {
  .form__field-checks .inp {
    margin-bottom: 12px;
  }
  
  .form__radio-group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  
  .form__radio-label {
    margin-bottom: 10px;
  }
  
  .modal-load__body {
    padding: 20px;
    max-width: 90%;
  }
}

/* Адаптация карточек тарифов */
@media (max-width: 991px) {
  .tarif-item {
    padding: 15px;
  }
  
  .produkt_title__string {
    font-size: 16px;
  }
  
  .produkt_descr__string {
    font-size: 14px;
  }
}