/* ======= Хлебные крошки (современный микс) ======= */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  margin-bottom: 30px;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fafafa, #fff);
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.3px;
}

.breadcrumbs a {
  color: #333;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.breadcrumbs a:hover {
  background-color: #f3f3f3;
  color: #000;
}

.breadcrumbs span {
  color: #999;
  font-weight: 500;
  margin: 0 6px;
}


/* Сетка карточек */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 в ряд */
  gap: 32px; /* увеличил отступы между карточками */
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Карточка */
.news-item {
  background: #fff;
  border-radius: 12px; /* было 16px */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* более лёгкая тень */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Ссылка-обёртка */
.news-item__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Картинка */
.news-item__image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.news-item__image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-item:hover .news-item__image img {
  transform: scale(1.08);
}

/* Контент */
.news-item__content {
  padding: 16px; /* было 20px */
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Дата — бейдж */
.news-item__date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #0077ff;
  padding: 4px 10px;
  border-radius: 30px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* Заголовок */
.news-item__title {
  font-size: 18px; /* было 20px */
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-item__title:hover {
  color: #0077ff;
}

/* Краткое описание */
.news-item__intro {
  font-size: 14px; /* было 15px */
  color: #555;
  line-height: 1.5;
  margin-top: auto;
}

/* Краткое описание */
.news-item__intro {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin-top: auto;
}


/* ===== СТИЛИ ДЛЯ ОДНОЙ НОВОСТИ ===== */

/* Контейнер статьи */
.post {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 0 60px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Заголовок и дата */
.post__head {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.post__head h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #111;
}

.post__head time {
  font-size: 14px;
  color: #888;
}

/* Обложка */
.post__cover {
  margin: 25px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post__cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Вводный текст */
.post__intro {
  font-size: 18px;
  color: #444;
  margin-bottom: 25px;
  font-style: italic;
  line-height: 1.7;
}

/* Основное содержимое */
.post__content {
  font-size: 17px;
  color: #333;
}

.post__content p {
  margin-bottom: 18px;
}

.post__content h2,
.post__content h3 {
  margin: 25px 0 15px;
  font-weight: 700;
  color: #111;
}

.post__content ul {
  padding-left: 20px;
  margin: 15px 0;
}

.post__content li {
  margin-bottom: 8px;
}

/* Кнопка "назад" */
.post a.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 22px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s;
}

.post a.btn:hover {
  background: #444;
}
