/* Раздел новостей (/news/) */

.news-page {
  background: var(--cream);
  color: var(--ink);
  padding: 0 0 72px
}

.news-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

.news-breadcrumbs a {
  color: var(--green);
  text-decoration: none
}

.news-breadcrumbs a:hover {
  color: var(--red)
}

.news-hero {
  max-width: 780px;
  padding: 26px 0 34px
}

.news-hero h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  color: var(--green)
}

.news-hero-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted)
}

.news-grid-page {
  margin-bottom: 8px
}

.news-page .news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--green);
  box-shadow: 0 12px 30px #00190f1a
}

.news-card-media {
  display: block;
  overflow: hidden;
  border-top: 0 !important;
  padding-top: 0 !important
}

.news-card-media img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .35s ease
}

.news-page .news-card:hover .news-card-media img {
  transform: scale(1.04)
}

.news-page .news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column
}

.news-page .news-card-title {
  margin: 12px 0 20px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  min-height: 0
}

.news-page .news-card-title a {
  display: inline;
  padding-top: 0;
  border-top: 0;
  font: inherit;
  color: inherit;
  text-decoration: none
}

.news-page .news-card-title a:hover {
  color: var(--red)
}

.news-page .news-card-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #ded5c5;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  text-decoration: none
}

.news-page .news-card-more:hover {
  color: var(--red-dark)
}

.news-empty {
  padding: 16px 0;
  font-size: 16px;
  color: var(--muted)
}

.news-pager {
  margin-top: 34px
}

.news-pager .modern-page-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--sans)
}

.news-pager .modern-page-title {
  display: none
}

.news-pager .modern-page-navigation a,
.news-pager .modern-page-current,
.news-pager .modern-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  transition: background .2s, color .2s
}

.news-pager .modern-page-navigation a:hover {
  background: var(--green);
  color: var(--cream)
}

.news-pager .modern-page-current {
  background: var(--red);
  color: #fff
}

.news-pager .modern-page-dots {
  color: var(--muted)
}

/* Детальная страница новости */

.news-article {
  max-width: 860px;
  padding-top: 24px
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none
}

.news-back:hover {
  color: var(--red)
}

.news-article-head {
  margin: 22px 0 26px
}

.news-article-meta {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a00b19
}

.news-article-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  color: var(--green)
}

.news-article-media {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream-2)
}

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

.news-article-content {
  font-size: 16px;
  line-height: 1.7;
  color: #2c463b
}

.news-article-content p {
  margin: 0 0 16px
}

.news-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px
}

.news-article-content div {
  max-width: 100%
}

.news-article-content h2,
.news-article-content h3 {
  margin: 28px 0 14px;
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--green)
}

.news-article-content ul,
.news-article-content ol {
  margin: 0 0 16px;
  padding-left: 22px
}

.news-article-content a {
  color: var(--red)
}

.news-article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2d8c4
}

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

@media (max-width: 760px) {
  /* На главной .news-grid превращается в свайп-ленту и прячет карточки с 3-й —
     на странице новостей нужен обычный вертикальный список со всеми новостями. */
  .news-page .news-grid.news-grid-page {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none
  }

  .news-page .news-grid.news-grid-page .news-card {
    display: flex !important;
    flex: initial;
    width: auto;
    scroll-snap-align: none
  }

  .news-page .news-grid.news-grid-page .news-card-media img {
    height: 200px
  }
}

@media (max-width: 640px) {
  .news-page {
    padding-bottom: 48px
  }

  .news-page .news-grid.news-grid-page .news-card-media img {
    height: 210px
  }
}
