/* Внутренняя новость (Figma 1:5659 desktop, 1:5865 mobile) */

.article-layout {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 120px;
}

/* --- Статья --- */
.article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 800px;
}

.article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.article__badge {
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--yellow-cc);
  font-weight: var(--fw-bold);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-brown-dark);
}

.article__date {
  font-size: 14px;
  color: var(--text-gray-500);
}

.article__title {
  font-weight: var(--fw-bold);
  font-size: 35px;
  line-height: 1;
  letter-spacing: var(--ls-base);
  color: var(--text-brown-dark);
}

.article__hero {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 12px;
}

.article__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-brown-dark);
}

.article__text b {
  font-weight: var(--fw-bold);
}

.article__media-row {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.article__inline-img {
  width: 340px;
  height: 220px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

.article__media-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}

.article__subtitle {
  font-weight: var(--fw-bold);
  font-size: 18px;
  color: var(--text-brown-dark);
}

.article__media-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-gray-500);
}

.article__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: var(--border-light);
}

.article__share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article__share-label {
  font-weight: var(--fw-bold);
  font-size: 14px;
  color: var(--text-brown-dark);
}

.article__share-btns {
  display: flex;
  gap: 8px;
}

.article__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--border-light);
}

.article__share-btn:hover {
  background: var(--border-300);
}

/* --- Сайдбар «Другие новости» --- */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 0 0 320px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-white);
}

.article-sidebar__title {
  font-weight: var(--fw-bold);
  font-size: 18px;
  color: var(--text-brown-dark);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-card__image {
  width: 100%;
  height: 160px;
  margin-bottom: 6px;
  object-fit: cover;
  border-radius: 8px;
}

.related-card__date {
  font-size: 12px;
  color: var(--text-gray-500);
}

.related-card__title {
  font-weight: var(--fw-bold);
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-brown-dark);
}

.related-card__more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--yellow-cc);
}

.related-card:hover .related-card__title {
  color: var(--text-black);
}

/* --- Адаптив --- */
@media (max-width: 1023px) {
  .article-layout {
    flex-direction: column;
    gap: 40px;
  }

  .article-sidebar {
    flex-basis: auto;
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  .article-layout {
    margin-bottom: 48px;
  }

  .article__title {
    font-size: 24px;
    line-height: 1.2;
  }

  .article__hero {
    height: 220px;
  }

  .article__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article__media-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article__inline-img {
    width: 100%;
    height: 200px;
  }
}

/* --- Товары из новости (novost-valtec.html) --- */
.news-products {
  /* переменные карточки каталога: вне .catalog карточки теряют рамку и жёлтый */
  --card-border: #e5e7eb;
  --card-yellow: #ffd600;
  --card-text: #1a1a1a;
  --card-gray: #717182;
  --card-green: #10b981;
  margin-top: 40px;
  padding: 48px 0 64px;
  border-top: 1px solid #ebebe8;
}

.news-products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.news-products__title {
  font-weight: var(--fw-bold);
  font-size: 22px;
  color: var(--text-dark-900);
}

.news-products__rule {
  width: 48px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--yellow-500);
}

.news-products__see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid var(--text-dark-900);
  border-radius: 30px;
  font-size: 14px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  color: var(--text-dark-900);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-products__see-all:hover {
  background: var(--text-dark-900);
  color: var(--yellow-500);
  transform: translateX(2px);
}

.news-products__see-all svg {
  transition: transform 0.2s ease;
}

.news-products__see-all:hover svg {
  transform: translateX(3px);
}

.news-products__grid {
  margin-top: 0; /* отступ даёт head; сетку даёт .product-grid каталога */
}

.news-products__more {
  margin-top: 32px;
  text-align: center;
}

.news-products__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 30px;
  background: var(--yellow-500);
  font-weight: var(--fw-bold);
  font-size: 14.5px;
  color: var(--text-dark-900);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-products__more a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 168, 0, 0.35);
}

.news-products__more a svg {
  transition: transform 0.2s ease;
}

.news-products__more a:hover svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .news-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* catalog.css (нужен карточкам «Товары из новости») обнуляет нижний отступ
   крошек — возвращаем стандартный отступ страниц */
.single-post .breadcrumbs {
  padding: 32px 0 24px;
}
