/* ═══════════════════════════════════════════════
   news-single.css — Страница одной новости
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
.breadcrumb {
  margin: 0;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
}
.breadcrumb-item a {
  color: var(--green-mid);
  text-decoration: none;
}
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-gray); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-gray); }

/* ── Обёртка страницы ── */
.single-wrap {
  padding: 40px 0 64px;
  background: var(--gray-bg);
}

/* ── Статья ── */
.single-article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── Обложка ── */
.single-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ── Контент ── */
.single-body {
  padding: 36px 40px 40px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.single-meta-item {
  font-size: 12px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}
.single-meta-item i { color: var(--green-mid); }

.single-title {
  font-family: 'KZBookman', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: normal;
  color: var(--green-dark);
  line-height: 1.35;
  margin-bottom: 24px;
  border-left: 4px solid var(--gold);
  padding-left: 16px;
}

.single-lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #f0f7f3;
  border-radius: var(--radius);
  border-left: 3px solid var(--green-mid);
}

.single-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.single-content h3 {
  font-family: 'KZBookman', serif;
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--green-dark);
  margin: 28px 0 12px;
}

.single-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: #fdf9f0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
}
.single-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--green-mid);
}

/* ── Галерея: 4 в ряд ── */
.single-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px 0 10px;
}
.single-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
  display: block;
}
.single-gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* 5-е фото — слева */
.single-gallery-last {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 28px;
}
.single-gallery-last a {
  width: calc(25% - 8px);
}
.single-gallery-last img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
  display: block;
}
.single-gallery-last img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ── Похожие новости ── */
.related-section {
  margin-top: 40px;
}
.related-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.related-title span {
  font-family: 'KZBookman', serif;
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--green-dark);
  white-space: nowrap;
}
.related-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--green-mid) 0%, transparent 100%);
  border-radius: 2px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.related-card-img {
  height: 170px;
  overflow: hidden;
  background: #e4ede8;
  flex-shrink: 0;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.related-card-date { font-size: 11px; color: var(--text-gray); margin-bottom: 6px; }
.related-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.related-read-more {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--tr);
}
.related-card:hover .related-read-more { gap: 8px; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .single-body { padding: 24px 24px 32px; }
  .single-cover { height: 300px; }
  .single-gallery { grid-template-columns: repeat(2, 1fr); }
  .single-gallery-last a { width: calc(50% - 5px); }
}
@media (max-width: 767px) {
  .single-body { padding: 20px 16px 28px; }
  .single-cover { height: 220px; }
  .single-gallery { grid-template-columns: repeat(2, 1fr); }
  .single-gallery-last a { width: calc(50% - 5px); }
}
