.state-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.state h3 {
  font-family: Onest;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0%;
  color: white;
}

.state p {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0%;
  color: rgba(127, 129, 135, 1);
}

.state>img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
}

.share-first-line-socials {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.share-first-line-socials-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 51px;
  height: 38px;
  background-color: rgba(35, 36, 39, 1);
  border-radius: 10px;
}

.share-list-item-el {
  background-color: rgba(35, 36, 39, 1) !important;
  padding: 10px !important;
}

.share-list-item-el p {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 220px;
  color: white;
}

.share-list-item-el img {
  width: 18px !important;
  height: 18px !important;
}

.state h2 {
  font-family: Onest;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0%;
  color: white;
}

.state h1 {
  font-family: Onest;
  font-weight: 700;
  font-style: Bold;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: 0%;
  color: white;
}

.state {
  padding: 22px 24px;
  border-radius: 16px;
  background-color: rgba(21, 22, 24, 1);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: start;
}

.state-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.state-header-tags {
  display: flex;
  align-items: center;
  gap: 16px;
}

.state-header-tags-item {
  font-family: Onest;
  font-weight: 600;
  font-style: Semibold;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0%;
  color: rgba(98, 99, 102, 1);

  display: flex;
  gap: 5px;
  align-items: center;
}

.state-header-tags-item>img {
  width: 20px;
  height: 20px;
}

.state-share-block>img {
  width: 25px;
  height: 25px;
}

.state-share-block {
  cursor: pointer;
  font-family: Onest;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0%;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.share-block.open {
  display: flex;
}

.share-block {
  display: none;
  top: 40px;
  right: 0;
  background: rgba(27, 29, 31, 1);
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(33, 36, 38, 1);
  border-radius: 10px;
  box-shadow: 0px 25px 45px 0px rgba(0, 0, 0, 0.35);
}

.arrow-share {
  width: 20px !important;
  height: 20px !important;
  position: absolute;
  right: 27px;
  top: -15px;
}

.share-block-cont {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;

}

/* Стили для комментариев  */
.comments {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments>h2 {
  color: white;
  font-family: Onest;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0%;
  vertical-align: middle;

}

.comment {
  position: relative;
  margin-bottom: 12px;
}

.comment-body {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: white;
  white-space: normal;
  word-break: break-word;
}

.comment-data {
  background: rgba(21, 22, 24, 1);
  border-radius: 16px;
  padding: 15px;
  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #444;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.username {
  font-family: Onest;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: white;
}

.timestamp {
  font-size: 12px;
  color: #8b949e;
}

.comment-body {}

.comment-footer {
  display: flex;
  gap: 16px;
  font-size: 12px;
  align-items: center;
}

.reply-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-style: Bold;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0%;
  vertical-align: middle;
  cursor: pointer;
  color: white;
}

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

.vote-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border-radius: 999px;
}

.vote-controls>span {
  font-size: 32px;
  font-weight: 300;
  color: rgba(127, 129, 135, 1);
}

.vote-controls>div {
  background-color: rgba(52, 178, 81, 1);
  padding: 6px;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0%;
  vertical-align: middle;
  border-radius: 8px;
  color: white;
}

.negative-rate-com {
  background-color: rgb(178, 69, 52) !important;
}

.vote-btn {
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border-radius: 50%;
}

.vote-up {
  color: #4ade80;
}

.vote-down {
  color: #f87171;
}

.replies {
  position: relative;
  margin-left: 20px;
}

.reply-form {
  display: none;
  border: 1px solid #30363d;
  border-radius: 8px;
}


.new-comment-form {}

.comment-data:after {
  position: absolute;
  top: 32px;
  content: "";
  background-color: rgba(29, 31, 34, 1);
  height: 1px;
  width: 10px;
  left: -10px;
}

/* Линии */
.vert-line {
  position: absolute;
  width: 30px;
  border-left: 1px solid rgba(29, 31, 34, 1);
  border-radius: 0 10px;
  left: -10px;
  top: -15px;
  border-bottom: 1px solid rgba(29, 31, 34, 1);
  z-index: 2;
}

.hor-line {
  position: absolute;
  height: 2px;
  background: #30363d;
  left: 25px;
  /* точка соединения с вертикальной */
  top: 20px;
  /* центр аватара родителя */
}

.collapse-btn {
  cursor: pointer;
  color: #58a6ff;
  margin-left: 10px;
  font-size: 14px;
}

.last-reply .comment-data:after {
  display: none;
}

.top-level .comment-data:after {
  display: none;
}

.user-info-data {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: start;
}

.message-retached {
  color: rgba(127, 129, 135, 1);
  font-family: Onest;
  font-weight: 400;
  font-style: Regular;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0%;
  vertical-align: middle;
}

.answer-flag {
  font-family: Onest;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: rgba(127, 129, 135, 1);
}

.add-comment-inpu-wrapper {
  position: relative;
  width: 100%;
  background-color: rgba(21, 22, 24, 1);
  padding: 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-comment-inpu-wrapper>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Onest;
  font-weight: 700;
  font-style: Bold;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: rgba(50, 32, 17, 1);
  flex-wrap: wrap;
  gap: 8px;
}

.bttn-in {
  padding: 16px;
  border-radius: 8px;
  background-color: rgba(255, 141, 40, 1);
  cursor: pointer;
}

.add-comment-input {
  width: 100%;
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: rgba(117, 117, 117, 1);
  border: 1px solid rgba(25, 26, 29, 0);
  background-color: transparent
}

.items-in {
  display: flex;
  gap: 16px;
  align-items: center;
  right: 16px;
}

.items-in img {
  cursor: pointer;
}


@media (max-width: 700px) {
  .state h1 {
    font-size: 21px;
    line-height: 22px;
  }

  .state-header {
    flex-direction: column;
    gap: 10px;
    align-items: start;
  }

  .state {
    padding: 15px;
  }

  .share-block {
    left: 0;
    right: unset;
  }

  .arrow-share {
    left: 27px;
    right: unset;
    top: -15px;
  }
}

@media (max-width: 500px) {

  .state-header-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .state-header {
    gap: 15px;
  }

  .state {
    gap: 16px;
  }

  .state img {
    margin: unset;
  }

  .bttn-in {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {

  .share-block {
    left: -15px;
    right: unset;
  }
}