
/* news edit */
legend {
  padding: 0px;
  font-weight: 600;
}

.span4 {
  padding: 10px 0;
}

.span9 {
  display: block;
  width:-webkit-fill-available;
  border: 0;
  outline: 0;
  box-shadow: inset 0px 0px 4px 0px #767676;
  padding: 10px;
  margin: 5px 0 15px 0;
}

.control-label {
  display: block;
  margin: 10px 0 0 0;
}




/* news list */
.question {
  display: inline-block;
}

details summary {
  color: var(--main-text, #222);
  text-decoration: none;
  padding: 10px 16px;
  margin: 0 0 10px 0;
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--br-dm, 8px);
  transition: color 0.18s;
  cursor: pointer;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  box-shadow: 0px 0px 9px 0px #464e5b1f;
}

details summary:hover {
  background: #e3e8f0;
}

.shadow[open] summary {
  color: #2977ed;
  background: #e3e8f0;
}

.details-content {
  padding: 0 25px 15px;
  font-size: 16px;
}

/* news edit */
legend {
  padding: 0px;
  font-weight: 600;
}

.span4 {
  padding: 10px 0;
}

.span9 {
  display: block;
  width:-webkit-fill-available;
  border: 0;
  outline: 0;
  box-shadow: inset 0px 0px 4px 0px #767676;
  padding: 10px;
  margin: 5px 0 15px 0;
}

.control-label {
  display: block;
  margin: 10px 0 0 0;
}

/* news list */
.ggnews-content {
  padding: 20px 0;
  display: flex;
  flex-direction: row;
}

.ggnews-header {
  font-size: 20px;
  font-weight: 600;
  margin: 0 15px 15px 15px;
}

.ggnews-header:hover a {
  color: #2b79ed;
}

.ggnews-img img {
  height: 170px;
  width: 300px;
  border-radius: 10px;
  object-fit: cover;
}

.ggnews-infon {
  margin: 15px 15px 0 15px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}

.ggnews-info-create {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  margin: -27px 0 0 0;
}

.ggnews-info-create a {
  position: absolute;
  background: var(--target-default);
  border-radius: 12px;
  line-height: 15px;
  padding: 2px 7px;
  color: #fff !important;
  font-size: 10px;
  font-weight: bold;
  align-items: center;
  margin: 0 10px 0 0;
}

.ggnews-info-date {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  line-height: 15px;
  padding: 2px 7px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  align-items: center;
  margin: 10px 0 0 10px
}

.ggnews-text {
  margin: 10px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  position: relative;
  padding: 0 0 10px 0;
  width: 100%;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.ggnews-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white);
}

.mini-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 15px 15px 15px;
}

.bar {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
}

.bar svg {
  width: 20px;
}

.bar svg:hover {
  : #fa4f56;
}



.comment-item .author img {
  width: 70px
}

.date {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  height: fit-content;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 6px;
  background: hsl(2, 17%, 94%);
  color: #443e4d;
  margin: 5px 0 0 0;
}

input[type="submit"] {
  padding: 10px;
  cursor: pointer;
}

.ggnews-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white);
}

.mini-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 15px 15px 15px;
}

.bar {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
}

.bar svg {
  width: 20px;
}

.bar svg:hover {
  : #fa4f56;
}



.comment-item .author img {
  width: 70px
}

.date {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  height: fit-content;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 6px;
  background: hsl(2, 17%, 94%);
  color: #443e4d;
  margin: 5px 0 0 0;
}

input[type="submit"] {
  padding: 10px;
  cursor: pointer;
}

/* viewnews */
.img-polaroid {
  border-radius: 10px;
  display: block;
  position: relative;
  max-width: 100%;
  width: -webkit-fill-available;
}

/* postmsg */
.comments-navigation  {
    color: hsl(0deg 0% 0.79%);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 22px;
    margin: 0px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.comments-news textarea {
  border-radius: 10px;
  padding: 14px 14px 35px 16px;
  border: 2px solid var(--border-color-light);
  width: 100%;
  background: none;
  scroll-padding: 14px 14px 35px 16px;
}

.comments-news .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  margin-top: -40px;
  flex-direction: row-reverse;
}

.comments-news .bar .send.btn-default {
  padding: 3px 10px
}

.rbpage-comment-list .comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  font-weight: 100;
}

.comment-item .author .avatar img {
  width: 40px;
  border-radius: 100px;
}

.rbpage-comment-list .comment-item .comment .user-info .login {
  padding-bottom: 10px;
  font-weight: 600;
}

.rbpage-comment-list .comment-item .comment .text {
  margin-top: 5px;
  font-size: 16px;
}

.rbpage-comment-list {
  margin-top: 20px !important;
}

.content-navigation .comments {
  width: -webkit-fill-available !important
}

.rbpage-comment-list .comment-item .comment .actions .date {
  background: none;
  padding: 0px;
  font-size: 15px;
  color: var(--main-subtitle);
  font-weight: 100;
}

.gdate {
    grid-column: 2 / 3;
    color: var(--main-subtitle);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .ggnews-content {
        flex-direction: column;
        text-align: center;
        display: flex; 
    }
    .ggnews-img img {
        width: 100%;
        max-width: 400px;
        margin-bottom: 10px;
    }
    .ggnews-align {
        margin-left: 0;
    }
    .ggnews-header a {
    font-size: 20px;
    margin-top: 20px; /* отступ сверху */
    text-align: left !important; /* выравнивание по левому краю */
    display: inline-block; /* чтобы выравнивание работало на сам элемент */
    }
    
    .ggnews-info-create {
    margin-top: -30px;
    margin-left: -30px;
    }
    
    .ggnews-text {
    font-size: 16px;
    margin: 0;
    padding: 0;
    text-align: left; /* выравнивание текста по левому краю */
    }

}

/* 📱 Мобильная адаптация */
@media screen and (max-width: 768px) {
  .message {
    flex-direction: column;
    text-align: center;
    display: flex; 

  .news-list {
    flex-direction: column;
    align-items: stretch;
  }
}
































