/* Контейнер секции */
.comments-section {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 16px;
  font-family: inherit;
font-size: 1.4rem;
    line-height: 1.5;
    font-family: Inter, sans-serif;
    margin-bottom: 10px;
}

.comments-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.comments-header h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.comments-header .add-comment {
  font-size: 14px;
  color: #005BBB;
  text-decoration: none;
}

.comments-header .add-comment:hover {
  text-decoration: underline;
}

/* Один комментарий */
.comment {
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.comment-header strong {
  font-weight: bold;
  font-size: 16px;
}

.comment-header .timestamp {
  font-size: 13px;
  color: #757575;
}

.comment p {
  margin: 0;
font-size: 1.4rem;
    line-height: 1.5;
    font-family: Inter, sans-serif;
    margin-bottom: 10px;
}

.comment .reply {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #005BBB;
  text-decoration: none;
}

.comment .reply:hover {
  text-decoration: underline;
}

/* Если есть особый стиль для правого блока */
.comment.right {
  background-color: #f9f9f9;
  padding: 16px;
  border-radius: 4px;
}

/* Медиа-запросы для адаптива */
@media (max-width: 768px) {
  .comments-section {
    padding: 0 12px;
  }

  .comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .comments-header h2 {
    font-size: 20px;
  }

  .comments-header .add-comment {
    font-size: 13px;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-header strong {
    font-size: 15px;
  }

  .comment-header .timestamp {
    font-size: 12px;
  }

  .comment p {
    font-size: 15px;
  }

  .comment .reply {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .comments-header h2 {
    font-size: 18px;
  }

  .comments-header .add-comment {
    font-size: 12px;
  }

  .comment-header strong {
    font-size: 14px;
  }

  .comment-header .timestamp {
    font-size: 11px;
  }

  .comment p {
    font-size: 14px;
  }

  .comment .reply {
    font-size: 11px;
  }
}
