/* -------------------------max-width: 1170px---------------------------*/
@media (max-width: 1170px) {
  .page-blog {
    padding: 0;
  }

  .page-blog__header {
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .page-blog__posts .card-post {
    margin-bottom: 0px;
    margin-right: 0px;
  }

  .page-blog__posts {
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
  }

  .card-post_rotateY3 {
    padding: 10px;
    max-width: 310px;
    height: auto;
    text-align: center;
    margin: 0;
  }

  /*-----------single post------------*/
  .page-post {
    padding: 10px;
  }

  .section-posts {
    margin-bottom: 0px;
  }

  .section-posts__title {
    margin-bottom: 10px;
  }

  .section-posts__info {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .section-posts__img {
    margin: 0 auto;
    width: 95%;
    min-height: auto;
    margin-bottom: 35px;
  }

  .section-posts__link {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 16px;
  }

  .section-posts__content {
    width: 90%;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.3;
  }

  .page-post__post-pagination {
    margin: 0 auto;
    max-width: 90%;
  }

  .post-pagination__button {
    border: 2px solid rgba(126, 155, 189, 0.3);
    padding-top: 14px;
    padding-bottom: 15px;
    font-size: 16px;
  }

  .page-post__comments,
  .page-post__post-comments {
    margin: 10px auto;
    max-width: 90%;
  }

  .page-post__title {
    margin-bottom: 20px;
  }

  .comment {
    border: 2px solid rgba(126, 155, 189, 0.3);
    padding: 10px;
  }

  .comment__username {
    font-size: 15px;
    line-height: 1.2;
  }

  .comment__date {
    font-size: 14px;
    line-height: 1.2;
  }

  .comment__text {
    font-size: 14px;
    line-height: 1.2;
  }

  .page-post__comments-comment:not(:last-child) {
    margin-bottom: 10px;
  }

  .page-post__title {
    margin-bottom: 10px;
  }

  .card-post {
    padding: 10px;
    height: auto;
  }

  .post-comment {
    padding: 15px;
  }

  .primary-button {
    padding: 12px 18px;
    font-size: 15px;
  }
}

/* -------------------------max-width: 700px---------------------------*/
@media (max-width: 700px) {
  .pagination-button {
    padding: 7px 14px;
    font-size: 15px;
  }

  .page-blog__pagination {
    margin-bottom: 15px;
  }

  /*-----------single post------------*/
  h1,
  .heading,
  .section-header__content-title {
    padding-top: 5px;
    font-size: 14px !important;
  }

  .section-posts__content {
    font-size: 13px;
    line-height: 1;
  }

  .section-posts__content p {
    margin-bottom: 0px;
  }

  .post-pagination__button {
    border: 1px solid rgba(126, 155, 189, 0.3);
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 12px;
  }

  .comment__username {
    font-size: 12px;
    line-height: 1;
  }

  .comment__date {
    font-size: 10px;
    line-height: 1;
  }

  .comment__text {
    font-size: 12px;
    line-height: 1;
  }
}

/* -------------------------max-width: 400px---------------------------*/
@media (max-width: 400px) {
  /*-----------single post------------*/
  h1,
  .heading,
  .section-header__content-title {
    padding-top: 5px;
    font-size: 13px !important;
    margin-bottom: 5px;
  }

  h2,
  .section-header__content-subtitle {
    font-size: 10px !important;
    margin-bottom: 5px;
  }

  .nav__list-item:not(:last-child) {
    margin-right: 10px;
  }

  .nav__list-item-link {
    font-size: 9px;
  }

  .section-posts__info {
    font-size: 10px;
    margin-bottom: 15px;
  }

  .post-pagination__button {
    border: 1px solid rgba(126, 155, 189, 0.3);
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 11px;
  }

  .section-posts__technology {
    margin-top: 12px;
    margin-bottom: 15px;
    font-size: 10px;
  }

  .section-posts__link {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 12px;
  }

  .comment {
    padding: 5px;
  }

  .comment__avatar {
    margin-right: 5px;
  }

  .avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .comment__username {
    font-size: 10px;
  }

  .comment__date {
    width: 90%;
    display: flex;
    gap: 2px;
    font-size: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .comment__text {
    font-size: 10px;
  }

  .textarea {
    padding: 8px;
    height: 50px;
  }

  input,
  textarea {
    line-height: 1;
  }

  .post-comment__form-textarea {
    margin-bottom: 10px;
  }

  .post-comment {
    padding: 5px;
  }

  .primary-button {
    padding: 10px;
    font-size: 11px;
  }

  /*--------------------*/

  .pagination-button {
    padding: 5px 10px;
    font-size: 10px;
  }

  .page-blog__pagination {
    margin-bottom: 15px;
  }

  .section-pagination__item {
    margin-right: 5px;
  }
}
