/* Новости — список и статьи */

.news-page-main {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.news-page-head {
  width: min(1120px, 100%);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.news-page-head__crumb {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
}

.news-page-head__crumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.news-page-head__crumb a:hover {
  color: var(--accent-blue);
}

.news-page-head__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.news-page-head__lead {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.news-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

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

/* Карточка без фото в папке Content */
.news-card__img-wrap--ph {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.22) 0%, var(--card-elevated) 45%, rgba(139, 92, 246, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__img-wrap--ph::after {
  content: "Best Vision";
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 244, 242, 0.35);
}

.article-cover--abstract {
  aspect-ratio: 21 / 9;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, var(--card) 40%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid var(--border);
}

.article-source .article-source__label + p + .article-source__label {
  margin-top: 1.25rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--card) 0%, var(--card-elevated) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.news-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  transform: translateY(-2px);
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.news-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-high);
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Портретные превью: выше блок, кадр от верха — без полей как у contain */
.news-card__img-wrap--portrait {
  aspect-ratio: 4 / 5;
}

.news-card__img-wrap--portrait .news-card__img {
  object-position: center top;
}

.news-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__meta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.news-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.news-card__excerpt {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.news-card__more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.news-card__link:hover .news-card__more {
  text-decoration: underline;
}

/* Тизер на главной */
.news-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

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

.news-teaser-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card) 0%, rgba(19, 34, 56, 0.95) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-teaser-card__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-high);
  flex-shrink: 0;
}

.news-teaser-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.news-teaser-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-teaser-card__meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.news-teaser-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-teaser-card__excerpt {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.news-teaser-actions {
  margin-top: 0.5rem;
}

/* Статья */
.article-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.article-cover {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--bg-high);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover--tall {
  aspect-ratio: 4 / 3;
}

.article-cover--fit {
  aspect-ratio: auto;
  background: var(--card);
}

.article-cover--fit img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(85vh, 920px);
  object-fit: contain;
  object-position: center top;
}

.article-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-meta {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.article-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-prose {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-prose p {
  margin: 0 0 1.25rem;
}

.article-prose p:last-child {
  margin-bottom: 0;
}

.article-source {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-source__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.article-source a {
  color: var(--accent-blue);
  font-weight: 500;
  word-break: break-word;
}

.article-source a:hover {
  text-decoration: underline;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-blue);
}

.article-back:hover {
  text-decoration: underline;
}
