.check {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
}

.check * {
  box-sizing: border-box;
}

.check__inner {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
}

.check__header {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
  margin-bottom: 32px;
}

.check__left {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.check__logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
}

.check__client {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.18;
}

.check__client strong {
  font-weight: 700;
}

.check__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.check__info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.15;
}

.check__info-item span {
  font-weight: 400;
}

.check__info-item strong {
  font-weight: 400;
}

.check__swift {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.2;
}

.check__table {
  width: 100%;
  border-bottom: 3px solid #000;
}

.check__table-head,
.check__table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.check__table-head div {
  padding: 4px 6px;
  background: #d1d1d1;
  border-left: 1px solid #000;
  border-bottom: 3px solid #000;
  font-size: 16px;
  line-height: 1.15;
}

.check__table-row div {
  padding: 4px 6px;
  border-left: 1px solid #000;
  font-size: 14px;
  line-height: 1.15;
}

.check__table-head div:first-child,
.check__table-row div:first-child {
  border-right: 1px solid #000;
}

.check__thanks {
  margin-top: 14px;
  padding-right: 42px;
  text-align: right;
  font-size: 16px;
}

/* Mobile */
@media (max-width: 700px) {
  .check {
    max-width: 420px;
  }

  .check__inner {
    padding: 24px 12px;
  }

  .check__header {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 28px;
  }

  .check__left {
    gap: 34px;
  }

  .check__logo {
    width: 150px;
  }

  .check__client,
  .check__info-item,
  .check__swift,
  .check__table-head div,
  .check__table-row div,
  .check__thanks {
    font-size: 16px;
  }

  .check__info {
    grid-template-columns: 1fr;
    gap: 15px;
    z-index: 100;
  }

  .check__table-head {
    display: none;
  }

  .check__table-row {
    display: flex;
    flex-direction: column;
    border: 1px solid #000;
    border-bottom: none;
  }

  .check__table-row div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 8px 10px;
    border-right: none;
    border-left: none !important;
    border-bottom: 1px solid #000;
    font-size: 16px;
  }

  .check__table-row div::before {
    content: attr(data-label);
    font-weight: 700;
  }

  .check__thanks {
    padding-right: 0;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .check__info {
    grid-template-columns: 1fr;
  }

  .check__table-row div {
    grid-template-columns: 105px 1fr;
  }
}
