@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  .contract-container {
    max-width: 100%;
    margin: 16px auto 24px;
    padding: 28px 20px;
    box-sizing: border-box;
  }

  h1 {
    font-size: 20px;
    line-height: 1.35;
  }

  h2 {
    font-size: 22px;
    line-height: 1.35;
  }

  .location,
  .intro-text,
  .item {
    font-size: 16px;
    line-height: 1.65;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  section {
    margin-bottom: 20px;
  }

  .requisites-table {
    table-layout: fixed;
  }

  .requisites-table td {
    word-break: break-word;
    font-size: 15px;
  }

  .signup__form {
    width: min(760px, 100%);
    padding: 0 20px;
  }

}

@media (max-width: 767px) {
  .contract-container {
    max-width: 100%;
    margin: 10px auto 18px;
    padding: 18px 10px;
    box-sizing: border-box;
  }

  h1 {
    font-size: 18px;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 17px;
    line-height: 1.35;
  }

  .location,
  .intro-text,
  .item {
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .requisites-section {
    margin-top: 24px;
  }

  section {
    margin-bottom: 14px;
    gap: 6px;
  }

  .requisites-table,
  .requisites-table tbody,
  .requisites-table tr,
  .requisites-table td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .requisites-table tr {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
  }

  .requisites-table td {
    padding: 5px 0;
  }

  .signup__title {
    font-size: 22px;
  }

  .signup__form {
    width: 100%;
    padding: 0 10px;
  }

}
