    /* COMMENTS — Narva News clean premium */

.nn-comments {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.nn-comments-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.nn-comments-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nn-comments-head h2 {
  margin: 0;
  color: #111;
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.nn-comments-head p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.nn-comment-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fafafa;
}

.nn-comment-form-title {
  margin-bottom: 12px;
  color: #111;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.nn-comment-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff2f2;
  color: var(--red);
  font-size: 13px;
  line-height: 1.35;
}

.nn-comment-fields {
  margin-bottom: 10px;
}

.nn-field {
  display: grid;
  gap: 6px;
}

.nn-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nn-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #111;
  outline: none;
  font-size: 14px;
}

.nn-field input:focus {
  border-color: #111;
}

.nn-comment-editor {
  display: grid;
  gap: 10px;
}

.nn-bbcodes {
  max-width: 100%;
  overflow-x: auto;
  font-size: 13px;
}

.nn-bbcodes:empty {
  display: none;
}

.nn-comment-editor textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #111;
  outline: none;
  font-size: 15px;
  line-height: 1.5;
}

.nn-comment-editor textarea::placeholder {
  color: #9a9a9a;
}

.nn-comment-editor textarea:focus {
  border-color: #111;
}

.nn-comment-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.nn-comment-submit-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nn-comment-submit-row button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.nn-comment-submit-row button:hover {
  background: var(--red);
}

.nn-comment-submit-row button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* comment card */

.nn-comment-card {
  margin-top: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.nn-comment-card:first-of-type {
  margin-top: 18px;
}

.nn-comment-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.nn-comment-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nn-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f1f1f1;
}

.nn-comment-avatar-empty {
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nn-comment-author-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nn-comment-author {
  display: block;
  max-width: 100%;
  color: #111;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-comment-author:hover {
  color: var(--red);
}

.nn-comment-date {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
}

.nn-comment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.nn-comment-actions a,
.nn-comment-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.nn-comment-actions a:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

.nn-comment-actions .is-disabled {
  color: #999;
  background: #f7f7f7;
}

.nn-comment-text {
  margin-top: 12px;
  color: #202020;
  font-size: 15px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  word-break: normal;
}

.nn-comment-text p {
  margin: 0 0 10px;
}

.nn-comment-text p:last-child {
  margin-bottom: 0;
}

.nn-comment-reply {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f7f7;
  border: 1px solid var(--line);
}

.nn-comment-reply span {
  display: block;
  margin-bottom: 5px;
  color: #111;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nn-comment-reply div {
  color: #333;
  font-size: 14px;
  line-height: 1.45;
}

.nn-comment-footer {
  margin-top: 10px;
}

.nn-comment-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #555;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.nn-comment-footer a:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* mobile */

@media (max-width: 720px) {
  .nn-comments {
    margin-top: 28px;
    padding-top: 20px;
  }

  .nn-comments-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nn-comments-head h2 {
    font-size: 24px;
  }

  .nn-comments-head p {
    max-width: none;
    text-align: left;
    font-size: 13px;
  }

  .nn-comment-form {
    padding: 13px;
    border-radius: 18px;
  }

  .nn-comment-editor textarea {
    min-height: 116px;
    border-radius: 16px;
    font-size: 15px;
  }

  .nn-comment-submit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nn-comment-submit-row button {
    width: 100%;
  }

  .nn-comment-card {
    padding: 14px 0;
  }

  .nn-comment-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nn-comment-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nn-comment-actions a,
  .nn-comment-actions span {
    min-height: 30px;
  }

  .nn-comment-text {
    font-size: 15px;
    line-height: 1.55;
  }
}
    .nn-comment-error {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff2f2;
  color: var(--red);
  font-size: 13px;
  line-height: 1.35;
}

.nn-comment-error:not(:empty) {
  display: block;
}
    
    /* COMMENTS OUTPUT FIX — compact editorial view */

.nn-comment-card {
  position: relative;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.nn-comment-card + .nn-comment-card {
  margin-top: 10px;
}

.nn-comment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nn-comment-author-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: calc(100% - 90px);
}

.nn-comment-avatar,
.nn-comment-author-row img {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  flex: 0 0 26px !important;
}

.nn-comment-avatar-empty {
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.nn-comment-author-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nn-comment-author {
  display: block;
  max-width: 220px;
  color: #111;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-comment-date {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.nn-comment-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.nn-comment-actions a,
.nn-comment-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  color: #555;
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
}

.nn-comment-actions a:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.nn-comment-text {
  margin-top: 10px;
  color: #222;
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.nn-comment-text p {
  margin: 0 0 8px;
}

.nn-comment-text p:last-child {
  margin-bottom: 0;
}

/* ???????: ???????? ?????? ???????????? ?? ?????? ??????????? ????????? */

.nn-comment-text img,
.nn-comment-card img:not(.nn-comment-avatar) {
  display: block;
  width: auto !important;
  max-width: min(100%, 420px) !important;
  max-height: 260px !important;
  height: auto !important;
  margin: 10px 0 4px !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  background: #f3f3f3 !important;
}

/* ???? uCoz ??????????? ???????? ? ?????? */

.nn-comment-text a:has(img) {
  display: inline-block;
  max-width: 100%;
}

/* ????? ???????? */

.nn-comment-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
}

.nn-comment-reply span {
  display: block;
  margin-bottom: 5px;
  color: #111;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.nn-comment-reply div {
  color: #333;
  font-size: 13px;
  line-height: 1.4;
}

.nn-comment-footer {
  margin-top: 8px;
}

.nn-comment-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.nn-comment-footer a:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* ????????? uCoz-???????? ??????? ???????????? */

select[name*="sort"],
select[id*="sort"],
form select {
  max-width: 100%;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #333;
  padding: 0 10px;
  font-size: 12px;
}

/* Mobile */

@media (max-width: 720px) {
  .nn-comment-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .nn-comment-top {
    gap: 8px;
  }

  .nn-comment-author-row {
    max-width: calc(100% - 74px);
  }

  .nn-comment-author {
    max-width: 180px;
    font-size: 12px;
  }

  .nn-comment-date {
    font-size: 9px;
  }

  .nn-comment-actions a,
  .nn-comment-actions span {
    min-height: 21px;
    min-width: 22px;
    padding: 0 5px;
    font-size: 9px;
  }

  .nn-comment-text {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.45;
  }

  .nn-comment-text img,
  .nn-comment-card img:not(.nn-comment-avatar) {
    max-width: 100% !important;
    max-height: 210px !important;
    border-radius: 12px !important;
  }
}
    /* AVATAR FINAL FIX */

.nn-comment-author-row {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nn-comment-avatar,
.nn-comment-avatar-empty,
.nn-comment-author-row > img,
.nn-comment-top img.nn-comment-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  aspect-ratio: 1 / 1 !important;

  display: block !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  object-position: center !important;

  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;

  background: #111 !important;
  overflow: hidden !important;
}

.nn-comment-avatar-empty {
  display: grid !important;
  place-items: center !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}

.nn-comment-author-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.nn-comment-author {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.1;
}

.nn-comment-date {
  font-size: 10px;
  line-height: 1;
}