/* -------------------------max-width: 1170px---------------------------*/

@media (max-width: 1170px) {
  /*------------------profile.tpl----------------------*/
  .section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .section__title {
    padding-bottom: 20px;
  }

  .heading {
    line-height: 1.1;
  }

  .avatar-big {
    width: 150px;
    height: 150px;
    border-radius: 40%;
  }

  .row-profile {
    gap: 50px;
  }

  .definition__term {
    font-size: 11px;
    line-height: 10%;
    letter-spacing: 0.2em;
  }

  .definition__description {
    font-size: 16px;
    line-height: 140%;
  }

  .secondary-button {
    font-size: 14px;
    font-weight: 400;
  }

  .bg-grey {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  /*------------------profile-edti.tpl----------------------*/
  .row-profile0 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .row-profile2 {
    width: 60%;
    margin-bottom: 20px;
  }
}

/* -------------------------max-width: 770px---------------------------*/
@media (max-width: 770px) {
  /*------------------profile.tpl----------------------*/
  .section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .section__title {
    padding-bottom: 5px;
  }

  .heading {
    line-height: 1;
  }

  .avatar-big {
    width: 150px;
    height: 150px;
    border-radius: 30%;
  }

  .row-profile {
    gap: 10px;
  }

  .definition__term {
    font-size: 10px;
    line-height: 9%;
  }

  .definition__description {
    font-size: 13px;
    line-height: 130%;
  }

  .secondary-button {
    font-size: 12px;
  }

  .bg-grey {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  /* ФИКС: центрирование колонок на мобильных */
  .row-profile {
    justify-content: center !important;
    text-align: center;
  }

  /* Аватарка по центру */
  .avatar-big {
    margin: 0 auto 20px auto;
    display: block;
  }

  /* Текст блока с описанием — по центру */
  .definition-list {
    text-align: center;
    margin-bottom: 10px;
  }

  /* Термины и описания — по центру */
  .definition {
    text-align: center;
  }

  .definition__term {
    text-align: center;
    margin-bottom: 5px;
  }

  .definition__description {
    text-align: center;
  }

  /* Кнопка редактирования — по центру */
  .secondary-button {
    display: inline-block;
    text-align: center;
  }
}

/* -------------------------max-width: 700px---------------------------*/

@media (max-width: 700px) {
  /*--------contacts----------form.tpl----------------------*/

  .section-about-contacts {
    padding: 20px 0;
  }

  .section-about-contacts__content {
    margin-right: 0px;
    margin-bottom: 20px;
  }

  .post-about-me__title {
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1;
  }

  .post-about-me p {
    font-size: 13px;
    line-height: 1.1;
  }

  .page-contacts__feedback {
    padding: 20px 0;
  }

  .block-contacts__title {
    margin-bottom: 10px;
  }

  .block-contacts__info {
    font-size: 14px;
    line-height: 150%;
  }

  .feedback-form__heading {
    margin-bottom: 10px;
  }

  .feedback-form__input {
    margin-bottom: 10px;
  }

  .input {
    padding: 5px 10px;
  }

  .feedback-form__upload {
    margin-bottom: 10px;
  }

  .block-upload__description p {
    font-size: 13px;
  }

  .file-button {
    padding: 6px;
    font-size: 11px;
  }
}

/* -------------------------max-width: 450px---------------------------*/
@media (max-width: 450px) {
  .section {
    padding-top: 10px;
    padding-bottom: 5px;
  }

  /*------------------profile-edti.tpl----------------------*/
  .row-profile0 {
    gap: 10px;
  }

  .row-profile2 {
    width: 60%;
    margin-bottom: 10px;
  }

  .block-upload__file-wrapper {
    flex-direction: column;
  }

  .file-button {
    padding: 5px;
    font-size: 11px;
  }

  .checkbox__label {
    font-size: 12px;
  }

  .input__label {
    font-size: 11px;
  }

  .input--width-label {
    padding: 5px 10px;
  }

  .form-group + .form-group {
    margin-top: 10px;
  }

  input,
  textarea {
    font-size: 10px;
    line-height: 1.3;
  }

  .avatar-big {
    margin: 0 auto;
  }

  .block-upload__title {
    font-size: 12px;
  }

  .block-upload__description p {
    font-size: 12px;
  }
}
