/* Лента "Новости" — отступы как у "Наших работ" */


#panel-novosti .service-panel__body > .service-section:first-child {
  margin-top: 0px !important;
}
#panel-novosti .service-section > .works-item:last-child {
  padding-bottom: 0 !important;
}
#panel-novosti .gallery__meta-line {
  margin-bottom: 0 !important;
}
#panel-novosti .service-panel__body > .service-section {
  margin: 0 !important;
}
#panel-novosti .service-panel__body > .service-section + .service-section {
  margin-top: 0px !important;
}

/* Общий блок новости */
.news-item {
  padding: 12px 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-item:last-of-type {
  border-bottom: none;
}

/* Шапка новости */
.news-item__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.news-item__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.news-item__subtitle {
  margin: 0;
  opacity: .85;
  line-height: 1.4;
}

/* Обёртка галереи в новости */
.news-gallery {
  margin-top: 10px;
}

.news-item__body {
  margin: 12px 0 0;
}

.news-item__body p {
  margin: 0 0 8px;
}

.news-item__body p:last-child {
  margin-bottom: 0;
}

#panel-novosti .news-item:last-of-type {
  padding-bottom: 6px;
}

#panel-novosti .contact-note {
  margin-top: 12px;
}

/* Мета-полоса под фото для шаблона 1 */
.gallery.gallery--bodyshop .gallery__meta-line {
  grid-column: 1 / -1;
  margin: 10px auto -8px;
  font-size: 14px;
  opacity: .78;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;

  text-align: center;
  line-height: 1.4;
}

/* точки-разделители между мета-пунктами */
.gallery.gallery--bodyshop .gallery__meta-line span {
  position: relative;
  white-space: nowrap;
}

.gallery.gallery--bodyshop .gallery__meta-line span + span::before {
  content: "•";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  font-weight: 600;
}

/* Текстовая новость (шаблон 3) */
#panel-novosti .news-item.news-item--text-only {
  padding-bottom: 0px; 
}

.news-item--text-only .news-item__body p {
  margin: 0 0 8px;
}

.news-item--text-only .news-item__body p:last-child {
  margin-bottom: 0;
}
