.home-comments-reveal {
  opacity: 0;
  transform: translate3d(0, 100px, 0);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.home-comments-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-comments-scroll {
  margin-block: 32px 40px;
  max-height: 720px;
  overflow-y: auto;
  padding: 8px 4px 8px 0;
  border: none;
  border-radius: 16px;
  background: rgb(230, 247, 253);
}

.home-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.home-comment-item {
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: none;
  box-shadow: 3px 5px 10px rgba(3, 15, 18, 0.1);
}

.home-comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 10px;
}

.home-comment-author {
  color: rgba(3, 15, 18, 0.92);
}

.home-comment-date {
  color: rgba(3, 15, 18, 0.52);
  white-space: nowrap;
}

.home-comment-text {
  margin: 0 0 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-comment-votes {
  display: flex;
  gap: 14px;
}

.home-comment-vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-comment-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-comment-vote-btn:hover {
  transform: scale(1.12);
  background: rgba(176, 196, 210, 0.45);
}

.home-comment-vote-btn.is-active {
  background: rgba(0, 183, 241, 0.35);
}

.home-comment-vote-btn.is-active:hover {
  background: rgba(0, 183, 241, 0.5);
}

.home-comment-vote-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
}

.home-comment-vote-icon--flip {
  transform: rotate(180deg);
}

.home-comment-vote-count {
  min-width: 1ch;
  color: rgba(3, 15, 18, 0.72);
  font-size: 14px;
  line-height: 1;
}

.home-comments-loader,
.home-comments-end,
.home-comments-empty {
  text-align: center;
  padding: 12px 16px 16px;
  color: rgba(3, 15, 18, 0.58);
}

.home-comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: rgb(241, 247, 251);
  border: none;
}

.home-comment-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-comment-form .field label {
  font-style: italic;
}

.home-comment-form .input,
.home-comment-form .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(3, 15, 18, 0.1);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.home-comment-form .input:disabled {
  background: #fff;
  color: rgba(3, 15, 18, 0.72);
  opacity: 1;
}

.home-comment-form .textarea {
  resize: vertical;
  min-height: 110px;
}

.home-comment-message {
  margin-block-start: 16px;
}

.home-comment-message.is-success {
  color: #0f766e;
}

.home-comment-message.is-error {
  color: #b42318;
}

@media (prefers-reduced-motion: reduce) {
  .home-comments-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.a11y-mode .home-comments-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 767px) {
  .home-comment-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .home-comments-scroll {
    max-height: 620px;
  }
}
