/* FIRST LINE OF PHONES */
.block-image-one {
  display: flex;
  width: fit-content;
  height: fit-content;
  gap: 40px; /* Поправить под Figma */
  justify-content: space-between;
}
.phone-block {
  width: 196px;
  max-height: fit-content;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}
.phone-block p {
  font-family: Open Sans;
  font-size: 18px;
  font-weight: 300;
  line-height: 25px;
  letter-spacing: 0em;
  text-align: center;
  color: #ffffff;
  width: 100%;
}
.child-container:first-child p {
  text-align: left;
}
.child-container:last-child p {
  text-align: right;
}

/* Margin блоков */
.phone-block:first-child,
.phone-block:nth-child(3) {
  margin: 0px;
}
.phone-block:nth-child(2) {
  margin-top: calc(1 * 40px);
}

.phone-block img {
  width: 196px;
  height: 396px;
}
/* SECOND LINE OF PHONES */
.block-image-second {
  display: flex;
  width: fit-content;
  height: fit-content;
  gap: 10px; /* Поправить под Figma */
  justify-content: space-between;
}
.phone-block-second {
  width: 196px;
  max-height: fit-content;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

/* Margin блоков */
.phone-block-second:first-child,
.phone-block-second:last-child {
  margin-top: 0px;
}
.phone-block-second:nth-child(2),
.phone-block-second:nth-child(5) {
  margin-top: 51px;
}
.phone-block-second:nth-child(3),
.phone-block-second:nth-child(4) {
  margin-top: calc(2 * 51px);
}
.phone-block-second img {
  width: 196px;
  height: 396px;
}
.phone-block-second p {
  width: 100%;
  height: fit-content;
  text-align: center;
}
/* ОБЩИЕ КОНФИГИ */
.phone-block-one p,
.phone-block-second p {
  font-family: Open Sans;
  font-size: 18px;
  font-weight: 300;
  line-height: 25px;
  letter-spacing: 0em;
  text-align: center;
  color: #ffffff;
  width: 100%;
  height: fit-content;
}
/* ОБЩИЕ МЕДИА ЗАПРОСЫ */
@media (max-width: 1199px) {
  .parent-container {
    gap: 15%;
  }
  .block-image-second {
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }
  .phone-block-second:first-child,
  .phone-block-second:nth-child(2),
  .phone-block-second:nth-child(3),
  .phone-block-second:nth-child(4),
  .phone-block-second:nth-child(5),
  .phone-block-second:last-child {
    margin-top: 0px;
  }
}
/* МЕДИА ЗАПРОСЫ ПО ЗОНАМ */
@media (min-width: 992px) and (max-width: 1199px) {
  /* FIRST LINE OF PHONES */
  .block-image-one {
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
  }
  /* FOOTER */
  .child-container {
    width: 100%;
    height: fit-content;
    font-size: 14px;
  }
}
@media (max-width: 992px) {
  /* FIRST LINE OF PHONES */
  .block-image-one {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: column;
    overflow-y: auto;
    height: 520px;
  }
  .phone-block:first-child,
  .phone-block:nth-child(2),
  .phone-block:nth-child(3) {
    margin-top: 0px;
    gap: 5px;
  }
  /* FOOTER */

  .child-container {
    width: 100%;
    height: fit-content;
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  /* FIRST LINE OF PHONES */
  .block-image-one {
    width: 100%;
  }
  .phone-block-second {
    gap: 5px;
  }

  /* SECOND LINE OF PHONES */
  .block-image-second {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
    height: 520px;
    gap: 40px;
  }
}

@media (max-width: 419px) {
  /* FOOTER */

  .parent-container {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  .child-container:first-child p {
    text-align: center;
  }
  .child-container:last-child p {
    text-align: center;
  }
}
