*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;

  @media screen and (max-width: 37.5em) {
    font-size: 50%;
  }
}

.price-page {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}


.price-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.price-center {
  justify-content: center;
  align-items: center;
}

.price-right {
  text-align: end;
  width: 100%;
}

.price-col {
  display: grid;
  gap: 4rem;
}

.price-table-subp {
  grid-column: 1/-1;
}

.price-H1 {
  color: #303030;
  font-family: Roboto;
  font-size: 4.7rem;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 47px */
}

.price-H2 {
  color: #303030;
  font-family: Roboto;
  font-size: 3.6rem;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 36px */
}

.price-H3 {
  color: #303030;
  font-family: Roboto;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 33.6px */
}

.price-H4 {
  color: #303030;
  font-family: Roboto;
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 26.4px */
}

.price-card-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.price-card {
  display: flex;
  padding: 2rem;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-align: center;
  border-radius: 1.2rem;
  background: #61CAED;
}

.price-card-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.price-card {
  display: flex;
  padding: 2rem;
  justify-content: center;
  align-items: center;

  color: #FFF;
  font-family: Roboto;
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 26.4rem */
}

.price-table-subp {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.price-subtext {
  color: #303030;
  font-family: Roboto;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 14.4rem */
}

.price-table {
  display: grid;
  grid-template-columns: 1fr 1fr repeat(3, auto);
  grid-template-rows: repeat(10, auto);
}

.price-headcell,
.price-bodycell {
  display: flex;
  padding: 1rem;
  align-items: center;
  min-width: 0; /* обрезание длинного текста */
  word-break: break-word; /* Перенос длинных слов */

  color: #303030;

  font-family: Roboto;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 19.2px */
}

.price-headcell {
  display: flex;
  padding: 2rem;
  align-items: center;
  background: #F3F3F3;
}

.price-bodycell {
  display: flex;
  padding: 2rem;
  align-items: center;
  border-bottom: 1px solid #F3F3F3;
}


/*price 2*/
.price-wrapper-2 {
  margin-top: 8rem;
  padding-top: 8rem;
  border-top: 4px solid #707070;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.price-row-1,
.price-row-2,
.price-row-3,
.price-row-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.price-row-4 {
  align-items: end;
}

.price-table-2 {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr repeat(3, auto);
  grid-template-rows: repeat(10, auto);
}

/* adaptive*/
@media screen and (max-width: 62em) {
  .price-table,
  .price-table-2 {
    overflow-x: auto;
    word-break: keep-all;
    grid-template-columns: repeat(6, 25rem);
  }

  .price-table-subp {
    overflow-x: auto;
  }

  .price-subtext {
    font-size: 1.6rem;
  }

  .price-up {
    display: flex;
    flex-direction: column;
  }

  .price-row-1,
  .price-row-2,
  .price-row-3,
  .price-row-4 {
    display: flex;
    flex-direction: column;
  }

  .price-right {
    text-align: start;
  }
}


