.note-comments {
  --nc-ink: #35443b;
  --nc-green: #49634f;
  --nc-muted: #68716a;
  --nc-line: #dce2da;
  margin: 112px 0 0;
  padding: 48px 0 0;
  border: 0;
  background: #fff;
  color: var(--nc-ink);
  scroll-margin-top: 130px;
}
.note-comments__header { text-align: center; }
.note-comments__header h2 {
  margin: 0 0 18px;
  color: var(--nc-green);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.6;
}
.note-comments__header h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 18px auto 0;
  background: #aebda5;
}
.note-comments__header > p {
  margin: 0;
  color: var(--nc-muted);
  font-size: 14px;
  line-height: 1.9;
  text-wrap: balance;
}
.note-comments__compose { margin-top: 40px; }
.note-comments__compose > summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 14px 21px;
  border: 1px solid #9eaf94;
  border-radius: 4px;
  background: #edf2e8;
  color: #405b3f;
  box-shadow: 0 2px 5px rgba(49, 69, 39, .035);
  font-size: 15px;
  letter-spacing: .06em;
  cursor: pointer;
  list-style: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.note-comments__compose > summary::marker { content: ""; }
.note-comments__compose > summary::-webkit-details-marker { display: none; }
.note-comments__compose > summary:hover { background: #e3ecd9; border-color: #78906c; box-shadow: 0 3px 9px rgba(49, 69, 39, .07); }
.note-comments__compose > summary:focus-visible { outline: 2px solid #597b61; outline-offset: 5px; }
.note-comments__compose[open] > summary { background: #f5f7f1; border-color: #aebda4; }
.note-comments__toggle { position: relative; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.note-comments__toggle::before, .note-comments__toggle::after { content: ""; position: absolute; background: currentColor; }
.note-comments__toggle::before { width: 12px; height: 1px; top: 12px; left: 8px; }
.note-comments__toggle::after { width: 1px; height: 12px; left: 13px; top: 7px; }
.note-comments__compose[open] .note-comments__toggle::after { display: none; }
.note-comments__form { display: grid; gap: 26px; width: 100%; margin-top: 34px; }
.note-comments label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 9px;
  font-size: 15px;
  letter-spacing: .05em;
}
.note-comments label span { color: var(--nc-muted); font-size: 12px; letter-spacing: .02em; }
.note-comments__name-field { max-width: 320px; }
.note-comments input[type="text"], .note-comments textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid #c8d1c6;
  border-radius: 3px;
  background: #fff;
  color: #35443b;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  transition: border-color .2s, box-shadow .2s;
}
.note-comments textarea { resize: vertical; min-height: 180px; }
.note-comments input:focus-visible, .note-comments textarea:focus-visible {
  outline: 2px solid #597b61;
  outline-offset: 3px;
  border-color: #597b61;
}
.note-comments .note-comments__notice { margin: -5px 0 0; color: #616b62; font-size: 12px; line-height: 1.9; }
.note-comments > .note-comments__notice { margin-top: 25px; }
.note-comments__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 2px; }
.note-comments__footer > a { color: #616b62; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.note-comments button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  min-height: 48px;
  padding: 12px 25px;
  border: 1px solid var(--nc-green);
  border-radius: 3px;
  background: var(--nc-green);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s;
}
.note-comments button:hover { background: #354e3d; }
.note-comments a:focus-visible, .note-comments button:focus-visible { outline: 2px solid #597b61; outline-offset: 4px; }
.note-comments button:disabled { cursor: wait; opacity: .6; }
.note-comments__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.note-comments__error, .note-comments__message { padding: 15px 19px; border-left: 3px solid #78947c; background: #edf3ea; font-size: 14px; line-height: 1.9; }
.note-comments__error { border-color: #ac655d; background: #fbefea; color: #783e37; }
.note-comments__error p { margin: 0; }
.note-comments__list { margin-top: 28px; }
.note-comment { padding: 28px 0 30px; border-bottom: 1px solid var(--nc-line); }
.note-comment:first-child { padding-top: 0; }
.note-comment:last-child { padding-bottom: 0; border-bottom: 0; }
.note-comments__list ~ .note-comments__compose { margin-top: 28px; }
.note-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.note-comment__meta h3 { margin: 0; color: var(--nc-green); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.note-comment__meta h3 span { margin-left: 7px; color: var(--nc-muted); font-size: 13px; font-weight: 400; }
.note-comment__meta time {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--nc-line);
  border-radius: 3px;
  background: #f7f8f4;
  color: var(--nc-muted);
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .02em;
  white-space: nowrap;
}
.note-comment__body { margin: 13px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.95; }
.note-comment__reply { margin: 22px 0 0; padding: 20px 24px; border-radius: 4px; background: #f5f6f0; }
.note-comment__reply-author { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 0; color: var(--nc-green); font-size: 14px; line-height: 1.8; }
.note-comment__reply-label { align-self: center; margin-right: 4px; padding: 1px 8px; border: 1px solid #d3ddca; border-radius: 3px; background: #fff; font-size: 11px; line-height: 1.7; letter-spacing: .05em; }
.note-comment__reply-suffix { color: var(--nc-muted); font-size: 12px; }
.note-comment__reply .note-comment__body { margin-top: 10px; font-size: 15px; }
.note-comments__pager { display: flex; gap: 20px; justify-content: flex-end; margin-top: 18px; font-size: 13px; }
.note-comments__pager a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .note-comments { margin-top: 76px; padding: 36px 0 0; scroll-margin-top: 95px; }
  .note-comments__header h2 { font-size: 22px; letter-spacing: .05em; }
  .note-comments__header > p { font-size: 13px; }
  .note-comments__compose { margin-top: 32px; }
  .note-comments__form { margin-top: 28px; }
  .note-comments__name-field { max-width: none; }
  .note-comments__footer { align-items: stretch; gap: 21px; }
  .note-comments__footer > a { width: 100%; }
  .note-comments__footer button { width: 100%; }
  .note-comments__list { margin-top: 24px; }
  .note-comment { padding: 24px 0; }
  .note-comment__meta { gap: 6px 15px; }
  .note-comment__body { font-size: 15px; }
  .note-comment__reply { padding: 17px 18px; }
  .note-comment__reply-author { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .note-comments input, .note-comments textarea, .note-comments button, .note-comments__compose > summary { transition: none; }
}
